Skip to content

v1.94.38.0 fix(ship-receipt): carry a stamp file back at the base after a changelog-fragment conversion (GST-1210) - #3937

Merged
capy-ai[bot] merged 11 commits into
mainfrom
capy/gst1210-carry-stamp-reverts
Nov 3, 2026
Merged

capy-ai[bot] merged 11 commits into
mainfrom
capy/gst1210-carry-stamp-reverts

Conversation

@garrytan

@garrytan garrytan commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3937,
  "head": "269ccb6bcb3a9bd81c9163408eb29d5400235acd",
  "version": "1.94.24.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 63,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "059d100b6bac23341a5d1086c191e75511b3b11d",
  "product_patch_id": "7d78e3eba558289a4bd788596aba1dc23e7b2105",
  "gstack_version": "1.94.15.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 10,
    "rules": "19881e1ecf7ed1ad",
    "base": "1ccab0d8bccba50e69587672fb82ac0574638a65",
    "registry": "1ccab0d8bccba50e69587672fb82ac0574638a65",
    "gate_scan": {
      "tagged": 0,
      "head": "269ccb6bcb3a9bd81c9163408eb29d5400235acd"
    },
    "reasons": [
      "gate-class",
      "runtime=10"
    ],
    "risk": []
  },
  "pregate": "requires-remote cleared @059d100b6bac (7 checks, current for 269ccb6bcb3a)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41668371678/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41668371678/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41668371630/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=059d100b6bac tests=34955 skipped=113 runs=41668371678/1 profiles=ci-reuse/free-tests heads=269ccb6bcb3a verified=2026-11-03T16:03:05.687Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/ (ship-policy.md, troubleshooting.md, unattended.md), README.md, changelog.d/"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "fix_checks": 3,
    "rounds": 5,
    "unrecorded": 2,
    "ledgers_read": 5,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (Captain, GSTA-36)",
    "date": "2026-11-03",
    "via": "GSTA-36 ruling A on #3937 merge 269ccb6bc",
    "reason": "the one-time main merge (1ccab0d8) left carry unable to see the landed stack parent #3928 because #3940 rewrote its lines; one scoped reader on the merge hunk only (the classify placeholders context line and the resolved measure() block), no further rounds",
    "fix_check": {
      "head": "269ccb6bcb3a9bd81c9163408eb29d5400235acd",
      "findings": 0
    }
  }
}

What changed

Receipt carry after a changelog-fragment conversion

gstack-ship-receipt carry keeps a /ship receipt when a PR moves to a changelog.d fragment after review. The conversion puts VERSION, package.json and CHANGELOG.md back at main's content. If main had also changed package.json beyond its version, carry used to read main's change as the branch's and refuse with RECEIPT_CARRY_PRODUCT_CHANGED (HARN-1, harness-evals#206). Now a stamp file the branch changes by no more than a stamp against each head's base (the same git ls-tree entry, or a version stamp) counts as release metadata. A non-stamp package.json change, a mode flip, a logic edit, or a stamp file git can't read still refuses.

Why

Every PR converted after fragment adoption hit this and paid a full /ship review round on code nobody changed.

Blast radius

One classification in productSpec (bin/gstack-ship-receipt), used only by carry. write, the tree receipt, restamp and the merge train are unchanged. No network calls, secrets, permissions, workflows, setup scripts or dependencies.

Approvals

Approved: yes. GStack Minder (Captain, GSTA-36), 2026-11-03, ruling A on #3937 (drop the harness-pins case, one scoped fix-check). The full approval record stays private.

Documentation

Scope: the six committed files in base 8d18303..f3c18d9 on branch capy/gst1210-carry-stamp-reverts (bin/gstack-ship-receipt, one changelog.d fragment, docs/ship-policy.md, docs/troubleshooting.md, two new tests). The working tree and index have no staged, unstaged or untracked content. I cross-checked the cross-references to the RECEIPT_CARRY_PRODUCT_CHANGED carry rules in ship-policy.md, troubleshooting.md and unattended.md.

