Skip to content

/ship no longer reports zero blockers when the second-model review found one (GST-3075) - #4485

Merged
capy-ai[bot] merged 5 commits into
mainfrom
ship-counts-second-model-blockers
Nov 18, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
ship-counts-second-model-blockers

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

When /ship stopped on a second-model review finding marked "Blocks: yes", the record it left on the PR said no blockers were found; now the finding is counted and /ship will not write that record until it is fixed or ruled.
Why: ready and the merge step trust that record, so an undercount let a blocked PR look clean.
Nothing to do: the next /ship run logs Step 11's findings and checks them before writing.

What changed
  • Step 11's review-log row is now written with via: ship and the findings it raised (open for a blocker, noted below the floor), so a run that stops after Step 11 still records them.
  • gstack-review-scope summary counts findings on that row toward blocking_found, deferred, noted and fixed. The row is never a pass or a round. It also lists blockers whose newest action is still open (gate findings keep their own draft-PR path).
  • gstack-ship-receipt write refuses with RECEIPT_BLOCKER_OPEN (docs/troubleshooting.md#receipt-blocker-open) while such a blocker remains and no owner ruled note covers it. stub still records rounds mid-run.
  • docs/review-policy.md's counter table now describes the new review_loop.open field.
Why

The /ship record written where the run stopped counted zero blockers although the second-model review's blocking finding had stopped the run. Before this change only a later Step 9 row carried queued Step 11 findings, and a run that stops after Step 11 writes none.

Blast radius

The /ship record's counts and its write step only. Two existing summary tests encoded the old behavior (a via: ship adversarial-review row's blocker was ignored); their expected counts now include it. Records with blockers whose fixes were never logged (unrecorded) are still written as before. Evidence rung: script ran (test/ship-receipt-voice-blockers.test.ts fails on main and passes here; CI free-tests run 44304511662 green at ec80a9c).

Pre-Landing Review

Two full review passes, the second-model review and one follow-up check of the fix since the stop. Four blockers were found and fixed. One finding from that follow-up check is still open and ships as an owner-ruled disclosed note (listed below); two blockers in code this PR did not change are deferred. A scoped read of the post-review docs edit (docs/review-policy.md) came back clean. Second-model review: completed (openai/gpt-6.1-sol), one blocking finding, fixed.

Deferred findings

Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.

  • Deferred: CRITICAL lib/review-scope.ts:435 a late defer without a fingerprint never closes the voice blocker (rowLocus ignores f.locus); reader stated Low, Blocks: no; judge kept the parsed CRITICAL
  • Deferred: CRITICAL lib/review-scope.ts:349 a High or Blocks: yes voice finding logged without blocking:true is not counted (rowBlocks only ranks CRITICAL); reader stated Low, Blocks: no; judge kept the parsed CRITICAL
Review notes

