Skip to content

/ship stops asking owners to clear base-side merge text and reviewers' confirmation prose (GST-2975, GST-2972) - #4458

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/ship-base-side-and-confirmation-prose
Nov 17, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/ship-base-side-and-confirmation-prose

Conversation

@garrytan

@garrytan garrytan commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

/ship no longer stops for an owner's ruling when a base merge only changes base-side text, such as the preamble hash in regenerated SKILL.md files, and a reviewer's confirmation prose becomes a finding the lead can lower with a reason.
Why: each of these cost a stopped /ship and an owner ruling on recent PRs (#4383, ghome#16, #4431), which keeps unattended shipping from finishing.
Nothing to do.

What changed
  • Base-side merge text (GST-2975). After a merge from main, /ship counted two base-side differences as "behavior changed since review": the shared-preamble hash id in every regenerated skill file the branch also touched, and an expected-value list where main's new entry landed next to the branch's own. comparePath in lib/ship-patch.ts now reads every side with the shared-preamble ids masked, so a file whose only change is that id compares as unchanged. A line that is the base's new line plus exactly the tokens the branch added counts as base context and goes to one scoped reader instead of a full review. lib/ship-release.ts keeps those base-context test files out of the test-gate edit check.
  • Confirmation prose (GST-2972). In lib/review-ledger.ts, a file:line in prose no longer anchors a finding, and in a NO FINDINGS reply neither does a list item or the native voice's FIXABLE tag. Under a verdict that declares fewer blockers, such a row is a summary candidate the lead can lower with a reason; until then it still blocks, so "NO FINDINGS … except the token leak in log.ts:3" still blocks.
  • Docs: docs/review-policy.md (collector paragraph and verdict table) and a paragraph in docs/ship-policy.md on base-side text. Changelog fragment: changelog.d/capy-ship-base-side-and-confirmation-prose.md.
Why

"Each one cost an owner ruling and a stopped /ship" (#4431, #4383, ghome#16). /ship now tells base-side noise and confirmation prose apart from real changes and real blockers, so those runs finish on their own.

Blast radius

The change touches the after-review route in gstack-ship-release finish and the reply collector every reviewer goes through. Both fail safe: every new path in comparePath falls back to the old "changed" verdict or to the scoped reader, and a prose row still blocks until the lead lowers it with a written reason (file:line read and walked failure paths by five reviewers; the new tests fail at main and pass here).

Test Coverage

16 of 19 changed code paths have a strong test (84% value-weighted). Three narrow fallback paths in sideDiffs (a side missing the path, a hash-object failure, scratch directory cleanup) have no test; the hash-object failure is not reachable without a test seam.
Tests: 1801 → 1801 test files in this run (the two new test files landed earlier on this branch).
Test value: 0 tests written, 1 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
Tests ran: tests 1683

Pre-Landing Review

No blocking issues. Five reviewers read the final code (a batched testing, security and state-machine reviewer, a red team, an adversarial reviewer, a second-model review on GPT-6.1 Sol, and a money-path reader); every one declared zero blockers. Six notes, all below the blocking floor, are left for follow-up:

  • lib/ship-patch.ts:209 (also raised at :195): splicedHunk matches the tokens the branch inserted but not their position, so a resolution that moves the branch's token to other code on the base's rewritten line reads as base context instead of changed. It still goes to the scoped reader.
  • lib/ship-patch.ts:269: the scoped reader's brief says the branch's added lines are unchanged, which is not true for a spliced line.
  • lib/review-targeted-delta.ts:42: the targeted-reader delta treats a spliced path as unchanged while the final shipping record counts it as the PR's own change (traced by reading, not reproduced).
  • lib/review-ledger.ts:322: the parseLabelled comment says a prose file:line stops anchoring only in NO FINDINGS replies; the code and docs/review-policy.md apply it to every reply.
  • lib/ship-patch.ts:146: with diff.noprefix or diff.mnemonicPrefix set in git config, an id-only change falls back to context or changed (the safe direction).
    Second-model review: completed, clean.
Exploratory QA

Functional smoke, 2 probes, both pass on the reviewed tree: the base-side masking tests (test/ship-base-side-masks.test.ts) and the collector tests (test/review-ledger-quiet-reply.test.ts, review-ledger-verdict-line, review-ledger-invariant). The moved-token splice case from the review notes was not probed separately.

Scope Drift

Scope Check: CLEAN. Intent: stop base-side merge text and confirmation prose from stopping /ship (GST-2975, GST-2972), without the round-grant work from #4449. Delivered: exactly those two changes, their tests, a Windows-curation entry for the new test and docs.

Issues

Refs #4449

Documentation

Status: updated. One factual addition to docs/ship-policy.md; no blockers.

Scope: the branch capy/ship-base-side-and-confirmation-prose against base 88da124 (committed changes only; nothing staged, unstaged or new): lib/ship-patch.ts, lib/ship-release.ts, lib/review-ledger.ts, docs/review-policy.md, scripts/lib/windows-curation.ts, two new tests and one changelog fragment.

Documentation health:

  • docs/ship-policy.md: Updated. It now documents the masked shared-preamble ids and the spliced-line base-context rule in comparePath.
  • docs/review-policy.md: Current. The branch already updated it for GST-2972.
  • docs/troubleshooting.md: Current. The RECEIPT_CARRY_SCOPED_REVIEW section is consistent with the change.

Coverage debt: no doc describes the lib/ship-release.ts change that leaves base-side test paths out of the gated-test edit check (minor). There is no diagram drift.

Tests
  • Free test suite in CI at this exact tree (run 44162773539): 1683 test files passed, macOS named regressions passed.
  • bun test test/ship-base-side-masks.test.ts test/review-ledger-quiet-reply.test.ts test/ship-release.test.ts test/ship-release-docs-exception.test.ts (plus the collector tests): 15 pass, 0 fail.
  • Typecheck, module-size and conflict-marker guards pass.
Agent notes

Agent notes

Refs GST-2975, GST-2972

Approvals

No approvals recorded for branch capy/ship-base-side-and-confirmation-prose.
Plan: exempt: bug fix (--kind fix, R65)

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=2 fixed=0 scope=frozen ledgers_read=3
Gate edits: none detected (2 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Source: #4449 commits 23b3073, 3c2d982, 18b6262, 2bf0134; the comparePath empty-diff line and its test from 1ad188a; the FIXABLE-anchor half of 5fde1e6. Left out: lib/review-round-grant.ts, bin/gstack-ship-receipt grant parts, lib/pr-review-history.ts, lib/review-depth.ts and every grant doc or test (GST-2968).

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4458,
  "head": "2be73885332b59511e0b7736d3ea58a3dd8f99d3",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1683,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 44162773539,
      "attempt": 1,
      "tree": "f1e1e4ef5df5830dde05941ef7b85ca35be50979"
    }
  ],
  "calls": 36,
  "session_kind": "unattended",
  "run": "run1",
  "head_tree": "f1e1e4ef5df5830dde05941ef7b85ca35be50979",
  "product_patch_id": "07376e60010ac9e00c590ad0a853584476f7a9b4",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 149,
    "rules": "eea6cc4231b53b9e",
    "base": "e1cfceae6a3442f4e27818ac8e6885dc68dbb006",
    "registry": "e1cfceae6a3442f4e27818ac8e6885dc68dbb006",
    "gate_scan": {
      "tagged": 0,
      "head": "2be73885332b59511e0b7736d3ea58a3dd8f99d3"
    },
    "reasons": [
      "risk:money",
      "risk:security",
      "runtime=149"
    ],
    "risk": [
      "money",
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @f1e1e4ef5df5 (8 checks, current for 2be73885332b)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44162773539/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=f1e1e4ef5df5 tests=37532 skipped=88 runs=44162773539/1 profiles=ci-reuse/free-tests heads=2be73885332b verified=2026-11-17T19:57:00.167Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      4449
    ],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md against base 88da124 (docs/ship-policy.md updated)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 2,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3
  },
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "23eb808423669ba0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "07376e60010ac9e00c590ad0a853584476f7a9b4",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

garrytan and others added 3 commits November 17, 2026 19:04
…(GST-2975)

finish now compares regenerated skill files with the shared-preamble hash ids masked, so a file whose only change is that id compares as unchanged, and treats a line that is the base's new line plus exactly the tokens the branch added as base context for the scoped reader. A resolution that drops, invents or rewrites the branch's own lines still stops. Taken from #4449 (23b3073, and the comparePath line and test from 1ad188a).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…g for an owner (GST-2972)

In a reply whose verdict says blocking=0 or that says NO FINDINGS, a file:line in prose, a list item or the FIXABLE tag no longer anchors a finding, so the row is a summary candidate the lead can lower with a reason. It still blocks until then, so prose naming a real blocker, such as a token leak, is never dropped. Taken from #4449 (3c2d982, 18b6262, 2bf0134 and the FIXABLE half of 5fde1e6).

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>
@trunk-io

trunk-io Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 7653582 into main Nov 17, 2026
77 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