Repository navigation
v1.91.226.0 feat(review): /review re-reviews only its fixes after an edited pass, with a final full pass (#3339) - #3414
Merged
Conversation
… with a final full pass (#3339) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…5.0 ignores this invocation's records (#3339) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…view's real order (#3339) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…rereview Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…rereview Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md # test/fixtures/skill-md-size-allowlist.json
….0 (#3414) 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.
/review's own re-review can now narrow to just its fixes, under the same rules #3404 gave /ship. A narrowed pass can never be the final review.
What changed
Step 3: narrowed starts. The first pass always starts full. The pass right after an edited pass starts with
gstack-review-log --start review --fix-range. Wherever that pass sets DIFF_BASE outside Step 4.8 (the core checklist, the specialists and QA), it uses the printedFIX_BASEinstead. Step 4.8 keeps the full branch, because its adversarial rows carry their own freshness. Every other<base>use also keeps the base branch: state-matrix detection, the gate, banned-terms and slop scans, and the queue check. If the logger refuses, the pass starts full.Step 3: the first pass starts full. The pass after an edited pass narrows its DIFF_BASE only, outside Step 4.8, and a refusal falls back to a full start.
Step 5.8: log each edited pass, and never finish on a narrowed one. An edited pass now saves its own record with
converged:falsebefore the repeat, because the fix-range start takes its base from that record. Before, only the final pass was logged, so narrowing could never start. Step 5.0 never treats this invocation's own records as prior reviews, so a defect the user skipped this invocation still counts as unresolved. "No edits" writes the final record only after a full pass. After a zero-edit fix-range pass, /review runs Steps 3–5 again with a full start.Step 5.8: the edited pass is saved before the repeat, Step 5.0 ignores those records, and a fix-range pass is never final.
The real logger in /review's order. /review never commits, so the narrowed pass covers the uncommitted fixes. When the first pass read uncommitted work, the logger refuses to narrow, and that pass's repeat stays full.
Before: an edited pass was never logged, so a fix-range start had no base and was refused. After: Step 5.8 logs the edited pass, and pass 2 narrows to the uncommitted fixes.
Size. Nearby prose was tightened to pay for the new rules. Every host's review SKILL.md is 36 characters smaller, and all eight review pins were lowered to match; none was raised. The Claude skeleton is 80,581 bytes against its 80,900 cap.
Why
#3339: every /review fix cycle reran the whole review over the whole branch. On a large branch, each full pass tends to find something new in code earlier passes already read, so the loop runs to the three-cycle stop without converging. Narrowing the repeat to the fixes cuts that cost, and the mandatory final full pass keeps coverage of the finished branch.
Approvals
Gate edits
Gate change. /review may narrow a repeat pass. Verdict: this does not weaken what the final review covers.
Test expectation edits in
test/review-workflow-clarity.test.tsfollow the new contract:converged:false;One test was renamed from "finish only the final core token without log-time capture" to "each logged pass finishes its own core token without log-time capture". It still requires one
--finish REVIEW_START, no--start reviewin Step 5.8 and no log-time capture.Mutation checks: 9 of 9 caught by the suite. Each mutant was applied to the rendered skill:
No threshold, budget, timeout, trial count or case kind changed. The new walk tests set a 30 s per-test timeout for their real logger calls.
Evidence
Focused free tests: 1,555 pass, 0 fail across 27 files at 1ea548b, including review-fix-range, review-workflow-clarity, binding-template-drift, parity-suite, parity-sectioned, skill-md-size-guard, gen-skill-docs, harness-version and touchfiles. ca2bc78 changes only
test/review-fix-range.test.tsand the CHANGELOG; that file passes 25/25 at ca2bc78. Typecheck and the test-typecheck ratchet show no new diagnostics.Focused paid cases (gate tier): 17 of 17 pass on the final review/SKILL.md, each with 1 executed and 0 reused:
Judges: 3 of 3 pass (review/SKILL.md workflow, cross-skill greptile consistency, voice directive tone).
Outside review: gpt-6-astra reviewed the diff read-only. It found four issues and all four are fixed:
<base>substitution broke state-matrix, banned-terms and the queue check.Its recheck found one test-order gap, also fixed: the walk now logs each pass's Step 4.8 attempt between the core start and finish.