Skip to content

/ship instructions match the new review rules (GST-3562) - #4779

Merged
capy-ai[bot] merged 7 commits into
mainfrom
ship-prose-matches-new-review-rules
Nov 24, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
ship-prose-matches-new-review-rules

Conversation

@garrytan

@garrytan garrytan commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

/ship's instructions, docs and the Capy skill now describe the review rules that already shipped: a change after the first review round gets a full second round, the old extra-reviewer permission slips are retired, and a clean merge from main counts as reviewed.
Why: agents follow these instructions, and they still taught the retired steps. Part of the /ship simplification Garry approved; nothing for readers to do.

What changed
  • ship/DRIVER.md, ship/SKILL.md and the review, adversarial, documentation and PR-body sections: a code change after round 1 gets a full round 2; a PR past its two rounds whose code changed gets one read-only full review of its final head, with no fix round. Narrow re-checks and the permission records that bought them are marked deprecated; one already recorded is still claimed before its reader runs.
  • Unattended /ship skips the coverage reader, plus the scope, exploratory, TODOS, metrics and nudge steps. A run with a bound plan keeps the plan-completion and plan-verification steps; only a run with no plan skips them.
  • The documentation audit edits only README.md, docs/ and bench/README.md.
  • lib/review-depth.ts: a read-only review is now read-only across separate /ship runs too, not only inside one run.
  • docs/review-policy.md, docs/ship-policy.md, docs/unattended.md, docs/troubleshooting.md, docs/skills.md, crew/docs/captain.md and the Capy skill say the same thing.
  • The starter .gstack/pregate.json gstack prints links its schema at a GitHub URL that resolves.
Blast radius

Instructions agents read during /ship and review, plus one guard in lib/review-depth.ts that can only make a review stricter. No command, flag or file format changes. The deprecated permission records still parse and still work until the next release removes them.

Tests
  • test/review-pass.test.ts: a read-only review stays read-only when the next /ship run starts.
  • test/ship-driver.test.ts and test/ship-control-flow.test.ts: the driver's skipped steps, including plan-bound runs keeping Step 8.
  • The review-prompt pins are re-recorded under the preregistered no-loss replay GST-3562-part-2.
  • Focused: 287 tests, 0 fail. CI free-tests at this tree: run 45335603408, 39395 tests.
Agent notes

Agent notes

Review

Full panel (gate class: merge-check and review-depth code), two rounds. Round 1 at 3043c06: specialist and targeted readers clean; red team 1 informational; native adversarial 3 low; second-model review (GPT-6.2 Sol) 3 critical. Second-model #1 to #3, adversarial #2 and red team #1 were fixed in 5fdf040 (plan-bound unattended runs keep Step 8 and 9.2.1, the older-grant claim step is back, the Capy skill line and the pregate schema URL are corrected). Round 2 at 5fdf040 was the last round allowed, so its findings ship as open notes below. After review, d92315d changed only two authored docs from the Step 14.5 audit, and finish accepted them with the docs recheck. Because that docs edit touches money-class prose, the targeted reader ran once more on the final head d92315d (not a round): no findings.

