Skip to content

Make resumed release-draft notes deterministic before publication #99

Closed

Description

@kiwidream

Summary

When publish-local-release.sh creates a new draft without --notes-file, it requests generated notes. When it resumes an existing draft without --notes-file, the edit path does not regenerate, replace, or verify the existing body. A draft containing stale or arbitrary notes can therefore be published even though its assets and digests pass validation.

Current behavior

  1. A draft release already exists for the target tag and contains incorrect or stale notes.
  2. Run the local publisher with the required trusted inputs, omitting --notes-file, and resume that draft.
  3. The script validates the approved asset set but leaves the pre-existing notes unchanged.
  4. --publish can publish the stale body with otherwise valid assets.

Expected behavior

Release notes should be deterministic and validated for both newly created and resumed drafts. Resuming a draft must not silently inherit unverified metadata.

Acceptance criteria

  • Define one deterministic notes policy for new and resumed drafts.
  • If --notes-file is supplied, set or verify the draft body against that file before publication.
  • If it is omitted, either regenerate notes through a supported API, verify an expected generated body, or fail closed and require explicit notes when resuming.
  • Add a behavioral test that resumes a draft with incorrect notes and proves publication is rejected or the notes are corrected deterministically.
  • Preserve the existing refusal to modify an already published release.
  • Document the resumed-draft notes policy in the release process guide.

References

Activity

  1. added
    bug
    on Jul 11, 2026
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