# Decisions

Each line records one choice hermitbox has made and why. A change that makes a new choice adds a line under its subject, and a choice that replaces an older one replaces its line. Third-party software is recorded here, with its version and licence, before hermitbox uses it.

## Licence and contributions

- hermitbox is AGPL-3.0-only (LICENSE.md). What users embed or copy into their own projects (`sdk/`, `integrations/`, `action/`, `templates/stacks/`) is Apache-2.0, so using it puts no AGPL terms on their code. The CLI is AGPL-3.0-only, because it bundles control's code.
- Copyright is held by The Hermitbox Authors (NOTICE). Contributions come in under the Individual CLA in `cla/INDIVIDUAL.md`, adapted from Apache's, so other licence terms stay possible. A released version keeps the licence it shipped under.
- The process tier's kernel programs in `bpf/` are `GPL-2.0-only OR BSD-2-Clause` and declare "Dual BSD/GPL" to the kernel, so the kernel admits the GPL-only helpers they call; the Rust that loads them stays AGPL-3.0-only. REUSE.toml gives the compiled object the same dual licence, and `LICENSES/` holds the SPDX texts.
- Every file carries SPDX lines checked by REUSE. Generated licence-header strings inside source use REUSE's narrow ignore directives, so a generator's output is not misread as a header.
- hermitbox never links or copies the code of a control plane that integrates with it over the API, and that control plane never links hermitbox's, because their licences differ; the two talk over hermitbox's APIs only.

## Architecture

