Skip to content

Add script-only release publisher - #91

Merged
kiwidream merged 2 commits into
bind-builder-source-attestationsfrom
scope-artifact-publish-script
Jul 10, 2026
Merged

kiwidream merged 2 commits into
bind-builder-source-attestationsfrom
scope-artifact-publish-script

Conversation

@kiwidream

@kiwidream kiwidream commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • replace the self-hosted release-publish.yml workflow with a self-contained local publisher for coordinator-held artifacts
  • run the public release validators from the pinned trusted checkout, including PR Bind builder attestations to signed-tag source #84's signed-tag source archive binding
  • create or safely resume a draft, verify the exact remote asset names and SHA256 digests, and refuse to modify published releases
  • add behavioral publisher coverage and update the release merge gates and public process documentation

Fixes #69.

This PR is intentionally stacked on #84 and targets bind-builder-source-attestations.

Testing

  • Built locally.
  • Ran focused unit or functional tests for the changed area.
  • Ran lint or formatting checks relevant to this change.
  • Not run. Reason: no C++ product build was run because this changes release tooling, tests, CI metadata, and documentation only.

Focused validation:

python3 -m unittest ci.release.test_publish_local_release ci.release.test_validate_builder_attestations ci.release.test_validate_key_metadata ci.release.test_validate_release_artifacts ci.release.test_verify_testnet_release_posture
(cd ci/checks && python3 -m unittest test_classify_merge_profile)
bash -n contrib/release-process/publish-local-release.sh

The focused release run passed all 137 tests. The repository lint image was built from ci/lint_imagefile and the complete Docker lint suite passed.

Target Branch

  • This PR targets main or a maintainer-requested release branch such as 0.1.x.

Per maintainer request, this PR targets PR #84's head branch rather than 1.0.0 directly.

Risk / Review Notes

  • Consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.
  • No consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.

Notes:

  • Publication is validation-only unless --create-draft or --publish is explicit.
  • The publisher requires clean qbit and qbit-guix.sigs checkouts at caller-supplied full commit SHAs.
  • Existing draft assets must be a digest-matching subset of the validator-approved set. The publisher never uses replacement uploads and refuses existing published releases.
  • --publish verifies the complete draft inventory before changing the release from draft to published.

Docs / Process Impact

Choose exactly one:

  • I updated public docs because this PR changes user-visible behavior, integration guidance, release/process guidance, or expected validation.
  • No public docs update needed. Reason:

libbitcoinpqc Subtree Checklist (if src/libbitcoinpqc changed)

  • Source commit is reachable from an immutable release tag in Qbit-Org/qbit-libbitcoinpqc.
  • qbit imports the tagged upstream tree directly without pruning or a curated subtree branch.
  • Subtree import/update was performed with contrib/devtools/update-libbitcoinpqc-subtree.sh.
  • test/lint/libbitcoinpqc-subtree-check.sh passes locally.
  • Any default tag change in contrib/devtools/update-libbitcoinpqc-subtree.sh is intentional and matches doc/subtrees/libbitcoinpqc.md.

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Note

High Risk
Changes how releases are published and validated (tag trust, artifact digests, immutability of published releases), which is security-critical release infrastructure despite strong new test coverage.

Overview
Removes the self-hosted Release Publish GitHub Actions workflow and makes contrib/release-process/publish-local-release.sh the supported path for validating and publishing releases from coordinator-held artifacts.

The new script runs validators from a clean checkout pinned to trusted_release_ref, checks GitHub-verified annotated tags, builder/source binding (PR #84), and testnet posture when applicable. Default mode is validation-only; --create-draft and --publish upload assets only after digest checks and refuse to change already-published releases.

CI and merge gates now treat the publisher script as the release-publication surface: bash -n on the script, test_publish_local_release in required release tests, and merge-profile classification includes publish-local-release.sh alongside (legacy) workflow path references. Docs describe script-only publication instead of Actions.

Reviewed by Cursor Bugbot for commit 5c19300. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4eb9289. Configure here.

@kiwidream
kiwidream force-pushed the scope-artifact-publish-script branch from 3e35db6 to 99d761e Compare July 10, 2026 18:22
@kiwidream
kiwidream force-pushed the scope-artifact-publish-script branch from 99d761e to 5c19300 Compare July 10, 2026 18:41
@kiwidream
kiwidream merged commit 8e24755 into bind-builder-source-attestations Jul 10, 2026
1 check passed
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