Originally published at webofmike.com on 2026-11-18.
You contain an AI agent with three layers that each assume the other two already failed: a sandbox for compute and filesystem, default-deny egress through a proxy that logs, and a short-lived identity scoped to the task. Then you record every tool call somewhere the agent cannot write. A sandbox alone is not containment, it is the inner cage.
If the last two posts were the problem, this is the fixture.
Why isn't a sandbox enough to contain an agent?
The sandbox bounds compute and filesystem. Fresh per run, nothing shared, no write path to its own config or pipeline. I wrote about why the sandbox is the fixture, not the record : it contains the run, it shouldn't be where you keep the evidence.
What breaks it: shared sandboxes, mounted credentials, and anything persistent between tenants. Shared sandboxes leak leftover files across runs.…