Skip to content

Make the qbit P2MR v1 oracle and Core gate independently enforceable #123

Closed

Description

@kiwidream

Summary

PR #114's final head adds the independent P2MR v1 oracle and required Core gate, but the workflow cannot create jobs because job-level env references ${{ runner.temp }} where the runner context is unavailable. The oracle also validates CHECKSIGADD and data-signature fixtures outside its script evaluator rather than independently executing their stack semantics.

The inherited corpus-generation and LF defects belong to the PR #113 follow-up and are not repeated here. PR #118 fixes the workflow and opcode-execution defects at its reviewed head; the new issue should treat #118 as the candidate resolution and close only after those fixes land and are reverified.

Current behavior at PR #114's final head

  • .github/workflows/core-checks.yml assigns CARGO_TARGET_DIR: ${{ runner.temp }}/... at job scope.
  • Exact-head Core Checks runs fail before creating jobs.
  • The Rust evaluator does not execute CHECKSIGADD/NUMEQUAL stack behavior for the relevant boundary row.
  • OP_SWAP, OP_CHECKDATASIGPQC, and OP_CHECKDATASIGADDPQC are reconstructed or primitive-checked outside the evaluator, so the report can claim agreement without independently proving stack behavior and error ordering.

Expected behavior

The required workflow must schedule successfully, and every claimed oracle result for supported PQC signature opcodes must flow through independently implemented script semantics.

Acceptance criteria

  • Initialize the Cargo target directory through step-level environment or $GITHUB_ENV, where the runner context is valid.
  • Require a successful exact-head Core Checks run containing the visible P2MR v1 conformance job and gate.
  • Execute CHECKSIGADD plus numeric/clean-stack semantics in the independent evaluator.
  • Execute OP_SWAP, OP_CHECKDATASIGPQC, and OP_CHECKDATASIGADDPQC in the evaluator.
  • Cover empty signatures, invalid non-empty signatures, wrong domain/message/key, underflow, clean stack, and validation-weight charging.
  • Make required ancillary fixtures fail closed when absent or malformed.
  • Prove the oracle reports the same exact error stage/result as qbit for every supported row.
  • Retain the independently generated corpus requirements tracked from PR test: add the qbit P2MR v1 conformance corpus #113.

Consensus impact

Consensus-adjacent. Node consensus code is unchanged, but this oracle and CI gate are intended to detect divergence in P2MR consensus behavior before release.

References

Activity

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