Result: current. The new carry rule (a stamp file changed by no more than a stamp against each head's base carries as release metadata) matches the code in productSpec. It appears in both the ship-policy.md carry table and the troubleshooting.md fix list. The fragment names the refusals that still apply. I found no stale references.

Debt: none found. The audit read only the diff-touched docs in full plus targeted greps, not every doc in the candidate list.

Pre-Landing Review

REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=0 fixed=0 scope=frozen unrecorded=2 ledgers_read=5 fix_checks=3 dispatches=4

Review-loop exception: accepted by GStack Minder (Captain, GSTA-36) 2026-11-03 via GSTA-36 ruling A on #3937: drop the pin-entry guess, switch the stamp-file probe to git ls-tree, one scoped fix-check on those hunks, no further rounds (fix-check at f3c18d9, 1 finding)

Review-loop exception: accepted by GStack Minder (CREW standing Windows grant, 2026-11-03) 2026-11-03 via CREW standing Windows grant (R51) on #3937, approval a-3ed2d88f3552: one-line Windows fix after windows-scoped-shard failed deterministically in run 41626229324 (fs.chmodSync commits no mode change with core.filemode=false); the fixture now stages the flip with git update-index --chmod=+x; one scoped reader on that hunk, no further rounds (fix-check at bae00b1, 0 findings)

Review-loop exception: accepted by GStack Minder (Captain, GSTA-36) 2026-11-03 via GSTA-36 ruling A on #3937 merge 269ccb6: the one-time main merge (1ccab0d) left carry unable to see the landed stack parent #3928 because #3940 rewrote its lines; one scoped reader on the merge hunk only (the classify placeholders context line and the resolved measure() block), no further rounds (fix-check at 269ccb6, 0 findings)

Gate edits: none detected (gate scan tagged=0 at 269ccb6)

Two full passes (gate class: batched testing/security/state-machines specialist, Red Team), Step 11 (Opus native adversarial, GPT-6.1 Sol outside voice), and one granted scoped fix-check. Round 1 fixed two INFORMATIONAL findings. Round 2's voices found the harness-pins case unsafe (outside voice High: an unrelated base fixture could carry an unreviewed change), so it was dropped under ruling A. The fix-check found one INFORMATIONAL note. After windows-scoped-shard failed on the mode-flip control (run 41626229324: fs.chmodSync commits no mode change on Windows), the fixture also stages the flip with git update-index --chmod=+x (bae00b1, test only); one scoped reader on that hunk found nothing. main (1ccab0d, after #3940) was then merged in once under a Rule 19 grant (269ccb6): both #3940's stacked-carry exclusion and this PR's ls-tree stamp probe are kept, and the already-released #3928 fragment was dropped. One scoped reader on the merge hunk found nothing.

Open notes (not fixed, below the blocking floor):

  • The stamp arm reads text only, so a side that both flips a stamp file's mode and stamps its version still counts as stamp-only (fix-check). Mode flips with unchanged content refuse.
  • test/ship-receipt-carry-ported-pin.test.ts keeps an unused node:fs import.

Dropped: the harness-pins case (a pin entry ported byte for byte from main, #3903 at f0613db). A mapping guessed from names and values can't be made safe; the three negative controls in test/ship-receipt-carry-ported-pin.test.ts keep every such pin refused.

Proof (failing first)

test/ship-receipt-carry-fragment-conversion.test.ts was committed before the fix (0b36079):

  • a stamp file back at the base's content carries as release metadata and a package.json equal to the base's except the version field carries fail on origin/main f6d6215 and on the base 8d18303 (RECEIPT_CARRY_PRODUCT_CHANGED: … package.json), and pass with the fix.
  • a package.json back at the base's content with a flipped mode still refuses fails with an object-id-only probe and passes with ls-tree.
  • Negative controls pass at every revision: a non-stamp postinstall script refuses, and a logic edit next to the reviewed constant refuses.

Test plan

garrytan and others added 8 commits November 3, 2026 07:11
…sh-merges into main (GST-1199)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… parent (review fix, GST-1199)

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>
… audit, GST-1199)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ness pins (GST-1210)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-byte ported pin entry (GST-1210)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ey; stamp-file sides compare object ids (GST-1210)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… ls-tree entries (GST-1210, GSTA-36 ruling A)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title fix(ship-receipt): carry a stamp file back at the base and a ported harness-pin entry (GST-1210) fix(ship-receipt): carry a stamp file back at the base after a changelog-fragment conversion (GST-1210) Nov 3, 2026
@capy-ai
capy-ai Bot marked this pull request as ready for review November 3, 2026 10:29
@capy-ai
capy-ai Bot changed the base branch from capy/carry-a-stacked-prs to main November 3, 2026 11:13
@trunk-io

trunk-io Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai capy-ai Bot closed this Nov 3, 2026
@capy-ai capy-ai Bot reopened this Nov 3, 2026
garrytan and others added 2 commits November 3, 2026 11:26
…indows (GST-1210, run 41626229324)

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

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

# Conflicts:
#	bin/gstack-ship-receipt
#	docs/ship-policy.md
#	test/ship-receipt-carry-squash.test.ts
@github-actions github-actions Bot changed the title fix(ship-receipt): carry a stamp file back at the base after a changelog-fragment conversion (GST-1210) v1.94.38.0 fix(ship-receipt): carry a stamp file back at the base after a changelog-fragment conversion (GST-1210) Nov 3, 2026
@capy-ai
capy-ai Bot merged commit 95806d0 into main Nov 3, 2026
49 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