Skip to content

v1.91.226.0 feat(review): /review re-reviews only its fixes after an edited pass, with a final full pass (#3339) - #3414

Merged
capy-ai[bot] merged 6 commits into
mainfrom
fix/review-fix-range-rereview
Oct 26, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
fix/review-fix-range-rereview

Conversation

@garrytan

Copy link
Copy Markdown
Owner

/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 printed FIX_BASE instead. 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 before/after
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:false before 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 before/after
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.

Logger before/after
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

Date Asked Exact words Outcome Covers Still pending
2026-10-24 Ten triage calls, #3: may re-review cover only the fixed range (#3339)? GStack Minder routed /review's own loop here under the same pick. "do it" (Garry, via GStack Minder) approved #3339 for /review: a fix-range repeat only with a final full pass; a narrowed repeat needs a committed starting tree; ship through a train none
2026-10-25 Review's size pins for this change "Trim to stay within review's size pins. Lowering a pin is fine; raising one isn't." (GStack Minder) approved lower the eight review host pins by 36 chars; no pin or cap raised none

Gate edits

  • Gate change. /review may narrow a repeat pass. Verdict: this does not weaken what the final review covers.

    • The logger never marks a fix-range row CURRENT.
    • Step 5.8 requires a full pass after a zero-edit fix-range pass.
    • Step 4.8 stays full.
    • Step 5.0 can't suppress this invocation's skipped defects through its own intermediate records.
  • Test expectation edits in test/review-workflow-clarity.test.ts follow the new contract:

    • the "No edits" marker;
    • an edited pass saving its record with converged:false;
    • each pass finishing its own token.

    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 review in 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:

    • letting a fix-range pass be final;
    • dropping the full-pass condition on "No edits";
    • narrowing every repeat;
    • dropping the refusal fallback;
    • narrowing the first pass;
    • not logging the edited pass;
    • logging after the repeat;
    • narrowing Step 4.8 and other base uses;
    • letting Step 5.0 read this invocation's records.
  • 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.ts and 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:

    • review-gate-integrity, review-coverage-audit, review-exploratory-small-cli, review-sql-injection, review-test-value and review-base-branch;
    • all five shared-libs-review cases (lifecycle, revalidation, prior-coverage, path-eligibility, index-flags);
    • review-army-json-findings and review-army-quality-score;
    • all four ship-exploratory cases (late-input, plan-checks, small-cli, unavailable).
  • 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:

    • P1: intermediate records could feed Step 5.0's skip suppression.
    • P2: a narrowed Step 4.8 would give its adversarial row CURRENT freshness.
    • P2: the blanket <base> substitution broke state-matrix, banned-terms and the queue check.
    • P3: a narrowed slop scan would read no files.

    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.

Open in Capy

garrytan and others added 3 commits October 25, 2026 10:54
… 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>
@trunk-io

trunk-io Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits October 25, 2026 15:16
…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>
@github-actions github-actions Bot changed the title feat(review): /review re-reviews only its fixes after an edited pass, with a final full pass (#3339) v1.91.226.0 feat(review): /review re-reviews only its fixes after an edited pass, with a final full pass (#3339) Oct 26, 2026
@capy-ai
capy-ai Bot merged commit 8d95013 into main Oct 26, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant