bitproof
Write an agent capability policy. Your browser proves it with a SAT solver, compiles it to a tiny WebAssembly guard, checks every instruction, and then the same guard runs at the edge. No server-side magic in steps 1–3; view source.
1. Policy
One rule per line: name: bits. A request is blocked when all listed capability bits are set. Bits: 0 read_secret · 1 net_egress · 2 rm_rf · 3 priv_esc · 4 read_ssh · 5 archive · 6 remote_fetch · 7 decode.
2. Try to sneak past it
Text filters read the command string. These two payloads beat our own 1 KB text model (receipt 017). The guard below never sees the string: it sees the capabilities the command actually uses when it runs.
| payload | text model (recorded) | capabilities used | guard |
|---|
3. Same guard, at the edge
Each step goes to a Cloudflare Worker running the 83 B guard plus 8 bytes of history for your session. Reading a secret is fine. Sending data out after reading one is not.
| step | mask | policy | history | verdict | where |
|---|
What this is not
The proof covers the compiled policy over capability bits. It does not prove that whatever produces those bits is honest; that is why the guard sits on real capability calls, not on command text. Every number above has a receipt in the repo, including the ones that failed.