Add Compute Witness Rust integration spike - #66
Merged
Conversation
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
Adds a Rust integration spike for ProofPath Compute Witness.
This PR does not implement Rust code yet. It documents the narrow adapter path from the Compute Witness JSON fixture contract into the existing
proofpath-verifiercrate.Added
docs/compute-witness-rust-integration-spike.mdUpdated
docs/compute-witness-pilot-guide.mdWhy
The current Compute Witness layer is strong for reviewability:
The next credibility layer is a production-facing Rust path:
Key design finding
The existing Rust verifier already has:
RequestContextDecisionReasonCodeVerificationResultverify(ctx: &RequestContext)proofpath-verifyCLISo Compute Witness should first be integrated as an adapter, not as a rewrite of the core verifier.
Main open question
The current action verifier treats missing causal parent as
REJECT, while the current Compute Witness blocked fixture usesBLOCKforMISSING_CAUSAL_PARENT.Recommended resolution:
Validation
Documentation-only change.
Recommended checks:
cargo fmt --all -- --check cargo clippy --workspace --all-targets -- -D warnings cargo test --workspace python3 scripts/validate_compute_witness.py python3 scripts/validate_compute_witness.py conformance/compute-witness/challenge_manifest.jsonIssue
Refs #62