Mandata The Mandate Format (MMF)

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.

Apache-2.0 Spec: MMF-v0.3.24 (frozen) Independently conformance-tested
mandate.json · signed at issuance
{
  "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]
110decision vectors
5credential-gate verdicts
2independent audits published
Ed25519hash-chained evidence
0model calls in the gate path

The problem it solves

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.

Agent forms intent"the user wants to buy X". Probabilistic, fallible, compromisable.
→
MANDATA GATEChecks the bounds, records the proof. Deterministic, no model.
→
Payment rail settlesAP2, x402, card networks, banks. Real and irreversible.

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.

Who it is for

AI agent builders

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.

Payment platforms

Facilitators and PSPs verify mandates rail-side: a second enforcement layer that can refuse even when a merchant gate is bypassed.

Enterprises

Issue mandates like budgets: per agent, per team, per counterparty set, with a tamper-evident audit trail compliance teams can replay.

Escrow and fintech

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.

Plugs in where agents already work

LangChain

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.

x402

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.

AP2

CartMandates and PaymentMandates gate directly: enforce the cart, then bind the payment instruction to the approved decision. Watch it run.

MCP

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.

Start here in 60 seconds

1 · Install the gate

Pick your language. The TypeScript port is byte-identical.

pip install mandatanpm i @ashedrack/mandata

2 · See it decide

Clone 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.py

3 · Verify independently

Replay the frozen 110-vector corpus yourself, from inside the cloned repo.

python tools/verify_independent.py --all

What it is

Signed mandates

Amount bounds, counterparties, periods and delegation depth are declared and signed at issuance, not inferred at runtime.

Deterministic gate

A fixed, ordered check sequence evaluates every proposed transaction. No model, no prompts: the compromise surface is code, not context.

Hash-chained evidence

Every decision, including denials, is recorded in a hash-chained evidence log a third party can recompute independently.

Research lineage

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.

Stage 1 · The survey

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.

Stage 2 · The format

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.

Stage 3 · Academic validation

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.

Stage 4 · Engineering validation

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.

Conformance

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

Third-party verification

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

Cite