Repository navigation
Keep deferred review findings on the PR instead of filing issues - #4208
Merged
Merged
Conversation
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>
The reviewer's stated severity and Blocks text now sit in their own field, so a review-log row built from a deferred record keeps a severity the ledger can rank. The PR body renders the same line as before. Review-Finding: p1/adversarial-native#2 reader=adversarial-native 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. |
This was referenced Nov 9, 2026
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.
/ship and the crew docs stop filing deferred review findings as GitHub issues. A blocking finding in code a PR did not change now stays on that PR, in the body's
## Deferred findingssection, so the issue tracker only holds follow-up work someone owns.What changed
Step 9.4 no longer files an issue for a deferred finding; it stays on the PR.
Before/after as text: Step 9.4 no longer files an issue for a deferred finding; it stays on the PR
gstack-review-scope deferfiles no issue. It used to rungh issue createonce perscope: deferfinding, with a marker search to reuse an open issue. It now only records the finding for the PR body and never callsgh. The--pr,--repo,--branchand--dry-runoptions are gone, and a deferred record no longer carriesissue,urlorreason. The severity the reviewer stated (Severity:,Blocks:) still shows next to the collected label, now on the PR-body line.## Deferred findingsnow reads "They stay on this PR and are not filed as issues", and each line is- Deferred: <severity> \`Why
Garry's issue audit on 2026-11-09 closed 207 issues, and 59 of them came from gstack threads, most of them deferred review findings filed as Backlog issues nobody picked up. Deferred review and /ship findings now stay on the PR that found them, and real follow-up work gets one issue with a named owner.
Blast radius
The change touches
gstack-review-scope deferandrender, /ship Step 9.4, and the policy and crew docs that describe them; no other caller runsdeferwith the removed options, which the new prose guard and the ten files it scans confirm (test/review-scope.test.ts, script ran in CI run 42603965815). Reviewer brief bodies cut from ship/sections/review-army.md are byte-identical to their pins, so reviewer behavior does not change (brief-body pin test, script ran).Summary
Deferred findings were turning into a pile of Backlog issues with no owner, because /ship filed one per deferred blocking finding through code, not just prose. This PR removes the filing path from
gstack-review-scope defer, keeps the reviewer's stated severity on the PR-body line, and rewrites every instruction that told an agent to file such an issue. It also repins ship/sections/review-army.md under a brief-identity no-loss check and adds failing-first tests for the new behavior.Inventory (line numbers at main 350d419)
Changed:
deferfiles one GitHub issue per deferred finding throughghghcallscope: deferfinding"; records carryissueissuefielddeferfiles it as a GitHub issue; "deferred issues pile up"## Deferred findings; deferred findings never become issuesfrozenfiles blocking findings in unchanged code as issuesshow-effectivetext)deferred: <items filed as issues, or none>deferred: <findings kept on the PR, or none>Checked and left alone: ship/sections/tests.md:346 (pre-existing test failure triage assigns one issue to whoever broke the test, so it already has a named owner); ship/SKILL.md.tmpl:322-328 and ship/DRIVER.md Step 14 (TODOS.md entries, not issues); docs/captain.md, capy/skill/gstack/captain.md, the captain templates, captain/SKILL.md.tmpl and every review/ file (none tells an agent to file a finding as an issue).
Size and pins: capy/skill/gstack/factory.md is 3,465 bytes (cap 3,475; it was 3,455). The ship size ledger records -304 bytes for ship/sections/review-army.md, whose whole-file pin moves under the brief-identity no-loss check (replay GST-2073), as GST-986 and GST-1346 did.
Test Coverage
Coverage: deterministic (each of 10 changed runtime files has a changed test naming it; no audit reader).
deferwith a loggingghstand-in on PATH never calls it and writes records with no issue fields; the rendered section says no issue was filed and has no#Nor "unfiled";deferredRecordkeeps the reviewer's stated severity and flattens injected newlines; a prose guard over the ten files above finds no instruction to file a deferred finding as an issue and requires the rule in factory.md and crew/docs/captain.md. All three failed on main 350d419 before the fix.ghissue-filing, marker-reuse, truncated-search, publication-scan andgh repo viewtests. The PR body already goes through the publication scan, which is where the deferred text now lands.--dry-run, "unfiled (dry run)" andissue: null.Tests ran: free 1652 (files; carried from CI run 42603965815/1 at tree dc285ed032e5, 36,762 tests)
Pre-Landing Review
No blocking issues found. One /ship pass at 7833603 (gate class, full depth, frozen scope): 3 specialists (testing, security, state-machines) with 0 findings, the targeted gate reader with 0 findings, the adversarial native voice with 4 findings below the blocking floor (noted, listed under Review notes), and the outside voice (openai/gpt-6.1-sol, certified configuration) completed with 0 findings. No fix round ran.
Gate edits: no gate finding is open. gstack-gate-diff for 350d419+dc285ed032e5: listed=14 eligible=12 inspected=12 unread=0 tagged={RH-1:2}. The two tagged hunks are the review-army.md pin moving to replay GST-2073 (the brief-identity no-loss check above) and the frozen-scope fixture actor's declared
deferinteraction, which follows the removed--dry-runoption.Outside review: completed (openai/gpt-6.1-sol), 0 findings.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
bin/gstack-review-scope:157defer --out rewrites .gstack/tmp/review-deferred.json each pass, so a later pass or a Step 11 late defer can leave the PR body's Deferred findings section partial; the review log rows still keep every deferred recordcrew/docs/captain.md:222a deferred blocking finding has no tracked owner once the PR merges; this is the owner's R85 rule (deferred findings stay on the PR), recorded as a notelib/review-scope.ts:266reviewer summary text in the Deferred findings and Review notes sections is not stripped of closing keywords before #N (predates this diff); the --help line still says referencesbin/gstack-review-scope:171render drops the issue and url fields of a deferred.json written by the previous binary, which matters only for a /ship run that spans the upgradeExploratory QA
No exploratory QA charter ran in this /ship: the change has no user interface, and the
deferbehavior is exercised by test/review-scope.test.ts with a loggingghstand-in.Design Review
No frontend files changed — design review skipped.
Eval Results
No paid evals ran in this /ship. The only prompt change is the lead's Step 9.4 text; every reviewer brief cut from ship/sections/review-army.md is byte-identical to its pinned body.
Review bot comments
No review bot comments.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.
Verification Results
Pregate on the stamped tree: verify ok (typecheck, skill-size, parity-suite, context-budget, module-size, goldens and conflict-markers guards passed). Remote obligations cleared: macos-named-regressions (run 42603965815, its macos-named-regressions job) and windows-smoke (run 42605388303), both green at 7833603.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The docs match the change, which keeps deferred review findings on the PR instead of filing them as GitHub issues.
Scope: base 350d419 to head 7833603 (4 commits, 20 files, all committed; nothing staged, unstaged or untracked). I read the authored docs this branch changes (docs/review-policy.md, docs/ship-policy.md, docs/unattended.md, crew/docs/captain.md, captain/templates/READY.md, capy/skill/gstack/factory.md, ship/sections/review-army.md.tmpl and its generated output), the code that changed the contract (bin/gstack-review-scope, lib/review-scope.ts) and nearby docs (capy/README.md, docs/triage.md, ship/sections/pr-body.md.tmpl). I also searched every tracked doc and template for stale wording about filing deferred findings as issues and found none.
Documentation health:
Coverage debt:
gstack-review-scope defer's smaller interface (only--findingsand--out, and a record that carriesstatedbut noissue,urlorreason) is covered by the reference docs (the command's help, docs/review-policy.md and docs/ship-policy.md) and the how-to doc (/ship Step 9.4). It has no tutorial, which is acceptable for an internal /ship helper.Diagram drift: none; no diagram names the removed issue-filing path.
Test plan
bun run test: carried from CI (Free Tests run 42603965815/1 at 7833603, 1,652 files, 36,762 tests, 0 failed)🤖 Generated with Claude Code
Agent notes
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=2 dispatches=3
Plan: exempt: fix under Garry's R85 process rule
Approvals
No approvals recorded for branch keep-deferred-findings-on-the-pr.
Plan: exempt: fix under Garry's R85 process rule
Plan check: PLAN_EXEMPT_UNKNOWN (gstack-approvals plan-check says why)
Refs GST-2073