Skip to content

v1.92.16.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes - #3684

Merged
capy-ai[bot] merged 19 commits into
mainfrom
gst-407-ship-rereview-triggers
Nov 1, 2026
Merged

capy-ai[bot] merged 19 commits into
mainfrom
gst-407-ship-rereview-triggers

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3684,
  "head": "b6a5bd102cdc3210146fea9591dbb5b7fcca52ba",
  "version": "1.91.374.0",
  "base": "main",
  "session_kind": "unattended",
  "thread": "jam_01M68A3Q3474STK2VM8MSCTFGE",
  "head_tree": "bdf18d66ce28ba2531c6273f4fd5814462795bc0",
  "product_patch_id": "19995a6f1de08eeb62885d799ba029af83c626fd",
  "gstack_version": "1.91.366.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 508,
    "rules": "150435b0a543019a",
    "base": "1b46f375df8812a4b34e17c1b6e031b637541eee",
    "registry": "1b46f375df8812a4b34e17c1b6e031b637541eee",
    "gate_scan": {
      "tagged": 1,
      "head": "b6a5bd102cdc3210146fea9591dbb5b7fcca52ba"
    },
    "reasons": [
      "gate-class",
      "runtime=508>50"
    ]
  },
  "pregate": "requires-remote cleared @bdf18d66ce28 (1 checks, current for b6a5bd102cdc)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41221469368",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41221469368",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41221469312",
    "pregate.json/remote_gate: remote-gate tree=bdf18d66ce28 tests=24407"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3662
    ],
    "flakes": []
  },
  "docs": {
    "status": "blocked",
    "scope": "docs/, README.md, CHANGELOG.md, changelog.d/, ship/SKILL.md.tmpl, ship/DRIVER.md.tmpl, ship/sections/documentation.md.tmpl (audit docs-a-1)",
    "exception": {
      "accepted_by": "GStack Minder (GSTA-36) for Garry Tan",
      "date": "2026-10-31",
      "via": "GSTA-36 agent message: do it. Exception granted as worded",
      "reason": "Step 16/DRIVER do not route the scoped-review STOP or --docs-requested; fails closed into the full loop; follow-up GST-444."
    }
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 9,
    "deferred": 0,
    "noted": 21,
    "fixed": 14,
    "scope": "frozen",
    "fix_checks": 8,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  }
}

What changed

A base merge after review no longer sends /ship back through the full review loop when the branch's own patch did not change.

A base merge after review no longer sends /ship back through the full review loop when the branch's own patch did not change. Captured from gstack-ship-release finish in the test fixture: main merged in after review, and main also edited the files the branch touched.

Before/after as text: A base merge after review no longer sends /ship back through the full review loop when the branch's own patch did not change.
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ gstack-ship-release finish ... --reviewed-base <sha>   # this branch; same merge
+ROUTE: behavior=0 docs=0 metadata=0 tests=0 base=4 context=0
+DOCS: fresh against the Step 14.5 post-audit snapshot (carried: tests=0 base=1 requested=0)
+EVIDENCE: FRESH label=tests exit=0 tests_ran=3
-$ gstack-ship-release finish ...   # main today; main merged in after review, branch patch unchanged
-ROUTE: behavior=3 docs=1 metadata=0
-STOP: behavior, tests or build inputs changed since review (lib/z.ts,src/x.ts,src/y.ts): insert 5–11.5 → 12–14 → 16 before Step 17 (stage 2.1)
 

Why

