Skip to content

/ship reviews fixes with full rounds instead of narrow re-checks (GST-3562) - #4741

Merged
capy-ai[bot] merged 4 commits into
mainfrom
ship-full-rounds
Nov 23, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
ship-full-rounds

Conversation

@garrytan

@garrytan garrytan commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

/ship no longer plans a narrow re-check after a fix: a fix after round 1 gets a full round 2, and a fix in round 2 gets one read-only full review of the whole PR, so fixed code never ships unread.
Why: the narrow re-check read only the fixed lines, and each round now keeps at least one full-effort reviewer, the one the re-check was.
Part 1 of the /ship simplification Garry approved, rebuilt after #4737; nothing for readers to do.

What changed

lib/review-depth.ts plans no new narrow re-check. A fixed blocker, a gate-class edit or a below-floor fix after round 1 gets a full pass on the fix range as round 2; a light diff whose below-floor fixes touch no runtime lines still ships them as notes. A fix in round 2 gets one read-only full review, and a fix after that review stops for the PR's owner. The per-PR round cap counts the same way across /ship runs.

Each planned step that replaces a re-check, and the read-only final review, carries a structured keepReader flag, and both dispatchers add the Red Team reader at full effort when no full-effort reader that excludes nothing is planned. A lean round on a docs or tests change also keeps the targeted reader main runs. The read-only final review carries a readOnly flag: bin/gstack-review-dispatch stages it on the PR's merge base whatever --diff-base it is given and prints READ_ONLY:, and Step 3's edit guard in ship/sections/review-army.md applies no fix on such a pass. The bot-review skip (review.platform on) applies only to a run's first review.

Why

A narrow re-check read only the lines a fix changed, so a fix could break code next to it and ship unread. Full rounds read the whole range again with the same readers, which is what the two-round cap (R51) already assumes.

Blast radius

It changes how /ship plans review after a fix, on every repo. Re-check rows and grants recorded before this change still verify for one release; part 3 removes them. A replay of main's planner against this branch over 3,932,160 review histories found no case that drops a read of changed code (test/review-depth-lean.test.ts, test/helpers/gst3562-replay.ts).

Documentation

Status: updated. Two authored docs got factual corrections so they describe GST-3562 A (full rounds instead of fix-checks, plus the read-only final review at the cap).

Scope: the diff from af6deb9 to c51a6ab on branch ship-full-rounds: 33 committed files and no staged, unstaged or new files. Docs audited: docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md (PR_ROUND_CAP), docs/model-policy.md, the changelog.d fragment and ship/sections/review-army.md.tmpl.

Documentation health

  • docs/review-policy.md: updated. Items 3–5 of the per-PR round rules now say that a fix in round 2 or at the cap gets one read-only full review, and that a fix after that review stops for the PR's owner.
  • docs/troubleshooting.md: updated. The PR_ROUND_CAP meaning no longer says a below-floor fix finishes with notes.
  • docs/ship-policy.md: current. It was already updated in this branch.
  • ship/sections/review-army.md.tmpl: current. The READ_ONLY: cap rule is documented.
  • docs/model-policy.md: current. It is still accurate for grandfathered fix-checks.
  • changelog.d/ship-full-rounds-instead-of-fix-checks.md: current (not edited).

Coverage debt: the new READ_ONLY: dispatch line and planReviewAt have reference coverage only, in review-policy and the review-army template; there is no how-to. The K1 scoped-fix-check table row, the --fix-checks paragraph and the scoped-pass dispatch text may be stale after GST-3562 A and need a policy decision before anyone edits them.

Diagram drift: none. No diagram names the changed review-depth entities.

Agent notes

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-depth.ts:432 A newly issued stop grant still routes to a narrow fix-check before the round cap is checked. This is the one-release compatibility path for grants recorded under the old rule; part 3 removes it.

Review notes

