The proved runtime envelope
If you run AI agents, tool runtimes, serverless workers or RL rollouts, this is the part every other stack misses.
Four layers today
Section titled “Four layers today”Runtimes treat agent-written code as a black box, so they wrap it in four separate layers:
- Sandboxes: Docker, Firecracker, Wasm traps, seccomp and cgroups.
- Headroom and timeouts: extra memory just in case, and OOM kills when it is not enough.
- Partial traces: best-effort logs and replay that breaks when code touches a clock or a file.
- Manual permission review: people reading dependencies to guess what code might touch.
Worse, they fight each other. An OOM kill or an out-of-fuel trap halfway through a tool call leaves locks, files and sockets torn.
One verdict, one envelope
Section titled “One verdict, one envelope”In Stigi, the same verdict that admits a unit produces its runtime envelope:
- Narrowed authority: the exact manifest of files, hosts, clocks and C bindings.
- No death mid-effect: failures are values and every protocol reaches a stop state on every path, so Stigi code never traps halfway through an effect.
- Resource bounds: proved stack bytes, step counts and heap as a formula of the input size.
- A complete effect journal: every outside call, LLM calls included, goes through a capability, so it can be recorded and replayed.
unit: Tools.JsonSchema.validatePayloadauthority: none (pure; Region only)stack: 640 bytes (proved, signal reserve included)time: 14 * inputBytes + 32 ops [O(n)]heap: 2 * inputBytes + 128 bytes [flat; 0 retained dead bytes]failures: FillFailed (tested), InvalidUtf8 (tested), SchemaMismatch (tested)protocols: none open on any exit pathThat record is what a scheduler receives. Next: scheduling with it.