Bounded, verifiable spending authority for agent-initiated payments.
AI agents can already call payment APIs. What is missing is a standard, machine-verifiable way to say how much, to whom, under what conditions, and for how long. MMF is a signed artifact that bounds an agent's spending authority, evaluated deterministically before any payment rail is invoked.
{
"mandate_id": "mnd_7f3a…c9e1",
"principal": "user:alice",
"agent": "agent:shopping-bot",
"issued_at": 1765000000,
"revoked": false,
"bounds": {
"max_amount": 50000, // £500.00
"currency": "GBP",
"allowed_payees": ["tesco.com"],
"expires_in_days": 30,
"velocity_limit": 3
},
"signature": "ed25519:kQ9x…"
}
# same mandate, three transactions ALLOWED tesco.com £ 49.99 [WITHIN] REJECTED tesco.com £600.00 [BOUNDS: over max] REJECTED evil.example £ 10.00 [PAYEE: not allowed]
AI agents can already move money. AP2, x402, Visa Intelligent Commerce and Mastercard Agent Pay all shipped within the last year: agents no longer just recommend, they initiate and settle payments. But when an agent can pay, the authority behind it is still a prompt and a hope. There is no standard artifact that says how much, to whom, under what conditions, and for how long, no deterministic check before money moves, and no provable record afterward.
The gate sits between the layers, owned by neither. Inside the agent it could be skipped; inside the rail it checks too late. When a compromised agent proposes a payment that breaks the bounds, the gate rejects it, records the rejection, and the transaction never reaches the rail.
Embed the gate before the agent's payment path. Shopping, travel, procurement and treasury agents get hard spending bounds in a few lines of code.
Facilitators and PSPs verify mandates rail-side: a second enforcement layer that can refuse even when a merchant gate is bypassed.
Issue mandates like budgets: per agent, per team, per counterparty set, with a tamper-evident audit trail compliance teams can replay.
The claim and settle lifecycle maps onto authorize and capture flows, so escrow orchestration gains signed, bounded authority.
Ordinary users never see it and are protected by it anyway: the spending limit they approve becomes a signed artifact an agent cannot exceed, the same way TLS protects people who never think about TLS.
guard(mandate, tool) wraps any payment tool. On denial the tool is never invoked and the rejection lands in the evidence chain. Watch it run.
Payment requirements become mandates; bind_payment refuses to release a signed payload whose payee or amount differs from what the gate approved. Watch it run.
CartMandates and PaymentMandates gate directly: enforce the cart, then bind the payment instruction to the approved decision. Watch it run.
The gate as an MCP server: issue, enforce, claim, settle, void, revoke, verify. Any MCP-capable agent gets bounded authority as tools. Watch it run.
Pick your language. The TypeScript port is byte-identical.
pip install mandatanpm i @ashedrack/mandataClone the repo and run the demo: three transactions, one allowed, two rejected, plus the evidence chain.
git clone https://github.com/mandataformat/mandatacd mandata && python examples/basic_usage.pyReplay the frozen 110-vector corpus yourself, from inside the cloned repo.
python tools/verify_independent.py --allAmount bounds, counterparties, periods and delegation depth are declared and signed at issuance, not inferred at runtime.
A fixed, ordered check sequence evaluates every proposed transaction. No model, no prompts: the compromise surface is code, not context.
Every decision, including denials, is recorded in a hash-chained evidence log a third party can recompute independently.
MMF is the engineering output of a research program. It began with a systematic study of how agent-initiated payments fail, produced a published format, and was then verified externally: academically first, adversarially after.
A systematic review of agentic-AI payment architectures and their safeguards identified the missing primitive: no standard, machine-verifiable artifact for bounded spending authority. Electronics (MDPI), in press. Preprint doi:10.20944/preprints202611.2539.v1.
The survey's gap became a specification: a signed mandate, a deterministic gate, a hash-chained evidence log. Described in the MMF paper: doi:10.13140/RG.2.2.29395.34083, archived at Zenodo.
Prof. Vasile Palade (Professor of Artificial Intelligence and Data Science, Coventry University) co-authored the survey and gave this research direction its first external validation before any production code shipped.
Then implementers took over: a production payment gate ran the corpus and published the audit, an independent reviewer recomputed every hash and signature, and a second implementation now reproduces all 110 vectors byte-identically.
Shedrack Chiedozie Aji, creator and maintainer, Doztra Ltd. First author of the MMF paper and the survey. ORCID 0009-0007-0823-2112
Prof. Vasile Palade, Professor of Artificial Intelligence and Data Science, Centre for Computational Science and Mathematical Modelling, Coventry University; formerly University of Oxford; IEEE Senior Member; 250+ publications. Survey co-author; provided the first external review of the Mandata research direction. ORCID 0000-0002-6768-8394
Ongoing work. Post-quantum delegation and credentials for agentic financial systems. Preprint doi:10.13140/RG.2.2.25479.64162; clamp semantics merged into the v0.4 line after a second independent conformance run.
The corpus is frozen and verifiable by anyone: 110 JSON decision vectors + 5 credential-gate verdicts across core, delegation, lifecycle, credential and evidence files, plus golden evidence hashes.
git clone https://github.com/mandataformat/mandata cd mandata && python tools/verify_independent.py --all
Mandata is designed to be checked, not trusted. Independent parties have already run the corpus:
Independent conformance audit. A second production payment gate ran the full 92-vector frozen corpus and published the divergences found, including the byte-level KC01 signature check and regenerated evidence hashes. Spread, AgentBadge engineering blog
Independent evidence-hash checks. A community reviewer wrote his own canonicalizer from the spec text and recomputed every golden payload, hash chain and Ed25519 signature, plus mutation checks that caught a real coverage gap (now vector D19). mandataformat/mandata#33