Repository navigation
v1.92.65.0 fix(review): every reviewer brief opens with the REVIEWED_TREE step (GST-897) - #3830
Merged
Merged
Conversation
…ep (GST-897) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…reviewed-tree-first Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/review-pass.test.ts
4 tasks done
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Every brief
gstack-review-dispatchsends a reviewer now opens with theREVIEWED_TREErequest instead of only closing with it.withWorkspace(lib/review-brief.ts) puts a newworkspaceStep(dir)before the section's render and keeps the closingworkspaceParagraph(dir)after it, so the render in between stays byte for byte what it was. The step says to run the fingerprint command first, says it outputs oneREVIEWED_TREE: <tree hash> <path>line, and asks the reader to copy that output line, not the command, as the first line of the reply. The closing paragraph now says "(the output, not the command)".collectis unchanged: a reply without the line is still refused, and the dispatcher never stamps the tree for a reader.docs/review-policy.mditem 7 describes the new order.Before and after: the first line of the rendered outside-voice brief (
gstack-review-dispatch render --role outside-voice, captured in this run):Collect on this branch, a reply that followed the step, then the captured GST-850 reply:
Why
GST-897, from GST-850 on GSTA-167. Two gpt-6.1-sol outside-voice readers never ran the fingerprint command. The request was only the brief's closing paragraph, after a diff of more than 700 lines and a rule that the reply ends with its
Recommendation:line.collectrefused both replies (COLLECT_WRONG_TREE reported="none"), so the outside voice's findings were lost. Other readers misread "the line prints" and pasted the command instead of its output.Proof, failing first. With
lib/review-brief.tsat main 35a676f, the new test intest/review-dispatch.test.tsfails because the brief's first line is "Filesystem boundary…" (GStack Minder drive,handoffs/GST-897/failing-first.txt). On this branch it checks the first line, runs the step's command and confirmscheckReviewedTreeaccepts its output, and confirmscollectstill refuses both captured GST-850 replies (exit 1,COLLECT_WRONG_TREE reported="none"). The two replies are checked in astest/fixtures/review-wrong-tree/gpt-6.1-sol-gst850-p1.outandp2.out, registered inFREE_FIXTURES.Eval
Preregistered in the GStack Minder drive:
handoffs/GST-897/prereg.mdandrepeat-prereg.md, with results inhandoffs/GST-897/noloss-results.md. Old brief = main 35a676f, new brief = 0fd4df2. The brief body this PR ships is byte-identical to 0fd4df2's; the later commits add a fixture registration and the changelog fragment.REVIEWED_TREEline and were accepted bycollect(exit 0). The first three dispatches got a brief cut short by the lane's launcher, were stopped before replying, and were sent again once with the full brief (checked bycmp). The results file reports that.Preregistered one-trial no-loss rule not met (2 single-trial flips). Pooled over 5 units × 2 models: 8 vs 8 blockers, 2 losses and 2 gains, both losses on blockers the recorded outside voice never found; both gains on blockers it found in both recorded passes. The 3593 repeat measured equal rates (2/3 vs 2/3). Accepted by GStack Minder (GSTA-36) 2026-11-02 as noise. R48 verdict FIX-METHOD for the rule, which needs a rate-based panel.
Corrected by GSTA-36 2026-11-02; original wording overstated the gains.
Spend on the eval: $31.14 of the $90 GST-897 cap.
Blast radius
withWorkspace,workspaceStepandworkspaceParagraphinlib/review-brief.ts. Every reader brief /ship dispatches gets about 500 more bytes at the front. Ledger hashes,sentchecks and chunking all work on the whole rendered text, so nothing reads the old first line.test/review-dispatch.test.ts(the new test, and the byte-for-byte role test now expects step + render + paragraph),test/review-pass.test.ts(each created prompt starts with the step and ends with the paragraph; thewithWorkspaceTailhelper is gone),test/helpers/free-fixtures-data.ts(the new fixture directory).Known limits
ship/sections/review-army.mdsays the security and Red Team prompts begin with (round 1 Red Team, INFORMATIONAL, confidence 6). A refusal would come back asCOLLECT_NOT_REVIEWEDand cost a re-dispatch, not a silent loss. The brief bytes stay as the eval measured them, so this is an open note.Approvals
None needed. This is a bug fix assigned by GStack Minder (GSTA-36) under GST-897, with failing-first proof and no autoplan (the Captain's ruling for a bug fix). GStack Minder accepted the no-loss result as recorded in the Eval section.
Pre-Landing Review
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen dispatches=4
Gate edits: none detected (9 listed, 5 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none). No hunk was tagged;
docs/review-policy.mdandlib/review-brief.tsmatched no gate pattern, so the scan says nothing about them, and the review readers covered them. The read hunks are the import lines and the two updated assertions intest/review-dispatch.test.tsandtest/review-pass.test.ts, plus the removedwithWorkspaceTailhelper; each assertion now checks more of the brief, not less.Review notes
verifyreports every brief and output matched. Nothing reached the blocking floor, so there was no second round.collecton a compliant reply and on the GST-850 reply.Documentation
Scope: the diff 35a676f...HEAD (lib/review-brief.ts now opens every reviewer brief with the REVIEWED_TREE step). I searched docs/, capy/skill/gstack/ and CONTRIBUTING.md for wording about where the fingerprint request sits in the brief.
Result: current. docs/review-policy.md item 7 already describes the new order, and no other doc says the request comes last.
Debt: none.
Test plan
test/review-dispatch.test.tstest fails on main 35a676f (the brief's first line is "Filesystem boundary…") and succeeds here.review-dispatch,review-dispatch-origin-base,review-pass,review-targeted,ship-driver,ship-budget-reader-drift,prose-voice-floor,module-size-ratchet,free-fixtures,test-pr-profile) with theGSTACK_*launch variables unset: 204 tests, 0 failed at a54545e.bun run typecheckclean.test/free-fixtures.test.tsfailed on 0fd4df2 (the new fixtures were unregistered) and is green after a54545e.UBI_OWNER=gsta234) at tree 7f4363a4: 3488 tests, 0 failed, $0.05. The VM was destroyed.test/review-pass.test.ts, which keeps both sides.lib/review-brief.tsandtest/review-dispatch.test.tsare byte-identical to ed1d055, anddocs/review-policy.mddiffers only by main's own item 6 edit. After the merge: focused lane 207 tests, 0 failed; typecheck clean; remote pregate at tree 5502b91a: 3509 tests, 0 failed, $0.05, VM destroyed. The receipt was carried from ed1d055 (base merge, test-only change, release metadata).Disclosures
gstack is Garry Tan's own project.
Disclosure: OpenAI began through YC Research, which was started by Sam Altman, a former president of Y Combinator. Garry Tan runs Y Combinator.