Repository navigation
v1.93.8.0 fix(ship): run Step 11's voices before any gate-class stop, and honor an owner's recorded grant - #3875
Merged
Merged
Conversation
… --grant runs the owner's fix-check (GST-967) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…view-depth and the two ship sections to it 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>
…w_loop_exception, a fix-check never earns another, voices route queued blockers to the plan) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…: a grant names review_loop_grant and its stop head, bound by --range-base Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
test/ship-control-flow.test.ts pins the sentence ending `done` 4.; the voices route now follows it as its own sentence. Repins review-army.md under GST-967 and moves the size ledger entry to +476. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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.
What changed
A gate-class round-2 stop now runs Step 11's adversarial and outside voices before the owner's exit, instead of stopping with no voices.
Before/after as text: A gate-class round-2 stop now runs Step 11's adversarial and outside voices before the owner's exit, instead of stopping with no voices
Why
In replay C6-36 (after-opus), a gate-class change fixed a blocker in review round 2. /ship stopped for the owner before Step 11 ran, and when the owner chose "ship with open notes", gate code shipped with no adversarial, outside or targeted review. Now every gate-class stop runs Step 11's voices first (
NEXT: voices). The owner's grant of one scoped fix-check after round 2 also had no way in, and now it does:gstack-review-plan --grant <approval id>.Blast radius
This touches only the /ship review planner (
lib/review-depth.tsnextStep,bin/gstack-review-plan) and the /ship prose that routesvoicesand--grant. A free dispatch-superset check makes that safe. Over 1,440 planReview cases, the branch plans exactly what main planned at 1022f4f, except the 71 gate-class stops before Step 11. Those add only Step 11's three voices, so no reviewer main dispatches is dropped or gets a different effort (test/review-depth.test.ts). An invariant test over all 768 transitions-table states fails on main and passes here.--grantaccepts only an approvedgstack-approvalsrow that namesreview_loop_grantand a stop-head sha between--range-baseand HEAD. It refusesreview_loop_exceptionrows and grants for an earlier head (exit 3).lib/review-risk.tsis untouched.Approvals
Source: gstack-approvals record for gst-967-gate-voices (display only; not an approval citation).
Summary
lib/review-depth.ts: a newvoicesstep before any gate-class stop while Step 11 has not run, plus the grant path (one fix-check after a round-2 full pass, never a second).bin/gstack-review-plan:--grant <approval id>, bound to--range-baseand the stop head.ship/DRIVER.md,ship/sections/review-army.md,ship/sections/adversarial.md,docs/review-policy.md(rule 3, two transitions rows): routevoicesand--grant.test/review-depth.test.ts,test/review-plan-cli.test.ts,test/review-pass.test.ts); the 768-state invariant; the 1,440-case superset check.Pre-Landing Review
REVIEW_LOOP: passes=2 blocking_found=4 deferred=0 noted=6 fixed=0 scope=frozen unrecorded=3 ledgers_read=3 fix_checks=2 dispatches=8
Review-loop exception: accepted by GStack Minder (GSTA-36) 2026-11-02 via GSTA-167 trail row 581: accept adc534a (prose-only fix for the ship-control-flow pin found by the remote pregate) without another review round. (fix-check at 67f43b8, 2 findings)
The Captain's words, verbatim: "GStack Minder (GSTA-36), 2026-11-02: accept adc534a (prose-only fix for the ship-control-flow pin found by the remote pregate) without another review round."
Gate edits:
test/review-packets-removed.test.tsrepinsship/sections/review-army.md,ship/sections/adversarial.mdandlib/review-depth.tsunder the newGST-967no-loss entry (the 1,440-case superset check above). The Captain accepted that free check in place of a paid replay.test/size-ledger/ship/gst-967-gate-voices.jsonrecords +476 bytes.Open notes (not fixed in this PR)
adversarialRanis not tied to a head. A Step 11 that ran on an earlier tree still counts as run.test/review-plan-cli.test.ts:67) takes about 9s, which is over bun's 5s default but passes under the CI runner's 30s. Also,lib/review-depth.ts:345/366/378and rule 3 indocs/review-policy.mdstill sayreview_loop_exceptionwhere the grant now usesreview_loop_grant.--granthas no owner how-to yet (docs/captain.md).Test plan
PREGATE_REMOTE: tree=df315f215655abe6f2f549fa372eb0a1619756da tests=19921 failed=0 spent=0.09.LANE: focused pass exit=0 tests_ran=283.bun run typecheckclean.Documentation
Status: current. No documentation edits were needed. Commit adc534a only splits the repeat decision's
NEXT:map into two sentences (`done` 4. `voices` 4: Step 11 runs before the stop.), and the meaning is unchanged.Scope: this re-audit covers 67f43b8..adc534a (ship/sections/review-army.md and its template, one sha pin in test/review-packets-removed.test.ts, one size-ledger number) against base 1022f4f. I checked it against the docs that describe the repeat decision: docs/review-policy.md rule 3, its transitions table and its
NEXT: voicesparagraph, ship/DRIVER.md.tmpl Phase 4 and ship/sections/review-army.md.tmpl. Everything else carries over from gst967-docs-1 at 67f43b8. The worktree was clean, and the banned-terms check found none. The generated section matches its template, and its sha256 equals the new pin. test/ship-control-flow.test.ts and test/review-packets-removed.test.ts passed 47, failed 0 at adc534a.Documentation health:
docs/review-policy.md Current (rule 3 and the transitions table route gate-class stops to
voices, matching nextStep)ship/DRIVER.md.tmpl Current (Phase 4:
doneorvoicesruns Step 11)ship/sections/review-army.md.tmpl Current (the voices route is now its own sentence; mapping unchanged)
ship/sections/adversarial.md.tmpl Current
changelog.d/gst-967-gate-voices.md Current (fragment owned by /ship; not edited)
Other docs from gst967-docs-1 Current (carried over; untouched by adc534a)
CHANGELOG.md Skipped (ship-owned mode)
TODOS.md Skipped (ship-owned mode)
Documentation coverage:
[entity] [reference] [how-to] [tutorial] [explanation]
NEXT: voices ✅ review-policy ✅ ship templates ❌ ✅ review-policy rule 3
gstack-review-plan --grant ✅ --help, review-policy ❌ ❌ ✅ review-policy rule 3
Documentation Debt
--granthas no how-to for the owner or Captain (record the grant withgstack-approvals addnamingreview_loop_grantand the stop head, then pass--grant). docs/captain.md would be the how-to home.Diagram drift: none (no diagram names review-loop states).