Open notes, recorded here and not fixed in this PR.

  • Open (owner-ruled disclosed note, fc1/fix-check#1): CRITICAL lib/review-scope.ts:493 a reopened blocker is cleared only by a later review row, never by an earlier fix commit; the record fails closed (it refuses to write rather than writing a false count), and the documented /ship flow logs the clearing row
  • Open (fc1/fix-check#2): INFORMATIONAL docs/troubleshooting.md:7303 still names a follow-up review check (fix-check) as a way out of the open-blocker refusal
  • INFORMATIONAL lib/review-scope.ts:436 one finding recorded under both its reviewer id and its fingerprint counts twice and can stay open (fails closed)
  • INFORMATIONAL lib/ship-receipt.ts:500 the guard trusts the loop file and runs only with --review-loop; malformed open entries are dropped
  • INFORMATIONAL lib/ship-receipt.ts:503 onHead accepts a ruling from any ancestor head, looser than finish's range rule
  • INFORMATIONAL lib/review-scope.ts:294 The open doc comment says a following fix-check clears a later open; the code clears it only through a Review-Finding trailer or a newer non-open row (fails closed)
Documentation
**Status:** updated. I made one factual edit, there are no blockers, and the edit is uncommitted for the parent.

Scope: the 18 committed files between base 44170d67 and head a91718fd, with nothing staged, unstaged or untracked. That covers the receipt, review-scope and result-code code, the Step 11 logging source and generated text, the PR-body template, the changelog.d fragment and docs/troubleshooting.md. I cross-checked them against docs/review-policy.md, docs/ship-policy.md and docs/unattended.md.

Documentation health:
  docs/review-policy.md   Updated (added a `review_loop.open` row to the receipt-counter table, linking RECEIPT_BLOCKER_OPEN)
  docs/troubleshooting.md Current (the new RECEIPT_BLOCKER_OPEN entry matches lib/result-codes-release.ts and lib/ship-receipt.ts)
  docs/ship-policy.md     Current (the #ship-receipt anchor that troubleshooting.md links to exists)
  docs/unattended.md      Current (its counter summary points to review-policy.md)
  README.md               Current (no user-facing surface changed)
  CONTRIBUTING.md         Current (no command or test-tier change)
  CHANGELOG.md            Skipped (outside ship-owned scope; the changelog.d fragment is present and accurate)
  TODOS.md                Skipped (outside ship-owned scope)

Documentation coverage:
  [entity]                  [reference]                         [how-to]                [tutorial] [explanation]
  RECEIPT_BLOCKER_OPEN      ✅ troubleshooting.md               ✅ troubleshooting.md   ❌         ✅ troubleshooting.md
  review_loop.open          ✅ review-policy.md                 ❌                      ❌         ❌
  Step 11 FINDINGS field    ✅ ship/sections/adversarial.md     ❌                      ❌         ❌

Debt: these are reference-only gaps for internal receipt fields, and no tutorial is warranted. Diagram drift: none, because the touched docs hold no diagrams that name the changed modules.
Tests
  • bun run test (CI free-tests, run 44304511662 at ec80a9c): green, 1696 test files
  • test/ship-receipt-voice-blockers.test.ts: fails on main (the stopped-head case counts zero blockers and write exits 0), passes here (reads 1, write refuses); the Blocks: no negative control stays at 0 and writes
Agent notes
  • Failing-first test: test/ship-receipt-voice-blockers.test.ts. On main the stopped-head case counts zero blockers and write exits 0; on this branch it reads 1 and write refuses. Negative control (a Blocks: no voice finding) stays at 0 and writes.
  • Refs GST-3075.
  • Before/after pictures skipped (no visible surface; the failing-first test is the evidence).
  • Scoped reader for the post-review docs edit: clean (anthropic/claude-opus-5-5, docs/review-policy.md).

Approvals

Approved: yes (record r-cb0d4cf3eef8). The full approval record stays private.
Plan: exempt: bug fix
Plan check: exempt bug fix

REVIEW_LOOP: passes=2 blocking_found=4 deferred=2 noted=5 fixed=4 scope=frozen open=1 ledgers_read=5 fix_checks=1 dispatches=4

Ruled note: lib/review-scope.ts:493:fix-check at a91718f ruled by Captain GStack Minder (GSTA-36) at 2026-11-18T12:12:41.832Z: Below the R12 floor: fails closed, never writes a false record or loses data; the documented /ship flow logs the clearing row (approval a-54f136da4e76)

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4485,
  "head": "ec80a9c4150244d67d7a8425986f8262c5ec9fd8",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1696,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 44304511662,
      "attempt": 1,
      "tree": "cbb4cd98f63f0352280fd542293d2703d625aa29"
    }
  ],
  "calls": 12,
  "session_kind": "unattended",
  "run": "run-4485-7f0c216",
  "head_tree": "cbb4cd98f63f0352280fd542293d2703d625aa29",
  "product_patch_id": "574f709b31e8793a6edf35ea930d6294a87ac480",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 54,
    "rules": "1afa38a4be3b5eef",
    "base": "bbf48aa7ef195459afcf7d7840af7073cd050734",
    "registry": "bbf48aa7ef195459afcf7d7840af7073cd050734",
    "gate_scan": {
      "tagged": 0,
      "head": "ec80a9c4150244d67d7a8425986f8262c5ec9fd8"
    },
    "reasons": [
      "gate-class",
      "runtime=54"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @cbb4cd98f63f (8 checks, current for ec80a9c41502)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44304511662/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44304511662/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44304496549/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=cbb4cd98f63f tests=37818 skipped=105 runs=44304511662/1 profiles=ci-reuse/free-tests heads=ec80a9c41502 verified=2026-11-18T12:38:34.933Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md against the 18 changed files (base 44170d67)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 4,
    "deferred": 2,
    "noted": 5,
    "fixed": 4,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "ledgers_read": 5,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "review_round_grants": [
    {
      "kind": "fix-check",
      "head": "adbd90d73677ef1e6660da9b44d19ec5e3c08842",
      "pr": 4485,
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "Fix in this PR's own change reopens the bug it fixes; 13-line fix with failing-first test",
      "at": "2026-11-18T12:07:31.840Z",
      "approval": "a-6b75467742e4",
      "stop_run": "run-4485-7f0c216",
      "findings": [
        "v1/outside-voice#1"
      ]
    }
  ],
  "ruled_notes": [
    {
      "finding": "lib/review-scope.ts:493:fix-check",
      "head": "a91718fd6d289f2ab1610d48c04fd1ef92d62687",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "Below the R12 floor: fails closed, never writes a false record or loses data; the documented /ship flow logs the clearing row",
      "at": "2026-11-18T12:12:41.832Z",
      "approval": "a-54f136da4e76"
    }
  ],
  "gate_dispositions": []
}
{"head":"adbd90d73677ef1e6660da9b44d19ec5e3c08842","run":"run-4485-7f0c216","mark":"stop","tree":"889fc36fbbe3b7be5f937268f81bef130fe9ec69"}
{"head":"adbd90d73677ef1e6660da9b44d19ec5e3c08842","run":"run-4485-7f0c216","mark":"grant","grant":"a-6b75467742e4"}

Open in Capy

…und one (GST-3075)

Step 11's review-log row now records its findings, the review summary counts them, and the /ship record is refused while a blocker is still open.

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

😎 This pull request was merged.

garrytan and others added 4 commits November 18, 2026 11:38
Only the lead's review-log instructions changed; every reviewer brief keeps its pinned bytes.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: h2p1/red-team#1 reader=red-team
Review-Finding: h2p1/red-team#2 reader=red-team
Review-Finding: h2p1/red-team#3 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ix commit

Review-Finding: v1/outside-voice#1 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…GST-3075)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 07611a0 into main Nov 18, 2026
82 checks passed
This was referenced Nov 18, 2026
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466)
- An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481)
- A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481)
- `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470)
- `revise --plan` with a different file now says the run follows that file. (#4470)
- A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471)
- The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460)
- A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456)
- A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451)
- /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458)
- A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458)
- A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458)
- A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473)
- /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461)
- /ship on Codex no longer stops at the test coverage audit. (#4489)
- A cold first-use check before an app build reaches its owner (GST-3025). (#4465)
- `skill_prefix=true` now survives updates when gbrain is installed. (#4454)
- The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454)
- `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454)
- /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464)
- /office-hours explains why it recommends a mode. (#4450)
- /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463)
- Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490)
- A Captain can check an ask against the owner's earlier answers before sending it. (#4467)
- `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488)
- GitHub release notes now list every change in plain words, with a link to its pull request. (#4390)
- gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442)
- /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469)
- /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472)
- A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479)
- The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457)
- A security finding's location and reason no longer go into a PR body. (#4486)
- The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487)
- A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485)
- A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452)
- /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474)
- A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440)
- One queued record with a malformed path no longer stops artifacts sync for every project. (#4455)
- A failed artifacts push stays reported until a push succeeds. (#4455)
- The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455)
- ### Tests (#4495)
- A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495)
- CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453)
- Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447)
- The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447)
- Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484)
- Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459)
- Two /autoplan runs started in the same second no longer share a run id. (#4459)

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