/gstack-ship drops bought extra review rounds and the second-model trail check (GST-3829) (#4826)

/gstack-ship no longer lets anyone buy an extra review round or a narrow
re-check. After two review rounds, a blocking finding ships only as an
owner's recorded ruling, or the PR waits.

Why: these paths were switched off last release and kept breaking; four
PRs in one day tried to repair them. This is part 4 of the approved
/gstack-ship simplification.

Nothing to do: each removed flag now refuses with a message that names
what replaced it.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=security
Review-Finding: p2/outside-voice#3 reader=outside-voice
Review-Finding: p2/adversarial-native#1 reader=adversarial-native
Review-Finding: p2/adversarial-native#3 reader=adversarial-native
Review-Finding: p2/adversarial-native#6 reader=adversarial-native
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-25 14:36:31 +00:00
1 parent e11a5833bc
commit ec5d7e6fbd
106 files changed
+933 -5019

No files matched your search

+7 -7
View File
@@ -29,11 +29,10 @@ file, unchanged; its findings reach `merged.jsonl` only via `collect`; `judge` r
**Calls.** One pass with no fixes is 9 calls: Phases 1-8 and the report; at most 12 with a STOP's
section read or a repeat pass, plus a keep-alive per 200 s waited under ~80 min (longer: end the turn on one wait; no 10-15 min polls).
**Budget: observe.** `gstack-ship-budget start --mode observe` only records: each program ends
with `gstack-ship-budget note --step <last step> --reading R --credits C --record <rec>`, R and C read in it
(Capy: `cost.tokens`, `cost.credits`). No check per step, no reservation, no meter-only
call, no handoff; under `--token-cap` a note past the cap prints `verdict=stop`, the one stop check on spend.
A dispatching program passes `--dispatched-at <R> --dispatched-credits <C> --readers <n>` (`BEFORE`).
**Budget: start and close only.** `gstack-ship-budget start --mode observe` records the first reading and Step 22's
`close` the last (R and C from the host; Capy: `cost.tokens`, `cost.credits`). No note per program, no check per step,
no reservation, no meter-only call, no handoff. The pass's own note keeps the reader pair (`--dispatched-at <R>
--dispatched-credits <C> --readers <n>`) and, under `--token-cap`, `verdict=stop`: the one stop check on spend.
**Waits.** No call waits past 200 s: a program returns what still runs 200 s after its first line; the next
call resumes the poll. Lanes, pregate, `finish` run in background; after a restart, rerun the same command. Never end the turn while
@@ -68,7 +67,8 @@ harness: start the eval selector and pre-merge command (detached past 30 min); e
record `evals: none affected`. Step 6.5 runs only if `gstack-greptile-early detect` finds
Greptile. Then `gstack-ship-preflight --audit --base <base> --out <run dir>` writes the diff once
(`CONTEXT:`) and the TODOS.md items on touched paths (`TODOS:`); prints the coverage map,
plan candidates and `READER: coverage=<needed|none> plan=<needed|none>`; Phase 3 runs neither reader.
plan candidates and `READER: coverage=<needed|none> plan=<needed|none>`; Phase 3 never runs the coverage reader; the plan reader only on `plan=needed`.
A plan agreed only in conversation reads `plan=none`: before `--audit`, write it to `.gstack/plans/<branch>.md` naming the branch.
Never read TODOS.md or the full diff into the parent. A `PERSIST:` hint never replaces Step 9.
## 3. Audits and review: Steps 7, 8, 9, 9.1, 9.2, 9.2.1
@@ -83,7 +83,7 @@ On `plan=none` Steps 8.1, 8.2 and 9.2.1 are skipped (L). The core checklist, Ste
9.3, 9.4 and the repeat decision as written (`JUDGMENT: ok` before any fix), fixes and persistence in
one program. Prints `Pre-Landing Review:`, `Gate edits:`. `NEXT: stop` stops; `full`
(every round 2): one program runs the failing test, fix, `--tests-only` and Phase 3, each gated (`diffBase` RANGE_BASE on a `full` round 2 only, never
on the `READ_ONLY:` final review, which reads the whole PR and takes no fix); `fix-check` (only a pre-GST-3562 grant's, deprecated): the pass with `fixCheck: {fix_list, hunks, tests, callers}`; `done` or `voices`: that program runs Step 11 from
on the `READ_ONLY:` final review, which reads the whole PR and takes no fix); `done` or `voices`: that program runs Step 11 from
`sections/adversarial.md` as written (above), only the voices the last full-pass plan lists (none:
`ADVERSARIAL: skipped (review plan)`).
+7 -7
View File
@@ -27,11 +27,10 @@ file, unchanged; its findings reach `merged.jsonl` only via `collect`; `judge` r
**Calls.** One pass with no fixes is 9 calls: Phases 1-8 and the report; at most 12 with a STOP's
section read or a repeat pass, plus a keep-alive per 200 s waited under ~80 min (longer: end the turn on one wait; no 10-15 min polls).
**Budget: observe.** `gstack-ship-budget start --mode observe` only records: each program ends
with `gstack-ship-budget note --step <last step> --reading R --credits C --record <rec>`, R and C read in it
(Capy: `cost.tokens`, `cost.credits`). No check per step, no reservation, no meter-only
call, no handoff; under `--token-cap` a note past the cap prints `verdict=stop`, the one stop check on spend.
A dispatching program passes `--dispatched-at <R> --dispatched-credits <C> --readers <n>` (`BEFORE`).
**Budget: start and close only.** `gstack-ship-budget start --mode observe` records the first reading and Step 22's
`close` the last (R and C from the host; Capy: `cost.tokens`, `cost.credits`). No note per program, no check per step,
no reservation, no meter-only call, no handoff. The pass's own note keeps the reader pair (`--dispatched-at <R>
--dispatched-credits <C> --readers <n>`) and, under `--token-cap`, `verdict=stop`: the one stop check on spend.
**Waits.** No call waits past 200 s: a program returns what still runs 200 s after its first line; the next
call resumes the poll. Lanes, pregate, `finish` run in background; after a restart, rerun the same command. Never end the turn while
@@ -66,7 +65,8 @@ harness: start the eval selector and pre-merge command (detached past 30 min); e
record `evals: none affected`. Step 6.5 runs only if `gstack-greptile-early detect` finds
Greptile. Then `gstack-ship-preflight --audit --base <base> --out <run dir>` writes the diff once
(`CONTEXT:`) and the TODOS.md items on touched paths (`TODOS:`); prints the coverage map,
plan candidates and `READER: coverage=<needed|none> plan=<needed|none>`; Phase 3 runs neither reader.
plan candidates and `READER: coverage=<needed|none> plan=<needed|none>`; Phase 3 never runs the coverage reader; the plan reader only on `plan=needed`.
A plan agreed only in conversation reads `plan=none`: before `--audit`, write it to `.gstack/plans/<branch>.md` naming the branch.
Never read TODOS.md or the full diff into the parent. A `PERSIST:` hint never replaces Step 9.
## 3. Audits and review: Steps 7, 8, 9, 9.1, 9.2, 9.2.1
@@ -81,7 +81,7 @@ On `plan=none` Steps 8.1, 8.2 and 9.2.1 are skipped (L). The core checklist, Ste
9.3, 9.4 and the repeat decision as written (`JUDGMENT: ok` before any fix), fixes and persistence in
one program. Prints `Pre-Landing Review:`, `Gate edits:`. `NEXT: stop` stops; `full`
(every round 2): one program runs the failing test, fix, `--tests-only` and Phase 3, each gated (`diffBase` RANGE_BASE on a `full` round 2 only, never
on the `READ_ONLY:` final review, which reads the whole PR and takes no fix); `fix-check` (only a pre-GST-3562 grant's, deprecated): the pass with `fixCheck: {fix_list, hunks, tests, callers}`; `done` or `voices`: that program runs Step 11 from
on the `READ_ONLY:` final review, which reads the whole PR and takes no fix); `done` or `voices`: that program runs Step 11 from
`sections/adversarial.md` as written (above), only the voices the last full-pass plan lists (none:
`ADVERSARIAL: skipped (review plan)`).
+1 -2
View File
@@ -501,8 +501,7 @@ repeat Step 2 (decisions included) on the merged content, then Step 4.
## Step 11.5: Bind the reviews
1. **Select the two reviews.** Run `~/.claude/skills/gstack/bin/gstack-review-read`.
Select this invocation's final Step 9 record (`skill:"review"`, `via:"ship"`, or a
last 3.5 `review-fix-check`) and Step 11 native record (`skill:"adversarial-review"`;
Select this invocation's final Step 9 record (`skill:"review"`, `via:"ship"`) and Step 11 native record (`skill:"adversarial-review"`;
none after `ADVERSARIAL: skipped`). Match each to its saved
handle, original token and source; reject outside-provider or older records.
2. **Compare their content.** All three snapshots must match: the native record's
+1 -2
View File
@@ -216,8 +216,7 @@ repeat Step 2 (decisions included) on the merged content, then Step 4.
## Step 11.5: Bind the reviews
1. **Select the two reviews.** Run `~/.claude/skills/gstack/bin/gstack-review-read`.
Select this invocation's final Step 9 record (`skill:"review"`, `via:"ship"`, or a
last 3.5 `review-fix-check`) and Step 11 native record (`skill:"adversarial-review"`;
Select this invocation's final Step 9 record (`skill:"review"`, `via:"ship"`) and Step 11 native record (`skill:"adversarial-review"`;
none after `ADVERSARIAL: skipped`). Match each to its saved
handle, original token and source; reject outside-provider or older records.
2. **Compare their content.** All three snapshots must match: the native record's
+1 -2
View File
@@ -265,8 +265,7 @@ A Step 5 red-base pause adds `--base-red <pause file>` (a conditional receipt th
refuses, `QUEUE_RECEIPT_CONDITIONAL`). `--docs` reads the record Step 14.5 saved (`{status, scope[, exception]}`): the
receipt carries it as `docs`, and a `blocked` status without the owner's exception,
or a body missing the exception line, is `DOCS_AUDIT_BLOCKED` with nothing written.
`--review-loop-exception` (an owner's acceptance of a stop after a fix-check edit) is deprecated with fix-check grants and goes
in the next release; write still takes one recorded before GST-3562. After the round cap, a blocker goes to the lane's Captain,
There is no review-loop exception (GST-3562 part 4). After the round cap, a blocker goes to the lane's Captain,
whose ruling is a ruled note (below); never a prose line under `REVIEW_LOOP:`.
A finding the owner rules a disclosed note instead of a fix is closed only by the owner's
`gstack-approvals rule`, recorded outside this run, never by this run or a review-log field
+1 -2
View File
@@ -248,8 +248,7 @@ A Step 5 red-base pause adds `--base-red <pause file>` (a conditional receipt th
refuses, `QUEUE_RECEIPT_CONDITIONAL`). `--docs` reads the record Step 14.5 saved (`{status, scope[, exception]}`): the
receipt carries it as `docs`, and a `blocked` status without the owner's exception,
or a body missing the exception line, is `DOCS_AUDIT_BLOCKED` with nothing written.
`--review-loop-exception` (an owner's acceptance of a stop after a fix-check edit) is deprecated with fix-check grants and goes
in the next release; write still takes one recorded before GST-3562. After the round cap, a blocker goes to the lane's Captain,
There is no review-loop exception (GST-3562 part 4). After the round cap, a blocker goes to the lane's Captain,
whose ruling is a ruled note (below); never a prose line under `REVIEW_LOOP:`.
A finding the owner rules a disclosed note instead of a fix is closed only by the owner's
`gstack-approvals rule`, recorded outside this run, never by this run or a review-log field
+2 -11
View File
@@ -19,9 +19,7 @@ Finish the complete review and QA before applying any fix in Step 9.4.
--base <base>`, plus `--depth-floor <d>` on every plan run when the /ship prompt
gave `--depth-floor <d>` (it only raises), and Step 1's `PR_REVIEW_FLAGS:` on every plan run (the PR's
earlier rounds; past two, a head whose code changed gets one read-only full review (`READ_ONLY:`, no fix round), and `PR_ROUND_CAP`
stops for the lane, never the owner). Round grants and fix-check grants are deprecated and go in the next release: ask for and
record none. When an older grant still puts `--round-grant <id>` there, run `gstack-ship-receipt claim --pr <n> --run <SESSION_ID> --grant <id>`
before the first dispatch (`GRANT_SPENT` stops the run), then follow the plan's `NEXT:`. Add `--declare-risk <classes>` when the diff touches a risk
stops for the lane, never the owner). There are no round or fix-check grants (GST-3562 part 4); follow the plan's `NEXT:`. Add `--declare-risk <classes>` when the diff touches a risk
class the plan's `REVIEW_DEPTH:` misses (spend it reserves or binds: `money`), and give Step 16's
receipt write the same flag; a repeat uses the plan run that picked it.
Round 2 is always a `full` pass on the range, never a scoped one: every reader it plans is in the pass's manifest.
@@ -834,7 +832,7 @@ logged a CRITICAL, `--adversarial-ran` once Step 11's native pass ran, `--review
`--depth-floor <d>` when given), `--range-base $PASS_HEAD` and `--pass1-depth <pass 1's REVIEW_DEPTH>`;
its `NEXT:` alone picks the next decision: `stop` 2, `full` 3, `done` 4, `platform` 4. `voices` 4: Step 11 runs before the stop.
Any code change after round 1 gets a full round 2; a fix in the last round gets the read-only final review (`READ_ONLY:`);
after it the PR ships with its open notes or the lane's Captain rules. `fix-check` (3.5) comes only from a grant recorded before GST-3562.
after it the PR ships with its open notes or the lane's Captain rules.
Other scopes apply decisions 2–4 in order.
1. **Dispatched reviewer output missing:** STOP and name each failed specialist or
@@ -850,13 +848,6 @@ Other scopes apply decisions 2–4 in order.
past what the request needs (a helper, a guard, a case nothing takes), cut that
growth before anything else; the repeat reviews the cut as part of the range. Tests must pass or retain approval for the same verified pre-existing
failures and scope. Keep CYCLES and scoped approvals across this repeat; PASS increments on entry.
3.5. **A fix-check from an older grant** (deprecated, removed next release; /ship plans none). Take a `gstack-review-log --start review-fix-check` token (`--reservation <id>` under a cap); write the
fix list, touched hunks (`git diff $PASS_HEAD`), callers of changed symbols and
test results to `.gstack/tmp/fix-check-*.txt`; dispatch one full-effort reviewer
on `gstack-review-plan --fix-check-prompt --fix-list <f> --hunks <f> --tests <f>
--callers <f>`, plus the outside voice only if the plan lists it. Log item 6's
row as `"skill":"review-fix-check"` with `--finish <token>`; not a pass. A
CRITICAL goes to decision 2; otherwise decision 4.
4. **No edits in this pass:** Resolve the required-probe gate below. Only after it
clears may you continue to Step 10. A pass whose only findings were deferred or
noted applied no edits and continues here: the loop converges below the floor.
+2 -11
View File
@@ -17,9 +17,7 @@ Finish the complete review and QA before applying any fix in Step 9.4.
--base <base>`, plus `--depth-floor <d>` on every plan run when the /ship prompt
gave `--depth-floor <d>` (it only raises), and Step 1's `PR_REVIEW_FLAGS:` on every plan run (the PR's
earlier rounds; past two, a head whose code changed gets one read-only full review (`READ_ONLY:`, no fix round), and `PR_ROUND_CAP`
stops for the lane, never the owner). Round grants and fix-check grants are deprecated and go in the next release: ask for and
record none. When an older grant still puts `--round-grant <id>` there, run `gstack-ship-receipt claim --pr <n> --run <SESSION_ID> --grant <id>`
before the first dispatch (`GRANT_SPENT` stops the run), then follow the plan's `NEXT:`. Add `--declare-risk <classes>` when the diff touches a risk
stops for the lane, never the owner). There are no round or fix-check grants (GST-3562 part 4); follow the plan's `NEXT:`. Add `--declare-risk <classes>` when the diff touches a risk
class the plan's `REVIEW_DEPTH:` misses (spend it reserves or binds: `money`), and give Step 16's
receipt write the same flag; a repeat uses the plan run that picked it.
Round 2 is always a `full` pass on the range, never a scoped one: every reader it plans is in the pass's manifest.
@@ -244,7 +242,7 @@ logged a CRITICAL, `--adversarial-ran` once Step 11's native pass ran, `--review
`--depth-floor <d>` when given), `--range-base $PASS_HEAD` and `--pass1-depth <pass 1's REVIEW_DEPTH>`;
its `NEXT:` alone picks the next decision: `stop` 2, `full` 3, `done` 4, `platform` 4. `voices` 4: Step 11 runs before the stop.
Any code change after round 1 gets a full round 2; a fix in the last round gets the read-only final review (`READ_ONLY:`);
after it the PR ships with its open notes or the lane's Captain rules. `fix-check` (3.5) comes only from a grant recorded before GST-3562.
after it the PR ships with its open notes or the lane's Captain rules.
Other scopes apply decisions 2–4 in order.
1. **Dispatched reviewer output missing:** STOP and name each failed specialist or
@@ -260,13 +258,6 @@ Other scopes apply decisions 2–4 in order.
past what the request needs (a helper, a guard, a case nothing takes), cut that
growth before anything else; the repeat reviews the cut as part of the range. Tests must pass or retain approval for the same verified pre-existing
failures and scope. Keep CYCLES and scoped approvals across this repeat; PASS increments on entry.
3.5. **A fix-check from an older grant** (deprecated, removed next release; /ship plans none). Take a `gstack-review-log --start review-fix-check` token (`--reservation <id>` under a cap); write the
fix list, touched hunks (`git diff $PASS_HEAD`), callers of changed symbols and
test results to `.gstack/tmp/fix-check-*.txt`; dispatch one full-effort reviewer
on `gstack-review-plan --fix-check-prompt --fix-list <f> --hunks <f> --tests <f>
--callers <f>`, plus the outside voice only if the plan lists it. Log item 6's
row as `"skill":"review-fix-check"` with `--finish <token>`; not a pass. A
CRITICAL goes to decision 2; otherwise decision 4.
4. **No edits in this pass:** Resolve the required-probe gate below. Only after it
clears may you continue to Step 10. A pass whose only findings were deferred or
noted applied no edits and continues here: the loop converges below the floor.