feat(mesh): add SAR-402 execution/service-delivery verification agent - #165
Open
nutstrut wants to merge 1 commit into
Open
feat(mesh): add SAR-402 execution/service-delivery verification agent#165nutstrut wants to merge 1 commit into
nutstrut wants to merge 1 commit into
Conversation
Adds a deterministic Mesh agent that evaluates structured execution/ service-delivery evidence (optionally alongside x402 settlement context, treated as unverified supporting context) and returns a PASS / FAIL / INDETERMINATE receipt with reason codes and a recomputable digest-based integrity value. The agent never holds funds, custody, or execution/ release authority, and never claims payment settlement finality or a cryptographic signature. - mesh/agents/sar402_verification_agent.py: the Mesh agent - mesh/agents/sar402_verify_tool.py: the verify_settlement_evidence tool - mesh/tests/test_sar402_verification_agent.py: 11-case unittest smoke test (discovery, instantiation, deterministic PASS/FAIL/INDETERMINATE, fail-closed on malformed/missing input, unsupported-tool bounding, mocked query dispatch) - mesh/tests/sar402_fixtures/*.json: 5 fixtures used by the smoke test - sar402_verify_tmp/: small, self-contained, vendored copy of the SAR-402 reference implementation's evidence-normalization, receipt- construction, and schema/authority-validation logic, so the agent and its tool have zero dependency on any external repository at runtime 11 passed, 0 failed in this checkout (Python 3.10.12, pytest 9.1.0).
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.
Adds a deterministic Mesh agent that evaluates structured execution/service-delivery evidence (optionally with x402 settlement context as unverified supporting input) and returns a PASS/FAIL/INDETERMINATE receipt with reason codes and a recomputable digest-based integrity value. Never holds funds, custody, or execution/release authority; never claims payment settlement finality or a cryptographic signature.
Includes
mesh/agents/sar402_verification_agent.py,mesh/agents/sar402_verify_tool.py, an 11-case unittest smoke test undermesh/tests/, and a small self-containedsar402_verify_tmp/package (vendored, not published elsewhere) providing the evidence-normalization/receipt/validation logic so the agent has zero external runtime dependency.Tested:
pytest mesh/tests/test_sar402_verification_agent.py— 11 passed, 0 failed against this repo's HEAD (e01150af...).