Repository navigation
ci: gate qbit P2MR v1 conformance with an independent oracle - #114
Merged
Merged
Conversation
This was referenced Jul 12, 2026
kiwidream
force-pushed
the
p2mr-v1-oracle-ci
branch
2 times, most recently
from
July 12, 2026 21:08
63b8cb4 to
b1f19eb
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b1f19eb. Configure here.
kiwidream
force-pushed
the
p2mr-v1-oracle-ci
branch
from
July 13, 2026 13:57
b1f19eb to
60ef8e1
Compare
kiwidream
force-pushed
the
p2mr-v1-conformance-vectors
branch
from
July 13, 2026 13:57
72a9070 to
d1948b7
Compare
kiwidream
changed the base branch from
p2mr-v1-conformance-vectors
to
p2mr-v1-conformance-suite
July 13, 2026 14:48
6 of 14 tasks
Member
Author
|
Merged into |
This was referenced Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
qbit-libbitcoinpqconly at the SLH-DSA primitive-verification boundary; do not link or invoke qbit consensus, wallet, signing, descriptor, RPC, or test-framework helpers.This is PR 3 of 4 and is stacked on
p2mr-v1-conformance-vectors.Stack: parent #113 ← PR 3/4 → next #115.
Refs #105
Testing
Validation included 27 Rust unit tests, all 70 oracle rows, corpus reproducibility, Rust formatting, clippy with warnings denied, the qbit P2MR suite,
git diff --check, and Docker lint.Target Branch
mainor a maintainer-requested release branch such as0.1.x.Stack review base:
p2mr-v1-conformance-vectors. Final target after the parents merge:1.0.0.Risk / Review Notes
Notes: CI behavior changes and the oracle handles consensus-sensitive data, but node consensus behavior does not change. The focused evaluator fails unsupported rather than claiming to be a general-purpose node.
Docs / Process Impact
Choose exactly one:
The oracle README documents its independence boundary, release binding, supported corpus surface, and limitations.
libbitcoinpqc Subtree Checklist (if
src/libbitcoinpqcchanged)Qbit-Org/qbit-libbitcoinpqc.contrib/devtools/update-libbitcoinpqc-subtree.sh.test/lint/libbitcoinpqc-subtree-check.shpasses locally.contrib/devtools/update-libbitcoinpqc-subtree.shis intentional and matchesdoc/subtrees/libbitcoinpqc.md.Not applicable; the subtree is unchanged.
Note
Medium Risk
No node consensus behavior changes, but the oracle encodes consensus-sensitive P2MR/PQC rules and becomes a required merge gate; incorrect oracle logic could block releases or give false confidence.
Overview
Adds a standalone Rust P2MR v1 conformance oracle (
contrib/testgen/p2mr_v1_oracle) that validates the versioned test corpus without linking qbit consensus, wallet, or node code. It reimplements manifest loading, encodings, transaction parsing, commitments, sighash/witness handling, and a corpus-limited script evaluator; SLH-DSA verification is delegated only toqbit-libbitcoinpqc. Cases are checked against fixture expectations and written to a deterministic JSON report; release mode binds evidence to a clean checkout and--oracle-commit.CI gains a required
p2mr-v1-conformancejob (fmt, unit tests, fullverifywith release binding, step summary, artifact upload) and wires it into Core Checks Gate.contrib/devtools/check-p2mr-v1-corpus-reproducible.shregenerates witness vectors and the manifest in a temp tree and fails if committed corpus files differ.Reviewed by Cursor Bugbot for commit 60ef8e1. Bugbot is set up for automated code reviews on this repo. Configure here.