Skip to content

Add candidate Ed25519 wallet challenge proof runtime - #4

Merged
brettheap merged 2 commits into
mainfrom
016-challenge-proof-runtime
Nov 11, 2026
Merged

brettheap merged 2 commits into
mainfrom
016-challenge-proof-runtime

Conversation

@brettheap

@brettheap brettheap commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Add candidate Ed25519 possession-proof primitives with trusted current key binding, opaque signing custody, strict decoding and domain-separated RFC 8785 bytes. Possession does not assert MFA, human approval, agent composition or permission.

Current head: cdce0abda7063b9323ea565ac648949bf2f37be0. The latest commit adds independent Node/OpenSSL known-answer vectors and Python compatibility/refusal tests; it changes no runtime behavior or wire profile.

Validation: 98 passed, one existing historical-comparison skip locally. Current-head pytest CI and wallet validation pass. Syntax gate and plain/strict corpus validators pass. The independent generator exactly reproduces both fixed vector cases. Ten new cases cover exact preimages/signatures/wire bytes, Unicode, maximum safe revisions and negative proofs. Public test seeds are deliberately non-secret test material.

Paired governance/sole task list/evidence: openWallet-spec #8, ratification record head 00a61e39a4280b4bee2e0db5f6eac0c725a3b82a, feature 016-challenge-proof-runtime. A current Codex receipt explicitly names code head cdce0abda7 and reports no major issues.

The possession-only wire profile is ratified by Brett Heap's 2026-11-10 response "Ratify both possession-only profiles", approving spec baseline 778cedb30406e753fee5b4a95d96ac2c18b78ae4. Runtime realization remains draft pending real registry/custody and accepted assembly compatibility evidence, reviewed leg landings and lockstep root advancement. No release, tag, product pin, live provider/credential operation or pilot activation. Feedback remains deferred and neither previously blocked write is replayed.

@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Defines the opaque signer interface and trusted-binding and verified-possession records that the proof runtime depends on.

  • openwallet_runtime/proof.py L37-67

API

Exports the candidate proof profile, types, errors, and create, encode, decode, and verify operations for callers.

  • openwallet_runtime/__init__.py L1-9
  • openwallet_runtime/proof.py L29-35, L137-221

Implementation

Implements profile validation, trusted-binding checks, canonical signing input, strict decoding, and the safety limits underlying the public proof operations.

  • openwallet_runtime/proof.py L1-28, L68-136 (+2 small edits)

Configuration

Adds the installable development package and installs it in the existing pytest workflow so CI can import the runtime.

  • .github/workflows/pytest-suite.yml L33
  • pyproject.toml L1-14

Documentation

Documents the candidate runtime's status, trust boundaries, limitations, and local checks without claiming an accepted release.

  • README.md L3-5
  • docs/runtime-candidate.md L1-24

Tests

Adds behavioral and independently generated compatibility-vector checks for the proof profile and its trust and encoding constraints.

  • tests/challenge_proof/VECTORS.md L1-31
  • tests/challenge_proof/generate_vectors.cjs L1-75
  • tests/challenge_proof/test_proof.py L1-178
  • tests/challenge_proof/test_vectors.py L1-70
  • tests/challenge_proof/vectors.json L1-66

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T23:55:31.661363Z cdce0ab Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 95bcd6d56c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: cdce0abda7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

Upstream prerequisite readback for cdce0abda7063b9323ea565ac648949bf2f37be0.

Current-head CI is green, and the chatgpt-codex-connector[bot] receipt explicitly names cdce0abda7 with no major issues. No unresolved review threads remain.

T007 independent known-answer preparation is complete: both generators reproduce their committed vectors exactly; openWallet passes 98 cases plus one existing skip, and openMFA passes 48 cases. Spec gates pass five/13 structural cases and pinned strict OpenSpec validation. Assembly tooling openMFA #2 is merged at c0873fde1c10274f395522179704351fb74e0c45; both roots still validate original leg pins and all shape digests.

T006 remains pending the contract owner decision and real adapter/registry/custody and accepted assembly compatibility evidence. Ratification has been presented to Brett Heap for the two concrete possession-only spec candidates. No implicit approval, runtime leg merge, root runtime pin, release, MFA/human acceptance or live provider operation is claimed. Feedback remains deferred and neither previously blocked write was replayed.

@brettheap

Copy link
Copy Markdown
Contributor Author

Owner contract gate completed. Brett Heap ratified the possession-only profile at spec baseline 778cedb30406e753fee5b4a95d96ac2c18b78ae4. The ratification record preserves the original origin fields, schema bytes/digests and technical requirements.

openWallet-spec #8 merged normally at f71d8e09f963a12d9c46a461b96fd2d0ac659e66 after exact-head CI and fresh Codex review passed. Actual merge parents and result tree 0c1c69d02771dd0f23c07726c0c42962eab11999 were verified against the protected candidate. No admin or ruleset bypass was used.

This runtime implementation remains draft/open. Real adapter/registry/custody and accepted assembly compatibility evidence, human approval and live qualification remain separate gates. Original assembly pins remain unchanged. T006 is not marked complete, and no release or archive is claimed. Feedback remains deferred and neither blocked write was replayed.

@brettheap
brettheap marked this pull request as ready for review November 11, 2026 02:02

@brettheap brettheap left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Prerequisite source landing review at cdce0abda7063b9323ea565ac648949bf2f37be0.

Brett Heap authorized landing the dependent portable-reference source PRs on 2026-11-10. This unchanged core is a necessary source dependency. The possession-only owner contracts have been explicitly ratified and their spec PRs merged. Current-head CI is green and the actual chatgpt-codex-connector[bot] receipt names this exact head with no major issues; review threads are resolved. The dependent full-source suites additionally pass wallet 141 cases plus one historical skip and MFA 83 cases, with owning verification and independent core compatibility vectors.

No actionable finding remains. Merge only through the ordinary protected PR mechanism after checking main/head, the protected candidate's two parents and tree; read back actual merge parents/tree. This lands candidate source only. Accepted assembly/consumer pins, production custody, human approval, live qualification, release and archive remain separate gates. Feedback stays deferred and neither blocked write is replayed.

@sourcery-ai

sourcery-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 4 days and 11 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 8087199 into main Nov 11, 2026
3 checks 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