GST-407: "every base merge after review re-ran the whole loop" (ROUTE: … behavior=86 on gbrain #7739). GST-384 is the same for main rewording a line next to a reviewed hunk (#3631, founderstar#441), and GST-391 for a test-only fix or the one-line link the docs audit itself asked for (gbrain #8084, #8087). Each one cost another ~$19 loop or an owner's documentation exception. /ship now compares the branch's own patch per path. Paths only main moved, add-only test edits and audit-requested doc fixes no longer reopen the loop, but a real product change still does.

Blast radius

The change touches finish's route and docs-freshness check (lib/ship-release.ts), gstack-ship-receipt carry, gstack-docs-candidate, and the ship templates (DRIVER/SKILL plus the four goldens). Every new route fails closed. A path whose patch cannot be compared, a removed or changed test line, a binary or unreadable test diff, an oversized packet section, a missing --reviewed-base or a failed git listing all fall back to the old full loop. Without --reviewed-base, the route is the old one and prints base=unknown. This is at the script-ran rung: test/ship-rereview-triggers.test.ts failed 8/8 on the code before the fix (red-pr-a.log) and passes 11/11 now, including the negative controls (a product edit, a changed conflict resolution, a moved hunk, a skipped test). The remote pregate passed at tree e7e8b633, after the main merge: 24330 tests, 0 failed. This PR's own finish routed that merge as ROUTE: behavior=2 … base=90 context=1: two paths for the DRIVER trim and one for the spliced import. The installed 1.91.354.0 finish routed the same merge as behavior=79.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-31 Approve the plan "Plan: /ship re-review false triggers (GST-407, GST-384, GST-391) + eval selector fragments (GST-400)" (autoplan run autoplan-20261031063100, 4 decisions) “Answer for autoplan-20261031063100 gate_rev 2: rec. That covers A1, B1, C1 and D1, and it's my call as Captain under the fix-lane exemption, the same way GST-380 was handled. Decision 5: agreed. Decision 6: split approved (PR A for GST-407/384/391, PR B for GST-400), and I'm the…” (GStack Minder (Captain, fix-lane exemption), relayed by agent:jam_01M68A3Q3474STK2VM8MSCTFGE) approved the reviewed plan (sha256 82461d8c9301), every recommendation taken none
2026-10-31 Spend: build both PRs, /ship, READY, trial merge against #3662 “$16 is inside your $120 cap. Build both, /ship, READY. Do the trial merge against #3662 before READY.” (GStack Minder) approved spend up to the $120 lane cap none
2026-10-31 Review cycle 4: no test edit skips review (scoped fix-check of untagged test hunks); approve the GST-391 behavior change “do it (rule 23, cycle 4). No test edit skips review: a test-only edit with no gate tag gets the scoped fix-check of its test hunks… The GST-391 behavior change is approved.” (GStack Minder (Captain)) approved cycle 4 fixes and the GST-391 behavior change none
2026-10-31 Review cycle 5 fixes “do it (cycle 5)” (GStack Minder (Captain)) approved cycle 5 fixes none
2026-10-31 Review cycle 6: fix items 2-4, defer item 1 (preflight scoped route), and note fail-closed findings “Partial do it. Coverage is a hard constraint … efficiency only: file it as a follow-up under GST-407 and leave it out of this PR … new findings that only fail closed (stricter or slower, never less review) are listed as noted in the PR body and don't block. Anything that loosens…” (GStack Minder (Captain)) approved cycle 6 fixes; GST-442 deferred; fail-closed findings noted, not blocking none
2026-10-31 Documentation exception for the blocked docs audit docs-a-1 “Exception granted as worded: 'Step 16/DRIVER do not route the scoped-review STOP or --docs-requested; fails closed into the full loop; follow-up GST-444.' accepted_by: GStack Minder (GSTA-36) for Garry Tan, 2026-10-31.” (GStack Minder (Captain) for Garry Tan) approved ship with docs audit blocked; GST-444 follow-up none
2026-10-31 Fold the stamp_files root cause (GBRA-251) into this PR “fold the stamp_files root cause (GBRA-251) into PR A, with a failing-first test (plugin.json version line plus stamp comment) and a negative control” (GStack Minder (Captain)) approved stampedFiles() rule and its tests none
2026-10-31 Rule 19: merge origin/main into #3684 once and trim DRIVER.md.tmpl by at least 5 bytes (cap unchanged) “do it. Rule 19 grant for #3684: merge origin/main once and make the ≥5-byte DRIVER.md.tmpl trim. Don't raise the 12 KB cap.” (GStack Minder (Captain)) approved one main merge (807aaa8) and the DRIVER.md.tmpl trim none
2026-10-31 Named documentation risk after the main merge (installed finish reports DOCS stale) “Named risk accepted as worded: "Docs inputs after audit docs-a-1 changed only by the main merge 807aaa8 and the 9-byte DRIVER.md.tmpl trim; no branch doc edit since the audit." accepted_by: GStack Minder (GSTA-36) for Garry Tan, 2026-10-31.” (GStack Minder (Captain) for Garry Tan) approved Step 16 stage 3 docs freshness at 4cc747c none

Source: gstack-approvals record for gst-407-ship-rereview-triggers (display only; not an approval citation).

Summary

/ship read three kinds of post-review change as product changes and paid for another review loop each time: a base merge, a test fix, and the docs audit's own requested fix. Now finish --reviewed-base <sha> compares the branch's own patch per path. Paths only the base moved count as base=. An add-only test edit with no gate tag counts as tests= and gets one scoped fix-check of its test hunks, so no test edit skips review. When the base edited context right next to an unchanged reviewed hunk, the path counts as context= and gets the same scoped fix-check, in finish and in receipt carry. A version-only edit to a stamp_files path is release metadata (GBRA-251, gbrain #8095). Docs freshness ignores test code and base-only paths, and --docs-requested carries a small fix the audit result named exactly. gstack-docs-candidate attempt stops counting audit launches the install check refused.

Review hardened every route to fail closed: --no-textconv, patch-id equality for hunkless patches, exclusive attempt state, guarded packet writes, a 200-line packet section cap, and exact path tokens. The new test file is curated out of the Windows lane for the same reason as test/ship-release.test.ts: it launches shebang bins, which windows-latest cannot run (run 41193336209).

Test Coverage

All new code paths have test coverage. Every trigger and every negative control is a case in test/ship-rereview-triggers.test.ts, and each review fix added a case that failed before the fix (logs p2–p6-red.log, stamp-red.log).
Regression proof: the 8 original cases failed on the code before the fix and pass after it. Each later fix's case failed before that fix.
Tests ran: ship 367
Tests ran: typecheck count unavailable

Pre-Landing Review

Two full passes (specialist-batched, red-team, native adversarial and the outside voice on pass 2) found 9 findings at the blocking floor, and all 9 were fixed with failing-first tests. After that, seven fix-checks each re-read the fixes and their callers. Cycles 4–6 ran under the Captain's rule 23 grants, and each cycle ended with a Step 11 adversarial pass on the full diff. The last Step 11 pass at b6a2d22 found six items. Under the Captain's exception, items that only fail closed are listed under Review notes and don't block. The fix-check at a1ea723 covered the docs-audit edits and the Windows curation entry and found one informational wording gap. Main 807aaa8 was merged in at 4cc747c under the Captain's rule 19 grant. That fix-check covered the import resolution in bin/gstack-ship-receipt and a 9-byte ship/DRIVER.md.tmpl trim that keeps DRIVER.md under its 12 KB cap (12284 B), and found nothing.
REVIEW_LOOP: passes=2 blocking_found=9 deferred=0 noted=21 fixed=14 scope=frozen fix_checks=8 dispatches=4

Base merge (rule 19 grant, GStack Minder, 2026-10-31). origin/main 1b46f37 (#3611) is merged in. The one conflict was the refused() code union in bin/gstack-ship-receipt; the union is exactly main's set plus RECEIPT_CARRY_SCOPED_REVIEW. The first merge commit (b10e2db) carried a mangled copy of that file and b6a5bd1 restored the clean three-way merge. Because the union line is a product change, carry refused (RECEIPT_CARRY_PRODUCT_CHANGED); under the Captain's grant one fix-check read 4cc747c..b6a5bd1 and found nothing at the floor (one INFORMATIONAL note: a TS2345 at line 365 that is identical on main and unreachable at runtime).
Gate edits: the change edits /ship's own review routing, so every reviewer read it as gate code. No test was weakened or skipped, and the one test-curation edit (scripts/lib/windows-curation.ts) removes only the new file from the Windows lane. It still runs on Linux, macOS and the remote pregate.
Outside review: ran on pass 2 (cross-family). It found three CRITICAL items, and all three were fixed in 37cfb48.

Review notes

These are below the blocking floor, or only fail closed (stricter or slower, never less review). They are recorded here and not fixed in this PR, under the Captain's exception.

  • adversarial-native#6.1: a scoped-review record is self-attested. readScopedReview checks the verdict, reviewer, paths and head, but not the packet's hash. Follow-up: GST-443 (bind records with packet_sha256).
  • adversarial-native#6.2: add-only test edits get one scoped fix-check instead of the full loop. This is the approved GST-391 tradeoff (Captain, cycle 4).
  • adversarial-native#6.3: docs/unattended.md didn't describe the scoped-review carry. Fixed in 6e928ef.
  • adversarial-native#6.4 lib/ship-patch.ts comparePath: a failed base-side diff reads as empty. Differing patch-ids still route to context, so this fails closed.
  • adversarial-native#6.5 lib/ship-patch.ts sameSpot/mapper walk line by line. This is perf only.
  • adversarial-native#6.6: carry --dry-run writes the packet under .git/gstack/. This is an inert side effect. Follow-up: GST-442.
  • docs/ship-policy.md:1126: the scoped-carry clause is broader than the code. Carry still refuses oversized packets and retargeted stacks as PRODUCT_CHANGED, which fails closed.
  • lib/ship-patch.ts:159: the removed-line check also counts lines the base removed, so such a file takes the full loop.
  • lib/ship-patch.ts:139: the section cap counts whole hunks, so a ~198-line branch-added test file plus one line takes the full loop.
  • lib/ship-patch.ts:161: some real test directories (androidTest, SwiftPM Tests/, colocated *_test.py) route to behavior.
  • lib/ship-patch.ts:133: a tests-only packet opens with the base-context header.
  • lib/ship-release.ts:240: a blocker that cites path:line no longer matches --docs-requested path, so finish stops.
  • lib/ship-release.ts:191: the packet fallback path under a linked worktree can throw instead of printing a STOP. This needs rev-parse --git-path to fail first.
  • lib/ship-bin-common.ts:119: stampedFiles runs without --inter-hunk-context=0, so a user setting can join hunks and the path stops.
  • lib/ship-receipt.ts:247: carry passes a test-only change after a base merge as 'test-only change'. /ship Step 16 reruns the lanes there.
  • bin/gstack-ship-receipt:610: a failed rest patch-id reports PRODUCT_CHANGED with misleading text. It still refuses.
  • bin/gstack-ship-receipt:613: the carry refusal text doesn't say where to write record.json.
  • lib/ship-release.ts:199: finish's scoped review leaves no mark in the receipt. Follow-up: GST-443/GST-444.
  • bin/gstack-docs-candidate:173: INSTALL_FIX is one generic text for several install refusals.
  • ship/sections/documentation.md.tmpl:10: the prose still says 'run the install fix' after ATTEMPT: not-counted.

Exploratory QA

CLI probes in the shared fixture (test/helpers/ship-bin-fixture.ts) at origin/main 047dad7 and at a1ea723. After a base merge that leaves the branch's patch unchanged, main prints ROUTE: behavior=3 docs=1 and stops for 5–11.5. This branch prints ROUTE: behavior=0 … base=4, the docs stay fresh, and the lane runs. Captured above.

Eval Results

No separate PR eval run. These files are full-gate inputs, so the train's gstack/full-gate provides the paid evidence.

Plan Completion

Plan: autoplan-20261031063100 (gate_rev 2, APPROVED). Items A1 (GST-407), B1 (GST-384) and C1 (GST-391) are done, plus the GBRA-251 stamp rule the Captain folded in. Item D1 (GST-400) shipped as #3674. Deferred follow-ups under GST-407: GST-442 (preflight/Step 1.4 scoped route), GST-443 (bind scoped records), GST-444 (Step 16/DRIVER routing).

Issues

Refs #3662

TODOS

No TODO items completed in this PR.

Documentation

Status: blocked, shipped under the owner's exception. The audit docs-a-1 applied three factual fixes (docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md), and docs/unattended.md was updated after Step 11. One item is left: Step 16 and DRIVER don't route finish's scoped-review STOP or --docs-requested. It fails closed into the full loop and is filed as GST-444.

Scope: docs/, README.md, CHANGELOG.md, changelog.d/, ship/SKILL.md.tmpl, ship/DRIVER.md.tmpl, ship/sections/documentation.md.tmpl (audit docs-a-1). DOCS_CAP: none declared.

Documentation exception: accepted by GStack Minder (GSTA-36) for Garry Tan 2026-10-31 via GSTA-36 agent message: do it. Exception granted as worded: Step 16/DRIVER do not route the scoped-review STOP or --docs-requested; fails closed into the full loop; follow-up GST-444.

Named documentation risk (Step 16 stage 3, after the main merge): accepted by GStack Minder (GSTA-36) for Garry Tan 2026-10-31 via GSTA-36 agent message: "Docs inputs after audit docs-a-1 changed only by the main merge 807aaa8 and the 9-byte DRIVER.md.tmpl trim; no branch doc edit since the audit."

Test plan

  • Focused tests after the main merge: bun test on lane-a plus test/review-targeted, gstack-ship-receipt, ship-receipt-depth, ship-driver, test-free-shards and windows-native-workflows (16 files): 490 pass, 0 fail
  • bun test test/ship-driver.test.ts test/gen-skill-docs-checks.test.ts test/ship-handoff-brief.test.ts test/parity-suite.test.ts: 81 pass, 0 fail (DRIVER.md 12284 B)
  • bun run typecheck: exit 0
  • Remote pregate (Ubicloud, selected files, tree e7e8b633): 24330 tests, 0 failed, $0.07. PREGATE_VERIFY: ok
  • Free Tests run 41196467007 and Windows Free Tests run 41196467057 at 4cc747c: success

garrytan and others added 15 commits October 31, 2026 07:21
…ested fixes no longer force a second review loop (GST-407, GST-384, GST-391)

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>
…-triggers

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

# Conflicts:
#	ship/DRIVER.md
#	ship/DRIVER.md.tmpl
…ds; trim elsewhere

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>
comparePath returns same only when every hunk sits where the base change puts it (patch-ids ignore positions) and treats a file-mode change as changed; the scoped-review packet says when a fence is truncated; --docs-result must be the posted audit's result; the --context-reviewed record goes beside the packet, outside the worktree. Negative controls for each.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A test edit routes as tests= only when it adds lines with no gate tag; a removed or changed line or an unreadable test diff goes through the full loop. Diffs skip textconv. A hunkless patch (binary, empty, mode-only) is same when its patch-id matches. Without --reviewed-base test files route as before. finish's packet path and attempt's state directory have fallbacks.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ew is release metadata (GBRA-251)

gateEditedPaths reads removed lines only inside hunks; carry refuses when a path listing fails; docs freshness stops on a failed listing; attempt counts an unreadable state file. releasePaths includes stamp_files paths whose edit is a version swap under stamp_patterns.

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

A test-only edit with no gate tag gets the scoped fix-check of its test hunks instead of a lanes-only rerun. Packet write failures print a STOP or RECEIPT_CARRY_REFUSED. attempt's allowance uses an exclusive create.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t diff outside context paths

The attempt STOP no longer echoes the audit child's fix text. A scoped-review carry now requires the product patch-id without the context paths to match at both heads.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ch; name-only test globs only in test dirs

A scoped-review packet section over 200 lines sends that path to the full loop instead of a truncated packet. The docs-result path match is exact. test_*.py, *Test.java and similar count as test code only under a test directory.

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>
…roubleshooting (docs-a-1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…like ship-release (run 41193336209)

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

trunk-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…-triggers

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

# Conflicts:
#	bin/gstack-ship-receipt
@capy-ai capy-ai Bot changed the title v1.91.357.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes v1.91.363.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes Oct 31, 2026
garrytan and others added 3 commits October 31, 2026 16:43
…-triggers

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

# Conflicts:
#	bin/gstack-ship-receipt
The merge commit b10e2db wrote a truncated copy of the file. This is the
three-way merge of both sides with the refused() union: main's codes plus
RECEIPT_CARRY_SCOPED_REVIEW.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title v1.91.363.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes v1.92.16.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes Nov 1, 2026
@capy-ai
capy-ai Bot merged commit b71009c into main Nov 1, 2026
63 checks passed
garrytan added a commit that referenced this pull request Nov 1, 2026
…pass

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan added a commit that referenced this pull request Nov 1, 2026
…OG.md on main

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan added a commit that referenced this pull request Nov 1, 2026
… train 76)

bin/gstack-review-dispatch: main's GST-716 mergeBaseWith (origin/<base> first) replaces PR 3's identical forkPoint helper. ship/DRIVER.md(.tmpl): main's wording in the three conflicted hunks (#3684's --reviewed-base among them); PR 3's own fix-check line trimmed so the render stays at 12,288 B.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Nov 1, 2026
…exception (GST-713) (#3776)

* fix(ship): base merges, adjacent base edits, test-only and audit-requested fixes no longer force a second review loop (GST-407, GST-384, GST-391)

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

* ship driver: trim two phrases for headroom with #3662

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

* ship driver: keep the Next steps heading phrase the handoff check reads; trim elsewhere

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

* test: regenerate ship goldens

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

* fix: pre-landing review fixes

comparePath returns same only when every hunk sits where the base change puts it (patch-ids ignore positions) and treats a file-mode change as changed; the scoped-review packet says when a fence is truncated; --docs-result must be the posted audit's result; the --context-reviewed record goes beside the packet, outside the worktree. Negative controls for each.

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

* fix: pass-2 review fixes

A test edit routes as tests= only when it adds lines with no gate tag; a removed or changed line or an unreadable test diff goes through the full loop. Diffs skip textconv. A hunkless patch (binary, empty, mode-only) is same when its patch-id matches. Without --reviewed-base test files route as before. finish's packet path and attempt's state directory have fallbacks.

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

* fix: Step 11 review fixes; a version-only stamp_files edit after review is release metadata (GBRA-251)

gateEditedPaths reads removed lines only inside hunks; carry refuses when a path listing fails; docs freshness stops on a failed listing; attempt counts an unreadable state file. releasePaths includes stamp_files paths whose edit is a version swap under stamp_patterns.

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

* fix: no test edit skips review; guard packet writes; exclusive attempt state

A test-only edit with no gate tag gets the scoped fix-check of its test hunks instead of a lanes-only rerun. Packet write failures print a STOP or RECEIPT_CARRY_REFUSED. attempt's allowance uses an exclusive create.

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

* fix: attempt prints gstack's install command; carry checks the product diff outside context paths

The attempt STOP no longer echoes the audit child's fix text. A scoped-review carry now requires the product patch-id without the context paths to match at both heads.

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

* fix: oversized packets take the full loop; exact --docs-requested match; name-only test globs only in test dirs

A scoped-review packet section over 200 lines sends that path to the full loop instead of a truncated packet. The docs-result path match is exact. test_*.py, *Test.java and similar count as test code only under a test directory.

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

* docs(unattended): carry's scoped-review refusal and what it keeps

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

* docs: carry's scoped-review route in ship-policy, review-policy and troubleshooting (docs-a-1)

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

* test(windows): curate ship-rereview-triggers out of the Windows lane like ship-release (run 41193336209)

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

* fix: restore bin/gstack-ship-receipt after the main merge

The merge commit b10e2db wrote a truncated copy of the file. This is the
three-way merge of both sides with the refused() union: main's codes plus
RECEIPT_CARRY_SCOPED_REVIEW.

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

* fix(ship): finish runs after an owner-accepted Step 14.5 documentation exception (GST-713)

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

* test(ship): the exception match and every snapshot --exception refusal are covered (GST-713)

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

* fix(ship): the exception snapshot uses the receipt's docs parser; finish also matches scope and stops on a corrupt docs-audit record (GST-713)

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

* docs: DOCS_AUDIT_BLOCKED names the --exception snapshot finish needs (GST-713)

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

* chore(changelog): drop #3684's fragment, already stamped into CHANGELOG.md on main

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>
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