Repository navigation
v1.92.10.0 fix: /ship's scoped review pass runs again and reads the fix range (GST-619) - #3766
Merged
Merged
Conversation
… on its own (GST-619) 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>
…dy runs inside the pass (GST-619) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…11 voices keep the merge base (GST-619) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…il Step 11 runs (GST-619) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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
Before (main 2d1b55d), a scoped pass after a blocking fix is refused with
BRIEF_RENDER_FAILEDand no reader starts. After this PR, the pass stages the Red Team, both voices and the QA audit, and names the plan's fix-check on its ownFIX_CHECK:line. The Red Team reads the fix range, and the Step 11 voices still read the whole branch. Both captures come from the fixture in the new test, run on main and on this branch.Why
After a blocking fix on a small range,
gstack-review-planplansNEXT: scoped: one fix-check, the Red Team and the voices on the range.gstack-review-dispatch passrefused every such plan withBRIEF_RENDER_FAILED: a pass dispatches no fix-check reader, so GEVA-82 had to render its briefs by hand. Even past that refusal, the pass would have staged its readers on the merge base, because the Capy pass program never passes--diff-base. Nowpassleaves the fix-check out of the manifest and prints it as aFIX_CHECK:plan line. A scoped pass gives the Red Team the plan'sfix_range.base, resolved to a full sha, as docs/review-policy.md describes. Until Step 11 has run, the adversarial pass and the outside voice in a scoped pass are Step 11's own voices, so they keep the merge base and read the whole branch. Once the plan flags carry--adversarial-ran, the whole scoped pass reads the range.Failing-first proof.
test/review-pass.test.ts"a scoped pass after a blocker fix (GST-619)" runs GEVA-2's exact invocation. On main 2d1b55d it fails at line 484 withBRIEF_RENDER_FAILED: a pass dispatches no fix-check reader (fix-check runs on its own), exit 1. On 07c1800 (the fix-check change alone) it fails onmanifest.diff_base, which is the merge base instead of the range base. At ad0b7b6, where every scoped reader read the range, both current cases fail. GEVA-2's invocation expects the outside voice on the merge baseb15303d…and receives the range basef80b3e1…. The--adversarial-rancase fails its reader-base check. On this branch both pass.Blast radius
Only
pass()inbin/gstack-review-dispatchand the per-reader diff base inlib/review-pass.ts(buildManifest,renderStage) change. Full passes andPASS: noneplans behave as before, and the targeted reader keeps the merge base. No reviewer brief, checklist or depth rule changes, so every pin intest/review-packets-removed.test.tsholds and no no-loss replay is needed. No network calls, secrets, permissions, workflows, install scripts or dependencies are touched.Approvals
No approvals recorded for branch gst-619-scoped-pass-fixcheck. Merges under the crew's standing rule 6 approval, through the train.
Pre-Landing Review
Pre-Landing Review: 4 issues — 4 auto-fixed, 0 asked, 0 deferred, 10 noted (one noted item was later fixed in d78b084 on the Captain's approval)
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Pass 1 (full, gate class) ran the batched specialist, the Red Team, the native adversarial pass, an outside voice on gpt-6.1-sol, a coverage audit and exploratory QA. QA ran 7 smoke probes and found no defects. Two readers flagged the Step 9 sentence this branch had added: it pointed the scoped fix-check at decision 3.5, whose hunks (
git diff $PASS_HEAD) are empty inside a scoped pass. The remote pregate also failedtest/review-packets-removed.test.ts, because that sentence changed the no-loss-pinnedship/sections/review-army.md. The fix restores main's bytes for both review-army files: lines 17-18 there already run the scoped fix-check inside the pass ongit diff $RANGE_BASE. It also drops the size-ledger entry and corrects two changelog claims. Pass 2 (full, on the range) found nothing at the blocking floor. The Captain then approved fixing the first noted item below. Commit d78b084 stages Step-11-pending voices on the merge base, and one fix-check ongit diff ad0b7b6found nothing at the floor. The documentation re-audit then corrected the scoped-pass bullet in docs/review-policy.md (f8bd24c), and a second fix-check on that hunk returned NO FINDINGS.Noted, not fixed (informational, below the blocking floor):
--diff-baseno longer reaches the Red Team, though no shipped caller passes it. The pinned review-army.md line 37 still says every Step 11 prompt from pass 2 on carries RANGE_BASE.FIX_CHECK:line is the only signal, its wording ("Step 3.5 runs it on its own") differs from Step 9's "inside this pass", and the Capy pass program drops that line on resume (lib/capy-review-pass.js:44).review_scope all.--diff-basecheck.Sibling trial merge (crew rule 25)
#3736 (GST-507) edits the end of the same bin and is still open. Trial-merged its head 51e6ca3 with this branch at d78b084 in a scratch worktree: no conflicts, and
test/review-pass.test.tsplustest/review-dispatch.test.tspassed 72 of 72 on the merged tree.Documentation
Status: updated. One factual correction to docs/review-policy.md, no blockers.
Scope: base 2d1b55d, head d78b084. Selected files: bin/gstack-review-dispatch, lib/review-pass.ts, test/review-pass.test.ts and changelog.d/gst-619-scoped-pass-fixcheck.md. Nothing was staged, unstaged or untracked. The banned-terms check found none.
Documentation health:
Coverage debt: the FIX_CHECK: planned line has reference coverage only in the changelog fragment. No diagram drift. The ship/ sections and generated SKILL.md files were not read, so their wording is unverified.