Skip to content

feat(mesh): add SAR-402 execution/service-delivery verification agent - #165

Open
nutstrut wants to merge 1 commit into
heurist-network:mainfrom
nutstrut:add-sar402-verification-agent
Open

feat(mesh): add SAR-402 execution/service-delivery verification agent#165
nutstrut wants to merge 1 commit into
heurist-network:mainfrom
nutstrut:add-sar402-verification-agent

Conversation

@nutstrut

Copy link
Copy Markdown

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 under mesh/tests/, and a small self-contained sar402_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...).

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).
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