Research, checked by machines

Proof, not promises.

When an agent can spend your money or show your ID, "we tested it" isn't enough. We wrote the limits down as maths and had machines check them. Here's what holds, how we know, and what's still open.

A signed note, not the house key.

Grantlive
May spendup to $1501
Where3 named shops
Untiltonight, 11:59 pm
Holderagent key 7f3a…c12
Revokeany time, by you4
signed by you
Agent · $150Helper · $60Helper’s helper · $203
1

It states exactly what’s allowed

An amount, a list of shops and an expiry. You sign it, and nothing outside it is on offer.

2

Every request is signed by the holder

The agent proves it holds the key the grant names, each time it asks. A stolen copy of the grant is useless on its own.

3

Delegation only narrows

An agent can pass part of its job to another agent, with a smaller grant. It can never pass on more than it has.

4

You can revoke it

After a verifier applies an authenticated revocation, it rejects that grant and its descendants. This assumes honest verifier state; it does not prove instant delivery to every shop.

Test the limit. See what gets refused.

This grant is good for $150, and a helper agent holds a $60 share of it. Try to spend more than was signed for.

An interactive illustration. The checks on the real implementation are listed below.

Signed grant{{noteState}}
${{spent}}of $150 paid out
helper share: ${{helper}} of $60limit $150
{{r.what}}{{r.res}}

Eleven theorems. Each one proved.

Every theorem states its assumptions, gives a proof and names the evidence that re-checks it. Each is listed with what it means in plain terms.

01

Monotone attenuation

When an agent passes work to another agent, the second can never do more than the first. Caps and budgets can shrink. They cannot grow.

02

Grant unforgeability

Nobody without your key can create a grant on your account. A self-issued grant is rejected.

03

Chain integrity

Links in a delegation chain cannot be spliced in, dropped or altered without the signatures failing.

04

Proof of possession

Holding a copy of the grant is not enough. Each request must be signed by the agent it was issued to.

05

Replay resistance

Each signed request is accepted once, and only by the party it names. Winding the clock back doesn't revive an old one.

06

Intent integrity

The action, amount, payee and audience are fixed by the signature. Large amounts need your own approval of that exact request.

07

Bounded loss

The total spent through any link never exceeds its budget, under any interleaving of concurrent requests.

08

Fail closed

A rejected request has no side effects. Malformed input is refused before anything is recorded.

09

Selective disclosure

An agent can prove one identity fact, such as being over 18, without revealing the rest. Disclosure is off unless you allow it.

10

Revocation and tamper evidence

You can revoke a grant at once. Receipts are signed and chained, so an altered or shortened log is detected.

11

Team bound

Hundreds of agents working under one grant still cannot spend past it. Checked with 200 and with 1,000 agents.

Then it was pushed further. One limit across many merchants.

A second stage proves a single limit holds when many agents spend at many independent merchants at once, even with stolen agent keys.

1,000 agents8 merchants, one flaggedone limit, paid exactly
One global limit
Everything paid, everywhere, stays within what you signed. The limit is reachable, so it isn’t met by refusing everything.
No double spend
Each request is paid at most once, at the one merchant it names.
Sound delegation
Every paid receipt traces to your signature through an unbroken chain.
Tamper detection
A merchant that drops, alters or forks its log is named, and the honest ones still get paid.
Refund safety
Money stranded by a failed request comes back, and can’t be claimed twice.
Member eviction
A cheating member can be removed without breaking the limit.

How it was checked. Six different ways.

None of the provers is ours. Tamarin, Lean 4 and Z3 are free, open-source tools from universities and research labs, and anyone can download them.

TamarinA symbolic protocol prover. The witness model checks unbounded sessions with at most one of four pinned witness keys compromised and three signatures required.11 of 11 properties of the witness model verified.
The RACE and NOMAP control variants fail. This witness-model result is separate from the eleven Stage 1 theorems and does not verify the entire runtime.
Lean 4A proof assistant. Every step of the argument has to be accepted by the machine.The abstract escrow model keeps total spend within its budget, for any number of members.
The Lean file has no sorry placeholders. Its model assumptions and implementation correspondence still matter.
Z3A solver for the arithmetic: time windows, replay caches, budget sums.The listed arithmetic lemmas hold in their encoded models.
Model checkerRuns every possible sequence of attack moves against the real verifier, up to a set depth.No invariant violations in 17,760 bounded sequences.
Stage 1 uses budgets 0–3 and depth 3; the reported deeper run has 177,760 sequences. The separate escrow model reports 4.8 million states. These counts are coverage bounds, not independent replications.
Scale run1,000 agents send 100,000 requests to 8 shops sharing one pool of money.Paid out exactly the limit. 0 replays accepted.
In this recorded workload, the cheating shop was flagged and the verifiers rejected grants after applying revocation.
Attack testsForged links, forged requests and replays thrown at the real code under load.About 1,900 forgeries a run, none accepted.

