# Sandbox Runtime Requirements This document states the sandbox environment as a contract. The sandbox owner must meet this contract. The Paperclip runtime does not build the environment at exec time. The environment is a requirement, not a build step. This document states requirements. It does not state build steps. ## bwrap prerequisites (advisory, optional) A sandbox provider can wrap a command with an advisory bubblewrap (`bwrap`) wrapper. The wrapper is advisory, best-effort, and automatic. It adds no security. The ephemeral sandbox model stays the only security posture. A missing prerequisite degrades to the plain command. It never fails the lease. Daytona is the current provider with bwrap support. The wrapper needs three run-time prerequisites. Each prerequisite is a fact of the image or snapshot, not a fact of the runtime code. The runtime does not build the image or snapshot. The runtime only probes for the capability and degrades when the capability is absent. So each prerequisite is an owner responsibility under the requirement-not-build contract above: - The `bubblewrap` package is installed, and the `bwrap` binary is on the PATH (normally `/usr/bin/bwrap`). - A passwordless `sudo` rule lets the sandbox user run `bwrap` as root. - The host and kernel allow an unprivileged user namespace. The owner supplies these prerequisites through the image or snapshot. The provider README states the distro-specific install commands, the exact sudoers rule, the user-namespace setting, and the verification command. The install and the sudoers change are environment provisioning at the image or snapshot layer. Route them to DevOps through the board. Do not add a provisioning script to the repository. ## Required on PATH - `node` must be installed and on the PATH. - Each agent CLI that the run uses must be installed and on the PATH. The set of agent CLIs includes `claude`, `codex`, `gemini`, and similar CLIs. - The owner installs only the CLIs that the run uses. The owner does not need to install a CLI that no run uses. ## Runtime dependencies The sandbox execution and synchronization paths need more than `node` and the agent CLIs. The owner must also supply these: - A POSIX shell as `sh`, normally `/bin/sh`. The runtime runs each command with `sh -c