Below the blocking floor; recorded here and not fixed in this PR (each goes to part 2 or part 3).

  • INFORMATIONAL lib/review-depth.ts:457 prCapped's cross-run read-only final review (a new /ship run on a PR whose rounds are spent) carries no readOnly flag, so that path gets no READ_ONLY: line and the dispatcher still honors --diff-base there (round 2, Red Team).
  • INFORMATIONAL bin/gstack-review-plan:303 The PR_ROUND_CAP suffix still offers a fix-check round grant after the reason text stopped offering one.
  • INFORMATIONAL lib/review-depth.ts:466 A round grant's fix round followed by a below-floor fix stops with a misleading read-only-review reason.
  • INFORMATIONAL docs/review-policy.md:355 Docs say the fix-check is retired while grantedStop still plans one for one release.
  • INFORMATIONAL lib/review-depth.ts:672 A panel docs round 2 prints red-team in SKIP and also dispatches it.
  • INFORMATIONAL lib/review-depth.ts:500 Below-floor light fixes without --range-base now cost a full round.
  • INFORMATIONAL docs/review-policy.md:101,194,202 The new policy text says every fix at round 2 or the cap gets the read-only review; the code still lets a light diff's below-floor fixes with no runtime lines ship as notes (the prose is stricter than the code; scoped docs reader).

Review

Two full rounds, both at this PR's own heads. Round 1 at 33a781b (panel: batched specialist, Red Team, targeted gate reader, native adversarial, second-model review) found three blockers; two were fixed in c51a6ab (the read-only review's whole-diff scope and edit guard, and the lean targeted reader) and one is deferred above. Round 2 at c51a6ab (batched specialist, Red Team, targeted) found no blockers. The docs audit's two edits (955bc8d) were read by one scoped reader, clean.

No-loss replay (CREW rule 15)

Step table: main's table frozen at 0408128 against this branch over 3,932,160 histories at c51a6ab: 2,757,344 identical, every other case one of five allowed kinds, 0 unclassified. Dispatch: test/review-depth-lean.test.ts over 5 diff shapes x review.panel all, risk and off x review.platform off and on x published numbers or none x a targeted class, an already-read one or none x 0-2 prior full rounds x round grant or none x every in-run history: 61,704 changed cases, all allowed kinds. Rule-15 ruling: approval a-6ec01c09edf8.

History

#4737 was the first attempt; it keyed the keep-a-reader rule on reason text and missed three corners. Write-up: org research/findings/gstack-2026-11-23-full-rounds-first-attempt.md. Split ruling: Captain GStack Minder (GSTA-36), 2026-11-23.

Validation notes

  • Local full suite: bun run test at 955bc8d on the build machine exited 1 with 150 failing tests in 50 files (browse/ tests needing the Playwright Chromium this machine lacks, cso-* tests needing the optional native helper, gbrain-sync-skip, codex-hooks-setup, model-policy-cli and one design round-trip). None is in review-depth, review-dispatch or ship-release code. CI ran the same tree green: 39,239 passed, 104 skipped (free-tests run 45202049902).
  • Docs edits after review: the scoped reader covered docs/review-policy.md (the audit prose finish asked about); docs/troubleshooting.md was rechecked by hand against capStep and prCapped (finish --docs-rechecked).
  • Round-1 review-log rows show binding incomplete at tree 75f34f76: that is the logger's state for a pass that applied fixes (converged false). Round 2's rows are verified at c51a6ab.
  • The round-2 note on prCapped's cross-run read-only path (line 457) is the same mechanism the round-1 fix closed, on a path where pass 1 has no fix range to pass as --diff-base; a fix applied there still stops for the owner at the next plan. Left for part 2 because a fix after round 2 needs another read-only review.

Approvals

Plan: approved (record r-e4cfb8408c4d)
Plan check: approved (record r-e4cfb8408c4d)

Closed by fix c51a6ab: p1/outside-voice#1 (a later full review at c51a6ab read it clean)

Closed by fix c51a6ab: p1/outside-voice#2 (a later full review at c51a6ab read it clean)