Review notes

  • CRITICAL (round 2, second-model) A plan bound only in conversation reads as plan=none, so an unattended run could skip Step 8. Deferred: binding is recorded by gstack-plan-record; the conversation-only case is the old path PR 3 removes.
  • CRITICAL (round 2, second-model) On a NEXT: scoped round 2 (a blocking fix of at most a few runtime lines on a light diff), bin/gstack-review-dispatch leaves the fix-verifying reader out of the manifest and expects Step 3.5 to run it separately, but this PR's driver text no longer says so. A scoped round 2 could finish without that reader. Below the floor (no test, product or data loss), but a regression in this PR's prose; proposed as a one-line follow-up that restores the Step 3.5 instruction.
  • CRITICAL (round 2, second-model) The interactive read-only text path prints no READ_ONLY: line. So on that path the new pre-edit guard does not fire, and an interactive run past the round cap could still apply a fix; prCapped only stops the run afterwards. Not a regression (before this PR there was no guard at all); PR 3 reworks the stop texts.
  • MEDIUM (round 2, native adversarial) bin/gstack-ship-receipt:1063's stop NEXT line still offers a round grant. Same in bin/gstack-review-plan:303 and lib/review-depth.ts:470. PR 3 deletes grants.
  • LOW (round 1 and 2, native adversarial) A stale comment at lib/review-depth.ts:413, the stop row in scripts/resolvers/ship-driver.ts, and the Phase 2 driver line "Phase 3 runs neither reader" in ship/DRIVER.md.tmpl. Left for PR 3.
  • INFORMATIONAL (round 2, red team) three wording notes; none changes behavior.
  • The changelog fragment says unattended /ship skips the plan-completion readers; after the round-1 fix that holds only for runs with no plan, and its list of skipped steps is broader than the driver's. To correct in PR 3's fragment.
  • A cross-family read of the decision trail (GPT-6.2 Sol) raised the scoped-reader gap above, and that this PR newly skips Step 9.2.1 on plan=none, so an unattended run whose plan was agreed only in conversation also loses its acceptance probes. Unattended runs bind plans with gstack-plan-record; noted for PR 3.

Documentation

Status: updated. Two authored docs got small factual edits so they match this branch's review rules; no blockers.

Scope. Base 6ef38613 to head 5fdf0408 on ship-prose-matches-new-review-rules: 6 commits, 40 files, all committed (no staged, unstaged or new files in the candidate). Edits were limited to the candidate's doc list (README.md, docs/; bench/README.md is listed but does not exist). Agent-loaded and template prose in the diff (crew/docs/captain.md, capy/skill/gstack/SKILL.md, ship//*.tmpl) was read for consistency only. The banned-terms check found no list on main.

Documentation health

