Repository navigation
Description
Summary
PR #117 implements issue #100's explicit immutability requirements and fixes its prior review findings, but the publisher verifies the exact remote signed tag only before the potentially long validation/upload phase. It does not re-pin the tag immediately before or after immutable publication. Resumed drafts can also overwrite a custom title, and documented --make-latest auto is accepted without applying GitHub's automatic/legacy behavior.
Deterministic resumed notes remain owned by open issue #99 and are referenced here as a required composition dependency rather than duplicated.
Current behavior
- The remote annotated-tag object, target, and GitHub signature are verified early.
gh release edit --verify-tag --draft=falselater checks only that a tag exists; it does not compare the current ref with the previously pinned object and target.- Final polling validates release immutability and asset digests but does not re-read the tag ref/object.
- A resumed draft always receives the default title when
--release-nameis omitted, overwriting a previously customized title. --make-latest autois treated like preservation rather than mapped to GitHub'smake_latest=legacybehavior.- The branch does not compose Make resumed release-draft notes deterministic before publication #99's deterministic resumed-note policy.
Impact
A concurrent tag move can cause GitHub immutability to lock a different tag target while the publisher reports success for artifacts and attestations bound to the original commit. Default tag rules reduce ordinary exposure but do not protect repositories selected with --repo or privileged bypass paths. Metadata gaps can also publish a title, latest-release policy, or notes body that was not the coordinator's verified intent.
Expected behavior
Successful publication should prove that the immutable release locked the same signed tag object and target used for validation, while preserving omitted draft metadata and publishing deterministic notes.
Acceptance criteria
- Refactor exact remote tag/ref/object/target/signature verification into a reusable check.
- Run it immediately before the
draft=falsetransition. - Run it again after GitHub reports
isImmutable=trueand before reporting success. - Fail if the ref moves, the tag object or target changes, or signature verification is no longer exact.
- Add fake-API tests for tag moves before publication and during immutable-state polling.
- On resumed drafts, omit the title edit unless
--release-namewas explicitly supplied. - Implement
--make-latest autothrough GitHub'slegacyvalue, or remove the option and document that it is unsupported. - Extend the fake GitHub state to assert title and real latest-mode behavior.
- Compose issue Make resumed release-draft notes deterministic before publication #99's deterministic resumed-note handling and snapshot explicit notes before publication.
- Document recovery if publication becomes immutable but final verification fails.
Consensus impact
Consensus-adjacent. Node consensus behavior is unchanged, but this is a security-critical release-integrity state machine.
References
- Immutability contract implemented by this PR: Fail release publication when GitHub release immutability is not enforced #100
- Deterministic notes dependency: Make resumed release-draft notes deterministic before publication #99
- Reviewed implementation: PR Enforce immutable local release publication #117 at
f6c7a0aa5fbe41609c7bf6988b45322db026e0ea
Activity
kiwidream commentedon Aug 12, 2026
Resolved by #130 and present in the current
1.x.xline.The local publisher now:
--release-nameis explicit;--make-latest autoto GitHub'slegacybehavior;PR #130 merged with successful Required Merge Gate, Core Checks Gate, and Full Validation Gate runs.
Closing as completed.