{
  "schema_version": 1,
  "pr": 4741,
  "head": "955bc8d134042b18888e9902fb4931cfa987601d",
  "version": "1.103.0.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 39239,
      "fail": 0,
      "skip": 104
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 45202049902,
      "attempt": 1,
      "tree": "22fac1487e7246fa0e1c77ed853d3bfda1e25895"
    }
  ],
  "calls": 103,
  "session_kind": "unattended",
  "run": "aship",
  "head_tree": "22fac1487e7246fa0e1c77ed853d3bfda1e25895",
  "product_patch_id": "c3df34dfc5a5d60b453e463cc23e2b4be01bf486",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 157,
    "rules": "33831f8248a814fd",
    "base": "c4cfe6d1c94e2fd6fe2afd735dd1a5cc914cfe0c",
    "registry": "c4cfe6d1c94e2fd6fe2afd735dd1a5cc914cfe0c",
    "gate_scan": {
      "tagged": 1,
      "head": "955bc8d134042b18888e9902fb4931cfa987601d"
    },
    "reasons": [
      "gate-class",
      "runtime=157"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @22fac1487e72 (8 checks, current for 955bc8d13404)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45202049902/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/45192501691/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=22fac1487e72 tests=39239 skipped=104 runs=45202049902/1 profiles=ci-reuse/free-tests heads=955bc8d13404 verified=2026-11-23T15:25:26.676Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "README.md and docs/ (156 files) against the 33 changed files; docs/review-policy.md and docs/troubleshooting.md corrected to the full-round behavior"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 3,
    "deferred": 1,
    "noted": 7,
    "fixed": 4,
    "scope": "frozen",
    "rounds": 2,
    "dispatches": {
      "specialist": 2
    }
  },
  "cleared_by_trailer": [
    {
      "id": "p1/outside-voice#1",
      "commit": "c51a6abea7305675540b29d9a88a887c31e78f2d",
      "review": "c51a6abea7305675540b29d9a88a887c31e78f2d"
    },
    {
      "id": "p1/outside-voice#2",
      "commit": "c51a6abea7305675540b29d9a88a887c31e78f2d",
      "review": "c51a6abea7305675540b29d9a88a887c31e78f2d"
    }
  ],
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "gate"
    ],
    "rules": "e01517eddd4b2350",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "c3df34dfc5a5d60b453e463cc23e2b4be01bf486",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}
{"head":"955bc8d134042b18888e9902fb4931cfa987601d","version":"1.103.0.0","gstack_version":"1.102.2.0","run":"aship","review_loop":{"passes":2,"blocking_found":3,"deferred":1,"noted":7,"fixed":4,"scope":"frozen","rounds":2,"dispatches":{"specialist":2}},"depth":"full"}

A fix after round 1 gets a full round 2 and a fix in round 2 gets one read-only full review. Steps that stand where a fix-check was carry a structured keepReader flag, so each keeps one full-effort reviewer; the bot-review skip applies only to a run's first review. The no-loss replay checks steps over 3,932,160 histories and dispatches over every panel, prior-round, round-grant and bot-review shape (GST-3562 A).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 23, 2026 12:38
The read-only final review now always reads the whole PR diff and applies no fixes, and a lean second round on a docs or tests change keeps the targeted reader.

Review-Finding: p1/outside-voice#1 reader=outside-voice
Review-Finding: p1/outside-voice#2 reader=outside-voice
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/targeted#1 reader=targeted
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…help

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 23, 2026 15:32
@capy-ai
capy-ai Bot merged commit 1cb0a3e into main Nov 23, 2026
85 of 86 checks passed
@garrytan garrytan mentioned this pull request Nov 24, 2026
capy-ai Bot added a commit that referenced this pull request Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748)
- The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753)
- /cso reports every security finding the code supports instead of dropping most of them. (#4739)
- /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742)
- A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759)
- A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772)
- Three intermittent test failures are fixed. (#4745)
- Free Tests runs its shards on 8-core runners again. (#4749)
- A land that waits on an earlier CI run now decides on what that run actually did. (#4763)
- Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760)
- /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774)
- make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761)
- Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747)
- A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778)
- A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776)
- Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751)
- /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754)
- /ship no longer plans narrow re-checks after a fix. (#4741)
- /ship can't quietly gain new refusals. (#4740)
- `gstack-upgrade` no longer refuses to run after you disable skills. (#4743)
- The free test suite splits its shards from this week's recorded test times. (#4744)
- gstack now writes up a failed or shelved attempt before closing it. (#4735)

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