Skip to content

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
capy-ai[bot] merged 7 commits into
mainfrom
gst-967-gate-voices
Nov 2, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
gst-967-gate-voices

Conversation

@garrytan

@garrytan garrytan commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3875,
  "head": "adc534afe77970ea3c84767b6bd0883142522f53",
  "version": "1.92.81.0",
  "base": "main",
  "session_kind": "unattended",
  "run": "jam_01M6E338743GNQFEX01CVZH8FV",
  "thread": "GSTA-167",
  "head_tree": "df315f215655abe6f2f549fa372eb0a1619756da",
  "product_patch_id": "fe751eb35cc61cd9e1d3cd9e433c2e54f5fd26ba",
  "gstack_version": "1.92.81.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 89,
    "rules": "b2272efd321ce7cb",
    "base": "28d0fa8c51950806dbb5504c196d77cd57bc3a66",
    "registry": "28d0fa8c51950806dbb5504c196d77cd57bc3a66",
    "gate_scan": {
      "tagged": 0,
      "head": "adc534afe77970ea3c84767b6bd0883142522f53"
    },
    "reasons": [
      "gate-class",
      "runtime=89"
    ],
    "risk": []
  },
  "pregate": "requires-remote cleared @df315f215655 (7 checks, current for adc534afe779)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41478513295/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41478513249/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=df315f215655 tests=19921 receipt=/home/user/.gstack/projects/garrytan-gstack/pregate/runs/20261102T154459Z-656923-3a2c/remote/remote.log sha256=18adf58a056b"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md, docs/unattended.md, docs/ship-budget.md, docs/model-policy.md, docs/captain.md, ship/*.tmpl, README.md (re-audit of adc534af)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 4,
    "deferred": 0,
    "noted": 6,
    "fixed": 0,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 4,
    "unrecorded": 3,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (GSTA-36)",
    "date": "2026-11-02",
    "via": "GSTA-167 trail row 581",
    "reason": "accept adc534af (prose-only fix for the ship-control-flow pin found by the remote pregate) without another review round.",
    "fix_check": {
      "head": "67f43b843583976fb81a4a68056163b651637a96",
      "findings": 2,
      "files": [
        "ship/sections/review-army.md",
        "ship/sections/review-army.md.tmpl",
        "test/review-packets-removed.test.ts",
        "test/size-ledger/ship/gst-967-gate-voices.json"
      ]
    }
  }
}

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

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
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ gstack-review-plan --base main --pass 2 --last full --fixed-blocking --touched-gate --depth-floor full --range-base f9fa397e0a5e1a2f6a51347c6be313dff8c6c0cd   # this branch
-$ gstack-review-plan --base main --pass 2 --last full --fixed-blocking --touched-gate --depth-floor full --range-base f9fa397e0a5e1a2f6a51347c6be313dff8c6c0cd   # main 1022f4f
 REVIEW_CLASS: gate (code: bin/gstack-review-plan; gate path: bin/gstack-review-plan)
+REVIEW_PLAN: class=gate pass=2 next=voices dispatches=2 numbers=yes(2) fingerprint=06c3df03fb2c661b reason="gate class: Step 11's voices (adversarial, outside, targeted) run before the owner's exit, then ask again with --adversarial-ran (a blocking finding was fixed in round 2, the cap: name it for the owner, whose grant may add one scoped fix-check (review_loop_exception))"
+NEXT: voices (gate class: Step 11's voices (adversarial, outside, targeted) run before the owner's exit, then ask again with --adversarial-ran (a blocking finding was fixed in round 2, the cap: name it for the owner, whose grant may add one scoped fix-check (review_loop_exception)))
+DISPATCH: adversarial-native adversarial effort=full
+DISPATCH: outside-voice outside-voice effort=host
-REVIEW_PLAN: class=gate pass=2 next=stop dispatches=0 numbers=yes(2) fingerprint=06c3df03fb2c661b reason="a blocking finding was fixed in round 2, the cap: name it for the owner, whose grant may add one scoped fix-check (review_loop_exception)"
-NEXT: stop (a blocking finding was fixed in round 2, the cap: name it for the owner, whose grant may add one scoped fix-check (review_loop_exception))
 

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.ts nextStep, bin/gstack-review-plan) and the /ship prose that routes voices and --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. --grant accepts only an approved gstack-approvals row that names review_loop_grant and a stop-head sha between --range-base and HEAD. It refuses review_loop_exception rows and grants for an earlier head (exit 3). lib/review-risk.ts is untouched.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-11-02 Owner grant: one scoped fix-check after round 2 (review_loop_grant f9fa397) “GSTA-36 2026-11-02: rule 23 grant, one scoped fix-check on the lib/review-depth.ts:366 grant-to-HEAD binding plus its CLI test, run after the invariant; cap $40” (GStack Minder (GSTA-36) via GSTA-167) approved GST-967 /ship invocation: one scoped fix-check on the round-2 CRITICAL (lib/review-depth.ts:366), stop head f9fa397 none
2026-11-02 Owner grant: one scoped fix-check of the post-fix-check repair adc534a (gate edit: sha repin) “GSTA-36 2026-11-02: rule 23 grant, one scoped fix-check of 67f43b8..adc534a (the moved sentence, the sha pin and the ledger number), logged at tree df315f21; cap 40,000 credits” (GStack Minder (GSTA-36) via GSTA-167) approved GST-967 /ship invocation: one scoped fix-check of 67f43b8..adc534a, logged at tree df315f21 none

Source: gstack-approvals record for gst-967-gate-voices (display only; not an approval citation).

Summary

  • lib/review-depth.ts: a new voices step 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-base and the stop head.
  • ship/DRIVER.md, ship/sections/review-army.md, ship/sections/adversarial.md, docs/review-policy.md (rule 3, two transitions rows): route voices and --grant.
  • Tests: failing-first at main 1022f4f for the voices and grant cases (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

  • Round 1 plus Step 11 (native opus-5-5 and outside gpt-6.1-sol): 3 blockers, fixed in f9fa397.
  • Round 2: 1 CRITICAL from the red team. A grant wasn't bound to a head. The Captain granted one scoped fix-check (approval a-a09a908e77c2), the fix landed in 67f43b8, and the fix-check found nothing blocking.
  • The remote pregate then caught one failing test, test/ship-control-flow.test.ts: it pins a sentence the voices route had extended. The prose-only fix is adc534a. A second granted fix-check (a-d5863fa73dc6) covered its sha repin and found nothing.

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.ts repins ship/sections/review-army.md, ship/sections/adversarial.md and lib/review-depth.ts under the new GST-967 no-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.json records +476 bytes.

Open notes (not fixed in this PR)

  • Risk-class (not gate-class) full-depth reviews still stop before Step 11. That is filed as GST-1007; this PR is gate-class only.
  • adversarialRan is not tied to a head. A Step 11 that ran on an earlier tree still counts as run.
  • Invocation binding: a grant is bound to a stop head, not to one /ship invocation. A stop that follows a round-2 fix-check is not grant-eligible and goes to the owner.
  • Fix-check findings below the floor: the GST-967 grant test (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/378 and rule 3 in docs/review-policy.md still say review_loop_exception where the grant now uses review_loop_grant.
  • Docs debt: --grant has no owner how-to yet (docs/captain.md).

Test plan

  • Remote pregate (Ubicloud us-east-a2) at adc534a: PREGATE_REMOTE: tree=df315f215655abe6f2f549fa372eb0a1619756da tests=19921 failed=0 spent=0.09.
  • finish lane at adc534a: LANE: focused pass exit=0 tests_ran=283.
  • 39 files that mention review-army.md: 1991 pass, 0 fail; bun run typecheck clean.
  • eval:bg:pr (local, because CI dispatch is not available to this account): 23/23 shards passed at adc534a, EXIT=0 (local run log evals-pr-gstack-gst-967-gate-voices-20261102-154514-658108.log), after an earlier 23/23 pass at 67f43b8.

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: voices paragraph, 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: done or voices runs 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

  • Common gap, carried from gst967-docs-1: --grant has no how-to for the owner or Captain (record the grant with gstack-approvals add naming review_loop_grant and the stop head, then pass --grant). docs/captain.md would be the how-to home.

Diagram drift: none (no diagram names review-loop states).

garrytan and others added 6 commits November 2, 2026 14:03
… --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>
@trunk-io

trunk-io Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@github-actions github-actions Bot changed the title fix(ship): run Step 11's voices before any gate-class stop, and honor an owner's recorded grant v1.93.8.0 fix(ship): run Step 11's voices before any gate-class stop, and honor an owner's recorded grant Nov 2, 2026
@capy-ai
capy-ai Bot merged commit 40a3170 into main Nov 2, 2026
45 checks passed
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