aigentsy-mcp
v1.4.0MCP server for the AiGentsy Settlement Protocol — proof, verification, exactly-once settlement, acceptance gating, and the Settlement Signal Beacon for…
Build your agent anywhere. Before its output moves money or changes a system, route the *proposed consequence* through mandate, evidence, policy acceptance, and exact authorization. AiGentsy returns a portable ProofPack that verifies independently; your systems execute. AiGentsy does not custody your compute, credentials, artifacts, documents, or funds, and does not independently prove real-world truth. This public repository holds the protocol surface: specs, conformance tests, the offline verifier, and the published SDKs. The hosted runtime is not in this repository.
Summary extracted from the README.
AiGentsy Protocol
AiGentsy is the Consequence Layer for autonomous work — the acceptance gate between autonomous work and real-world consequence.
Build your agent anywhere. Before its output moves money or changes a system, route the proposed consequence through mandate, evidence, policy acceptance, and exact authorization. AiGentsy returns a portable ProofPack that verifies independently; your systems execute. AiGentsy does not custody your compute, credentials, artifacts, documents, or funds, and does not independently prove real-world truth.
This public repository holds the protocol surface: specs, conformance tests, the offline verifier, and the published SDKs. The hosted runtime is not in this repository.
What this is
When an agent proposes a consequential action, something has to decide whether it was allowed — before the action reaches the outside world. That is the acceptance gate, and it runs in a fixed order: mandate before work, evidence before acceptance, acceptance before consequence, exact authorization before your systems execute.
The four public primitives are Recall (reuse of prior attested work), Accept (the policy decision), Proof (the portable ProofPack that carries the trail), and Settlement (recorded only when value actually moves). Outcome recording and later reconciliation are distinct steps on that same trail, and Settlement Memory is a read-only projection of it — not a separate ledger.
Commerce is one application domain, not the definition. Payout is a single reference consequence adapter; the gate is equally valid when the consequence is a deploy, a document release, or a state change. AiGentsy is non-custodial throughout: your systems execute, and AiGentsy never holds your compute, credentials, artifacts, documents, or funds.
This repository is the public protocol surface. The hosted runtime is a separate, private service and its source is not distributed here.
Quick start
Verify a proof offline:
pip install aigentsy-verify
Run the end-to-end demo against the production runtime:
pip install httpx aigentsy-verify
python examples/hello_e2e.py
Contents
protocol/- protocol specifications (10 graph specs) and primitive reference implementations (30 files)sdk/- Python client, JavaScript client, and standalone offline verifier. Python SDK source mirror —aigentsy1.17.2: source atsdk/aigentsy/(seesdk/MIRROR_PROVENANCE.md), published at PyPIaigentsy1.17.2, with the canonical consequence lifecycle example.adapters/- integrations for LangChain, LangGraph, LlamaIndex, AutoGen, CrewAI, OpenAI, Vercel AI, and MCPaigentsy-langgraph/- LangGraph-native nodeshoverstack/- Recall compute-amortization methodology, CUDA runbook, and one self-contained benchmark (directory name predates the public Recall name and is preserved)tests/conformance/- portable conformance tests and settlement vectorsdata/- CUDA-validated benchmark result JSONs and conformance vectorsexamples/hello_e2e.py- single-command end-to-end settlement demo- Gate and prove in one wrapper — wrap an action so AiGentsy evaluates the gate, exports the ProofPack, verifies the evidence honestly, and executes only if allowed.
- Mandate semantics (as-built) — the existing deal-flow mandate and programmable-policy behavior, with authority boundaries documented as built;
mandate_idis caller-attributed and implies no verified organization or legal delegation. - Canonical consequence lifecycle example — Python SDK
aigentsy==1.17.2; a non-paymentdeploy_releaseexample with an enterprise-owned callback and signing key: signed outcome, later reconciliation, and read-only Settlement Memory, with no AiGentsy custody. - Enterprise security and diligence — public architecture, authority, non-custody, threat-model, control matrix, and evidence index consolidating source-backed evidence for the shipped Consequence Layer.
Results
All headline claims are backed by JSON artifacts in data/.
- v1.3 paraphrased recall and governance:
hoverstack_v13_results_reference.json - v1.4 proof-bundle reuse across agents (32.35% hit rate):
proof_reuse_conformance_vectors.json - v1.5 Wave 1 negative cache and pre-approval:
v15_wave1_results.json - v1.5 Wave 2 mandate-driven routing and budget enforcement:
v15_wave2_results.json - v1.5 Wave 3 delta-savings curve:
delta_savings_curve.json - v1.6 delta-within-reuse (94.1% prefix alignment, PASS):
v16_delta_reuse_results.json - v1.7 ProofPack Reuse (GH200: ~78% wall-clock reduction on mixed_composition multi-agent workload; A100: ~59% on exact_reuse; ablation-confirmed):
V17_MULTIAGENT_FINAL_ANALYSIS.md
What's new in v1.7
ProofPack Reuse, the reuse mechanism inside Recall, is now the benchmark-proven v1.7 mechanism. The GH200 multi-agent mixed_composition benchmark showed 77.8% wall-clock reduction at 100-agent scale (2,456 baseline full-compute requests reduced to 576, with 1,880 prior-artifact zero-compute decisions). Separate A100 Negative Compute exact-reuse benchmarks showed approximately 59% wall-clock reduction across CUDA tensor and Qwen2.5-7B LLM inference runs. Ablation evidence confirmed all measured gain came from this mechanism alone. These benchmarks are not parameter-identical and should be cited separately.
Other v1.7 mechanisms (EconomicGate, NegativeComputePolicy, WorkflowExecutor, Shape Memory Decay) are implemented and unit-tested but require different workload conditions for benchmark activation.
Where a consequence does move value, the reference payout adapter routes it through Stripe Connect; RFC 3161 timestamp anchoring uses freetsa.org. No blockchain and no fund custody — AiGentsy records and gates, existing payment rails move the money.
Integration
Serious deployment partners integrate via one of the adapters in adapters/ or via the Python client in sdk/aigentsy/. The adapters call the AiGentsy production runtime over HTTP and return cryptographic proof bundles that can be verified offline with the standalone SDK.
The full benchmark runtime is in a private repo. Deployment partners who want to reproduce internal benchmarks on their own workloads can contact us directly to arrange access.
License
Apache 2.0. See LICENSE.