Skip to content

Let an owner rule a blocker from the final review below the bar, so the PR ships with it listed (GST-2273, GST-3005) - #4482

Closed
garrytan wants to merge 6 commits into
mainfrom
owner-rulings-close-a-ruled-stop-and-read-only-deferrals
Closed

garrytan wants to merge 6 commits into
mainfrom
owner-rulings-close-a-ruled-stop-and-read-only-deferrals

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

When /ship's last allowed review finds a blocker that the owner rules below the bar, the PR can now ship with that finding listed as a note, instead of staying stuck.
This makes the review limit work the way docs/review-policy.md says. Nothing to do.

What changed

Before, a ruling after a round-2 full review changed nothing, though the docs said it closed the finding. A PR past its two review rounds had no way to record an owner-accepted deferral from its read-only final review either. Now:

  • A ruling names one open finding of the stop /ship recorded, by its review id: gstack-approvals rule --pr <n> --stop-run <run> --head <stop head> --finding <id>.
  • gstack-ship-receipt ruled-stop lists every open finding of that stop and says whether each one is ruled. Gate findings and security-class blockers can't be ruled, and a later commit voids the rulings.
  • When /ship records the PR's review result, --ruled-stop runs the same check again and saves the deferral (second_pass, or read_only when the PR already had two full rounds before this run).
  • The review log and its summary still show a ruled finding as open. Only /ship's saved result and the PR body show it as deferred by the owner.

Two loose ends from #4479 are closed too. The review planner and /ship's finish step now honor a grant for the fix round only after history has matched it to the stop record. The --by docs now say what the code refuses (a first word of "gstack").

Blast radius

/ship's handling of a stop at the review limit, and the review result it saves when given --ruled-stop or a read_only exception. Runs without them, review depth and reviewer prompts are unchanged.

Agent notes
  • Plan: exempt: bug fix
  • Case matrix rows R1-R12, D1-D5, H1-H5 and X6, X12, X17 and X23 are covered in test/ruled-stop.test.ts, which fails on main (the module is missing). PR 1's tests now also cover the history check.
  • No-loss replay, preregistered (captain drive handoffs/GSTA-608/no-loss-replay-pr2-prereg.md): lib/review-depth.ts is identical to main, 0 of 9,830,400 steps changed, step sha 63e41d14…. ship/sections/review-army.md changes only Step 9 bookkeeping prose (replay GST-2273), and no reviewer brief body changed.
  • Focused tests: 568 pass, 0 fail across 42 files. typecheck and typecheck:test are clean. The parity, size-ledger, pins, windows-curation and anchors checks are green.
{"head":"b466b336f4f59ae6eb2b05c10688ad39bb807db5","run":"ship-4482-52e75f5","status":"started","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":2,"fixed":1,"scope":"frozen","fix_checks":1,"rounds":2,"dispatches":{"specialist":3}}}
{"head":"4c9fa21961769d0e74858a9b74556041ac6f28c8","run":"ship-4482-4c9fa21","mark":"grant","grant":"a-be17e4531ee6"}
{"head":"971f94122e486df53ffd778e0a2c24cd3185731e","run":"ship-4482-4c9fa21","status":"started","review_loop":{"passes":2,"blocking_found":1,"deferred":0,"noted":3,"fixed":1,"scope":"frozen","rounds":2,"dispatches":{"specialist":6}}}
{"head":"971f94122e486df53ffd778e0a2c24cd3185731e","run":"ship-4482-4c9fa21","mark":"stop","tree":"5d8130780239468acdbffb2e2a23c45060234680"}
{"head":"5f59d56f0290a726d2e6e9742dcf5ceb008a6e2e","run":"ship-4482-5f59d56","status":"started","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":1,"fixed":0,"scope":"frozen","rounds":1}}

Open in Capy

…he PR ships with it listed (GST-2273, GST-3005)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 18, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

garrytan and others added 5 commits November 18, 2026 09:24
…th only bin/ and lib/ keep working

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-class, so an owner ruling can't close it

Review-Finding: p1/specialist-batched#1 reader=security
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e an unreadable --since, warn when the grant stamp cannot be written, and keep owner ruling lines out of the prose number check

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A ruled stop's receipt write now accepts release metadata and docs that Steps 12 to 14.5 commit after the stop, and still refuses code.

Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… stop as code, so old rulings cannot cover it

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Closing this unmerged, with the branch kept at 5f59d56. The read-only final review found two blocking gaps in the new ruling path: docs/ paths skip the code check after a ruled stop, and a read-only write miscounts earlier rounds. One more gap sits below the floor: a security reviewer's blocker can be ruled closed. The findings and the design lesson are on GST-2273. A rebuild will start from what may change after a grant, not only who grants it. #4479 (round grants at the cap) landed separately.

@capy-ai capy-ai Bot closed this Nov 18, 2026
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