Repository navigation
v1.94.38.0 fix(ship-receipt): carry a stamp file back at the base after a changelog-fragment conversion (GST-1210) - #3937
Merged
Conversation
…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>
|
😎 This pull request was merged. |
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
gstack-ship-receipt carrykeeps a /ship receipt when a PR moves to achangelog.dfragment after review. The conversion putsVERSION,package.jsonandCHANGELOG.mdback at main's content. If main had also changedpackage.jsonbeyond its version, carry used to read main's change as the branch's and refuse withRECEIPT_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 samegit ls-treeentry, or a version stamp) counts as release metadata. A non-stamppackage.jsonchange, 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 bycarry.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_CHANGEDcarry 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-shardfailed on the mode-flip control (run 41626229324:fs.chmodSynccommits no mode change on Windows), the fixture also stages the flip withgit 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'sls-treestamp 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):
test/ship-receipt-carry-ported-pin.test.tskeeps an unusednode:fsimport.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.tskeep every such pin refused.Proof (failing first)
test/ship-receipt-carry-fragment-conversion.test.tswas committed before the fix (0b36079):a stamp file back at the base's content carries as release metadataanda package.json equal to the base's except the version field carriesfail 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 refusesfails with an object-id-only probe and passes withls-tree.postinstallscript refuses, and a logic edit next to the reviewed constant refuses.Test plan
bun run typecheckcleanls-tree, red with an object-id-only probewindows-scoped-shardandwindows-scoped-testsgreen at bae00b1test/ship-receipt-carry*.test.ts32 pass (squash, GST-1214, fragment conversion, mode flip), receipt depth/prose/session-kind 25 pass, typecheck clean