KAMANU

What is your agent's spending limit really worth?

KAMANU measures the limit, proves what can be proved, and says which is which. Below is a real result, on our own best design. It passes one test and fails another.

Record: a cap of 100 on the engine our proof covers. Two payments may be in flight; one call may fail.
The limit100
The most that can be spent100Proved (MODEL_PROVEN), for any number of requests. The cap cannot be overspent.
The most that can be stranded100Counterexample (REFUTED), six steps. A payment that fits can be refused.
StepWhat happensHeldSpentIn doubt
1The agent asks to pay 60000
2The agent asks to pay another 60000
3The first payment is allowed6000
4The first call fails0060
5The provider confirms nothing was paid000
6The second payment is refused, with nothing held, spent or in doubt000

Struck on 26 November 2026 with kamanu assay, KAMANU 0.1.0. The engine's constants are stated by its profile, not measured, and the record says so. Signed with Ed25519. Check this record yourself.

What you get

  • The most that can really be spent under your limit, next to the limit.
  • The most budget that can be stranded when a payment that fits is refused.
  • The shortest sequence of events that produces each number, which your engineers can replay.
  • A fix, and the reason it holds. For the designs in our kernel, that reason is a machine-checked proof.
  • A signed record that says how each part was established, and can be checked again later, without us.

Every claim carries one of seven levels, and a result is only as strong as its weakest link.

LevelWhat it says
MODEL_PROVENEvery step from the kernel to the checked machine is proved in Lean.
EXHAUSTIVE_FINITE_PASSEvery reachable state was visited. One link is tested, not proved.
BOUNDED_PASSIt passed within stated bounds, and says nothing beyond them.
TESTEDA live run or a replay passed.
ASSUMEDIt passed, and something it rests on is a default or a reading of documents.
REFUTEDA counterexample stands.
UNKNOWNNot decided.

Try it in a minute

The record above, computed on your own machine. Python 3.11 or later; nothing is uploaded, and nothing here needs an account.

git clone https://github.com/nkamoah17/kamanu.git kamanu-src
cd kamanu-src
pip install .
kamanu scan fixtures/dogwood/PReqBasis.dw \
    --engine demo/assay/proved-cell.json --cap 100

It prints the ceiling beside the limit, the stranded budget, the six-step trace, and on its last line how many of the engine's constants it had to assume. It exits 1, because one check fails. Run it on your own policy, or read a card issuer's spending_limits the way its documents write them:

kamanu lint examples/controls.yaml --frontend issuing --engine reference

A daily limit is checked as a sliding 24-hour window, and the answer says what the calendar reading, a reset at midnight UTC, could change: up to twice the amount across one boundary.

The same check runs on every pull request with the GitHub Action: uses: nkamoah17/kamanu@v0.1.

Add it to your agent

Three MCP servers, listed in the MCP Registry, run from PyPI with uv. Nothing to clone.

  • kamanu-lint: does this spending-limit policy hold? The verdict, the shortest failing trace and a fix.
  • kamanu-coach: may I make this payment, how much fits now, and when will the full amount fit?
  • kamanu: verify a policy against an engine, compare engines, explain a verdict.

Claude Code:

claude mcp add kamanu-lint -- uvx kamanu mcp lint
claude mcp add kamanu-coach -- uvx kamanu mcp coach
claude mcp add kamanu -- uvx kamanu mcp serve

Claude Desktop, Cursor, VS Code or any client with an mcpServers file:

{
  "mcpServers": {
    "kamanu-lint":  { "command": "uvx", "args": ["kamanu", "mcp", "lint"] },
    "kamanu-coach": { "command": "uvx", "args": ["kamanu", "mcp", "coach"] },
    "kamanu":       { "command": "uvx", "args": ["kamanu", "mcp", "serve"] }
  }
}

Without uv: pip install kamanu, then use "command": "kamanu" with the same arguments. More in docs/mcp.md.

How a limit is measured

We run a fixed battery on one authorization path, in your sandbox or test mode. Each test runs 99 times. That catches a race that happens 3 times in 100 or more, 95 times out of 100. A rarer race can still be there, and the report says so.

  • Single asks at, below and above the limit.
  • Parallel asks, at several spacings, and several cards under one agent or cardholder.
  • Authorization, partial capture and reversal, including captures above the hold.
  • Ambiguous failure. A time-out and a retry, where the provider fails after the money has moved, or before, or does not answer.
  • Reset, expiry and overlapping limits. What happens at the edge of each window.

The report keeps three parts apart. Model: what can happen under the stated assumptions. Measurement: what happened in the tested environment, with trial counts. Deployment: what connects the tested configuration to the live one.

Three payment rails were measured this way on test networks on 24 and 25 November 2026, and each limit held in every test. Each is named here when its owner has seen the result and agreed.

Verify it yourself

You do not have to take our word for the proofs. Clone the repository and run one script.

git clone https://github.com/nkamoah17/kamanu.git kamanu-src
cd kamanu-src
bash verify.sh

It builds the Lean proofs from clean, rejects any gap and any axiom beyond Lean's three standard ones, replays them with Lean's own checker, and has three outside checkers read an export. The theorems are listed in plain words.

And the record, offline, with the package or with node alone:

kamanu assay --verify registry/h/b271f39d07877083.json \
    --key registry/registry.pub --recompute
node registry/kamanu-verify.cjs registry/h/b271f39d07877083.html \
    "$(cat registry/registry.pub)"

The registry's public key is 7fae4269ca9e431336a566f036d10f8cc2e6702c03af12fbccef3264dd926eab. A record signed with any other key is not one of ours. Anyone can sign a record of their own with the same software and their own key; only this key says KAMANU struck it.

Get a check

StepWhat you receive
ScanRun kamanu scan on your own limits, free. The model's answer, a receipt in a directory on your disk, and the list of engine constants it had to assume. Nothing leaves your machine.
Documented checkOne page on your limit, built only from your public documents: the limit as they state it, what the model predicts, every constant marked ASSUMED. Free, and sent to you privately, with a week to correct facts.
Authorization Assurance SprintThe battery above on one programme, one limit configuration, one authorization path and one sandbox, in three working days: what your path let through that did not fit, what it refused that did, the shortest trace and a regression test for each, and a signed receipt per limit that your bank partner or enterprise buyer can check without us. A one-hour readout. If it passes, the result is yours to publish.

We never ask for production credentials or live funds. If the result on the path we agree comes back UNKNOWN, you pay nothing for it.

Tell us about the limit you want checked: a link to the page that describes it, the processor or engine underneath it, and whether you have a sandbox.

Get in touch

What this is not

  • It is not a certificate. We do not use the words "certified" or "safe".
  • It is not runtime enforcement. KAMANU never holds or moves money.
  • It is not a statement about your system unless it was measured there. A proof is about a model, and it reaches a real system only through the hypotheses printed beside it.

House rules

  • The owner of a system sees a result about it first, and has 30 days before anything is public.
  • A fee never changes a verdict or its timing.
  • Every public number carries its level and its hypotheses.
  • We test only in our own accounts and sandboxes, or with written permission.
  • Passes are published as readily as failures.

To report a problem with a proof, a record or the tools: security and disclosure.