docs/troubleshooting.md   Updated (seven sections now say fix-check and round grants are deprecated (GST-3562 A) and that no new grant should be recorded: review_freshness STALE fix, FIX_CHECK_OPEN, RECEIPT_BLOCKER_OPEN, REVIEW_LOOP_EXCEPTION_INVALID's fix_check form, PR_ROUND_CAP, STOP_UNBOUND, GRANT_SPENT. RECEIPT_CARRY_SCOPED_REVIEW now says "one scoped reader, without asking, not a review round", matching ship-policy.md and unattended.md. Anchors unchanged)
docs/skills.md            Updated (Coverage audit: one sentence saying unattended /ship (ship/DRIVER.md) skips the coverage reader, and with no plan also skips plan-completion and the exploratory pass)
docs/review-policy.md     Current (changed in this diff; deprecation notes are consistent with each other)
docs/ship-policy.md       Current (changed in this diff)
docs/unattended.md        Current (changed in this diff; the fix_checks counter text still holds)
docs/model-policy.md      Current (Step 7/8 audit readers and fix-check effort still apply to interactive /ship and pre-GST-3562 grants)
docs/ship-budget.md       Current (the fix-check role still exists)
docs/writing-prs.md       Current
README.md                 Current (the /ship row's "audit coverage" still holds for interactive /ship)
CHANGELOG.md              Current (not audited in ship-owned mode; latest heading 1.103.0.0 matches VERSION)

Documentation Debt

  • Common gap: unattended /ship's skipped steps (Step 7; Steps 8, 8.1, 8.2 and 9.2.1 when there is no plan; Steps 14, 20 and 21) are documented only in ship/DRIVER.md and the changelog fragment. docs/unattended.md has no how-to or reference list for them.
  • Common gap: the read-only final review that a new /ship run plans on a PR past its two rounds (READ_ONLY:) has reference text in review-policy.md item 5 and troubleshooting.md, but no how-to.
  • Common gap: Step 14.5's edit scope (README.md, docs/, bench/README.md) appears only in ship/sections/documentation.md and ship/DRIVER.md, with no reference in docs/ship-policy.md.
  • Common gap: the fix-check and round-grant deprecation has reference coverage only. Removing it next release will leave many troubleshooting.md sections (GRANT_UNKNOWN, FIX_CHECK_OPEN, the fix-check chain) to delete.
  • Diagram drift: none. The touched docs have no ASCII or Mermaid diagrams for these entities.

Validation notes

  • Local full suite not run (CREW rule 12 asks for one on lib/review-depth.ts); CI free-tests ran the full suite green at this tree (run 45335603408). Four test/pregate-dart.test.ts PATH-shim cases fail on this machine and on base; CI passed them.
  • Step 6 evals: covered by CI's pull_request evals workflow (green at d92315d).

Approvals

Plan: approved (record r-e4cfb8408c4d)

{
  "schema_version": 1,
  "pr": 4779,
  "head": "d92315d466a30fb0aafe0adc7408eccd6e4f33bf",
  "version": "1.103.0.0",
  "base": "main",
  "calls": 53,
  "session_kind": "unattended",
  "run": "pship",
  "head_tree": "f6898f3231a4c3f8b46ed21613d19be03344a30f",
  "product_patch_id": "d27f73a15d1a2eb7bbc97349c3d1d7f3247d3e84",
  "gstack_version": "1.103.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 326,
    "rules": "33831f8248a814fd",
    "base": "f3a89d2105a8f18852e8b15a016ad7153e6c19dc",
    "registry": "f3a89d2105a8f18852e8b15a016ad7153e6c19dc",
    "gate_scan": {
      "tagged": 0,
      "head": "d92315d466a30fb0aafe0adc7408eccd6e4f33bf"
    },
    "reasons": [
      "gate-class",
      "risk:money",
      "runtime=326"
    ],
    "risk": [
      "money"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @f6898f3231a4 (8 checks, current for d92315d466a3)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45335603408/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/45335603315/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=f6898f3231a4 tests=39395 skipped=104 runs=45335603408/1 profiles=ci-reuse/free-tests heads=d92315d466a3 base_moved=f3a89d2105a8 verified=2026-11-24T06:05:24.699Z"
  ],
  "docs": {
    "status": "updated",
    "scope": "README.md and docs/ (bench/README.md listed, absent); updated docs/troubleshooting.md and docs/skills.md"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 6,
    "deferred": 7,
    "noted": 3,
    "fixed": 5,
    "scope": "frozen",
    "rounds": 2,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "e01517eddd4b2350",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "d27f73a15d1a2eb7bbc97349c3d1d7f3247d3e84",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

garrytan and others added 7 commits November 24, 2026 04:00
…-only review

prCapped now marks that pass 1 read-only, so the dispatcher stages it on the
merge base, prints READ_ONLY and applies no fix, as the in-run read-only review
already did (the #4741 round-2 note). The no-loss replay gains kind f for it.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
PREGATE_CONFIG_SCHEMA lacked blob/main, so the link 404ed.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The driver, the ship skill, its sections, the review and ship policy docs, the
crew manual and the Capy skill now say /ship plans no fix-check: a code change
after round 1 gets a full round 2, and a PR past its two rounds whose code
changed gets one read-only full review with no diffBase. Fix-check and round
grants are marked deprecated. The unattended driver skips the Step 7 and 8
readers and Steps 8.1, 8.2, 9.2.1, 14, 20 and 21. The docs audit edits only
README.md, docs/ and bench/README.md. Base-merge and receipt prose follow
PR 4754.

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>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s still claimed before its reader

Review-Finding: p1/outside-voice#1,#2,#3, adversarial-native#2, red-team#1
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…nd what unattended /ship skips

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 0603c27 into main Nov 24, 2026
63 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 24, 2026
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.

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