Checks in the research package.

The commands below describe our internal checks. A public reproduction package has not been released; this display is an illustration, not a live verification receipt.

$ ./verify_all.sh
✓ attack tests on the real code
✓ Z3 lemmas
✓ model check, 17,760 sequences
✓ Tamarin, 11 of 11
✓ Lean 4 escrow proof
REPORTED INTERNAL CHECKS▍

What this doesn't claim

  • It's a research prototype. It is not inside primitive pass yet.
  • The proofs cover a model and a reference build, under stated assumptions: standard cryptography holds, your own key stays safe, and most witnesses are honest.
  • They establish the named safety properties within those models. They do not verify the whole runtime, physical or commercial outcomes, or that every request is served.
  • An independent cryptographic review is still to come. We'll say when it's happened.

More maths from the lab.

A verified result, a locked spec and an open question aren't the same thing, so each one carries its real status.

Verified reference

Exact search

A search method that hands back a certificate with its answer, so you can check the answer is exact.

340,378
assertions passed, 0 failed, re-run 28 Oct 2026
Locked spec

Decision maths

A fixed set of axioms for weighing options when you can only see part of the picture. It feeds the decision engine in primitive os.

Version 2.0.0. A specification, not a proof.
Proposal

The relational spine

The maths behind how primitive os organises what it knows. It ships with worked examples that a script re-checks.

15
finite witnesses, each re-run by test
Research

Community Credit

A settlement protocol for a non-profit mutual-credit network, written in TLA+ and checked with TLC and TLAPS.

Several checks failed first. Those failures changed the design.
Beta · November 2026

New results, limits included.

Tested on CPU ·

Same graph costs. Less repeated work.

We compared search, memory and compression on controlled workloads. Reusing work across graph queries helped. A learned puzzle solver explored fewer states and still took longer.

How we checked it ↗
98 puzzles solved and checked, alongside 43,296 graph-cost comparisons against exact references.
Reported, replay pending

Linked retrieval

A small open model answers more questions when the passages it reads are linked to each other. Its weights are untouched.

97 / 128against 86 with ordinary retrieval. Reading everything scores 101, and takes about twice the compute time.
Exact arithmetic

Getting back what compression drops

A projection that throws information away, and the small tag that recovers it exactly, worked out on Fibonacci and Lucas numbers.

5values in the tag. Checked on all 120 states by hand-written derivation, not yet by a proof checker.
Tested in a model

Fewer readings

Choosing each measurement from the last answer rebuilds every state with fewer readings.

18%fewer readings across all 81 states. A simpler direct method is still the one to beat.
Didn’t pass

What we dropped

A learned controller lifted its coverage from 17% to 94%, then lost to a plain rule that did as well and ran faster. It stays switched off.

17 → 94%and still not enough. Plain baselines also won our prime-search speed tests.

What held up in the benchmark

Search. On 96 held-out graphs, the batch policy matched the reference shortest-path costs and cut adjacency scans by 79% overall. Its timed search took 59.5 ms versus 348.1 ms for ordinary A*. The timings include each method’s own setup but exclude shared precomputation and method selection. Dense grids needed more scans.

Learning. A learned tie-breaker explored 7.9% fewer states and took 2.66 times as long as the same solver without it. All 62 eight-puzzle solutions matched the exact oracle. The total also includes 24 fifteen-puzzles and 12 independently checked unique Sudokus.

Memory. Halving a lookup table from 12 MB to 6 MB preserved the answers. Query time increased from 0.739 ms to 1.607 ms for the same 250,000 lookups.

Compression. Five-trit packing used 209,725 bytes compared with 264,461 for zstd on about 1 MiB of uniform ternary data. Standard codecs were smaller on repeated inputs. All 88 codec configurations decoded byte for byte.

Scope. Controlled research benchmarks on one AMD EPYC CPU environment. GPU throughput, product performance and production workloads are separate questions.

New to proofs?

Start with "Machine-checked proofs: what they establish and what they don't".

Read the guide
© 2026 Primitive AI Labs Pty LtdHomeLabLearnPrivacyTerms