Skip to content

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.

ModelWhat is insideKernelBakers statusMain limit
Own OS userProcesses/files governed by that userHostOperator-providedShared services and readable files remain reachable
Native harness sandboxHarness-defined actions; Claude shell commands/childrenHostSupported: Claude/Codex/Grok; Not integrated: OpenCode/Pi/KimiScope and read/network restrictions vary
Outer process sandboxEntire agent and locally started childrenHostExperimental: Bubblewrap runtime addonLinux, fresh run clone, shared network; Claude prepared only
Container per runAgent and children in their own containerHost on Linux; engine VM on macOSExperimental: Docker runtime addonClaude prepared only; macOS/rewritten allowlist Unverified
Conductor containerConductor and all runs in one containerContainer hostOperator-providedNo automatic separation between those runs
gVisorContainer processes behind user-space kernelUser-space kernel backed by hostNot integratedCompatibility/performance need verification
VM/microVM per runRun and guest OSSeparate guestNot integratedDocker Sandboxes is distinct from ordinary Docker containers
Dedicated VM/hostEntire execution machineGuest/dedicated hostOperator-providedNo 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 boundaryBakers integration or operator workActivation
Native sandboxAgent addon maps policy to harness settingspermissions: 'sandbox'; satisfy native prerequisites
Outer process sandboxBubblewrap runtime addonSelect that machine runtime; example below
Container per runDocker runtime addonSelect that machine runtime; Podman CLI configurable, not separately live verified here
Own user, conductor container, dedicated VM/hostOperator provisions the environmentStart the conductor there with scoped credentials
Another per-run backendNo shipped gVisor/microVM backendWrite 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.

AgentNative LinuxNative macOSruntime-bwrap Linuxruntime-bwrap macOSruntime-docker Linuxruntime-docker macOS
ClaudeSupported: Bubblewrap + socat, user/network namespacesSupported: SeatbeltExperimental: Claude preparation existsNot integrated: Linux onlyExperimental: Claude preparation and default image installation existUnverified: Claude preparation exists; macOS not tested
CodexSupported: own sandbox; codex sandbox true probeSupported: SeatbeltUnverified: Codex preparation existsNot integratedUnverified: Codex preparation exists; needs own imageUnverified: Codex preparation exists; needs own image
GrokSupported: Landlock; managed allow_write also needs BubblewrapSupported integration: Seatbelt; managed profiles UnverifiedUnverified: Grok preparation existsNot integratedUnverified: Grok preparation exists; needs own imageUnverified: Grok preparation exists; needs own image
OpenCodeNot integrated: no Bakers OS sandboxNot integratedNot prepared: dispatch failsNot integratedNot prepared: dispatch fails; needs own imageNot prepared: dispatch fails; needs own image
PiNot integrated: no Bakers OS sandboxNot integratedNot prepared: dispatch failsNot integratedNot prepared: dispatch fails; needs own imageNot prepared: dispatch fails; needs own image
KimiNot integrated: no permissions policyNot integratedNot prepared: dispatch failsNot integratedNot prepared: dispatch fails; needs own imageNot 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.

RuntimeKnown limits
BubblewrapLinux 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.
DockerOnly 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 ​

  1. For trusted work, inspect system policy and tools.
  2. For untrusted tickets, use supported native sandbox; check prerequisites and read/network gaps.
  3. For host separation, provision a user, conductor container or VM with scoped credentials. Assess separation between runs independently.
  4. 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.
  5. 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.