Where can code run?
bubblewrap, gVisor, Firecracker microVMs.
- OS policy (Claude Code)
- User-space kernel (GKE Agent Sandbox)
- MicroVM (E2B, Vercel Sandbox)
Agent loop in RustScript. Authority in Rust.
Tracking and undoing a call is a separate job.
bubblewrap, gVisor, Firecracker microVMs.
Each call gets an ID, a receipt and a version.
The runtime is built from three parts.
Compiler checks host ABI types and resources.
Commit with a receipt, or keep the conflict.
Running sessions keep their version.
write_file("race.txt", "first")Readers still see H0 while the tool writes.
candidate: race.txt = firstStop the writer; save tree H1 and the result.
prepare(H1, result)One transaction: receipt, head, result, event.
expected H0 → Head H1Read the receipt back before replying.
receipt fx_7a29Losers stay readable; restore starts a new run.
conflict / new runLost the reply? Look it up by attempt ID.
Links run, call, attempt and events.
Records the candidate, head and tool result.
Two runs, one head: one commits, one conflicts.
New runs pick up the active graph at admission.
Upgrade selected. Active Graph B at generation g + 1. Session A Run α remains pinned to Graph A. Session B Run β captures Graph B.
Not persisted across restarts yet.
Repaired on restart; terminal retries stop.
Each adapter needs its own recovery contract.
Start with the README and the architecture doc.