Skip to content

Re-pin signed tags and preserve resumed metadata during immutable publication #126

Closed

Description

@kiwidream

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=false later 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-name is omitted, overwriting a previously customized title.
  • --make-latest auto is treated like preservation rather than mapped to GitHub's make_latest=legacy behavior.
  • 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=false transition.
  • Run it again after GitHub reports isImmutable=true and 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-name was explicitly supplied.
  • Implement --make-latest auto through GitHub's legacy value, 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

Activity

  1. added
    bug
    on Jul 13, 2026
  2. kiwidream commented on Aug 12, 2026

    @kiwidream
    MemberAuthor

    Resolved by #130 and present in the current 1.x.x line.

    The local publisher now:

    • verifies the exact remote annotated-tag object, commit target, and GitHub signature through a reusable check;
    • repeats that check immediately before publication and after immutable-state and asset polling;
    • fails closed on tag, target, or signature drift, with post-publication recovery guidance;
    • preserves an omitted resumed-draft title unless --release-name is explicit;
    • maps --make-latest auto to GitHub's legacy behavior;
    • snapshots explicit release-note bytes before long validation; and
    • includes fake-API regressions for pre-publication and post-publication tag movement.

    PR #130 merged with successful Required Merge Gate, Core Checks Gate, and Full Validation Gate runs.

    Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions