Kar-Tally tells you whether an AI agent really stayed within its budget: it recomputes every balance in the agent's spend ledger from the cap down, to the cent, and names each balance that does not add up, each missing or repeated entry and each point where the cap was exceeded. It runs entirely in this page: nothing you paste is sent anywhere, and no AI judges anything.
Below the tool: how it works · words on this page · blueprint · roll it out · for a business · FAQ
An AI agent (or any automated system) is given a spending cap and a log of actions it took, each with a cost and a running balance it claims to have left. kar-tally recomputes that log from scratch — cap minus cumulative cost, step by step — and reports whether the claimed numbers are actually consistent with the raw entries, whether the sequence has any gaps or duplicates, and whether the cap was ever exceeded at any point, even if a later entry's claimed balance was edited to hide it.
There is no model in the loop. The verdict is pure arithmetic and comparison over the numbers you give it — anyone can take the same entries and cap, redo the same three checks by hand, and get the identical PASS/FAIL. That's the whole proof.
| # | seq | actor | action | cost | claimed bal. | recomputed | ok |
|---|
Runs six known ledgers — one clean, five deliberately tampered in different ways — through
the exact same verifyLedger() function above, and checks that each one is judged the way it honestly
should be. This is the end-to-end proof that the auditor actually catches what it claims to catch.
kernel.mjs (the file the tests run) and into the script, so all three are the same code.kernel.mjs.if (count > 0) into if (count >= 0), then runs the tests. Every change must make a test fail. A change no test notices has survived: it would mean no test checks what happens at that exact point. A change reviewed as equivalent cannot alter any result (both versions give the same answer for every input), and the reason is written down and checked.build.mjs copies it byte for byte into kernel.mjs (which the tests and the mutation gate run) and into scripts/kar-tally.mjs (the one-file agent skill). CI fails if the three ever differ, so the page you use, the code that is proven and the script an agent runs are the same code.kernel.test.mjs tests the kernel; skill.test.mjs runs the shipped script on its own, the way an agent platform runs it, against the expected outputs in examples/.< becomes <=, an && becomes ||) and re-runs the tests. Every change must make a test fail: that proves the tests check each of those points, rather than just running the code (see Mutation gate in Words on this page). From receipts/witness.json: reading the receipt…checkcase.mjs, tested and mutation-gated in the same way as the kernel, in its own CI job. It uses only published figures (the UK median wage and UK inflation), each linked under the table.node scripts/kar-tally.mjs ledger.json in CI or a script (Node.js 20 or later, no dependencies). Exit code 0 means PASS, 1 means FAIL, 2 means the input could not be used (a cap that is not a number, for example). An AI agent can run the same script as a skill.Kar-Tally turns a check that is usually done by eye, or not at all, into a verdict anyone can recompute: the same input gives the same answer and the same SHA-256 receipt on any machine, with no AI judging it.
What the checking costs today against running the tool. Staff time is at the UK median hourly wage with on-costs left out, so this is a floor; later years rise with UK inflation (CPI). Change any box to your own numbers and the table recalculates as you type.
How it is worked out. Today: checks a year (per week × 52) × minutes per check × the median hourly wage, plus anything you pay for a tool now. With the tool: the share it replaces takes the seconds you enter instead of the minutes, and the rest is still checked by hand. Each later year rises by one more year of inflation.
| year | checking by hand | with Kar-Tally | saved |
|---|
Supplied by AI Native Solutions; start through that site. Support, any service level, warranty and liability are agreed per deployment, in each deployment's agreement. The software is MIT and keeps running without us.
A check that anyone can recompute replaces a check that has to be trusted, at no licence cost, without sending your data anywhere. Its logic is the code on this page, and its tests are themselves tested.
scripts/kar-tally.mjs), usable as an agent skill before it reports what it spent.{"cap": 500, "startSeq": 1, "entries": [{"seq": 1, "actor": "agent-1", "action": "api_call:search", "cost": 40.00, "balance": 460.00}, {"seq": 2, "actor": "agent-1", "action": "api_call:generate", "cost": 75.50, "balance": 384.50}]}. The Load buttons above fill in four ready-made ones. If your log is a CSV or uses other field names, map it to this shape first.node --version shows which one you have): download scripts/kar-tally.mjs (one file, no dependencies, no npm install) and run it with no arguments to see how to call it.