Skip to content

/ship can finish again when a docs check ran before a base merge (GST-3260) - #4648

Merged
capy-ai[bot] merged 3 commits into
mainfrom
ship-finishes-after-docs-check-and-base-merge
Nov 22, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
ship-finishes-after-docs-check-and-base-merge

Conversation

@garrytan

@garrytan garrytan commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Pull requests that merged their base after /ship's docs check can finish /ship again, instead of being refused with no way out.
Before this, a docs check that edited a file, followed by a base merge and a re-check with no edits, made /ship's final record refuse with a field=review_exclude error.
Nothing for readers to do.

What changed
  • writeExcludeBinds no longer counts files under review_exclude_paths that only the merged base changed. A file the PR itself touches still counts.
  • When the latest docs check made no edits, the earlier checks it builds on are still tried, instead of an immediate refusal.
  • The rebuilt file selection is compared with the reviewed one the same way /ship already compares them across a base merge, so a base policy change by itself doesn't void it.
  • A docs file the PR changes after the last check still refuses (new negative test).
Why

gbrain#9975 hit this on gstack 1.102.1.0: docs check A1 edited docs/guides/setup.md, a base merge added docs files and a sixth review_exclude pattern, and re-check A2 at the merged head made no edits. /ship refused with both checks, and no documented route cleared it.

Agent notes
  • Failing-first: test/review-exclude.test.ts "the #9975 shape …" failed on main with the GBRA-712 refusal (receipt write, RECEIPT_INVALID field=review_exclude) and passes here; 51/51 in that file. Code: lib/ship-receipt-depth.ts. The fix also binds through carryExcludeBinds/reviewedRecord.
  • Part of GST-3260 (PR 4 of 4, independent of the others).

Plan: exempt: bug fix (R65)

{
  "schema_version": 1,
  "pr": 4648,
  "head": "09ef4c20b7bd336bb28b04d56ed0547a91083157",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 38718,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44973089643,
      "attempt": 1,
      "tree": "b75c60681bc302381c67036b95426ee00ce1066b"
    }
  ],
  "calls": 36,
  "session_kind": "unattended",
  "run": "ship-4648-47fd864",
  "head_tree": "b75c60681bc302381c67036b95426ee00ce1066b",
  "product_patch_id": "a10fd6a0618f888d68545247d3ed4093adbdeee8",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 19,
    "rules": "85b3923b1a978e41",
    "base": "abdc09dad16a4c15070cc7ba0b863409992d49d1",
    "registry": "abdc09dad16a4c15070cc7ba0b863409992d49d1",
    "gate_scan": {
      "tagged": 0,
      "head": "09ef4c20b7bd336bb28b04d56ed0547a91083157"
    },
    "reasons": [
      "gate-class",
      "runtime=19"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @b75c60681bc3 (8 checks, current for 09ef4c20b7bd)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44973089643/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44972080199/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=b75c60681bc3 tests=38718 skipped=71 runs=44973089643/1 profiles=ci-reuse/free-tests heads=09ef4c20b7bd verified=2026-11-22T01:59:18.361Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ and README.md (docs/ship-policy.md, docs/troubleshooting.md edited; docs/review-policy.md current)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 3,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

…(GST-3260)

When the docs audit edited a docs file, the branch then merged its base (new docs files, a new review_exclude_paths pattern), and a re-audit at the merged head made no edits, gstack-ship-receipt write refused with RECEIPT_INVALID field=review_exclude. Write now ignores files under the patterns that only the merged base changed, still checks the audits a no-edit re-audit carries, and accepts the reviewed selection when only the base policy moved. A docs file the PR changes after the last audit still refuses.

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

trunk-io Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 22, 2026 00:41
…he receipt (GST-3260)

Review-Finding: p1/specialist-batched#1 reader=testing
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>
@capy-ai
capy-ai Bot merged commit 6e90fa3 into main Nov 22, 2026
83 checks passed
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