Repository navigation
v1.91.205.0 feat(ship): Step 9 fix-range re-review, with a mandatory final full pass (#3339) - #3404
Merged
Merged
Conversation
…ss (#3339) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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: a repeat pass that reviewed only the fixes was logged as a full pass and came out CURRENT, so it could clear review. After: the record says fix-range, it is UNVERIFIED, Step 11.5 has nothing to bind, and the next start must be a full pass.
Step 9's repeat decisions: a fixing pass may be followed by a fix-range pass, and Step 10 is reached only from a full pass. Nearby prose was tightened to pay for the new lines.
The core checklist explains the fix-range start and that
FIX_BASEstands in fororigin/<base>and<base>for that pass.gstack-review-log --start review --fix-rangeprints the token andFIX_BASE=<sha>. The base is the commit of the latest pass, read from the review log. It is never taken from the caller and never written to the working tree, sogstack-wtree's fingerprint and Step 11.5's binding are untouched. That commit's tree must be exactly the content the pass started from, sogit diff <FIX_BASE>holds every fix, committed or not. The start refuses (exit 1, "run a full pass") in each of these cases: there is no earlier pass, that pass didn't complete (restoring coverage always takes a full pass), it made no fixes, it has no captured start, it ran on another branch, a Step 11 review followed it, it started from uncommitted or untracked content, or its commit is gone or no longer an ancestor of HEAD. On the start-work-then-ship flow, where Step 9 first reviews uncommitted work, the first repeat therefore stays full.lib/review-evidence.ts: a fix-range row getsscopeandfix_basefrom the token only, and a token that names any fix base stays narrowed even if its scope is rewritten. Its binding isstate: "fix-range"withrange_start_wtree/range_end_wtreeand nostart_wtree/end_wtree/wtree.reviewFreshnessnever returns CURRENT for it.gstack-specialist-statsskips fix-range rows, so narrowed dispatches don't push specialists toward[GATE_CANDIDATE].ship/sections/review-army.md.tmpl: the fix-range start in the core checklist, the repeat permission in decision 3, and decision 4's full-pass-before-Step-10 rule. Ship's skeleton plus sections is 313,246 bytes against its 313,281 cap, 35 bytes below main, with no cap raised.Why
#3339 (thanks @eoin-obrien): on large branches every fix cycle reran every specialist and the Red Team over the whole diff. A pass converges only with zero fixes, so long branches ran to the three-cycle stop. A prompt-only override can't do this safely, because it can't keep the base out of the working tree, mark a narrowed pass in the log, or keep narrowed dispatches out of gating stats. This PR does all three in gstack. Following Garry's call, it also makes sure a narrowed pass can never be the review that ships.
Fixes #3339
Approvals
Source: gstack-approvals record for fix/3339-fix-range-rereview (display only; not an approval citation).
Gate edits
reviewFreshness, Step 11.5 binding fieldsstart_wtree/end_wtreefor Step 11.5, and decision 4 requires a full pass before Step 10. The start refuses every case the issue lists as needing a full pass.test/review-fix-range.test.ts: a caller claimingscope:"full"and a verified binding on a fix-range token is still recorded as fix-range, unbindable and UNVERIFIED.reviewFreshnessrejects a fix-range row even with a verified-looking binding. A second fix-range start after a clean narrowed pass is refused. Shared-libs reuse rejects fix-range rows. A rewritten start token stays narrowed. Mutation checks, each caught: dropping the freshness check, giving a narrowed row the normal binding, allowing a start after a clean, incomplete or Step 11-followed pass, accepting a non-ancestor base, accepting a start from uncommitted content, trusting the token's scope alone, and counting fix-range rows in stats.No threshold, budget, timeout, trial count or case kind changed.
Outside review
An outside voice (GPT-6 Astra, a separate model family) reviewed 4e54d98. I checked its findings against the code and fixed them in a0b7ca7:
changed, and the first version refused every real repeat. Its tests had reversed that order. They now follow Step 9.4's order.git diff <commit>could miss a reverted dirty hunk. The base must now be a commit whose tree equals the content the pass started from.fix_baseis dropped. Someone who can edit the token file can still forge a full start. That is the same local-state trust boundary every review token already has, and this PR doesn't change it.Evidence
gen:skill-docsand--host codexare fresh, andbun run typecheckis clean.test/review-fix-range.test.ts.ship/SKILL.md workflowandreview/SKILL.md workflowpassed. The prompt files are unchanged since then, so I'm reusing this evidence.shared-libs-review-lifecycle,-revalidation,-prior-coverage,-path-eligibility,-index-flags,review-army-json-findings,review-army-quality-score,review-dashboard-via,safety-ship-stale-evidence,ship-skipped-queued-finding,review-gate-integrityandship-triage.