Skip to content

A small second review round checks the fix again - #4781

Merged
capy-ai[bot] merged 1 commit into
mainfrom
scoped-review-runs-its-fix-reader
Nov 24, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
scoped-review-runs-its-fix-reader

Conversation

@garrytan

@garrytan garrytan commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

When /ship's second review round is a short pass over a small fix, its instructions once more tell the agent to run the reviewer that checks that fix; the last release's wording had dropped that step.
Why: follow-up to #4779, part of the /ship simplification Garry approved. Nothing for readers to do.

What changed
  • ship/sections/review-army.md: a scoped repeat's fix-checking reviewer is left out of the pass's reviewer list by gstack-review-dispatch (it prints FIX_CHECK: planned), so the agent now runs it beside the pass. /ship instructions match the new review rules (GST-3562) #4779 had said it ran inside the pass, which no tool does.
  • ship/DRIVER.md: the same instruction in the unattended driver's Phase 3 line.
  • The review-army pin is re-recorded under the no-loss note GST-3562-part-2b (it adds a reviewer back and drops none), and the prompt-size record notes the extra 51 bytes.
Blast radius

Only /ship runs whose second round is a scoped pass (a blocking fix of a few runtime lines on a light diff). No code, command or file format changes.

Tests
  • Focused: test/ship-driver.test.ts, test/review-depth.test.ts, test/parity-suite.test.ts, test/gen-skill-docs.test.ts: 698 pass, 0 fail.
  • CI free-tests at this tree: run 45342676161, 39396 tests.
Agent notes

Agent notes

Review

Full panel (gate class: a review-pin path), one round at dfa14c8: batched specialist clean; red team 1 informational; native adversarial 1 medium and 1 low; second-model review (GPT-6.2 Sol) 1 critical. All four point at the same gap, and none was fixed, so gstack's plan ended at NEXT: done after one round, as the follow-up's one-round cap asked.

Review notes

  • CRITICAL (second-model) and MEDIUM (native adversarial) ship/sections/review-army.md:28: the side-run fix reviewer is not in the pass ledger, so verify and judge never see a missing reply or a blocker it returns. Deferred: the ledger gap is in bin/gstack-review-dispatch:422-437 and lib/review-ledger.ts and predates this PR; this PR only restores the instruction to run the reviewer. Below the floor (no test fails, nothing breaks for users, no data lost). The real fix goes in PR 3: make the scoped pass's fix reviewer a manifest reader (or drop scoped for a full round 2).
  • INFORMATIONAL (red team) and LOW (native adversarial): line 28 names only the hunks, while --fix-check-prompt also needs the fix list and test files, which only the deprecated Step 3.5 describes. For PR 3, with the item above.
  • Docs audit: docs/ship-policy.md:1812 says /ship plans no fix-check, which clashes with the scoped pass. It predates this PR; for PR 3.

Documentation

Status: current. The audit made no edits and found no blockers.

Scope: branch scoped-review-runs-its-fix-reader, from base 0603c27 to head dfa14c8, covering 8 changed files and no uncommitted or new files. The authored sources are ship/DRIVER.md.tmpl, ship/sections/review-army.md.tmpl and the changelog fragment. I checked them against docs/review-policy.md and docs/ship-policy.md.

Documentation health:

  • changelog.d/scoped-review-runs-its-fix-reader.md: Current. It accurately describes that a scoped second round runs its fix-check reader again.
  • ship/DRIVER.md.tmpl, ship/sections/review-army.md.tmpl: Current. They are the change itself, and their generated outputs match them.
  • docs/review-policy.md: Current. The scoped-pass section already says a scoped pass sends one fix-check on the fix range.
  • docs/ship-policy.md: Current for this change. One older line (1812) says /ship plans no fix-check, which conflicts with the scoped pass. This PR didn't add that line, so it is noted and not fixed here.

Coverage debt: none new. The scoped fix-check reader already has reference coverage in docs/review-policy.md#scoped-pass and step-by-step instructions in the ship templates.

Diagram drift: none. No diagrams cover the review loop.

Validation notes

  • Local full suite not run (prose only; CI ran it green at this tree, run 45342676161).
  • Step 6 evals: covered by CI's pull_request evals workflow, green at dfa14c8.
  • The follow-up was capped at one reviewer and one round. gstack's plan printed the full panel (four readers) for this gate-class path, and that ran once.

Approvals

Plan: exempt: bug fix follow-up to #4779 (no plan needed)

{
  "schema_version": 1,
  "pr": 4781,
  "head": "dfa14c8d2ff58aa3721a73fdf7de517975336141",
  "version": "1.103.1.0",
  "base": "main",
  "calls": 15,
  "session_kind": "unattended",
  "run": "sship",
  "head_tree": "14eb313d4cc0ec87e4db46612d2c368b7d653fdb",
  "product_patch_id": "1ea160917d289a239db7bd3de6d732d07d35ae5e",
  "gstack_version": "1.103.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 8,
    "rules": "33831f8248a814fd",
    "base": "0603c2738980587466fc3fcc7182329f9945de7e",
    "registry": "0603c2738980587466fc3fcc7182329f9945de7e",
    "gate_scan": {
      "tagged": 0,
      "head": "dfa14c8d2ff58aa3721a73fdf7de517975336141"
    },
    "reasons": [
      "gate-class",
      "runtime=8"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @14eb313d4cc0 (8 checks, current for dfa14c8d2ff5)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45342676161/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/45342676378/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=14eb313d4cc0 tests=39396 skipped=104 runs=45342676161/1 profiles=ci-reuse/free-tests heads=dfa14c8d2ff5 verified=2026-11-24T06:50:54.328Z"
  ],
  "docs": {
    "status": "current",
    "scope": "README.md and docs/ (bench/README.md listed, absent); no edits"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 1,
    "deferred": 4,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

… pass

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

trunk-io Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit c2e6187 into main Nov 24, 2026
53 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
- make-pdf no longer lets a NUL character hide an `onerror` handler, a `javascript:` link or a `<script>` tag from its sanitizer. (#4762)
- After a blocking fix, /ship's second review round is always a full review whose every reader is recorded with the pass, instead of a narrower re-check whose result could go missing. (#4783, replacing #4781)
- /ship's instructions now match how it reviews code. (#4779)
- A weekly benchmark record can no longer slip text into the release job's log through its error messages, or lose a model row to an odd model name. (#4782)
- Every stable release plan now prints the weekly benchmark's result, so you can see whether this week's gstack measurably fixes more or fewer bugs than the current stable release. (#4755)

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