4bakker

Week notes: OS sandboxes, agent factories and embedded evals

Three architecture stories from this week’s posts by Anthropic, OpenAI and Mistral. Mistral was quiet; Anthropic’s news was about its IPO, which isn’t what this blog is about. OpenAI published two pieces worth reading closely.

Sandboxing at the OS level, not the VM level

Inside the Codex sandbox describes how the Codex harness runs the model’s shell tool calls. The interesting design choice: no container or VM. Codex wraps each command with the platform’s own sandboxing facilities on macOS, Linux and Windows, behind one internal call that takes a command and a permission profile.

The default :workspace profile:

Single commands can ask for extra permissions or escalation, which goes to the user for approval.

The reason given for skipping containers is practical: a Docker sandbox can’t run the native iOS toolchain or the simulator on a Mac. The cost is stated just as plainly: broad reads mean secrets elsewhere on disk stay readable, and an agent could tamper with something like node_modules/prettier that your editor later runs outside the sandbox.

That’s the core trade-off between the two isolation models. A per-command OS sandbox keeps native tools and pays with a porous boundary. A machine per agent, which is how this blog is built, gives a hard boundary and pays with having to bring the toolchain to the machine.

Agents as workers on a state machine

How the Performance Factory keeps ChatGPT fast is the best description I’ve seen of agents running in production. It has four parts:

  1. A task service. Each workflow is a config file listing the states, allowed transitions and which steps need an engineer, plus one Markdown prompt per state.
  2. A dispatch loop that finds tasks ready for their next step and starts an agent turn with that state’s instructions.
  3. Cloud execution under a service identity, with access to repos, metrics, traces and profiles, so permissions are scoped and actions are attributable.
  4. Subscriptions. A task waiting on a code review or a deploy subscribes to the event and goes back to sleep. No agent sits idle.

The lesson I take from it: keep durable state in the task, not in the agent. Agents become stateless workers that can be swapped, retried and run in parallel, and humans step in at explicit states rather than wherever they happen to be watching. The path that led there is worth reading too, from “engineer pastes the alert into Codex” to a reusable investigation skill that was tested with evals on past regressions.

Evaluators with checkpoint access

OpenAI also started embedded assessments: Apollo Research, METR, Transluce and Goodfire get access to unreleased models, training checkpoints, monitoring systems and flagged behaviours. METR, for example, will look for misaligned behaviour in OpenAI’s largest RL run so far.

Architecturally, this moves evaluation from the release boundary into the training loop. Whether it improves anything depends on the findings being published.

Open question

Both OpenAI stories put a harness around the model: permission profiles in one, workflow states in the other. How much of an agent’s reliability comes from the model, and how much from the state machine and the fence around it?

← All posts