/gstack-ship honours ruled edits after the final review and records second-model stops (GST-3814) (#4829)

/gstack-ship no longer asks for every reviewer again after an edit the
owner already ruled a note, and a stop on a second-model reviewer's
blocker now records instead of failing with STOP_UNBOUND.

Why: both forced hand-written workarounds after the final review (#4819,
yc-software/qm#3973, gskills#45 and #46).

Nothing to do: the fixes apply on the next /gstack-ship run.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=testing
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#2 reader=outside-voice
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-25 16:21:05 +00:00
1 parent ec5d7e6fbd
commit 7eba5caf6f
23 files changed
+201 -104

No files matched your search

+3 -3
View File
@@ -115,7 +115,7 @@ incomplete coverage, which blocks until the reviewer is rerun.
reads them with the receipt's classifier (`docsChangeSince`, the
[targeted-only read](#targeted-only-read-after-the-loop)'s) and prints
`NEXT: done`, or `NEXT: targeted` when a docs claim on a targeted-class diff
needs the read (GST-1702). An executable, symlink or gitlink file in that
needs the read. An executable, symlink or gitlink file in that
range, or a commit the gate scan tags there (a `[skip ci]` message), still
stops. Any other code edit after review costs the next round.
@@ -279,7 +279,7 @@ applies no edits is its exit too.
<a id="no-stop"></a>
### No-stop defaults (K1)
Four routine stops don't wait for a Captain. /gstack-ship and /autoplan record each one
Three routine stops don't wait for a Captain (the retired `scoped-fix-check` row below is refused). /gstack-ship and /autoplan record each one
as `{class, reason, evidence}` in the receipt's `no_stop` field and keep going.
`gstack-no-stop record` (`lib/no-stop.ts`) checks each case before it records it.
When a case doesn't qualify, it prints `NO_STOP: refused` and exits 3, and that
@@ -819,7 +819,7 @@ puts in the receipt:
| `review_loop.passes` | full review passes this ship ran (1 or 2; up to 3 under `review_scope: diff-plus-blocking` or `all`) |
| `review_loop.blocking_found` | every blocker found (GST-951): the rows' blocking findings (classified, or an unclassified CRITICAL), plus each ledger CRITICAL (as collected or judged) that no row finding from the same reviewer at the same path:line accounts for (each row finding pairs with one per ledger), so an adversarial, outside-voice or not-yet-classified blocker counts and one whose newest classification is below the floor does not. An unreadable ledger, merged file or judged set, or a judged set changed since `judge`, is `REVIEW_SCOPE_LEDGER`, never a count |
| `review_loop.unrecorded` | blockers found that no row gives a disposition (fixed, deferred, noted, skipped, a gate answer); absent when 0 |
| `review_loop.open` | blockers a row still holds as `open` at its newest action, gate findings aside (GST-3075), each its ledger id or fingerprint (or `{ id, fingerprint }`); Step 11's `adversarial-review` row counts here like a pass's row but is never a pass or a round. Only a later row's action clears one, or a [granted fix-check or a trailer-carrying fix](#what-closes-a-finding) (`cleared_by_grant`, `cleared_by_trailer`), and while any is left with no owner ruling, `gstack-ship-receipt write` refuses with [`RECEIPT_BLOCKER_OPEN`](troubleshooting.md#receipt-blocker-open); absent when 0 |
| `review_loop.open` | blockers a row still holds as `open` at its newest action, gate findings aside (GST-3075), each its ledger id or fingerprint (or `{ id, fingerprint }`); Step 11's `adversarial-review` row counts here like a pass's row but is never a pass or a round. Only a later row's action clears one, or a [trailer-carrying fix](#what-closes-a-finding) (`cleared_by_trailer`; a receipt written before fix-check grants were removed may still hold `cleared_by_grant`), and while any is left with no owner ruling, `gstack-ship-receipt write` refuses with [`RECEIPT_BLOCKER_OPEN`](troubleshooting.md#receipt-blocker-open); absent when 0 |
| `review_loop.unbound` | what could not bind (GST-1168), each printed as `REVIEW_SCOPE_UNBOUND: <what>: <why>`: a row with no start token and no readable time, a `pN` ledger with no review row of pass N (a fix-check ledger in a `pN` directory is not a pass ledger, GST-1775), a row finding's `ledger_id` no ledger collected, a `Review-Finding` trailer naming nothing; absent when 0 |
| `review_loop.ledgers_read` | dispatch ledgers the count read; absent under `--no-ledger` |
| `REVIEW_SCOPE_VOIDED:` (stderr, not a receipt field) | an abandoned pass (GBEV-3): a `pN` ledger never judged that no row names, replaced by a later `pM` ledger (M > N) that was judged or is named. Its findings are left out of every count above instead of counting as unbound and unrecorded. A fix-check ledger and the last pass are never voided |
+8
View File
@@ -1934,6 +1934,14 @@ ruled note, so it prints as `RULED_NOTE:`, marked `(no RULED_EDIT at this head;
applied)` when it cleared no path, the receipt records it and the PR body lists its
`Ruled note:` line.
`gstack-review-plan --range-base` reads the same rulings the same way (GST-3814):
it prints `RULED_EDIT:` for each cleared path and `RULED_EDIT_REFUSED:` for each
that did not clear, and when every path the fix range changed is cleared and the
gate scan tags no other path in it, `FIX_RANGE:` reports `runtime_lines=0 ruled=<n>`
and the range plans as no fix instead of asking for every voice again. A PR with
targeted classes still gets one targeted reader on HEAD when no targeted record
covers the ruled bytes; that read is not a review round.
<a id="security-findings-stay-private"></a>
**Security findings stay private (GST-3076).** A PR body keeps every earlier
version in its edit history, and a ruled, dispositioned, deferred or noted