Bubblewrap runtime
Experimental, unreleased on next (13 November 2026). Review limits.
@bakers-build/addon-runtime-bwrap isolates the complete agent process on Linux, including its file tools and subprocesses. It fills the runtime slot without an image or an agent-specific Bubblewrap adapter. Executors such as herdr still manage the terminal. Machine scope only:
js
{ use: '@bakers-build/addon-runtime-bwrap' }Requirements
Install bwrap on the conductor host and enable unprivileged user namespaces. Startup refuses to run without namespace support. A Linux Coder workspace is supported; the outer container's security policy must allow nested namespaces. It does not need socat. Agent permissions remain unchanged; native sandbox mode needs its own tools and nested namespaces.
The workspace must provide a run clone: the Git workspace or herdr. Programs come from the host's system directories and executable search paths. Tool resources and user-hook scripts, which are not copied and otherwise fail open, are granted only through readPaths: each grant exposes that path to the agent.
Options
Generated from the options.schema.json of @bakers-build/addon-runtime-bwrap; change the schema, not this table.
| Option | Type | Default | Required | Effect |
|---|---|---|---|---|
readPaths | array | [] | Additional absolute host paths exposed read-only for coding tools. Never grant the host root or the operator home. | |
shared | boolean | false | Run clones borrow the parent repository's objects (git clone --shared) instead of copying them, for every workspace addon. Faster and smaller, but never prune or repack the parent with -d while a run is open. |
Files and credentials
Each run has a private home and environment, private process, IPC and hostname namespaces, and its own /proc, /dev and temporary directory, plus its own terminal session while the host allows TIOCSTI (legacy_tiocsti not 0). The operator's home, SSH keys, .bakers and Docker socket are absent. Only selected environment variables reach the process; credentials stay out of the launcher command and plan file.
The agent prepares its configuration and grants. Claude copies settings into the private home, mounts the host's login file (~/.claude/.credentials.json) read-write in place of a copy, so a token refresh in any run reaches the host and every other run, mounts plugins read-only, and writes its transcript to the worktree transcript directory. Explicit API credentials override stored login.
The workspace is a fresh run clone of the ticket branch at the worktree path, made at every run start. The run's Git directory, kept in the conductor's cache, is mounted as .git; the parent repository is absent. The option shared adds the parent's objects read-only. .bakers/ and the project's runtime.read_only paths are read-only.
Commit inside the run: only checked commits come back, as isolated Git delivery describes. Cleanup stops the launcher and removes the home.
Boundaries
Networking is shared with the Coder environment, including localhost. There is no egress allowlist in this backend. Resource limits remain those of the outer environment.
Install dependencies and build inside the run. The DDEV web container is as untrusted as the run; bakers checks only a host command's entry point.