- hermitbox has three parts: `hermitboxd` on each host (Rust), the control service (TypeScript on Bun, with Postgres) and the edge (TypeScript on Bun). Control decides what runs; a node never does, and control reaches a host only through `hermitboxd`'s mutual-TLS API.
- The daemon and `hermitbox-agent` share one Cargo workspace and one release version. The agent's token contract is small, so the daemon does not link the agent's server, shell or file watcher.
- Control writes intent before it asks a node, keeps sandbox intent in its own table, serializes work with Postgres advisory locks on a separate pool, and runs upkeep on a serialized one-minute interval, because that needs no job-queue library. Advisory locks are polled without holding a database connection while waiting, so nested region and sandbox operations cannot exhaust the pool.
- An epoch names one placement. Every mutating node request carries it, so an older handle can never change a newer copy; a move fences and retires the old copy, and the edge closes connections from older epochs.
- Sleep keeps data and suspends memory where the node can; otherwise it stops. Rest uploads a snapshot and then releases local compute and data. Wake resumes memory, boots from local files or restores a resting snapshot under a new epoch.
- The control execution lease allows autonomous restart only while it is current, and its expiry never stops a running sandbox. Without the store lease, failover needs an operator-confirmed loss.
- The optional object-store lease is off by default on host and control. It needs rootful cgroup v2 Docker with cgroupfs and a host that does not suspend leased execution, and an independent watchdog outside the daemon's cgroup freezes and kills leased work, so stopping it does not depend on the daemon's own loop.
- Store-lease authority is bounded by the store's HTTP Date and CLOCK_BOOTTIME and fences two seconds early. A lease is bound to a fresh in-memory daemon session, so a disk-cloned or restarted node cannot reuse it. Whole-host pauses and hostile hosts are outside its guarantee.
- Automatic scaling is off by default. When on, it grows one fitting host after two room refusals, releases hosts one region at a time with healthy survivors, and never releases a manually owned, lost or unknown host.
- The autoscaler orders hosts of the machine the served `hermitboxd` is built for, read from its ELF header, and orders none when that binary is missing or for another machine.
- A sandbox kept to one node (a stack copy's fork) stays on it through every wake, restore and move, and is refused where that node cannot take it, because its prepared files may be native to that node.

## Node protocol and formats

- The Rust types define the node protocol, and `openapi/` is generated from them. The public API (`/v1`) and the edge protocol (`/edge/v1`) are committed with their OpenAPI documents and generated clients.
- Before the first public release, a format change updates its producers, consumers, generated clients and fixtures together. From the first public release, changes within a major version are additive.
- A node announces each new request field in `features` before control sends it, and an absent announcement reads as an absent guarantee, so control never sends a node a field it would ignore.
- The `blocklyd` names on the wire and on disk (the epoch header, the `blocklyd.*` container labels) are frozen format names. `tests/formats.rs` and `tests/fixtures/` pin those formats byte for byte.
- The node records the tier it chose at creation and requires it on reads; the public sandbox and both SDKs report it as `isolation`.
- A value owned by another system is imported from it: HTTP statuses from `StatusCode` and `http-status-codes`, signals from `libc`, durations in TypeScript from `control/src/durations.ts`. Docker's answers are read once, in `runtime/docker.rs`.
- Control validates requests with Zod and generates the public OpenAPI document from the same schemas; the SDKs take their types from that document through openapi-typescript.
- Create identity and request fingerprints are stored before placement. An exec with an uncertain outcome is never replayed, so a lost reply cannot run a command twice.
- Each container gets its own Ed25519 signing key, and only the public key reaches control and edge. Sandbox capabilities last five minutes and bind sandbox, epoch, scope and bounds; file capabilities last one minute and name one path and method; edge capabilities name one route. A project key is never sent to a sandbox.
- Errors use the node envelope `{error:{code,message,details}}`, and a refusal for a missing guarantee carries the missing names as typed data.

## Isolation and security

- The hardening is the host's. A request can narrow host policy but never relax it, and a deployment's requirements are combined with each request's, so a request cannot erase them.
- A request that names a tier or a guarantee gets it or a refusal naming what is missing. hermitbox chooses a backend only when the request leaves the choice open, and reports the choice.
- API and operator listeners bind to loopback by default. Remote clients reach the API through TLS, and workload ports are reachable only from the configured control and edge sources.
- A node accepts a client certificate only when its leaf states the clientAuth extended key usage, because RFC 5280 otherwise lets a general-purpose certificate from the same CA pass.
- TLS in `hermitboxd` is rustls with ring, and OpenSSL, native-tls and AWS-LC are banned in `deny.toml`, so no host carries an OpenSSL to patch.
- The agent marks its supervisor non-dumpable before it loads secrets, keeps its signing secret in a randomly named bootstrap variable that no child inherits, and refuses a bootstrap executable that another user can write or that sits behind a writable or symlinked ancestor.
- Node and agent share one descriptor-relative, no-follow path walk that refuses absolute paths, parent traversal and symlinked parents, so no file operation follows a link.
- Control seals sandbox secrets at rest in sandbox, snapshot and template records with AES-256-GCM from a versioned key ring (`HERMITBOX_SECRET_KEYS`). The authenticated data binds purpose, record type, project and record ID, so a copied value opens nowhere else.
- Every stored digest of something that holds secrets is an HMAC-SHA256 under a key derived from the provider seal key, so the database alone cannot test a guess. A record whose secrets do not open fails alone, and stopping or deleting a sandbox does not need to open them.
- Webhook signing secrets are derived from the operator seal key and shown only on creation. Delivery uses pinned public DNS with redirects off, and only operator configuration can allow a private receiver.
- Embedded Postgres requires SCRAM on its Unix socket as well as TCP, because Landlock does not restrict Unix socket connections.
- Git credentials go through a one-call, HTTPS-host-scoped credential helper, with redirects, hooks and every trace destination disabled, so a token is never written to a file.
- `hermitboxd serve` sets memory-deny-write-execute on its own process. The systemd unit leaves MemoryDenyWriteExecute off, because every process the unit starts would inherit it.
- Browser sandboxing and FUSE need user namespaces the host approves. They are host-local opt-ins: a request can never grant a privilege, and CAP_SYS_ADMIN is never given in a container's own namespace. A host with native FUSE requires a non-root sandbox user.
- On AppArmor hosts, the `hermitbox-native-tools` profile is Docker's default profile with only its mount denial replaced. FUSE needs an administrator-selected, loaded, enforcing profile, and there is no fallback.
- Diagnostics and failure logs redact credentials, token patterns and private-key blocks, and a secret is never put in a label, an argument vector or a stored record in the clear.
- Docker's OOM flag comes from its runtime event, so OOM is never inferred from a SIGKILL alone. Where systemd 255 or newer is present, its journal can confirm an OOM; missing or ambiguous evidence reads as unknown.

## Tiers and runtimes

- There are five tiers: `container`, `gvisor`, `vm`, `process` and `wasm`. A request that names none is placed in the order container, vm, gvisor, process, wasm on a healthy node; images start only on container, gvisor or vm.
- `HERMITBOX_DEFAULT_ISOLATION` fixes one tier or gives an order as a comma-separated list. The chosen tier is stored before compute is created, and a later ensure never changes it.
- A mixed node announces each guarantee per tier (for example `tier-process:egress-hostnames`), so control never assumes one tier's guarantee for another.
- Each backend must answer its own health check. An unreadable tier keeps its records and reports partial inventory; it never changes a saved tier.
- Container engines are found in a fixed order: environment, system Docker, user Docker, user Podman, system Podman. An explicit socket never falls back, and remote engine endpoints are refused, because local data binds cannot reach them.
- The engine API is negotiated through Bollard, and native Podman calls use Podman's generated stubs, so no engine protocol is written by hand. Native Podman gives each workload its own Netavark network.
- A rootless engine's memory and CPU guarantees are bounded by what the engine enforces for that copy. `allowUnenforcedMemory` is an explicit acceptance; without it a missing limit is refused.
- The `gvisor` tier is the container backend with runsc as its OCI runtime: the same engine, images, limits, ports, bridge and firewall. A request for `container` runs only on runc and one for `gvisor` only on runsc; neither falls back to the other.
- A node serves `gvisor` only beside a container tier of the same engine and while that engine lists runsc; Podman and rootless Docker are refused by name until their cgroup enforcement is proved. FUSE and the browser's own sandbox stay off on gVisor until proved there.
- Each runsc version is installed in its own directory and kept while a running sandbox needs it, so an upgrade never changes a running sandbox's runtime.
- gVisor's kernel gets a hard nproc limit beside the host's pids cgroup, because the host controller counts gVisor's own threads rather than the workload's processes.
- A gVisor exec's completion is authenticated with a fresh HMAC key on private stdin, and the in-sandbox exec deadline wrapper is a subreaper that kills and reaps what it adopts.
- The process tier is its own runtime behind the same runtime trait. It uses the bundled userland, Landlock (ABI 3 or newer, or it fails closed), a seccomp deny filter layered on the platform's, rlimits and nice, and no namespaces in its plain mode.
- The process seccomp filter refuses namespace clone flags, `pidfd_getfd` and reuse-port BPF filters, so a same-UID neighbour cannot be reached around Landlock.
- The process tier allocates stable UIDs from host policy when the daemon can change UID, and announces a shared UID otherwise. In shared-UID mode, pathname-only IPC is refused and private IPC needs Landlock's abstract-socket scope.
- The namespaced process mode uses the unmodified bubblewrap helper, never setuid. A node announces `tier-process:private-pids` only from the launch it performs, and a namespaced launch whose helper fails fails; it never starts plain.
- Process-tier limits live in a cgroup per sandbox below the daemon's delegated cgroup. Sleep freezes that cgroup and kill uses `cgroup.kill`, so nothing that escaped the tree survives.
- The process tier's network policy is a set of cgroup BPF programs loaded with aya. The `kernel-network-policy` capability is proved by loading and attaching every program in a disposable cgroup, never read from configuration; when it is off, the node says what is missing.
- With public internet on, a process sandbox reaches what a container reaches behind the host firewall: everything except this host, link-local, multicast and private addresses. The policy refuses inet sockets other than TCP and UDP and is reported as the `host-firewall` guarantee.
- The BPF object is committed, and CI rebuilds it with pinned packages and requires the same bytes, so the object is reviewed as its source. It needs no CO-RE relocation, because it reads only UAPI context fields.
- The `wasm` tier wraps agentOS: its Rust client and native sidecar pinned at the same version, because the protocol requires matching versions. The sidecar runs as a separate child process under its own worker identity.
- A wasm sandbox's root is chunked SQLite under its data directory and its data mount is a host directory, so snapshots carry both. The shared sidecar has no per-VM suspend, so processes end on sleep while files persist.
- The `vm` tier runs each sandbox in a Firecracker microVM with its own kernel. KVM is mandatory, and a node announces the tier only where KVM works for its user and a signed bundle is present.
- A VM boots trusted init as PID 1 from a read-only EROFS image, and init runs the agent as a non-root child in its own cgroup. Bootstrap configuration and secrets arrive only over vsock, into memory, never on a disk, label or argument.
- An OCI image becomes digest-named EROFS layers (at most 13) with a sized ext4 upper, and a VM's manifest digest is pinned at its first start, so later starts use exactly the same image.
- As an ordinary user, a VM's network is gvisor-tap-vsock in a confined packet helper, chosen over pasta because it needs no host user namespace or TUN device. The helper refuses every destination the host itself would receive.
- As root, VMs are served by `hermitboxd-vm-worker.service`, because the daemon's own unit keeps no devices, namespaces or network-administration capability. Each root monitor runs under the jailer with a uid and gid of its own, and its network is a CNI TAP behind a default-drop bridge.
- VM memory sleep uses Firecracker's full snapshots only, because its diff snapshots are a developer preview. A memory image records its host class and monitor digest and restores only on a match; otherwise the disk boots cold.
- A wake renames a memory image before loading it, so one image is never restored twice. Guest init sets the clock and mixes host entropy on resume, because the guest kernel has no VMGenID.
- Cloud Hypervisor is not added as a second monitor: its live migration still needs the disk at the same path on both hosts, and hermitbox's VM disks are local files that must be copied anyway.
- The VM monitor is built from Firecracker's source with a static GNU C library toolchain, so its C library matches the launcher's confinement, and its seccomp policy is derived from Firecracker's published one.
- Releases are built for x86_64 and aarch64. The process tool bundle and the VM bundle are x86_64's for now, so native tools and `vm` report themselves off on aarch64 with the reason; `wasm` is off there too, because the pinned sidecar is x86_64's.

## Sandbox features

- The agent runs processes with their own identities and process groups, bounded replay and bounded queues, so a disconnected client does not own a process's life.
- Exec, logs, terminals and files go through the agent and edge; persistent data is still reached through the node's file routes while compute is stopped or sleeping.
- Every exec a hermitbox client starts has a deadline by default, and the agent refuses one longer than its token allows.
- Terminals use portable-pty, and the agent embeds the Brush shell as a fallback when an image has no `/bin/sh`, so shell execution never needs an image utility.
- File transfers stream through bounded spools and chunks, JSON file reads keep a 1 MiB bound, and sync is an upsert by SHA-256. Chunked writes to one path are serialized by an advisory lock.
- Sandbox names are unique in a project while data exists; a name-only lookup finds the sandbox, and an option with a source creates one.
- Lifetime changes (TTL, idle, auto-delete) serialize with lifecycle operations and stay within project ceilings.
- Templates are built through the sandbox's own files and commands, snapshotted only after ready succeeds, and warmed on each eligible node that advertises the template's tier.
- SSH uses short-lived Ed25519 client keys made in agent memory, ephemeral host keys and public `authorized_keys` only. A lease ends at the earliest of token expiry, five minutes and the idle interval, and the CLI passes keys to ssh-agent on stdin, never through a key file. Managed SSH servers set `Compression no`, because the bundled OpenSSH offers only delayed compression after authentication.
- S3 mounts use a trusted mount worker in its own mount namespace. Mount credentials are sealed before creation, delivered by a scoped agent request and left out of every view.
- Browser, desktop and interpreter kernels wrap maintained programs (Chromium's headless shell, Xvfb with xdotool, x11vnc with noVNC and websockify, ipykernel and IJavascript), so hermitbox implements no browser, X11, RFB or kernel protocol. IJavascript is the JavaScript kernel, because it returns structured results and errors where other kernels print them as console text.
- Process-tier tools use host glibc and never ship one. The core browser and kernel bundle needs glibc 2.34 and the desktop 2.36, and an older host gets a refusal naming the minimum.
- The native tool bundle uses unmodified upstream runtimes (python-build-standalone, Node's official tarball, Chrome's headless shell) with small launchers, instead of rewriting binaries.
- The browser runs in a pre-confinement worker under bubblewrap with private user, PID and mount namespaces, and Chromium's own sandbox stays on.
- No image contains Chromium's Widevine module, because its terms forbid redistribution; images use only the open-source headless shell.
- MCP is optional, behind the CLI and the agent's `mcp` build feature. Sandbox MCP uses only the sandbox's scoped capability and has no fleet or project-key client.
- Coding-agent sessions use the agent's PTY API. A supplied session key keeps the session out of automatic VM placement, because VM sleep can write guest memory to a file.

## Storage, snapshots and transfer

- Snapshot and fork copy persistent files, not memory, except that a VM fork on one node may take its source's memory image.
- A node-local snapshot restores only into its own workload; a fork waits for the source's upload and uses the stored archive.
- An archive upload that finishes after its snapshot was deleted cannot bring it back, because completion needs an uploading row.
- A restore stages the whole copy and checks it before it touches current data, and locks source and target in ID order until publication.
- Snapshot count is reserved before copying and bytes are checked against project limits before publication; a refused copy is discarded and the source resumes.
- XFS reflink shares unchanged blocks; elsewhere a full copy is made, and sparse holes are kept.
- A store's refusal is reported with its HTTP status and S3 error code, so the caller and the node log name the cause.
- The one-box and image presets include a persistent S3 store (RustFS) beside Postgres, because snapshots and rest need object storage.
- VM disks are copied only after an orderly stop and a read-only fsck, while holding the VM's lifetime lease. A stopped VM's data is read through a separate file-only guest with no image, network or entrypoint.

## Network and edge

- The edge is the public entry point. It reads TLS SNI, the HTTP Host header or a dedicated TCP port, holds bytes while control wakes a sandbox, and then relays them; applications see no platform greeting.
- Route versions come from the database, not host clocks, and the edge enforces sandbox epochs on live connections.
- The edge buffers at most 64 KiB while it waits, shares one wake per sandbox and keeps backpressure after splicing. Its default greeting wait is five seconds, below the shortest client TLS timeout measured.
- Public raw TCP ports are allocated under an advisory lock and quarantined for ten minutes after release. Public UDP is refused, because the fronts are TCP.
- A relay strips hop-by-hop response headers, as RFC 9110 section 7.6.1 requires.
- API TLS is served by a separate Caddy. The edge keeps the public listener and hands the API hostname's TLS to Caddy over a service-owned Unix socket, and Caddy owns certificates.
- Control makes its own agent calls through the edge's private socket, so readiness does not depend on public DNS or NAT hairpinning.
- Agent hostnames are terminated with an operator-supplied wildcard certificate; other TLS routes pass through unchanged.
- Hostname egress gives each sandbox its own bridge, firewall rules installed by root, and unprivileged HTTP and TLS gateways on that bridge that resolve the permitted Host or SNI at each connection.
- An egress policy holds DNS too: the bridge's gateway answers only names the policy allows and refuses the rest.
- Every hostname gateway, on every tier, refuses raw IP addresses, non-public answers and names that resolve to an address of this host, including cloud metadata addresses.
- Address rules (`egressAddresses`) are placed only on a tier that announces `egress-addresses`, and are refused on an isolated network.
- The process tier follows the host's addresses through rtnetlink, so rules naming this host stay current, and a hostname gateway asks the kernel how a destination is routed before dialling it.
- The container firewall covers both the ordinary and the internal Docker bridges, and the internal bridge has inter-container communication disabled.

## Control plane

- A deployment has projects. Keys are stored as hashes, each key names its project, and every list and route is scoped to it, so a foreign ID answers 404.
- Each project limit has its own column. Deployment defaults come from `HERMITBOX_PROJECT_<NAME>`, a project value overrides them, and null restores inheritance.
- Resources are whole units (512 MiB and 250 CPU millis by default), so admission counts one thing. A unit's CPU is an admission reservation; a ceiling is enforced only where a tier announces `cpu-limit`.
- Quota is decided in short project transactions. Compute reservations are written before node work and released only on a confirmed stop.
- Public addresses are allocated in the same transaction as accepted quota and sandbox intent, so a refused request reserves nothing.
- Lowering a limit freezes excess usage but keeps data readable; project expiry revokes keys and deletes data.
- Operator routes live on a private listener with their own authentication; nothing operator-only is on the public listener.
- Control serves a Prometheus registry on the operator listener and opt-in OpenTelemetry tracing. Labels use route patterns, and traces exclude bodies, URLs and credentials.
- The welcome page is served by control's own listener and keeps an entered key only in page memory.
- The documentation site is static with local search, built from `docs/` and published only by an explicit maintainer step.
- The capability page (`docs/compare.md`) lists hermitbox's own capabilities, each linked to the code or document that implements it, and names no other product.

## Installation and hosts

- Installing is one command that asks nothing. The installer detects the host and takes its preset: an ordinary user, a container, a server with root, a platform that runs images, or a node joining a fleet.
- Every preset checks its first download against a digest embedded in the installer, and server installs verify an ML-DSA-65-signed manifest before they use any service binary or archive.
- Root, Docker and KVM add tiers, and none is needed to start. The ordinary-user preset uses an available local engine, then the process tier, then wasm when process confinement is refused.
- A user installation keeps its files under the caller's home, following the XDG Base Directory Specification, and runs as systemd user services without interactive authorization. A user installation adds the CLI to the owned shell profiles in one removable PATH block.
- A host bundle carries its programs' runtime libraries and loader, so neither host glibc age nor a different C library becomes an installation step.
- Bundles are authenticated with the release keys and staged privately before activation; archive links and special file modes are refused even after verification.
- An upgrade is authenticated before services stop, keeps previous bundle directories for running agents, and refuses a PostgreSQL major-version change.
- The first API key is printed once. A first-key marker is claimed atomically before it is shown, and a later run prints a reference to the key instead.
- The server preset keeps workloads on Docker with private network, private PIDs, and memory and CPU limits as its floor, and installs gVisor itself from the pinned release.
- Under Ubuntu's unprivileged user-namespace restriction, the server preset loads the AppArmor profile the namespaced tiers need and widens the daemon's unit to exactly those namespaces, rather than adding a privileged helper.
- The release image bundles control, edge, node, agent, a Debian userland, Node, Python and build tools. Embedded Postgres and S3 listen on loopback, and external database and S3 settings override them. The image uses one state volume and serves the API and agent traffic on one HTTP front, leaving TLS to the platform.
- Each hosting platform gets a deployment shape that keeps state: a Render Blueprint, a Fly configuration, Railway and Coolify templates, Koyeb service fields, and cloud-init for a DigitalOcean machine, because App Platform has no persistent volume. A platform-supplied bootstrap key (`HERMITBOX_BOOTSTRAP_API_KEY`) is used without being stored or logged.
- `install.sh` takes HOME from the account's passwd entry when started without one, as cloud-init and other system services start it.

## Releases and CI

- A release is a pull request that raises `version` in `Cargo.toml`. `release.yml` tags and publishes it once CI passes on that commit of `main`, and both architectures and the tag are built from that commit.
- Each architecture is built natively on its own runner, with no cross-compiling or emulation. x86_64 file names keep their original names, and aarch64 files add the machine after the stem.
- Control, edge, the CLI and the SDKs release with the daemon, from the same tag.
- The template images are built, pushed and attested in their own job after the GitHub Release is published, from the same commit and at its version, so a slow or failing template never holds back the binaries, the install line or the main image; a failed template fails the run and is built again by re-running the failed jobs.
- A commit is a release only when it raises the version over its parent's, so a root commit, or a commit that changes anything else, never publishes; the version step reads the parent's `Cargo.toml` itself.
- `title.yml` checks a pull request's title (50 characters or fewer) and that its title and body mention nobody, on every open, edit and push, because CI's pull request runs don't start on an edit; main's ruleset requires it beside `proof`.
- `curl -fsSL https://hbx.sh | sh` is the install command, always written with `https://` (a bare host makes curl fetch over plain HTTP, where the script could be replaced before any redirect): the `hermitbox-get` Worker (`infra/get/`) passes the newest release's own `install.sh` through unchanged, `/v<version>` a pinned one, and with no such release, or when GitHub errs, answers a script that fails with the reason (an HTTP error would leave `curl -f | sh` running nothing and succeeding); a short name because the install line is the first thing anyone types.
- `measure.yml` measures the current build alone; a comparison is made against a released version, never a historical commit checked out by hash.
- `proof.yml` posts a `proof` status from the newest dispatch of each of the four proving workflows on a commit. Main's ruleset requires `proof`, a pull request, and no force-push or deletion, because a skipped job counts as passed and so cannot carry this.
- A proof counts for every commit with the same git tree as the commits its runs were dispatched on, since equal trees are byte-identical content; a run's tree comes from its `head_commit` so the look back over the newest 300 dispatches costs no extra calls, and only a dispatch of `proof.yml` from the default branch with `sha` posts it for a commit that has no runs.
- A quick push or a pull request runs only the suites its changed files reach. A file nobody named reaches every suite, and a job outside them still runs and passes with its steps skipped.
- A worker branch's proof (a dispatch of the four proving workflows on it) runs only the suites the files it changed since it left main reach: `scripts/changed-suites.sh` also answers for CI's acceptance, Any host, VM experiments and Rootless engines, and a workflow it doesn't reach runs only its `changes` job and reports success, which `proof.yml` counts, because a docs-only proof took about an hour. Each answer follows what reads the file: TypeScript reaches Any host because the CLI and the host bundle compile control's and the SDK's sources, the VM runtime's files are the ones VM experiments' pull requests already name, and main's pushes still run everything but a version alone (below).
- A proof, or a push to main, whose change only raises the version (`scripts/version-only.py`, against the same base `changed-suites` uses) runs the release's builds and version checks alone: CI's workspaces in full (the CLI's build, `release:check`, `openapi:check`, `docs:check`), the VM image helper built `--locked`, the committed OpenAPI documents against the types (the agent's carries the crate's version), Acceptance's build of the daemon and release image with the version their programs say, and Any host's host bundle build; the acceptance, end-to-end, bundle acceptance, VM experiment and rootless engine suites skip, because a release proved about an hour of suites that had passed on its parent and a version string reaches none of them but through those checks.
- Version-only is read from content: every changed line is one of the listed version fields moving to Cargo.toml's new version, and every required field says it afterwards, so a release that leaves one behind runs everything; the docs' image tags and bun.lock's workspace version are optional, because nothing reads them as the release. A file the list doesn't name is never version-only, and `version-only.test.ts` fails when a tracked file names the image or the Action by version outside the list.
- Main takes the short set only when the newest push run of each of the four workflows on the parent commit succeeded; anything else, the API's answer missing included, runs everything.
- A newer push to main cancels the older push's runs in progress in Any host, VM experiments and Rootless engines, but never CI's: release.yml publishes only after CI passes on the release commit, and an Actions push payload doesn't list the changed files, so a release push can't be told apart by its files. Main's schedule and dispatches keep a group apart from its pushes so a push never cancels them.
- Any host, VM experiments and Rootless engines run `changes` on every run but a worker branch's push, because a skipped `changes` skipped every job that waits on it by default, which left main's Any host pushes and schedule without the bundle and its acceptance.
- Rust jobs compile through sccache from a cache that only pushes to main publish; branches, pull requests and dispatches read it.
- Every build of the release image goes through buildx with GitHub Actions' cache backend, one scope per target and machine, on a builder of its own so a job's other `docker build`s keep the default one. Only main's pushes save a cache, so a branch reads main's and never replaces it; Any host's release-build also saves within a run, for that run's bundle job. The release only reads: its commit is one main's push already built and saved. The Dockerfile compiles the dependencies from the manifests alone before the sources arrive, a plain manifest-first layer rather than cargo-chef, which would add a dependency for the same layer.
- Control's end-to-end suites run in 4 shards balanced by bun's `--timings` from `.github/e2e-timings.json` (per-file durations a CI run measured), and the acceptance steps that read none of their output run in their own job beside them, because one runner took them in series for over two hours on every proof.
- `.github/e2e-timings.json` is refreshed by copying over it the `control-e2e-timings` artifact of a CI run on main (the end-to-end measurements job merges every shard's measured per-file durations into it), when the shards' times drift apart, because bun balances by the recorded durations and a stale file put 31 of the suites' 97 minutes on one shard.
- `release.ts check` fails, naming the file, when a committed `Cargo.lock` lists `hermitboxd` or `hermitbox-agent` at another version than Cargo.toml's, because a release that missed `vm-image/Cargo.lock` was caught only by the VM build.
- Any host's bundle runtime acceptance runs as five jobs at once instead of one that took 29 minutes: the tool checks with the Python cohort, the browser and JavaScript cohorts, the desktop and SSH cohorts, the installed VM, and the release image's userland, each fetching only the inputs it reads. A cohort stays whole on one runner, and a runner that times without the tool checks first warms each cohort with one untimed sandbox, so every sample is still taken with the bundle cached. `native-evidence` joins the parts into the `installed-native-tools` artifact, each part's files in its own folder beside one startup report; the job fails when the runners' host facts differ, since the report states its host once, or when a cohort is short.
- The cloud-init boot matrix runs in its own CI job beside the one-box install, one runner per distribution of `deploy/platforms/cloud-init/images.json`, each preparing the same unreleased artifacts as the one-box job and booting QEMU on the hosted runner's real KVM device, because two emulated boots in series on the one-box runner took 46 of its 52 minutes on every proof.
- Every pinned build input is fetched under one retry policy and checked against its digest, so a registry outage gets a retry, never a rerun until it passes.
- The documentation is served by the `hermitbox-docs` Worker (`infra/docs/`) over Workers Static Assets: pages stay under `/v<version>/`, an address without a version goes to the same page of the version the Worker was built with, and `/llms.txt` and `/llms-full.txt` answer with that version's files so agents have one stable address. Every host but docs.hermitbox.dev answers with `X-Robots-Tag: noindex`, so the workers.dev preview is never indexed.
- Every documentation page carries the agent panel (the install line, the copy-prompt and a link per agent to `docs/agents.md`), a Markdown twin at its route plus `.md` linked with `rel="alternate"`, and the site has `llms.txt` and `llms-full.txt` after llmstxt.org, all generated at build from the canonical Markdown (`site/tools/llms.ts`) so they never drift from the pages.
- `docs/agents.md` uses only each agent's documented install form (Cursor's install link, `claude mcp add`, `code --add-mcp`, `codex mcp add`), points at `~/.local/bin/hermitbox` because agents started from a desktop may not have it on `PATH`, and says ChatGPT has nothing to add until a public MCP endpoint exists, since `hermitbox mcp --http` is loopback-only.
- A pinned build input whose digest CI knows is read first from the input mirror at cache.hbx.sh (`infra/cache/`, a Cloudflare Worker over R2 keyed by SHA-256), then from its upstream, because upstream outages caused most of CI's flaky failures. The mirror is untrusted by design: a reader keeps only bytes that match its pinned digest, and a miss, an error or other bytes go upstream at once without spending the retry budget.
- Only main's push runs write to the input mirror, authenticated by the run's GitHub OIDC token (issuer, audience, repository, ref and event checked in the Worker), so no credential is stored anywhere. A write is kept only when its bytes hash to the digest it is written under, and an input over Cloudflare's 100 MB request body limit stays upstream-only.
- The mirror's Worker checks the token with jose's `jwtVerify` and `createRemoteJWKSet`, restricted to RS256, GitHub's issuer and the mirror's audience, and checks the run's repository, ref and event itself; it hashes an upload with Workers' DigestStream as it streams, because a 100 MB body buffered whole does not fit a Worker's 128 MB of memory.
- A stack in a user's project (`templates/stacks/`) never reads the input mirror: it reaches only the upstreams it pins.
- The native tool image's archives (`templates/native-tools/artifacts.json`) reach its build cache through `templates/native-tools/inputs.py` under the same policy, in CI and in the release alike, because the release's in-build download had neither the mirror nor a retry.
- Every request to the input mirror and to a pinned upstream names hermitbox and its repository in its User-Agent (`archive_retry.USER_AGENT`), because the Browser Integrity Check in front of hbx.sh refuses urllib's own `Python-urllib/x.y`.
- Ubuntu test fixtures try an ordered list of signed mirrors until one serves every index; apt's signature checks keep the plain-HTTP mirror safe.
- `hermitboxd`'s dependencies pass `cargo deny`, `Cargo.lock` is committed, and every build runs with `--locked`, because the daemon runs as root on every node.
- Every signature hermitbox verifies for a release, a join bootstrap or a host bundle is ML-DSA-65 (FIPS 204), because every key hermitbox holds is post-quantum; a node and the CLI refuse a release key of any other algorithm, naming it.
- `release.yml` and the preview workflows sign and check with Bun's node:crypto (`control/tools/release-sign.ts`), because the runners' OpenSSL 3.0 has no ML-DSA; the private key is read from the environment, never from a command line.

## SDKs, CLI and integrations

- The TypeScript and Python clients read `HERMITBOX_API_URL` and `HERMITBOX_API_KEY` when `url` and `key` are not passed; passed values win, and with neither the error says what to set. Additive before the first stable API; the TypeScript client reads the environment only where a process environment exists. Published examples keep passing both until a release carries the default, since v0.2.0 requires them.
- The SDKs expose sandbox and snapshot handles over a thin generated transport, and generate defaults and duration units from the control contract.
- TypeScript `run` uses native promises and asynchronous Python uses eager asyncio tasks. Collected output is bounded by the agent's capture limit while streams keep receiving.
- The SDKs generate default idempotency keys for create, fork and exec, and keep caller-supplied keys.
- The Python SDK closes a process stream at the protocol's exit event, so a finished command never waits for an intermediary to end the body.
- Every installer and the CLI find the client credential file through one function: an explicit path, else the user's configuration directory.
- `hermitbox create` tries the tiers in order and deletes each attempt a tier refuses.
- Framework adapters (AI SDKs, agent frameworks) are optional, separate entry points; their tests use scripted models, so none needs a model account.
- Integrations with Rivet, sandbox-agent, celld and OpenOrange are separate packages that talk to hermitbox over its public API and never bundle the other project's code.
- The GitHub Action is a thin shell over the CLI; an empty image input selects the default tier.
- Coding agents install in the user's sandbox from pinned upstream packages; hermitbox ships the recipes and no agent binaries.

## Third-party software and licences

### Policy

- hermitbox wraps maintained open-source programs at pinned versions and records each licence here before use. Each pin is checked against its publisher's digest or signature.
- Copyleft programs (GPL, LGPL, and MPL where noted) run as separate, unmodified programs and are never linked or copied into hermitbox. Images and bundles keep every upstream notice, and corresponding sources, recipes and patches ship as separate source assets.
- `hermitboxd`'s Rust dependencies may use only Apache-2.0, Apache-2.0 WITH LLVM-exception, BSD-3-Clause, ISC, MIT, Unicode-3.0 and Zlib (`deny.toml`), so its binary carries no obligation beyond its own licence and the notices.
- `deny.toml` grants four narrow exceptions, each for one locked crate: notify 8.2.1 (CC0-1.0), terminfo 0.9.0 (WTFPL, the embedded shell's terminfo parser), webpki-roots 1.0.11 (CDLA-Permissive-2.0, Mozilla CA data; its licence and notice ship with the image and release, `deploy/webpki-roots.NOTICE`) and option-ext 0.2.0 (MPL-2.0, an unmodified file-level dependency of the Jupyter client; its source and licence are linked in `interpreter.md`, and no source is vendored).
- webpki-root-certs 1.0.12 (CDLA-Permissive-2.0, the same terms) is selected only for other platforms and is absent from the shipped Linux graph.
- RUSTSEC-2026-0543 (chrono unmaintained) is the one ignored advisory, because the maintained shell, Jupyter and agentOS releases still require chrono.
- Inventories of resolved packages and their notices: [interpreter base](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/interpreter-base.json), [Python interpreter](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/python-interpreter.json), [Node interpreter](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/node-interpreter.json), [Node canvas](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/node-canvas.json), [browser](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/browser.json), [desktop Python](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/desktop-python.json), [native tools (Debian)](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/native-tools-debian.json), [Playwright](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/playwright.json), [rclone modules](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/rclone-modules.json), [standalone Python](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/python-standalone.json), [micromamba builder](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/micromamba-builder.json), [earlier conda-forge prefix lock](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/conda-prefix.lock.json) and [VM kernel configuration inspection](https://github.com/hermitbox/hermitbox/blob/f9b5d4aa3cc4636cd916d6b84e56d6ba38b271a7/docs/licences/firecracker-kernel.json).

### Rust crates linked into hermitboxd and the agent

- agentOS client 0.4.7 (Apache-2.0), pinned with its sidecar.
- Jupyter: jupyter-zmq-client 3.0.1 and jupyter-protocol 2.0.3 (BSD-3-Clause) and zeromq 0.7.0 (MIT), with async-io 2.6.0, concurrent-queue 2.5.0, futures-lite 2.6.1, parking 2.2.1 and polling 3.11.0 (Apache-2.0 OR MIT); asynchronous-codec 0.7.0 and redox_users 0.5.3 (MIT); crossbeam-queue 0.3.14, crossbeam-utils 0.8.23, dirs 6.0.0, dirs-sys 0.5.0 and hermit-abi 0.5.3 (MIT OR Apache-2.0); saa 5.6.2, scc 3.8.8 and sdd 4.8.11 (Apache-2.0); sha1_smol 1.0.1 (BSD-3-Clause); and option-ext 0.2.0 (MPL-2.0, exception above).
- SSH keys: ssh-key 0.6.7 (Apache-2.0 OR MIT), Ed25519 generation only, with base16ct 0.2.0, base64ct 1.8.3, const-oid 0.9.6, crypto-bigint 0.5.5, der 0.7.10, ecdsa 0.16.9, ed25519 2.2.3, elliptic-curve 0.13.8, p256 0.13.2, p384 0.13.1, p521 0.13.3, pem-rfc7468 0.7.0, pkcs1 0.7.5, pkcs8 0.10.2, primeorder 0.13.6, rfc6979 0.4.0, sec1 0.7.3, signature 2.2.0, spki 0.7.3, ssh-cipher 0.2.0 and ssh-encoding 0.2.0 (Apache-2.0 OR MIT); cipher 0.4.4, hmac 0.12.1, inout 0.1.4, num-iter 0.1.46, rand_chacha 0.3.1, rsa 0.9.10, rustc_version 0.4.1 and semver 1.0.28 (MIT OR Apache-2.0); curve25519-dalek-derive 0.1.1, ff 0.13.1, group 0.13.0 and num-bigint-dig 0.8.6 (MIT/Apache-2.0); curve25519-dalek 4.1.3 and ed25519-dalek 2.2.0 (BSD-3-Clause); fiat-crypto 0.2.9 (MIT OR Apache-2.0 OR BSD-1-Clause); spin 0.9.9 (MIT); and chrono 0.4.45 (MIT OR Apache-2.0).
- Shell and terminals: Brush (brush-core 0.5.0 and brush-builtins 0.2.0, MIT) and portable-pty 0.9.0 (MIT).
- Host and kernel interfaces: nix 0.31.3 (MIT) and rustix for namespaces and mounts; Landlock 0.4.7 (Apache-2.0 OR MIT); procfs 0.18.0 (MIT OR Apache-2.0), so no kernel format is parsed by hand; linux-raw-sys 0.12.1 (under its MIT option) for UAPI constants; seccompiler 0.5.0 (Apache-2.0 OR BSD-3-Clause); object 0.39.1 and 0.40.0 (Apache-2.0 OR MIT) for ELF headers.
- eBPF: aya 0.16.0 and aya-obj 0.6.0 (MIT OR Apache-2.0), chosen over libbpf-rs because libbpf links libelf (GPL-2.0-or-later OR LGPL-3.0-or-later); aya reads the clang object in pure Rust.
- KVM: kvm-ioctls 0.24.0 (Apache-2.0 OR MIT), kvm-bindings 0.14.0 (Apache-2.0) and vmm-sys-util 0.15.0 (BSD-3-Clause), so no ioctl number or structure is copied.
- Engines and images: Bollard 0.21.1 (Apache-2.0); podman-api-stubs 0.9.0 (MIT), because the podman-api 0.11.0 SDK depends on an unmaintained crate; oci-spec 0.10.0 (Apache-2.0), whose reference parser also matches allowed-image prefixes.
- Networking: hyper and h2 (MIT) for HTTP/2 CONNECT streams, tokio-util (MIT) framing, Tokio (MIT) and Axum (MIT); tokio-vsock 0.7.3 and vsock 0.5.5 (Apache-2.0) with memoffset 0.9.1 (MIT); hickory-net and hickory-proto 0.26.3 (MIT OR Apache-2.0, MIT selected) for upstream DNS; rtnetlink 0.24.0 (MIT); ipnet 2.12.2 (MIT OR Apache-2.0, MIT selected); percent-encoding 2.3.2 (MIT OR Apache-2.0).
- TLS and crypto: rustls with ring 0.17.14 (ISC and Apache-2.0, with MIT notices); x509-parser 0.18 (MIT OR Apache-2.0) to read the clientAuth extension; webpki-roots 1.0.11 (exception above).
- Release signatures: ml-dsa 0.1.2 (Apache-2.0 OR MIT), RustCrypto's pure-Rust FIPS 204, because ring has no ML-DSA, with its SubjectPublicKeyInfo reader: pkcs8 0.11.0, spki 0.8.1, der 0.8.3, pem-rfc7468 1.0.0, signature 3.0.0, module-lattice 0.2.4, shake 0.1.0, keccak 0.2.2, sponge-cursor 0.1.0, ctutils 0.4.8 and cmov 0.5.4 (Apache-2.0 OR MIT).
- Other: uuid 1.29.0 (MIT OR Apache-2.0); flate2 1.1.10 (MIT OR Apache-2.0) with miniz_oxide 0.9.1 (MIT OR Zlib OR Apache-2.0), and zlib-rs 0.6.8 (Zlib) locked; notify 8.2.1 (CC0-1.0) and terminfo 0.9.0 (WTFPL), both exceptions above; OpenTelemetry API, SDK and HTTP adapter 0.33.1 (Apache-2.0).
- The VM image helper is its own workspace (`vm-image/`): oci-client 0.18.0 (Apache-2.0) with reqwest 0.13.5, http-auth 0.1.10, olpc-cjson 0.1.4, rustls-platform-verifier 0.7.1, rustls-native-certs 0.8.5, openssl-probe 0.2.2 (it locates host trust data and links no OpenSSL) and unicase 2.10.0, under MIT, Apache-2.0 or ISC.

### Container and gVisor tiers

- gVisor runsc release-20261109.0 (Apache-2.0), pinned by its published SHA-512 in `deploy/gvisor.json` with its sidecar programs, registered as the engine's OCI runtime; release-20261102.0 is the upgrade test's previous version.
- Docker Engine, CLI and BuildKit (Apache-2.0) and Podman (Apache-2.0) are external engines. CI pins Docker 29.9.2 with RootlessKit 3.3.0, and Ubuntu's Podman 4.9.3+ds1-1ubuntu0.2.
- The release image bundles Debian's Docker and nftables clients as separate programs, with their Debian source versions and licences in the runtime inventory.
- The AppArmor profile derives from moby/profiles at `4b8214f` (Apache-2.0); AppArmor's parser (GPL-2.0-or-later, library LGPL) stays an external program.
- fuse-overlayfs 1.18 (GPL-3.0-or-later; its source headers permit GPL-2.0-or-later) is a CI diagnostic only, never in a product bundle.

### Process and wasm tiers

- agentOS 0.4.7 sidecar (Apache-2.0, source `a4c049b`), verified against its published SHA-512, with its notice in `deploy/agentos.NOTICE`. Its V8 binding and V8 keep their BSD-3-Clause and component notices, and its bundled OpenSSL (Apache-2.0), rustls (Apache-2.0 OR ISC OR MIT), AWS-LC (Apache-2.0 AND ISC), rusqlite (MIT) and SQLite (public domain) keep theirs.
- bubblewrap 0.13.1 (LGPL-2.0-or-later, used under 2.1-or-later; conda-forge `haf0a511_0`) with libcap 2.78 (under its BSD-3-Clause option), for x86_64 and aarch64, run unmodified and never setuid.
- python-build-standalone release 20261110, CPython 3.12.16 (PSF-2.0 and its dependency notices; the build project is MPL-2.0 and none of its scripts are used). Its optional Berkeley DB extension keeps Sleepycat's corresponding-source terms.
- Node.js 24.22.1 official Linux tarball (MIT, with npm and dependency notices).
- Chrome Headless Shell 158.0.8127.18 (BSD, with its LGPL and MPL third-party notices), found through Playwright Core 1.65.0's browser manifest.
- Puppeteer Core 25.17.0 (Apache-2.0) and ws 8.22.1 (MIT) for CDP and WebSocket handling, with their 25 locked packages under Apache-2.0, MIT, ISC and BSD-3-Clause.
- conda-forge library and font archives pinned in `templates/process-tools/`, with PCRE2 10.47 (BSD-3-Clause WITH PCRE2-exception), SLJIT (BSD-2-Clause) and Noto Emoji 2.034 (OFL-1.1) notices taken from upstream sources; LGPL, MPL, GPL and GCC runtime-exception notices are kept.
- micromamba 2.10.0 (BSD-3-Clause AND MIT AND OpenSSL) is a build-time package extractor only and is never shipped. zstd (under its BSD-3-Clause option) is a build-time decoder only.
- The process desktop stages Debian's Xvfb 21.1.7-3+deb12u13 (MIT/X11), xdotool 3.20160805.1-5 (BSD-3-Clause), xauth and xkbcomp, Chromium 156.0.8078.79-1~deb12u1, scrot 1.8.1-1, x11vnc 0.9.16-9 (GPL-2.0), OpenSSH 9.2p1-2+deb12u10, NSS 3.87.1 (MPL-2.0) and libsqlite3-0 3.40.1-2+deb12u2 (public domain; Debian packaging GPL-2+), with their libaudit, libcap-ng, libgcrypt, libgpg-error and libsystemd libraries (LGPL-2.1).
- noVNC 1.7.0 (MPL-2.0, with BSD, MIT and OFL assets) and websockify 0.13.0 (LGPL-3.0-only), run unmodified with only their Unix-socket and token-file features.

### Interpreter, browser, desktop and tool templates

- Interpreter bases: CPython 3.12.14 (PSF-2.0), Node.js 24.22.1 (MIT) and Debian bookworm packages, whose LGPL and GPL system packages stay unmodified image dependencies.
- Jupyter protocol 5.5: jupyter_client 8.10.0 and ipykernel 7.4.0 (BSD-3-Clause).
- Python kernel libraries: numpy 2.5.4 (BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0), pandas 3.1.1, scipy 1.18.1 and scikit-learn 1.9.1 (BSD-3-Clause), matplotlib 3.11.2 (LicenseRef-Matplotlib AND PSF-2.0), requests 2.34.2 (Apache-2.0), pillow 13.0.0 (MIT-CMU), ptyprocess (ISC) and certifi (MPL-2.0, unmodified data), each wheel pinned by SHA-256.
- JavaScript kernel: IJavascript 5.2.1, jp-kernel 2.0.0, jmp 2.0.0 and NEL 1.3.0 (BSD-3-Clause); uuid 3.4.0, cmake-ts 1.0.2 and node-addon-api 8.9.2 (MIT); zeromq 6.8.0 (MIT AND MPL-2.0, its libzmq unmodified).
- Charts: Chart.js 4.6.1 and @kurkle/color (MIT) on @napi-rs/canvas 1.1.0 (MIT), whose Skia (`b94213a`, BSD-3-Clause, with Chromium's BSD notice) and 129 Cargo dependencies keep their notices.
- Container native tools: Debian bookworm's Xvfb, JWM (MIT), x11vnc (GPL-2.0), xdotool, scrot, rxvt-unicode and OpenSSH 9.2p1 (BSD-style, ISC and MIT), each archive hash-verified and inventoried.
- Mountpoint for Amazon S3 1.24.0 (Apache-2.0, signature verified) and rclone 1.76.0 (MIT, its 269 vendored modules recorded, with ginkgo v1.16.5 and goconvey v1.8.1 MIT notices).
- Browser template: the official Playwright 1.65.0 image (Apache-2.0) with Chromium headless shell 158.0.8127.18 and FFmpeg (LGPL-2.1), and http-proxy 1.18.1 (MIT) for HTTP and WebSocket transport.
- Desktop template Python: websockify 0.13.0, jwcrypto (LGPL-3.0, external) and NumPy. browser-use 1.0.8 (MIT), on the same pinned headless shell.
- Desktop stack: jlesage/baseimage-gui v4.15.0 (MIT build recipes) with TigerVNC 1.16.2, JWM 2.4.3 and rxvt-unicode as separate GPL programs.

### VM tier

- Firecracker 1.18.0 (Apache-2.0), built from source at `eaf83bb`, and its jailer. Its 167-package Cargo graph uses Apache-2.0, MIT, BSD and ISC alternatives with Unicode notices.
- The monitor's static build uses Bootlin's x86-64 glibc stable-2026.08-1 toolchain: GCC 15.3.0 (GPL-3.0-or-later with the runtime exception), glibc 2.44 (LGPL-2.1-or-later) and Buildroot recipes (GPL-2.0-or-later). The toolchain is a separate build input and is never redistributed; the monitor ships with its sources, notices and relinking instructions. libseccomp 2.5.5 (LGPL-2.1) is a build-time system library, never linked into `hermitboxd`.
- Guest kernel: Kata Containers 4.3.1's published `vmlinux-6.18.56-208` (GPL-2.0), unchanged, with its complete source archive kept.
- The Firecracker Go SDK (Apache-2.0, `ef254567cf5d`) and logrus 1.9.3 (MIT) are used by the VM acceptance programs.
- gvisor-tap-vsock 0.9.0 (Apache-2.0) in the packet helper, with mdlayher/vsock 1.3.0 and mdlayher/socket (MIT), golang.org/x/sys 0.45.0 (BSD-3-Clause), vishvananda/netlink 1.3.1 (Apache-2.0), insomniacslk/dhcp (MIT, Apache-2.0 and BSD notices), josharian/native 1.1.0 and mdlayher/packet 1.1.2 (MIT), and google/nftables 0.3.0 (Apache-2.0).
- CNI plugins 1.10.0 and CNI 1.3.1 (Apache-2.0) for root's TAP; their dependency filepath-securejoin 0.7.0 has BSD-3-Clause and MPL-2.0 files and stays in the external TAP program.
- Alpine 3.24 filesystem tools, run unchanged through their own loader: erofs-utils 1.9.1-r0 (GPL-2.0-or-later), e2fsprogs 1.47.4-r0 (GPL-2.0, LGPL-2.0, BSD and MIT), libblkid and libuuid 2.42.3-r1 (LGPL-2.1-or-later and BSD-3-Clause), musl 1.2.6-r3 and libeconf 0.8.3-r0 (MIT), lz4-libs 1.10.0-r1 (BSD-2-Clause) and zlib 1.4-r0 (Zlib).
- Guest firewall: nftables 1.1.6 (GPL-2.0; its embedded mini-GMP under GPL-2.0-or-later), libnftnl 1.3.1 (GPL-2.0-or-later) and libmnl 1.0.5 (LGPL-2.1-or-later), built as a separate program from musl-dev, Linux 7.0.0-r1 UAPI headers (GPL-2.0 WITH Linux-syscall-note) and flex 2.6.4-r8 (BSD-2-Clause).
- apk-tools 3.0.9-r0 (GPL-2.0-only) from the pinned Alpine 3.24.4 image verifies package signatures; that image's OpenSSL 3.5.9-r0 is Apache-2.0.
- Go 1.27.3 (BSD-3-Clause) builds the separate Go programs and is not a host prerequisite.
- BusyBox (GPL-2.0-only) runs only as a guest test executable.

### Control, edge and services

- PostgreSQL 17.12.0 from theseus-rs/postgresql-binaries (PostgreSQL licence), pinned by its published SHA-256s for x86_64 and aarch64 and run as a separate supervised program; its archive carries its Debian runtime libraries with their copyright files. The server preset's PostgreSQL image is `postgres:17.12-alpine`, pinned by index digest.
- RustFS 1.0.0 (Apache-2.0), pinned by its multi-architecture index digest, listening on loopback.
- Caddy v2.11.9 (Apache-2.0) serves API TLS; Pebble v2.10.3 (MPL-2.0) is a CI-only ACME server.
- Tini 0.19.0 (MIT) runs host-bundle services with parent-death signalling.
- util-linux's setpriv (GPL-2.0-or-later) drops credentials as a separate program, and systemd (LGPL-2.1-or-later) supervises user and system services.
- Bun 1.4.5 (MIT, with its bundled notices) runs control, edge and the CLI; control's lifecycle lock uses the SQLite embedded in Bun.
- Control uses Hono (MIT), Zod 4 (MIT), http-status-codes 2.3.0 (MIT) and tar-stream 3.2.2 (MIT).
- The input mirror's Worker (`infra/cache/`) uses http-status-codes 2.3.0 (MIT) and jose 6.2.15 (MIT) from the root install.
- asn1js 3.1.0 (BSD-3-Clause), already locked under @peculiar/x509, reads an ML-DSA release key's PKCS#8 (`control/src/release-signature.ts`), because Bun's crypto reads only RFC 9881's seed form and OpenSSL's genpkey writes the `both` form; the seed is taken and the expanded key left aside, so no ASN.1 is parsed by hand.
- @prometheus-io/client 0.16.1 (Apache-2.0); OpenTelemetry JavaScript API 1.9.0, core, context-async-hooks and sdk-trace 2.12.0, and the OTLP HTTP trace exporter 0.223.0 (Apache-2.0).
- MCP TypeScript SDK 1.32.2 (MIT), negotiating MCP revision 2025-11-25.

### SDKs and integrations

- TypeScript SDK types: openapi-typescript 7.13.0 (MIT). Python SDK: websockets (BSD-3-Clause), 17.4 normally and 15.0.1 under the Google ADK extra, and OpenTelemetry Python API and SDK 1.45.2 (Apache-2.0).
- AI SDK adapters: Vercel AI SDK 7.0.181 (Apache-2.0); OpenAI Agents SDK for TypeScript 0.22.0 (MIT) with zod-to-json-schema 3.25.1 (ISC); Anthropic TypeScript SDK 1.14.0 and Python SDK 2.14.0 (Apache-2.0); jsonschema 4.26.0 (MIT); openai-agents 0.26.0 (MIT); pydantic-ai-slim 2.74.0 (MIT).
- Agent framework adapters: langchain-core 1.8.4, LangChain 1.5.2 and LangGraph 1.2.24 for Python, and @langchain/core 1.5.1, langchain 1.6.8 and @langchain/langgraph 1.7.5 for TypeScript (MIT); @mastra/core 1.86.0 (Apache-2.0); llamaindex 0.12.1, @llamaindex/core 0.6.22 and llama-index-core 0.14.26 (MIT); CrewAI 1.15.45 (MIT); Google ADK 2.15.1 (Apache-2.0).
- The Claude Agent SDK adapter uses the caller's installed TypeScript SDK 0.3.332, supplied under its publisher's commercial terms and never bundled.
- RivetKit 3.0.1 (Apache-2.0); sandbox-agent 0.5.5 (Apache-2.0); celld v0.6.3 (Apache-2.0), built with rusty_v8 152.1.0 (MIT, with V8's notices); sandbox-adapter 0.5.6 (Apache-2.0) types as a development dependency only; OpenOrange 1.0.2 (Apache-2.0). None is bundled. The coding-agent example uses the OpenAI SDK 7.50.0 (Apache-2.0).
- Coding-agent recipes install, from their publishers' packages: Codex, Gemini CLI, Goose, Cline, Continue CLI, Aider, Qwen Code and Mistral Vibe (Apache-2.0); OpenCode, Kilo, OpenHands and Pi (MIT); Crush (FSL-1.1-MIT); and Claude Code, Amp, GitHub Copilot, Auggie, Cursor Agent and Factory Droid under their publishers' commercial terms.

### Stack templates

- Node starters run on the pinned Node.js 24.22.1 image. These are MIT: Next.js 16.4.6, React and React DOM 19.3.1, Vite 8.3.8 and its official plugins, Vue 3.5.46, Vue Router 5.5.1, Nuxt 4.7.0, Astro 7.4.13, SvelteKit 3.4.0 with Svelte 5.59.1, its Vite plugin 7.3.2 and Node adapter 6.0.5, React Router 8.5.3, SolidStart 2.2.3 with Solid 1.9.20 and Nitro 3.0.261103-rc, Express 5.3.0, Hono 4.13.22 with its Node adapter 2.1.11, Fastify 5.12.8, NestJS 12.6.2 with Nest CLI 12.0.15, Angular 22.3.0 with AnalogJS's Vite Angular plugin 3.0.0, Expo 58.0.26 with Metro runtime 58.0.17 and babel-preset-expo 58.0.26, React Native 0.88.1, React Native Web 0.21.4, httpxy 0.5.6 and Node typings 24.19.4.
- RxJS 7.8.2, reflect-metadata 0.2.2 and TypeScript 6.0.3 (Apache-2.0), tslib 2.9.1 (0BSD) and isbot 5.2.4 (Unlicense). Next.js's optional Sharp and libvips keep Apache-2.0 and LGPL-3.0-or-later. Bun 1.4.5 and Deno 2.9.6 install through their MIT-licensed npm packages.
- Python starters run on the pinned Python 3.12.14 image: Flask 3.1.3, Django 6.1.3, Uvicorn 0.54.0, HTTPX 0.28.1 and Starlette 1.10.0 (BSD-3-Clause); FastAPI 0.165.0 and watchfiles 1.3.0 (MIT); JupyterLab 4.6.6, Jupyter Server 2.21.1 and nbclient 0.11.0 (BSD-3-Clause); DuckDB 2.0.1 (MIT) and SQLite (public domain).
- Retrieval starters: LangGraph 1.2.24 and LlamaIndex Core 0.14.26 (MIT), with the vector servers Qdrant 1.20.2 and Chroma 1.5.9 (Apache-2.0).
- Go 1.27.4 (BSD-3-Clause); Ruby 4.0.10 (Ruby or BSD-2-Clause) with WEBrick 1.9.2 (Ruby or BSD-2-Clause), Rails 8.1.4.1, Rackup 2.3.1 and tzinfo-data 1.2026.6 (MIT); PHP 8.5.13 (PHP License 3.01) with Laravel 13.44.1 and Composer 2.11.3 (MIT); Rust 1.99.1 with tiny_http 0.12.0 (MIT or Apache-2.0), Axum 0.8.9 and Tokio 1.54.1 (MIT); Elixir 1.20.5 on OTP 29 with Phoenix 1.8.17 and Bandit 1.15.0 (MIT) and Jason 1.4.5 (Apache-2.0).
- Eclipse Temurin OpenJDK 21.0.13.1+2 (GPL-2.0-only with the Classpath exception) with Spring Boot 4.2.0, Apache Maven 3.10.2 and Maven Wrapper 3.3.4 (Apache-2.0); the .NET SDK 10.0.404 with .NET and ASP.NET Core 10.0.15 (MIT).
- Databases: PostgreSQL 17.12 from the release's pins (PostgreSQL licence) with pgvector 0.8.7 (PostgreSQL licence) and nss_wrapper (BSD-3-Clause); Redis 7.0.15 from Debian bookworm and Redis 7.2.17 from Alpine (BSD-3-Clause); MySQL Community 8.4 (GPL-2.0-only with additional permissions); MongoDB Community 8.0 (Server Side Public License v1), whose image the operator's node pulls and hermitbox does not ship.
- Local model starters: the llama.cpp CPU server b12723 (MIT) with the Q4_K_M quantization of SmolLM2-135M-Instruct (Apache-2.0) from a pinned upstream revision, checked by its GGUF digest.
- The stacks' private service supervisor uses the official Node 24.22.3 Alpine image, with Node's notices and the GCC runtime libraries' GPL-3.0 and Runtime Library Exception.

### Build, test and documentation tools

- Rust 1.99.1 toolchain (MIT OR Apache-2.0). clang-18 and llvm-18 (Apache-2.0 WITH LLVM-exception) compile the BPF programs against libbpf-dev 1.3.0's headers (LGPL-2.1-only OR BSD-2-Clause, used under BSD-2-Clause) and linux-libc-dev's UAPI headers (GPL-2.0 WITH Linux-syscall-note); only declarations and macros reach the object.
- actionlint 1.7.12 (MIT) and ShellCheck 0.11.0 (GPL-3.0, a separate program, never shipped).
- sccache 0.18.0 (Apache-2.0), installed by taiki-e/install-action (Apache-2.0 OR MIT); actions/download-artifact 8.0.2 (MIT); GitHub CLI v2.103.3 (MIT).
- docker/setup-buildx-action 4.4.1 and docker/build-push-action 7.4.0 (Apache-2.0) build the release image with BuildKit's GitHub Actions cache.
- Booted-host tests: Incus 6.0.0 (Apache-2.0) with Debian 13, Ubuntu 24.04, Fedora 44 (MIT compilation licence) and Alpine 3.24 images; QEMU 8.2.2 (GPL-2.0), cloud-utils 0.33 (GPL-3.0), genisoimage 1.1.11 (GPL-2.0) and cloud-init 26.2 (GPL-3.0 or Apache-2.0) for the cloud-init boot matrix, all separate CI programs.
- Diagnostics run as separate programs and are never shipped: GNU readelf 2.44 (GPL-3.0-or-later), strace (LGPL-2.1-or-later), GNU coreutils (GPL-3.0-or-later), util-linux mount (GPL-2.0-or-later, libmount LGPL-2.1-or-later), curl (curl licence) and OpenSSL 3 (Apache-2.0).
- Ajv 8.20.0 and ajv-formats 3.0.1 (MIT) validate platform templates against their owners' schemas.
- The documentation site uses the Hermitbox design system's `tokens.css`, `components/bundle.css`, `components/bundle.js` and fonts, vendored unchanged under `site/public/design-system/` and pinned by SHA-256 in `site/design-system.lock.json` (`site/tools/design.ts` fails the build on any other byte); the fonts are Redaction, Departure Mono and Schibsted Grotesk, all OFL-1.1 (`LICENSES/OFL-1.1.txt`, served beside them).
- The docs' copy buttons use `site/src/copy.js`, not the design system's `bindCopy`, which shows "copied" even when the clipboard refuses: ours says so only after the write succeeds and otherwise shows the full text selected to copy by hand.
- Each pull request from this repository that touches the documentation uploads a preview version of `hermitbox-docs` (`.github/workflows/docs-preview.yml`, `infra/docs/preview.sh`), served at `pr-<n>-docs.priv.hbx.sh` and `<commit>-docs.priv.hbx.sh` and linked in one comment on the pull request; uploading never changes production, the job is not a required check, and fork pull requests get no preview because they have no secrets.
- The README carries the design system's GitHub art (header, states strip, divider, feature sprites, add-to-agent badges), copied unchanged into `.github/assets/` and shown dark or light through `<picture>`; its first and last TypeScript blocks stay the quickstart and the container example that acceptance runs.
- Wrangler 4.169.0 (MIT OR Apache-2.0) deploys the Workers in `infra/`, run with `bunx` at that version and never shipped.
- Documentation site: Astro 7.4.12, Starlight 0.43.1 and Pagefind 1.6.0 (MIT), with the Svelte MIT notice for Pagefind's 4.2.1-based UI; parse5 8.1.1, gray-matter 4.0.3 and mdast-util-from-markdown 2.1.0 (MIT) for export and link checks.
- The user preset accepts a group-writable directory under the home only when its group is the owner's private group (primary group, no other member or account, per /etc/passwd and /etc/group), the rule Debian's OpenSSH uses: umask 002 is the default on Debian and Ubuntu, and refusing it broke the one-command install there; a group the files don't list stays refused.
