Control Case 2.0
Version 1.0 asked whether a scoped approval stops a disallowed agent action. On its own eight tests, it did. Version 2.0 attacks the boundary itself, then shows which controls close each gap without blocking permitted work.
Headline results
Why we built it
Three policies decide the same inputs: no boundary, the v1 scoped approval check, and a hardened boundary. Every number below is generated by the harness you can download, and a test fails if the published record drifts from a fresh run.
Fixtures
24 attacks, 4 permitted actions, three policies
Each row is one fixture with the correct decision set before any policy ran. Red marks an attack that got through. Amber marks permitted work that was wrongly blocked. Select a row to see the inputs, every reason code and the trace.
Loading the result record.
Study 2 · Racing requests
A correct check, called at the wrong moment
Three identical requests arrive at once for one single-use approval. The harness tries every order in which their steps can interleave. When the check and the record of use are separate steps, two or three requests slip through in most orders.
Study 3 · Crash and retry
What a retry does after a crash
The process crashes at different points and the client retries once. Acting before recording can send the report twice. Reserving first never sends it twice, and an unfinished reservation is held for a person to reconcile.
Study 4 · Differential fuzzing
Fuzzing
Starting from a valid approved action, a seeded generator makes random changes. Some alter what is authorized, so the right answer is deny. Some only change the form, so the right answer is still allow. Every allow from the hardened boundary is then rechecked by an independent restatement of its rules.
How the hardened boundary decides
Fourteen checks, in order
The v1 check covered five of these: the permitted baseline, actor, scope, time window and revocation. The other nine are new in 2.0.
- SessionThe actor comes from authentication, never from the proposal.
- Tool registryUnknown tools are held until someone describes their effect.
- Canonical targetTargets are read the way the tool reads them. Encodings, hidden characters and dot segments are refused.
- Permitted baselineRoutine work, such as reading the public library, needs no approval.
- SignatureEd25519 over the approval's canonical form. Any edit after signing breaks it.
- IssuerThe key must be trusted, unrevoked and hold the approver role.
- Separation of dutiesOnly people approve. An agent never signs for itself or another agent.
- Actor and delegationThe approval names this actor, or explicitly delegates to it.
- ScopeThe exact tool and canonical target.
- ArgumentsA digest of the exact arguments is signed, so nothing can be added or swapped.
- Time windowCurrent, with 30 seconds of tolerance for the approver's clock.
- RevocationChecked against the revocation list, not a flag on the record.
- LimitsPer-use amount caps.
- Atomic ledgerUses and running budgets are checked and recorded in one step, and saved before acting.
New in 2.0 Highlighted checks were added in 2.0. In v1, revocation was a flag on the approval record; it is now a separate list.
Gaps and limits
What a better approval check cannot fix
Two fixtures still fail under the hardened boundary. Both are approved actions whose meaning changed after approval. They need a control where the tool acts or on the content itself.
Before you rely on these results
Reproduce
One file, no dependencies
The harness runs on Node.js 18 or later and makes no network calls. Its output is deterministic, so your record should match ours byte for byte. Change the fuzz seed or case count to explore further.
# the readable trace
node harness.mjs
# the full evidence record, as published
node harness.mjs --json > results.json
# more fuzzing, or a different seed
node harness.mjs --fuzz 100000 --seed 7
Run it yourself
We run this kind of campaign against real approval flows, tool adapters and ledgers, then map each finding to an owner and a control.