Isolation models
This page compares isolation boundaries in detail. How they combine with agent permissions and tools is explained in Agent permissions and isolation.
Status words
- Supported: released integration; native prerequisites checked by
bakers conductor check. No blanket security/platform guarantee. - Experimental: opt-in on
next, unreleased as checked on 13 November 2026; may change. - Operator-provided: you supply the boundary; Bakers does not manage it per run.
- Not integrated: no Bakers backend.
- Unverified: no live evidence for that combination; preflight/unit tests do not prove isolation.
Isolation boundaries
The model names below describe boundaries, not addon packages or callable tools. Activation is in the next table. A Git worktree and the agent home separate files and settings but are no OS boundary; agent permissions restrict actions inside whichever boundary you choose.
| Model | What is inside | Kernel | Bakers status | Main limit |
|---|---|---|---|---|
| Own OS user | Processes/files governed by that user | Host | Operator-provided | Shared services and readable files remain reachable |
| Native harness sandbox | Harness-defined actions; Claude shell commands/children | Host | Supported: Claude/Codex/Grok; Not integrated: OpenCode/Pi/Kimi | Scope and read/network restrictions vary |
| Outer process sandbox | Entire agent and locally started children | Host | Experimental: Bubblewrap runtime addon | Linux, fresh run clone, shared network; Claude prepared only |
| Container per run | Agent and children in their own container | Host on Linux; engine VM on macOS | Experimental: Docker runtime addon | Claude prepared only; macOS/rewritten allowlist Unverified |
| Conductor container | Conductor and all runs in one container | Container host | Operator-provided | No automatic separation between those runs |
| gVisor | Container processes behind user-space kernel | User-space kernel backed by host | Not integrated | Compatibility/performance need verification |
| VM/microVM per run | Run and guest OS | Separate guest | Not integrated | Docker Sandboxes is distinct from ordinary Docker containers |
| Dedicated VM/host | Entire execution machine | Guest/dedicated host | Operator-provided | No automatic assignment per run |
Bubblewrap and Linux containers share their host kernel. Mounts, privileges, networking and sockets determine access; Docker alone is not stronger.
How to achieve a boundary
| Desired boundary | Bakers integration or operator work | Activation |
|---|---|---|
| Native sandbox | Agent addon maps policy to harness settings | permissions: 'sandbox'; satisfy native prerequisites |
| Outer process sandbox | Bubblewrap runtime addon | Select that machine runtime; example below |
| Container per run | Docker runtime addon | Select that machine runtime; Podman CLI configurable, not separately live verified here |
| Own user, conductor container, dedicated VM/host | Operator provisions the environment | Start the conductor there with scoped credentials |
| Another per-run backend | No shipped gVisor/microVM backend | Write a runtime addon; implement and verify the boundary yourself |
Native sandbox vs. outer runtime
Claude's native Linux sandbox already uses Bubblewrap, plus socat. Its OS boundary covers shell commands and their children. Built-in file and web tools follow separate permissions; hooks and local MCP processes are outside that inner shell boundary. bakers.build adds Read-deny rules for Claude's file tool. Whether strict MCP configuration hides plugin MCP servers remains unverified.
Outer runtime-bwrap encloses the whole Claude process, file tools and locally started children, preserving permission mode. Already-running host services stay outside.
Combine them for a restricted process filesystem plus finer shell policy, given nested sandbox prerequisites. Claude shell egress rules are not a process-wide domain allowlist: runtime-bwrap shares networking. Trusted commands leave the inner sandbox but remain inside the outer runtime.
Outer runtimes (runtime slot)
The runtime slot selects execution location (default: host); the executor selects the terminal. Select one runtime in ~/.bakers/machine.config.js:
js
// Add one runtime to the existing machine configuration.
runtime: { use: '@bakers-build/addon-runtime-bwrap' },
// Or: runtime: { use: '@bakers-build/addon-runtime-docker' },Bubblewrap options and Docker options describe explicit path grants and network choices. Neither runtime changes permissions or fixes missing native sandbox prerequisites.
Support by agent and platform
Native columns describe adapter integration; runtime columns describe the outer boundary independently. Evidence gaps still apply.
| Agent | Native Linux | Native macOS | runtime-bwrap Linux | runtime-bwrap macOS | runtime-docker Linux | runtime-docker macOS |
|---|---|---|---|---|---|---|
| Claude | Supported: Bubblewrap + socat, user/network namespaces | Supported: Seatbelt | Experimental: Claude preparation exists | Not integrated: Linux only | Experimental: Claude preparation and default image installation exist | Unverified: Claude preparation exists; macOS not tested |
| Codex | Supported: own sandbox; codex sandbox true probe | Supported: Seatbelt | Unverified: Codex preparation exists | Not integrated | Unverified: Codex preparation exists; needs own image | Unverified: Codex preparation exists; needs own image |
| Grok | Supported: Landlock; managed allow_write also needs Bubblewrap | Supported integration: Seatbelt; managed profiles Unverified | Unverified: Grok preparation exists | Not integrated | Unverified: Grok preparation exists; needs own image | Unverified: Grok preparation exists; needs own image |
| OpenCode | Not integrated: no Bakers OS sandbox | Not integrated | Not prepared: dispatch fails | Not integrated | Not prepared: dispatch fails; needs own image | Not prepared: dispatch fails; needs own image |
| Pi | Not integrated: no Bakers OS sandbox | Not integrated | Not prepared: dispatch fails | Not integrated | Not prepared: dispatch fails; needs own image | Not prepared: dispatch fails; needs own image |
| Kimi | Not integrated: no permissions policy | Not integrated | Not prepared: dispatch fails | Not integrated | Not prepared: dispatch fails; needs own image | Not prepared: dispatch fails; needs own image |
Windows / WSL2: Unverified for the complete bakers.build chain. Upstream support alone does not establish support here. The outer Bubblewrap backend targets Linux only.
Grok's MCP deny-rule enforcement, macOS managed profiles and unattended container execution remain unverified. Native prerequisites are listed in Run security.
Experimental runtimes: known limits
Release alone does not remove Experimental status. Existing Linux runs provide limited evidence; this overview adds no live checks or broader guarantee.
| Runtime | Known limits |
|---|---|
| Bubblewrap | Linux only; requires bwrap and allowed user namespaces, including inside a Coder container. Requires a workspace that provides a run clone. Shares networking, including localhost; no egress allowlist or separate resource limits. Only Claude has run preparation. User hooks fail inside the runtime. |
| Docker | Only Claude has run preparation and an installation command for the default image; other agents need their own image and remain Unverified. Rewritten allowlist mode has no live check. macOS is untested; host networking cannot reach the host there. User hooks fail inside the runtime. The default image lacks bwrap/socat: native sandbox mode fails closed and consumes retries unless an operator image supplies the tools and working nested namespaces. |
Both runtimes work in a fresh clone of the ticket branch: uncommitted work does not carry over, and only checked commits that change no protected path come back (isolated Git delivery). Conductor tools and project hooks run on the host; under these runtimes each must start in a protected path, but only that entry point is checked. User hooks inside runtimes have separate limits. Read mounts expose contents; write grants allow deletion. Review mounts and credentials.
bakers conductor check probes only the host; its runtime warning does not block dispatch. Missing outer prerequisites prevent launch; missing inner prerequisites fail the protected run without switching modes.
Configuration at a glance
Use permissions: 'sandbox' for native harness policy; sandbox is a separate options object. Default mode is system; custom is harness-specific; other modes are listed under Agent permissions › Modes. No mode selects an outer runtime.
Agent permissions documents modes, native prerequisites, read/write rules, trusted-command exceptions, network defaults and MCP limits. Shared settings shows applied/skipped/rejected keys. Inspect effective rules with bakers agents. A host preflight does not verify a runtime environment.
Not covered by any model
The agent can edit/delete granted files, including scripts host tools later execute. A container or VM does not make host execution safe. Review conductor tools, project/Git hooks, Git configuration and worktree automation separately.
Passed credentials remain usable. Scope secrets, network and sockets: a host Docker socket can grant control beyond the container. Cached agent homes are not credential vaults or run separation; private runtime homes are distinct.
Remote MCP and host services enforce their own permissions; allowed requests can cause host actions outside either boundary.
Choose a model
- For trusted work, inspect
systempolicy and tools. - For untrusted tickets, use supported native
sandbox; check prerequisites and read/network gaps. - For host separation, provision a user, conductor container or VM with scoped credentials. Assess separation between runs independently.
- If you explicitly want to evaluate an outer runtime, compare the Experimental limits above. Bubblewrap is the lightweight Linux process boundary; Docker supplies a per-run image and container environment. Neither closes the host-tool execution gap.
- For a separate guest kernel per run, a microVM backend is not integrated. Supply and verify that environment yourself.
Setup skills should recommend Experimental runtimes only on request, citing status and limits.