Skip to content

release: gate qbit P2MR v1 conformance and integration signoff - #115

Merged
kiwidream merged 1 commit into
p2mr-v1-conformance-suitefrom
p2mr-v1-release-gate
Jul 13, 2026
Merged

kiwidream merged 1 commit into
p2mr-v1-conformance-suitefrom
p2mr-v1-release-gate

Conversation

@kiwidream

@kiwidream kiwidream commented Jul 12, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add a strict release validator that reads the normative profile, exact manifest, and corpus from the signed tag target while executing trusted tooling from trusted_release_ref.
  • Require mainnet evidence to bind the exact tag target, exact-SHA consensus review, qbit result, 70-row oracle report, corpus digest, and finalized integration inventory.
  • Add a no-waiver mainnet gate before artifact validation or GitHub Release mutation; testnet may omit all evidence but partial submissions fail closed.
  • Add an authoritative JSON integration inventory, generated Markdown view, evidence example, exact-release checklist, and precise public claim language.

This is PR 4 of 4 and is stacked on p2mr-v1-oracle-ci. The checked-in inventory is deliberately blocking draft data. Final external integration evidence is release-time work, so this PR references rather than closes Issue 105.

Stack: parent #114 ← PR 4/4.

Refs #105

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:

Validation included 31 focused P2MR release-validator tests, the complete 60-test combined release suite with one expected skip, exact JSON/Markdown consistency, the cumulative qbit/oracle suites, git diff --check, and Docker lint.

Target Branch

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

Stack review base: p2mr-v1-oracle-ci. Final target after the parents merge: 1.0.0.

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: mainnet release-publication behavior changes fail closed. Node consensus behavior does not change. Required in-tree surfaces cannot be reclassified as unclaimed to bypass evidence.

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.

Not applicable; the subtree is unchanged.


Note

High Risk
Changes mainnet release publication to fail closed on consensus/integration evidence; mistakes or missing release-time artifacts block shipping even though node consensus code is unchanged.

Overview
Adds a fail-closed mainnet release gate for qbit-p2mr-v1: the publish workflow takes three runner-local inputs (evidence envelope, oracle report, finalized integration matrix), runs verify_p2mr_v1_conformance.py from the trusted release ref against the signed tag checkout, and blocks artifact validation and GitHub Release creation on failure. Mainnet always requires all three; testnet may omit them, but supplying any one requires all three.

The new validator binds the annotated tag target to the tagged manifest and corpus digests, oracle case rows vs corpus expectations, consensus review on the exact commit (not an ancestor), qbit test evidence, and a release-status integration matrix with required in-tree surfaces marked supported/pass. Workflow summaries surface manifest SHA256, case count, and matrix digest.

Also adds a draft JSON integration inventory plus generated Markdown, release-process checklist and prescribed claim wording, consensus doc on stricter release vs dev conformance, integrator cross-links, an example evidence JSON, extensive validator tests, and a workflow test that the P2MR step runs before artifacts/publication.

Reviewed by Cursor Bugbot for commit 36d2402. 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 fce9b73. Configure here.

@kiwidream
kiwidream force-pushed the p2mr-v1-oracle-ci branch from 9511a6f to 63b8cb4 Compare July 12, 2026 21:04
@kiwidream
kiwidream force-pushed the p2mr-v1-release-gate branch from fce9b73 to 7896f41 Compare July 12, 2026 21:07
@kiwidream
kiwidream force-pushed the p2mr-v1-oracle-ci branch from 63b8cb4 to b1f19eb Compare July 12, 2026 21:08
@kiwidream
kiwidream force-pushed the p2mr-v1-release-gate branch from 7896f41 to dbf38a3 Compare July 12, 2026 21:09
@kiwidream
kiwidream force-pushed the p2mr-v1-release-gate branch from dbf38a3 to 36d2402 Compare July 13, 2026 13:57
@kiwidream
kiwidream force-pushed the p2mr-v1-oracle-ci branch from b1f19eb to 60ef8e1 Compare July 13, 2026 13:57
@kiwidream
kiwidream changed the base branch from p2mr-v1-oracle-ci to p2mr-v1-conformance-suite July 13, 2026 14:49
@kiwidream
kiwidream merged commit 36d2402 into p2mr-v1-conformance-suite Jul 13, 2026
1 check passed
@kiwidream kiwidream mentioned this pull request Jul 13, 2026
6 of 14 tasks
@kiwidream

Copy link
Copy Markdown
Member Author

Merged into p2mr-v1-conformance-suite; final landing into 1.0.0 is tracked by #118.

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