P-02Containment
Containment that holds whether or not the agent cooperates.
A written policy asks an agent to behave. Our mechanisms don't ask: a cell with one way out, a check on every wall before the run, an escape detector scoring every syscall while it runs, and a receipt anyone can verify after.
Four mechanisms, one per moment of a run
None of them asks the agent to cooperate. Pick one to see how it works.
Prompts and policies only describe and hope for the best. Our mechanisms enforce.
What a policy asks for, and what the mechanism does instead, whether or not the agent reads it.
Three rules every mechanism follows
Every escape pattern in the incident catalog maps to the mechanism that stops it, and each new incident becomes a test our own containment has to pass.
- Fail closed. Every control defaults to stopping. If the grants stop arriving, the run starves on its own, and nothing an agent says in chat can open a path.
- Out of reach. The Bastion Proxy and the breaker run outside the cell, and the escape detector runs outside the agent's gVisor sandbox. The agent cannot see, change or switch off any of them.
- Check it each time. A sandbox that held yesterday is a claim. The checks run on this run, and the receipt records what they found.
The one channel we can't close: the model
An agent has to talk to its model, so whatever it writes in a prompt reaches the provider. That is the oldest pattern in the catalog (RGZ-11, an allowed protocol carrying the message). We don't claim to read intent in prompts. We make the channel narrow, metered and on the record.
- 01No key in the cell.
The agent holds an expiring grant, never a provider key. The proxy adds the key on the way out, so there is nothing to steal and reuse.
- 02No tools on the far side.
Provider-run tools are refused, such as web search and code execution, along with unknown tool types. A model can't fetch the internet on the agent's behalf.
- 03No storage at the provider.
Stored responses, uploaded files and background jobs are refused, and every request goes out with storage off, so the provider can't become a drop box between runs.
- 04Every request on the record.
Each request is metered against the run's spend cap and written to a debit log the receipt commits to. Volume past the cap stops the run.
Today the Bastion Proxy runs as one process. Coming soon: a split cell proxy, with each stage in its own locked-down process.
Running a swarm in a cell
A run is described by a short cell.toml checked in next to your eval. Today a swarm shares one sealed cell: its agents call the model through the meter, share a board and a work tree, and reach nothing else. Three things are coming soon. Range cells give each agent a sandbox of its own inside one cell, joined only by a private segment the cell records. Your own container images will run in a cell once they are checked and pinned by digest. And Inspect and Harbor evals will run in cells without changes.
class = "sealed"
deadline = "30m"
rootfs = { sha256 = "…", size = … }
command = ["/bin/sh", "/swarm/run.sh", "--agents", "8"]
# every launch has a spend cap: $15 here
[model]
max_nusd = 15_000_000_000
- Eight agents, one cell. In our own swarm runs, eight agents worked one task together over a shared board. The task left a planted key in reach; no agent read it, and the breaker held every run.
- Cells don't reach each other. We started 500 cells that each tried to reach the others by address, broadcast, multicast and name. None did.
- One trip stops the cell. When the breaker trips, the whole cell is paused and checkpointed together, so nothing keeps running beside the agent that was caught. Cells run on AWS in us-east-1 today.
Running agents you need to contain?
We build for labs running agent evals, the partners who host them, and platforms carrying agent fleets. If you have seen an agent do something it should not have, we want to hear about it. Write to ask for a sample safety evals report, early access to the escape detector, or, for approved labs, our private swarm implementation evals.