Skip to content

fix(release): keep checksums.txt byte-exact in candidate evidence.json - #391

Merged
danielhanold merged 4 commits into
mainfrom
fix/release-candidate-evidence-json-drops-the-trailing-newline-f
Oct 5, 2026
Merged

danielhanold merged 4 commits into
mainfrom
fix/release-candidate-evidence-json-drops-the-trailing-newline-f

Conversation

@danielhanold

@danielhanold danielhanold commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

↩ Change 0524 — Release-candidate evidence.json drops the trailing newline from its checksums copy

Read checksums.txt with jq --rawfile in the release-candidate workflow's "Assemble the evidence JSON" step, so evidence.json's checksums_txt is byte-equal to the bundle file (trailing newline included). The old shell command substitution stripped the newline and tripped the release protocol's Phase 2 byte-equality check.

Proof: a one-off harness ran the step's real body on a sample file; jq -j .checksums_txt evidence.json | cmp - checksums.txt failed before the edit and passed after (with and without a trailing newline). Details in the results file.

Review

Lean-tier whole-branch review: no findings.

↩ Change 0524 — Release-candidate evidence.json drops the trailing newline from its checksums copy

command: go run ./cmd/docket development test
result: green
head_sha: d6742e5
ran_at: 2026-10-05T10:54:52Z

Docket-Plan-Path: docs/superpowers/plans/2026-10-05-release-candidate-evidence-json-drops-the-trailing-newline-f.md
Read checksums.txt with jq --rawfile instead of a shell command
substitution, which stripped the trailing newline and broke the release
protocol's byte-equality check between evidence.json and checksums.txt.
@danielhanold
danielhanold force-pushed the fix/release-candidate-evidence-json-drops-the-trailing-newline-f branch from 17c53eb to d6742e5 Compare October 5, 2026 10:55
@danielhanold
danielhanold merged commit 04afac7 into main Oct 5, 2026
1 check passed
@danielhanold
danielhanold deleted the fix/release-candidate-evidence-json-drops-the-trailing-newline-f branch October 5, 2026 10:55
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