Skip to content
docs
type to search↑↓ move↵ openesc close
v0.3.2github

Decisions

85 min readv0.3.2this page as markdown

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 might 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 sandbox gets its own ML-DSA-65 (FIPS 204) signing key, and only its SubjectPublicKeyInfo 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, the agent, the VM image helper and the Rust SDK is rustls with aws-lc-rs (TLS 1.3 only), and OpenSSL and native-tls stay banned in deny.toml, so no host carries an OpenSSL to patch. Fleet and node links require hybrid X25519MLKEM768 alone (in Rust and in Bun’s control plane, edge and CLI); hermitbox node join downloads and stages hermitboxd and hermitbox-agent through its own X25519MLKEM768 client before running the signed bootstrap script, so hosts with older system curl join without weakening fleet TLS; public HTTPS fronts offer X25519MLKEM768 with P-384 fallback; outbound clients to third-party hosts prefer X25519MLKEM768 then P-384 ahead of legacy TLS 1.3 curves for external registries that negotiate neither.
  • 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, and so are the logs, from the agent’s logbook (x-hermitbox-agent.logPath), so reading them never wakes a sandbox. The SDKs read logs through the public API for that.
  • The CLI and MCP wake a sleeping sandbox before a verb that runs in its agent (search, replace, chmod, sync, a directory upload), as exec does, and leave it asleep for the record, its files and its logs.
  • File paths are relative to the data directory on every tier; an absolute path or one that leaves it is refused with that reason rather than “permission denied”.
  • A process sandbox reports memoryLimitBytes and pidsLimit only where its cgroup enforces them, as memory-limit says.
  • 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 hybrid post-quantum key exchange (mlkem768x25519-sha256 where OpenSSH 9.9+ supports it, sntrup761x25519-sha512@openssh.com on OpenSSH 9.0–9.8, refusing classical-only KEX) and short-lived ECDSA P-384 (ecdsa-sha2-nistp384) client and ephemeral host keys made in agent memory, refusing Ed25519 and P-256; OpenSSH has no ML-DSA host or user key support yet. 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.
  • The coding-agent catalog (its recipes, install plans and the process tier’s runtime bootstrap) moves from the CLI to the TypeScript SDK as hermitbox/coding-agents, under the SDK’s Apache-2.0, so an app installs an agent into a sandbox it already has (installCodingAgent) and gives Claude Code or Codex a headless task (codingAgentTask) with the same pins hermitbox create uses; the SDK carries a generated copy of the image and runtime pins (generate-coding-agents.ts), since its package holds no templates.

Storage, snapshots and transfer

  • Snapshot and fork copy persistent files, not memory, except that a VM fork on one node can 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 template’s preview readiness, in both SDKs, rides out a restart of its sandbox: the check waits for the agent to answer through the edge (a 502, 503 or 504, or a dropped connection, meanwhile is the restart) and runs again within the same time. A snapshot restarts a running sandbox, so on a handle that prepared the preview snapshot() prepares it again before it returns, as the create or fork that prepared it did; a fork’s first moments can restart it too. Without it, the preview right after a snapshot or fork reached a restarting agent and answered 502. Control gives a running sandbox’s agent five seconds to answer before it refuses a token with not_running; a new fork can take longer, so the wait counts that refusal as the restart too, and asks for the token’s limits only once the agent answers.
  • 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.
  • A fork of a sandbox made from a template comes back with its preview ready, in both SDKs, as the template’s own sandbox does (the project’s readiness check, then the port exposed), unless it was made stopped; a fork is how a project’s version is tried or restored, so it needs its preview the same way.
  • A copy of a sandbox’s data (a snapshot, a fork, an archive unpacked) keeps each directory as private as it was: its mode masked to 0755 like a file’s, with the owner’s full access added, instead of every directory becoming 0755. PostgreSQL refuses a data directory others can read, so a fork of a project with its database never started its database.

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.
  • A request without a body to an exposed port, on a sandbox that request woke, waits within the wake’s own hold for the app to accept: the agent answers before a dev server listens again and closes a forward the app refuses, so the first preview after a wake was a 502. Other requests, and a port on a sandbox that was already running, fail at once as before. A route update for its sandbox that ends such a request before any answer doesn’t fail it, whoever woke the sandbox: the request starts again on the route held now, within its first hold, and so wakes a sandbox that fell asleep after the edge last read its route (a paused app holds the connection without answering). A changed epoch or agent key still ends it with 409.

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.
  • A create that placement refuses for what every node is (its tier, guarantees, features, region or pinned node) is removed with the refusal: no node of the fleet as it stands takes it, and its caller holds no id. Autoscaling still counts the refusal, and a retry, with the same Idempotency-Key or none, is placed once a host that offers it joins. One refused for room, health or an empty fleet is kept for upkeep to place, as autoscaling and stack forks rely on. The refusal names the tier, what is missing and each node’s reason.
  • 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/reference/capabilities.md) lists Hermitbox’s own capabilities, each linked to the code or document that implements it, and names no other product.
  • Placement credits a process request with network none with private-network on a node that announces the process tier’s private-pids (its namespaces), as hermitboxd starts such a copy in a network namespace of its own and reports it; the tier itself never announces a private network, so the server preset, which requires it of every sandbox, refused every process sandbox.

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 installers never print the API key, so a log of their output never holds one: it is saved in the private client file, and hermitbox config key prints it. The release image, whose log is the only way out of a container, prints its first key once, before /healthz first answers, unless HERMITBOX_BOOTSTRAP_API_KEY supplies it. A first-key marker is claimed atomically before it is shown.

  • Without a systemd user unit, the user preset’s supervisor runs in a session of its own and hermitbox up returns, so the one command ends and logging out leaves it running; hermitbox up starts it again after a restart. The container preset stays in the foreground, as a container’s main process.

  • The user preset’s lifecycle lock is runtime state, in its XDG runtime directory, and a purge removes it with that directory.

  • hermitbox stop and purge wait up to 30 seconds, probing each second, for the engine their workloads run on to answer before that tier counts as unavailable (src/cli/local_stop.rs), because an engine still starting after a restart, such as a socket-activated Podman service, can miss the two-second probe, and a purge then refused and kept state although nothing was wrong.

  • The release image reads an empty public-address variable as unset, and names in its startup failure line the uid that owns a state directory it can’t use and what to run 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.

  • Each tier that is off carries the action its own cause needs (runtime/configured.rs): an engine turned off inside a container names the engine’s host, a missing /dev/kvm names KVM access, runsc names runsc install. An evidence line names the path it read, and an engine socket that refuses this user names its mode and group.

  • hermitbox up --check for the user and container presets lists what those presets install under their own paths; the server’s root-only units, environments and volumes are the server preset’s plan alone.

  • hermitbox up writes for a person only where one reads a terminal: stderr that is a TTY and not TERM=dumb gets the design system’s logo and one live line per step (spinner, bar where the share done is known, time), and a TTY stdout gets a short summary (version, preset, tiers on, tiers off grouped by the one action that turns them on, process limits, API, credentials, the next command) in place of the JSON record, which pipes, logs and CI keep unchanged. hermitbox doctor holds every capability. Nothing is asked and no flag is added.

  • hermitbox doctor on a terminal reads the probe’s JSON and groups it: the tiers first, then each tier or capability that is off, named together with the others one action turns on, with its evidence cut to one line and that action. What is on gets a tick. --verbose prints the probe’s own text with every measurement in full; --json, pipes and CI get the probe’s output unchanged.

  • The server preset installs agentOS so its node serves the wasm tier as the user preset’s does. The node already runs runtime = "auto" with [wasm]’s default distribution (DEFAULT_AGENTOS); what it lacked was the files. release.yml packs the release image’s whole distribution as agentos.tar.gz, an optional entry of the signed server manifest (x86_64 alone has one), and hermitbox up checks it like the host bundle (no link, special file, absolute name or ..), unpacks it beside the installed one and swaps it in whole, as its own step. The release’s existing agentos-native-sidecar and agentos-assets-linux-x64.tar.gz stay as published. The server summary now names every tier the node’s probe measures on, not container alone.

  • On a root server install (root reading /etc/hermitboxd/hermitboxd.toml), hermitbox doctor and --fix leave out linger and the user session: the node is the system’s service, and neither keeps it running.

  • hermitbox doctor --fix makes the changes doctor’s measurements name that the account running it may make, each as a step with its time, and prints the one sudo command for each that needs root it lacks, including one this account tried and was refused. It is a flag on doctor rather than a command of its own because it acts on exactly what doctor reports. Its fixes are one table in cli/src/doctor-fix.ts, keyed by capability: linger where systemd runs, and the kvm group where the host has /dev/kvm. A fix only adds; it never removes data or turns a guarantee off, and where the host itself lacks the thing (no /dev/kvm, no systemd) it offers nothing and doctor says why in plain words.

  • On a terminal, the rest of the CLI keeps its words and adds the brand: --version draws the logo above its unchanged line; run shows a step while the sandbox starts and the command’s exit code and time after its own output; a failure prints after a cross in the error colour; and a command that returns a list of records (sandboxes, templates, nodes, keys, projects) prints a table of the fields a person scans first, with state words in the status colours. Pipes, logs and CI get the exact output they had before, the full JSON included.

  • The terminal’s colours are the design system’s --term-* tokens and its logo is the design system’s pixel art, both read at build time from site/public/design-system/tokens.css and site/src/agent.ts rather than typed again. Colour is truecolor where COLORTERM says so, the nearest xterm-256 colour where TERM names 256 colours, and the nearest of the 16 basic ANSI colours otherwise. The pixel logo needs 256 colours or more and a UTF-8 locale; any other terminal, NO_COLOR and TERM=dumb included, gets the design system’s ASCII crab (cli/src/ascii-crab.txt, vendored unchanged, its sha256 held by a test) in its Terminal colours where it has any, so every terminal shows the brand and none gets broken blocks. Output that is not a terminal gets no art. Text with no accent keeps the terminal’s own colour, since the design system’s ink is drawn for a dark terminal and a person’s may be light.

  • The host bundle is unpacked in two passes, each inflating it once with Bun’s zlib and piping plain tar to the host’s tar: a tar -tv listing that refuses any link, special file, absolute name or .. component, then extraction. One listing gives types and names together, so the earlier separate name listing is gone; Bun’s zlib inflates the 590 MB bundle about twice as fast as gzip, and the unpack went from about 34 s to about 9 s on a 4-vCPU host. Extraction still waits for the whole listing, so nothing is written from an archive that would be refused.

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.
  • pr-assignee.yml runs on pull_request and skips a fork’s pull request, because GitHub blocks pull_request_target on public repositories by default from 2026-12-02 and the workflow only needs a write token for the repository’s own branches; a fork’s pull request is assigned by hand.
  • A newer push to main cancels an older non-release push across CI, Any host, VM experiments, Rootless engines and CodeQL; because Actions push payloads omit modified file lists, changes compares Cargo.toml against HEAD^1 (version_raised) and job-level concurrency (plus ci-acceptance.yml) keeps release commits in per-SHA cancel-in-progress: false groups while literal per-workflow prefixes prevent Nightly’s parallel workflow_call runs from colliding on github.workflow; scripts/changed-suites-base.py diffs each workflow’s main push against its own last green main commit so cancelled pushes never leave an untested gap, and pull requests cancel in-flight runs when closed or merged.
  • Any host, VM experiments and Rootless engines run changes on every run but a worker branch’s push. Critical-path gate and metadata jobs (changes, subject, check, title, proof, e2e-evidence, native-evidence, release / version, release / nightly) stay on ubuntu-24.04 (free on public repositories and provisioning in seconds, whereas ubuntu-slim stalled 10–24+ minutes and timed out acquisition under load), while non-blocking background workflows (dependabot, security-alerts, pr-assignee) run on ubuntu-slim.
  • Rust jobs compile through sccache over WebDAV at https://cache.hbx.sh/sccache/hermitbox (Cloudflare R2 via infra/cache/, eliminating GitHub’s 17 GB/push artifact churn) with mold linking and cargo-nextest test execution; trusted main runs exchange a GitHub OIDC token at /token for an HMAC-signed write session, while pull requests and forks are read-only.
  • Every build of the release image goes through buildx with GHCR’s registry layer cache (ghcr.io/hermitbox/hermitboxd:buildcache-{amd64,arm64,release-amd64,release-arm64}), replacing GitHub’s 10 GB cache backend. Non-release CI passes CARGO_PROFILE_RELEASE_LTO=false and CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 while releases keep thin LTO and 1 codegen unit; release-profile builds (release.yml, ci-acceptance.yml, and Nightly any-host.yml / arm64) publish target: build inline cache images attested via actions/attest-build-provenance from clean builders and import only an immutable @sha256:... digest after gh attestation verify against refs/heads/main (falling back to a cache-free clean build if unverified). Dockerfile’s deps-manifests stage normalizes workspace versions to 0.0.0 before compiling the 400-crate dependency layer so version bumps keep it cached, and Any host reuses CI’s cached amd64 build instead of running a duplicate release-build job.
  • Any host’s process-tools and vm-artifacts jobs run in parallel (plus an attested vm-upstream intermediate R2 cache so Rust-only changes reuse Firecracker/kernel/Go/rootfs/cross sysroot builds), caching outputs content-addressed in R2 (infra/cache/src/index.ts, https://cache.hbx.sh/builds/) across all six kinds (process-tools, process-tools-sources, vm-artifacts, vm-upstream, debug-daemon, template-images) with deterministic cache-binding-*.json signed via actions/attest-build-provenance; bundle, intermediate, and template cache keys normalize version fields (Cargo.toml, Cargo.lock, vm-image/Cargo.lock, agent/openapi.json) so version-only bumps reuse them cleanly, any-host rewrites preview descriptor URLs via set-url, and release.yml stamps immutable v<version> URLs into fetched runtime archives, embedded notices/source-distribution.json, and outer descriptors (stamp-archive) after verifying SLSA provenance and local verify-binding.
  • .github/workflows/nightly.yml runs the full matrix daily (all 30 stack templates, all 19 coding agents split across 4 shardable files, gVisor, cloud-init, all 13 Linux distributions, 30 native/VM startup samples per cohort, 30/60 VM spike boots, and both rootless engines) and warms the GHCR release caches and R2 build cache; release.yml requires a green Nightly run on an ancestor of the release commit within 36 hours (scripts/check-release-nightly.py), and a manual workflow_dispatch with urgent: true is the only way around that check (recorded in the run summary and release notes, with every other release gate unchanged). Per-change main pushes run core Hermitbox E2E plus 4 representative stack families (plus any changed stack/agent suite), 1 startup sample per cohort, trimmed ordinary-user distros alongside expanded server-preset checks, and gVisor only when gVisor files change; control/test/compare-links.test.ts runs inside workspace unit tests rather than E2E.
  • ci-acceptance.yml builds the release image (build, producing ci-release-build and ci-e2e-bins), debug daemon (build-daemon, R2-cached under debug-daemon so non-Rust changes skip rustup and cargo build), and shared template images (build-templates, R2-cached under template-images so non-template changes skip image pulls and builds) in parallel, runs tiers-wasm, tiers-nodes, hosting, integrations, one-box, and E2E shards in parallel (with parallel runner disk cleanup), and shards E2E via scripts/e2e-suites.ts (3 shards on core pushes, 6 on full/nightly) balanced by .github/e2e-timings.json.
  • .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 shard times drift apart.
  • 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 collects 1 startup sample per cohort on one runner on ordinary runs and 30 samples per cohort across 3 parallel runners on Nightly, schedule, and measure_hermitbox (alongside native-vm and native-image), joined by native-evidence into installed-native-tools.
  • The cloud-init boot matrix runs in its own CI job beside the one-box install on Nightly, schedule, and dispatch, one runner per distribution of deploy/platforms/cloud-init/images.json, booting QEMU on the hosted runner’s real KVM device.
  • 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 release’s documentation stays online: the release workflow’s docs job builds each release’s pages from its own tag (infra/docs/releases.sh, v0.3.0 onward, the first public release) and deploys them with the new release’s Worker, whose version is the default and /latest/. Rebuilding from tags keeps each version’s pages exactly as its commit made them with no store to keep, and takes seconds a version. It deploys with the same Workers token the previews upload with (CLOUDFLARE_PREVIEW_TOKEN), through wrangler versions upload and versions deploy, which leave the custom domain as it is.
  • Every documentation page carries the agent panel (the install line, the copy-prompt and a link per agent to docs/get-started/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/get-started/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 might 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’s pinned service packages (templates/stacks/services/package-runtime.cjs) are read first from the input mirror, then from their pinned upstream with up to three tries, under the build inputs’ policy (untrusted, digest-checked, one try), because CI’s stack suites download the same packages many times a day and an upstream archive’s dropped connection failed main. HERMITBOX_INPUT_MIRROR set empty turns it off.
  • 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, a host bundle, a sandbox capability or a fleet CA, node, client or dev-certs certificate is ML-DSA-65 (FIPS 204), under the rule that every key Hermitbox holds is post-quantum; the keys that are not yet (public WebPKI certificates and SSH) are listed in threat-model.md. Fleet TLS links enforce TLS 1.3 with X25519MLKEM768 and ML-DSA-65 (sigalgs: 'mldsa65' in Bun, SignatureScheme::ML_DSA_65 in rustls) and refuse classical or other ML-DSA certificates, keys and CSRs; public ACME certificates in Caddy request ECDSA P-384 (key_type: 'p384') until public WebPKI CAs and browsers support ML-DSA. 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.
  • Dependabot covers every directory with a manifest. npm, pip, Go modules, Bundler and Composer (sdk/python and templates/**) take security updates only: open-pull-requests-limit: 0 turns their version updates off, and one applies-to: security-updates group per ecosystem brings a directory’s fixes as one pull request. Bun (the workspaces and the site) and Mix (the Phoenix starter) have no Dependabot security updates, so they take monthly grouped version updates with cargo’s cooldown instead. None of them merges itself: workflows/dependabot.yml merges only cargo branches and only once check has passed on their head, because an update group that merged with no checks once broke a release.

SDKs, CLI and integrations

  • The app builder (examples/app-builder) is an example app on the public SDK alone: projects from the vite-react template with PostgreSQL composed, a coding agent installed with hermitbox/coding-agents and run headless in the sandbox, a snapshot per turn, restores and forks from those snapshots, and an export through the sandbox’s own files; where Hermitbox lacked a piece (saved credentials, a fork’s preview, an agent in an existing sandbox) the SDK gained it rather than the example. It is Apache-2.0, as the SDK is, so it can be copied into an app of any licence.
  • The app builder asks every project for host-firewall; on a host that refuses it, it makes the project without it and shows the refusal on the page, never a quieter project in silence. Its scripted agent, which needs no model, prints Claude Code’s stream-json lines, so CI drives the same page and parsing a real agent does.
  • The app builder’s server listens on 127.0.0.1 only and refuses a request for another host name or a write from another origin or without a JSON body, so another site’s page in the same browser can’t drive it.
  • Hosted (APP_BUILDER_PUBLIC_URL set), the app builder listens on every address at the platform’s PORT and asks every request for APP_BUILDER_PASSWORD by HTTP Basic authentication, the browser’s own prompt, so a public address needs no sign-in page of ours; it refuses to start without a password of 16 characters or more. Its image is the root Dockerfile’s pinned Bun 1.4.5 with Debian’s git, for export.
  • The app builder’s export pushes only to a network remote (https://, ssh:// or user@host:path), and git is told to refuse every other transport: a local path would run that repository’s hooks on the builder’s machine, and the agent writes the project’s files, so the project could be that repository.
  • 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 pass neither from v0.2.1, the first release that carries the default, and install its SDK packages.
  • 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.
  • The CLI prints a record bare and a list as a JSON array, for every verb, so each output reads the same way. sandbox rm deletes by ID without reading the record first, so a second rm prints {"existed": false} and succeeds, as the API answers.
  • hermitbox fork copies the source’s labels and idle time and adds no setting of its own: a fork is a copy.
  • Every release publishes the TypeScript, Python and Rust SDKs to npm, PyPI and crates.io as hermitbox, from the release’s own attested files (and sdk/rust at the release commit), through trusted publishing in the release environment, so no registry token is stored. The docs install TypeScript and Python from the release’s assets until a release has reached those registries.
  • The CLI reaches npm as @hermitbox/cli, with each platform’s binary in its own package (@hermitbox/cli-linux-x64, @hermitbox/cli-linux-arm64) that npm installs only on a matching machine, and a small Node launcher (cli/npm/hermitbox.js) that runs it, so npx @hermitbox/cli mcp works in any agent’s configuration with no download at run time. release.yml lays the packages out from the release’s own binaries, checks the x64 one’s version, and publishes the platform packages before the launcher.

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 can 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.2 (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, Python interpreter, Node interpreter, Node canvas, browser, desktop Python, native tools (Debian), Playwright, rclone modules, standalone Python, micromamba builder, earlier conda-forge prefix lock and VM kernel configuration inspection.

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.7.0-rc.13 (Apache-2.0 OR MIT, ecdsa formatting only) with base16ct 1.0.0, base64ct 1.8.3, cmov 0.5.4, const-oid 0.10.2, ctutils 0.4.8, pem-rfc7468 1.0.0, sec1 0.8.1, signature 3.0.0, ssh-cipher 0.4.0-rc.0 and ssh-encoding 0.4.0-rc.2 (Apache-2.0 OR MIT), cipher 0.5.2 and inout 0.2.6 (MIT OR Apache-2.0), and chrono 0.4.45 (MIT OR Apache-2.0); ssh-key 0.7 is a release candidate, pinned exactly, because 0.6.7 names rsa 0.9 (GHSA-c38w-74pg-36hr, fixed only in 0.10) as an optional dependency that every lockfile then carries, and 0.7 names rsa 0.10, which the ecdsa-only build leaves out of the lockfiles; ECDSA P-384 keys are generated with ring (avoiding p384’s crypto-bigint timing advisory), their scalar handed to ssh-key’s EcdsaPrivateKey, and formatted by ssh-key.
  • Shell and terminals: Brush (brush-core 0.6.0 and brush-builtins 0.3.0, MIT, with brush-winnow-args-adapter 0.1.0, MIT, winnow-args 0.6.7, MIT OR Apache-2.0, and jiff 0.2.46, Unlicense OR MIT) and portable-pty 0.9.0 (MIT).
  • Host and kernel interfaces: nix 0.32.0 (MIT; 0.31 stays as brush’s own dependency) and rustix for namespaces and mounts; Landlock 0.4.8 (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.41.0 (Apache-2.0 OR MIT) for ELF headers, with 0.40.0 left as aya’s own dependency and 0.39.1 as psm’s build dependency.
  • 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.
  • Metrics: prometheus-client 0.26.0 (Apache-2.0 OR MIT) for the node’s /metrics.
  • KVM: kvm-ioctls 0.25.1 (Apache-2.0 OR MIT), kvm-bindings 0.14.2 (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, held at 0.9 because 0.10 and 0.11 dropped libpod’s /info model (HostInfo) the Podman limits read; 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 0.26.4 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 aws-lc-rs 1.19.0 (ISC AND (Apache-2.0 OR ISC)) and aws-lc-sys 0.47.0 (ISC, Apache-2.0, MIT, BSD-3-Clause and MIT-0; pregenerated Linux glibc and musl bindings compiled with the C compiler alone), with build-time cmake 0.1.58, jobserver 0.1.35 and pkg-config 0.3.34 (MIT OR Apache-2.0), dunce 1.0.5 (CC0-1.0 OR MIT-0 OR Apache-2.0, Apache-2.0 selected) and fs_extra 1.3.0 (MIT), and untrusted 0.7.1 and 0.9.0 (ISC); ring 0.17.14 (ISC and Apache-2.0, with MIT notices) remains for random bytes, streaming digests and HMAC; x509-parser 0.18 (MIT OR Apache-2.0) to read the clientAuth extension; webpki-roots 1.0.11 (exception above).
  • ML-DSA signatures: ml-dsa 0.1.2 (Apache-2.0 OR MIT), RustCrypto’s pure-Rust FIPS 204, for release verification and sandbox capability and proof signing, 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.3 (MIT OR Apache-2.0); flate2 1.1.11 (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.2 (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.
  • The browser-use starter installs its fully hashed lock with pip --no-deps, so it takes Pillow 13.0.0 (the advisory fixes) over the pillow==12.3.0 pins in browser-use 1.0.8/1.0.9 and browser-harness 0.1.13. The lock is the complete dependency closure, and neither package calls a Pillow API that 13.0 removed. browser-harness stays at 0.1.13, the version browser-use pins exactly. Drop the override once browser-use allows Pillow 13.
  • 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.3.0 (MIT).
  • The input mirror’s Worker (infra/cache/) uses http-status-codes 2.3.0 (MIT) and jose 6.2.18 (MIT) from the root install.
  • asn1js 4.0.0 (BSD-3-Clause), the major after the 3.1.0 locked under @peculiar/x509 3.1.0 (MIT), 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.10.0, core, context-async-hooks, resources and sdk-trace 3.1.1, and the OTLP HTTP trace exporter 0.301.2, the release built on them (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.183 (Apache-2.0); OpenAI Agents SDK for TypeScript 0.22.0 (MIT) with zod-to-json-schema 3.25.2 (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.23 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.1.1 (Apache-2.0); sandbox-agent 0.5.7 (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.7 (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.65.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 (Apache-2.0) and Typesense 30.2 (GPL-3.0, run as a separate program). Chroma replaced: every chromadb release through 1.5.9 carries unpatched advisories; Weaviate was passed over because its gRPC listener always binds every interface and its binaries carry key-gated proprietary code, and Meilisearch because its binaries need a newer glibc than Debian Bookworm.
  • 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.100.0 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).
  • The Rails starter runs on the digest-pinned official ruby:4.0-bookworm image rather than ruby:4.0-alpine. json 2.19.9 (the advisory fix) must be compiled, every Ruby 4.0 image bundles json 2.18, and workloads run as uid 1000 on a read-only root filesystem, so no preset can install a compiler at preparation; Bookworm ships gcc and matches the other Debian service images. The plain ruby stack stays on Alpine.
  • 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).
  • The spring-boot template fetches its Maven distribution and dependencies from Google’s mirror of Maven Central (maven-central.storage-download.googleapis.com, wired through .mvn/maven.config and .mvn/settings.xml‘s <mirrorOf>central</mirrorOf>, pom.xml, and the wrapper’s distributionUrl), because Maven Central rate limits shared egress addresses such as CI runners’ (including imported BOM fetches) and its operator advises against retrying; the wrapper’s distribution keeps its pinned SHA-256.
  • 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

  • npm 11.6.2 (Artistic-2.0), run by npx in release.yml to publish the SDK and the CLI, since trusted publishing needs 11.5.1; pypa/gh-action-pypi-publish 1.14.3 (BSD-3-Clause) publishes the Python SDK; rust-lang/crates-io-auth-action 1.0.6 (Apache-2.0 OR MIT) exchanges the workflow’s OIDC token for a short-lived crates.io publish token. None is shipped.
  • Rust 1.100.0 toolchain (MIT OR Apache-2.0), the newest the official Rust image publishes, so the release image and CI build with the same Rust. 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), mold 3.0.0 (MIT), cargo-nextest 0.9.152 (Apache-2.0 OR MIT), and uv 0.13.9 (Apache-2.0 OR MIT), installed by taiki-e/install-action (Apache-2.0 OR MIT) as separate CI tools and never shipped; 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 registry layer cache in GHCR (ghcr.io/hermitbox/hermitboxd:buildcache-*), replacing GitHub Actions’ 10 GB cache backend.
  • 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: Hermitbox’s copy handler reports “copied” only after the write succeeds and otherwise shows the full text selected to copy by hand.
  • The docs take the design system’s docs parts (“quiet water”) through Starlight’s component overrides in site/src/components/ (the frame, header, search, theme switch, tree, title block, depth gauge, pager and footer), so Starlight keeps the routing, sidebar data, contents list and search index while the markup is the design system’s own classes.
  • The docs’ code is Astro’s Shiki with a theme in the design system’s four code tokens and a transformer that puts each block in the design system’s code frame (site/src/markdown.ts), not Expressive Code: its frames bring window dots, rounded corners and their own colours, which the design system’s frame has none of.
  • The docs’ search is the design system’s dialog over Pagefind’s own JavaScript API and the index Starlight builds, not Pagefind’s default UI, whose markup can’t take the design system’s prompt, tree-row results or empty state.
  • The docs start the design system’s scenes one by one (site/src/design.ts), not with Hermitbox.mount, whose copy buttons report “copied” when the clipboard refuses and whose theme switch keeps the choice nowhere; the theme switch writes Starlight’s own starlight-theme store, and the depth gauge uses site/src/depth.ts instead of Hermitbox.depth, which matched the footer’s #_top link as the last section, never refreshed depths on resize and ignored track scrolling.
  • The docs Worker serves _astro/ and design-system/ files as public, max-age=31536000, immutable and everything else (pages, Markdown twins, llms*.txt) as public, max-age=0, must-revalidate, so a click never refetches a font or a stylesheet. Astro names _astro/ files by their hash; the pages link tokens.css, bundle.css and bundle.js with ?v= and the first 12 hex digits of their digest in site/design-system.lock.json. The fonts keep plain names because tokens.css links them relatively and is never edited, so a font refresh needs a new file name or a Hermitbox version bump (the version is in every address).
  • The docs navigate with Astro’s client router: the header and the tree persist as the same nodes, only the article and the rail are swapped, links prefetch on hover, and the theme is set on the incoming page before it is shown. Every script binds once on the document or runs again on astro:page-load, and the outgoing page’s scenes and depth gauge (site/src/depth.ts) are stopped in astro:before-swap, so their window listeners don’t pile up.
  • The docs sidebar gives every section, subsection and page the 12px pixel icon the design system’s map names (site/src/tree-icons.ts, paths copied verbatim) or a product logo (site/src/logos.ts); a page the map doesn’t name takes its section’s icon, and the site build fails on a section, a top-level page or an icon name that resolves to neither, or a mapped entry the sidebar no longer lists.
  • Product logos in the docs sidebar are each product’s official vector mark, in one colour, at icon size, used to name the product; any brand’s request to change or remove its mark is honoured.
  • The product logos live in the docs’ own site/logos/ and site/src/logos.ts, not in the vendored design system, which is unchanged; they take the sidebar’s ink, and coral on the current page, like its icons.
  • site/tools/logos.ts writes site/src/logos.ts from each pinned source in site/logos/: the mark’s elements (all, or those site/logos/sources.json names), with transforms applied, rects, circles and polygons as paths, a stroked rect as its outline, fill rules kept and path data otherwise as published, light shapes over the mark cut out of it in one evenodd path, and the mark’s bounds as the viewBox. The site build and control/test/site.test.ts regenerate it and fail on a changed source digest or output.
  • Claude logo (Claude page): the Claude Spark, from https://www.anthropic.com/press-kit (https://assets.claude.com/ae59ca4ca194dac9c9dc3bc78c5829468cb0e8af.zip, sha256 c68ac92df86c825f95177e24016fcc9a8863a3fd4ca344fe6f0700b2c1e07151), Anthropic media resources/Anthropic logos/Claude logos/3 Claude Spark/SVG/Claude Spark - Clay.svg; kept as site/logos/claude.svg (sha256 6d53db4be375e899c937c26cf16684a80d6e869b1928d72b37748bef2560e219).
  • Cursor logo (Cursor page): the cube, from https://cursor.com/brand (https://ptht05hbb1ssoooe.public.blob.vercel-storage.com/assets/brand/cursor-brand-assets.zip, sha256 97488a7751914e60f9ff532bc33810cdeaebdddc017548abe6ca2bc29bbc3928), General Logos/Cube/SVG/CUBE_2D_LIGHT.svg; kept as site/logos/cursor.svg (sha256 c483c02f78eb2619778fdd959e72a9adfac4844854472cd2653d4cbfd60e4d71).
  • VS Code logo (VS Code page): the icon’s outline (the mask that shapes it), from https://code.visualstudio.com/brand (https://code.visualstudio.com/assets/branding/visual-studio-code-icons.zip, sha256 04c5292a117bbc619f1ce574cc59b6c5e2e26374d6e64b92619e848612f2d9cb), visual-studio-code-icons/vscode.svg; kept as site/logos/vscode.svg (sha256 74ad401c6487a0dc5af1f6b2935556ab2d3553ae45effc7e1697b4d117d046b6).
  • OpenAI logo (Codex and ChatGPT pages): the Blossom, from https://openai.com/brand/ (https://cdn.openai.com/brand/openai-logos.zip, sha256 c54e85ab5884228f89f0230dd8effa8d588cad78166fe954135f4afa553222db), OpenAI-logos/SVGs/OAI_OpenAI-Blossom_Black.svg; kept as site/logos/openai.svg (sha256 75c1e9fffa5e8c437bec1d67197a73992bca45d166c6ff23215185dea8fae92a).
  • GitHub logo (GitHub Actions page): the Invertocat, from https://brand.github.com/foundations/logo (https://brand.github.com/GitHub_Logos.zip, sha256 e2a67d6cc51d990a52c46c1cf6bcab688db4830982174bca50e0be7a5c2f3194), GitHub Logos/SVG/GitHub_Invertocat_Black.svg; kept as site/logos/github.svg (sha256 693d7abe6f899646cc2e96856723b45e95f71885a54910b2749f6decdf7e1ee1).
  • Rivet logo (Rivet, Rivet agent harness and agentOS pages): the Rivet icon’s tile with its ring and letter cut out, from https://rivet.dev/brand/ (https://rivet.dev/rivet-brand-kit.zip, sha256 d44c367345b226713d17683fe6dad5060c15176515dc9e77bb6669fcccdce529), rivet-icon.svg; kept as site/logos/rivet.svg (sha256 9c5f26fa6277633e5b3a5ca98e22660166539a15b93664972f727efbc4af1e19).
  • Railway logo (Railway page): the Railway mark, from https://railway.com/brand/logo-dark.svg; kept as site/logos/railway.svg (sha256 a09b7759ca3e50156117f9eb3843a4a5dd8eb727d379fa60dd20315797b390a9).
  • Render logo (Render page): the Render logomark, from https://render.com/newsroom Brand Kit (https://cdn.sanity.io/files/hvk0tap5/production/40134cba8baae95e988e65d2a0675c2521e9c731.zip, sha256 052739f3bca966cd23326284e1eb7d402c53ae6f5d597a15523cccb7200805fc), Render Brand Kit/Logos/Black/Render logomark - Black.svg; kept as site/logos/render.svg (sha256 c5f3790ed18ab18658cffae2bab49cc7e699955f534de013107f14f2f8398aed).
  • Fly.io logo (Fly.io page): the balloon, hills and sun of the Fly.io brandmark with its light shapes cut out, without its tinted ground, from https://docs.fly.io/about/brand (https://mintcdn.com/fly-io/v-XOGeVK6s4rQ-4y/images/brand/brandmark-dark.svg); kept as site/logos/fly.svg (sha256 c0db1160612daace64e76fca4664bd90e9d24dd1c9ca9c5d47bc767b6f2e73b0).
  • Koyeb logo (Koyeb page): the Koyeb logomark, from https://www.koyeb.com/brand (https://www.koyeb.com/static/images/logos/koyeb-logomark-dark.svg); kept as site/logos/koyeb.svg (sha256 cda6e1a23bb3426733e8486b48cf04debafff1aa75d24160b3d3f2689cca1432).
  • Coolify logo (Coolify page): the monochrome Coolify logo, under Apache-2.0 (its text in site/notices/product-logos.txt), from https://github.com/coollabsio/coolify/blob/f55221789d0f39a1157de2e4728b5538cb916d33/public/coolify-logo-monochrome.svg; kept as site/logos/coolify.svg (sha256 798599776bda5ab04512ba16311dc6ff9e17a94f0f20deb35d51907977dbacb9).
  • DigitalOcean logo (DigitalOcean page): the mark of the horizontal logo, from https://www.digitalocean.com/press/brand (https://web-platforms.sfo2.cdn.digitaloceanspaces.com/DO%20Logo%20Assets.zip, sha256 b9849e9e15a4b4036094edba372e72b5191b62e42d0ee46636c44ee8bb8c317b), DigitalOcean-Logos/Logos-RGB/Horizontal/svg/logo-horizontal-black-RGB.svg; kept as site/logos/digitalocean.svg (sha256 f46c7f2bd019a4cf4d35635fa1dca94ff27b3ce10f1cc6090b63ae80c495c955).
  • Docker logo (release image page): the Docker mark, from https://www.docker.com/app/uploads/brand/logo/docker-mark-ether.svg; kept as site/logos/docker.svg (sha256 1dc3f65bc4255375fc6c2c6fc7ab6159eb7083b372ff5925d63e0ce28676c7d5).
  • Every docs page in get-started/, guides/, integrations/ and hosting/ that has steps carries a “let your agent do it” prompt in its agent: frontmatter, shown under its title in the design system’s compact agent panel and copied with the address of the page’s Markdown twin; the twin carries it under its title. A page has steps when it has an ordered list or a shell, TypeScript, JavaScript or Python block, and the site build fails on one without a prompt (site/tools/sources.ts). The canonical prompt stays on the docs home and at the end of every other page.
  • The agent panel’s ChatGPT target reads “not yet ChatGPT” and links to its section of the agents page: ChatGPT reaches only a public MCP endpoint, so there is nothing to add to it yet.
  • 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.13, Starlight 0.43.2 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; github-slugger 2.0.0 (ISC), the slugger Astro’s own heading ids use, for the heading anchors; playwright-core 1.65.1 (Apache-2.0) and http-status-codes 2.3.0 (MIT) for site/tools/browser.ts, which checks the built pages in headless Chromium as part of site/check.ts.
  • 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.
  • hermitboxd accepts a group-writable directory or file on the paths it trusts only when its group is the owner’s private group (runtime/peers.rs), the same rule as the CLI and Debian’s OpenSSH, and never for a path with an extended ACL (whose group bits are the ACL’s mask), with the account files read at each check: with umask 002 the process agent’s, wasm distribution’s and VM bundle’s ancestries all failed, so a default Debian or Ubuntu user’s install had no isolation tier.
  • Code is formatted multi-line for reading: Biome 2.6.9 (MIT OR Apache-2.0) at 80 columns, rustfmt’s defaults at 100. The same logic spans more lines that way, so the structure limits rise with it: 1250 lines per file and 750 per block (set on the pinned upstream check in CI), and clippy’s too_many_lines to 190.
  • C is formatted by clang-format 23.1.5 (Apache-2.0 WITH LLVM-exception), run from PyPI in CI and never shipped, in .clang-format’s readable style (4 spaces, 80 columns, braces on every block, conditions broken before && and ||, one argument per line once a call wraps); the BPF objects are rebuilt from the reformatted source with the pinned toolchain, and only their line information moves.
  • Each CLI command’s parser names the verbs and flags it reads in an exported list, read through a typed reader (flags in cli/src/sandbox.ts) so a flag outside the list fails the typecheck, and cli/test/help.test.ts fails when a page leaves one of them out: the help had fallen behind the parsers by dozens of verbs and flags with nothing to notice.
  • TypeScript 7.0.2 (Apache-2.0), installed as typescript-native, typechecks every workspace. TypeScript 6.0.3 stays as typescript for its compiler API, which openapi-typescript uses to generate the clients and TypeScript 7 does not ship.
  • The SDKs read the URL and key the installer saved (hermitbox/client.json, the CLI’s file, through client-config.ts and client_config.py) when no URL or key is passed or set in the environment, and use a saved key only for its saved URL, so a script on the installed machine connects with no setup; the SDK owns reading the file and the CLI owns writing it.
  • A request naming no image, tier or package runs on process or wasm where either gives the deployment’s required guarantees, and otherwise on the first image tier that does, from DEFAULT_IMAGE (control’s isolation.ts: the pinned Python image in templates/coding-agents/images.json, which the server preset’s allowlist admits) with the SDK’s keep-alive entrypoint when it names none: the server preset requires private-network, which a process sandbox has only offline, so before this no plain create could be placed on a root server. The sandbox reports the tier it got; a declarative template is never given the image, so its stored spec stays what it named.
  • Each placed sandbox view carries backend: {engine, rootless} (docker, podman, firecracker, process or agentos), derived from the node’s observed copy report or its tier backend features (tier-<tier>:engine-<engine> and tier-<tier>:rootless|rootful), and omitted when unannounced so control never guesses an engine or privilege mode.
  • Heartbeat workload metrics use a typed WorkloadMetrics struct in hermitboxd (forwarding cpuSecondsTotal, cpuThrottledPeriods, enforced cpuLimitMillis, pids and pidsLimit beside the existing CPU, memory, disk and network counters), and the public /v1 SandboxMetrics schema derives directly from that node schema so /metrics and /metrics/stream stay typed end to end.
  • sandbox.woken events record {source, tier, durationMs} (resumed, booted or restored, and elapsed milliseconds of Sandboxes.wake), typed in the public /v1 OpenAPI schema (SandboxEvent / SandboxWokenEvent), so both direct and edge-triggered wakes report their tier and duration.
  • The dotnet and aspnet starter stacks rebuild through the shared watched-build.sh checksum loop (templates/stacks/native/dotnet/dev.sh) like go, java, rust and spring-boot, rather than dotnet watch with DOTNET_USE_POLLING_FILE_WATCHER=1: dotnet watch starts the app on port 3000 before entering its watch loop, so an edit made immediately after the preview opens can be swallowed by its polling snapshot and never rebuild.
  • RouteTable.track (edge/src/routes.ts) marks a connection opened while the held route is still asleep or waking as awaiting the running list, so an in-flight pre-wake asleep or waking route poll at the same epoch does not sever the newly woken TCP/TLS connection before the post-wake list arrives; higher epochs, route removal, credential changes, waking -> asleep, and any sleep after running still close it immediately.
  • Quickstart pages (docs/get-started/{quickstart,typescript,python,cli}.md) and SDK READMEs open with the shortest imageless, env-var-free quickstart followed by one cross-tier showcase (sleep/wake, snapshot/fork, or running generated Python code, avoiding port-bind commands that don’t run uniformly across wasm, process and DEFAULT_IMAGE), and site/tools/sources.ts plus control/tools/site-callers.ts extract and execute every runnable block on those pages in CI (control/e2e/site.e2e.test.ts runs the container tier through DEFAULT_ISOLATION_ORDER with DEFAULT_IMAGE admitted).
  • CI’s BuildKit builders read .github/buildkitd.toml (setup-buildx-action’s buildkitd-config), which makes mirror.gcr.io and Docker Hub each other’s fallback host, because BuildKit moves to the next host when one answers an error such as 429 Too Many Requests, and a 429 from mirror.gcr.io on a base image’s blob had failed a build; every FROM is pinned by digest, so either host gives the same bytes.
  • The domainless server preset (domain === 'localhost') passes HERMITBOX_PUBLIC_URL to hermitboxd join --agent-public-origin and backfills workloads.agent_public_origin on repeat runs when absent without overwriting an operator’s value, so exposed port URLs use the local HTTP alias (http://127.0.0.1:7331/sandboxes/<id>/ports/<port>) instead of unreachable <id>-<port>.localhost subdomains; servers with a public domain keep exposed workloads on per-sandbox subdomain origins off the control API origin, edge/src/response-headers.ts strips Service-Worker-Allowed from responses served on a /sandboxes/<id>/... path alias (a workload’s own subdomain keeps it), and control/src/welcome.ts serves / in an opaque CSP sandbox (sandbox allow-scripts allow-forms) with Cross-Origin-Opener-Policy: same-origin so path-aliased sandboxes cannot access the welcome window or register a root-scoped service worker on the loopback control origin.
  • hermitboxd pulls an image again while the registry rate limits it (the engine’s refusal carries the distribution specification’s TOOMANYREQUESTS, lowercased, from Docker’s own image store, or 429 Too Many Requests from its containerd image store; classified in pull_refusal in src/runtime/docker.rs, where Docker’s answers are read, before the image’s name is added), waiting 2 seconds and doubling up to 30 between pulls, inside the pull’s own time budget (src/runtime/docker/pull.rs), because a registry’s rate limit lifts within seconds or minutes and a create whose image pull it refused had failed outright; any other refusal is returned at once, and the last refusal is returned as it was once the budget is spent.
  • downloadReleaseAsset (cli/src/bundle-download.ts) tries a release asset up to DOWNLOAD_ATTEMPTS (3) times, after a failed or reset connection, a timeout or a 5xx or 429 answer, starting from an empty file each time, because one reset from the release host’s CDN failed a whole hermitbox up with ECONNRESET; a missing asset, the staging budget, an insecure redirect and an existing target stay final.
  • A pull Docker’s image store refuses with unknown blob (distribution’s ErrBlobUnknown) is pulled again the same way, because every image hermitboxd pulls by digest names only blobs that exist, and a registry mirror under load (mirror.gcr.io, which the coding-agent images name) answers a blob it is still fetching with 404 right after a rate limit; every blob was there minutes later.
  • Rust SDK (sdk/rust/, crate hermitbox, Apache-2.0): standalone Cargo workspace excluded from root Cargo.toml with its own sdk/rust/Cargo.lock, never linking hermitboxd or hermitbox-agent, so the Apache-2.0 crate stays separate from AGPL-3.0-only daemon code and publishes cleanly to crates.io. Wire types and contract defaults are generated directly from control/openapi/hermitbox.openapi.json, agent/openapi.json and sdk/git-proxy.js by sdk/rust/generate.ts (checked in bun run openapi:check without needing Rust installed in the TypeScript workspace job) rather than typify or openapi-generator, because neither emits x-hermitbox-* contract constants, the shared wasm Git bridge or deterministic edition-2024 rustfmt-clean modules across both OpenAPI documents. Dependencies (all permissive, rustls with aws-lc-rs, no OpenSSL/native-tls): reqwest 0.12.28, serde 1.0.229, serde_json 1.0.154, base64 0.22.1, hex 0.4.3, sha2 0.11.3, tar 0.4.46, url 2.5.9, uuid 1.29.3, futures-util 0.3.34, http 1.6.0, thiserror 2.0.21, shlex 2.0.1, tokio-rustls 0.26.6 (MIT OR Apache-2.0); tokio 1.54.1, tokio-tungstenite 0.29.0, bytes 1.12.2 (MIT); rustls 0.23.47, rustls-native-certs 0.8.5 (Apache-2.0 OR ISC OR MIT); aws-lc-rs 1.19.0 (ISC AND (Apache-2.0 OR ISC)); rustix 1.1.6 (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT); opentelemetry 0.33.1, opentelemetry_sdk 0.33.1 (Apache-2.0); dev-only axum 0.8.9 (MIT) and tempfile 3.27.0 (MIT OR Apache-2.0).
  • The README, the docs and the SDK READMEs install the SDKs from their registries by name (npm install hermitbox, pip install hermitbox, cargo add hermitbox), not from a release’s files, so no install line carries a version and scripts/version-only.py has no SDK fields; the CLI page adds npm install -g of the CLI package as a second route for Linux machines that use a Hermitbox installed elsewhere, beside the one-command installer.
  • The server preset exposes ports on its public origin’s path alias with or without a domain (serverAgentPublicOrigin), and a repeat run backfills workloads.agent_public_origin when absent: it installs no wildcard certificate or DNS for <id>-<port>.<domain>, and rewrites edge.env on every run, so per-port subdomains on a domain server answered nothing over HTTPS, while control already pointed template previews (HERMITBOX_PREVIEW_HOST, HERMITBOX_PREVIEW_PATH) at the API origin. The path alias keeps the shared-origin hardening of the localhost server (no Service-Worker-Allowed, the welcome page in an opaque CSP sandbox) and the API takes no cookies.
  • CI runs on a push only to main and worker branches; any other branch is tested by its pull request alone, since a push run there repeated the pull request’s work at full scope and doubled the queue.
  • A server’s default image allowlist admits the release’s built-in template images (python-interpreter, node-interpreter, browser, desktop, tools) by repository, ghcr.io/hermitbox/hermitbox-<name>:, beside the digest-pinned stack and VM images: template create makes them from :<version> tags built with the release, after the CLI, so no digest can be pinned, and without them every built-in template was refused on a server.
  • Release downloads (the CLI’s downloadReleaseAsset, so the host bundle and the server’s release files, and install.sh’s curl) end an attempt only when no byte arrives for a minute, never on the transfer’s total time, since a 5-minute total refused every line slower than about 15 Mbps; the next attempt resumes with a Range request (If-Range on the first answer’s strong ETag or Last-Modified) and gives up after three attempts in a row that bring no byte. The host bundle’s partial file is kept between runs in the private cache, under downloads/, named by the digest SHA256SUMS gives it, so a later hermitbox up resumes it; the whole is still checked against that digest and the release signature. Progress goes to stderr: on a terminal one live line per step, cut to the terminal’s width, and otherwise plain lines every five seconds (Downloading <file>: <done> of <total> (<n>%), <rate>/s, about <time> left) beside step lines (Checking this host, Checking the host bundle, Verifying the release signature, Unpacking the host bundle, Installing Hermitbox, Starting Hermitbox), so a supervisor such as the desktop app can log them as they come.
  • Any host caches the intermediate host-bundle stage (host-bundle-stage.tar.zst) and native-acceptance-image.tar.zst in R2 behind cache.hbx.sh (scripts/build-artifact-cache.py, SLSA-attested like the other six kinds), and repacks per-run preview CLI/descriptors on the runner through deploy/bundle.py --pack-from using pigz (zlib licence, separate CI tool, never shipped, falling back to Python gzip at level 1 when HERMITBOX_BUNDLE_FAST_GZIP=1), while Any host’s bundle job drops packages: write and reads ghcr.io/hermitbox/hermitboxd:buildcache-amd64 / buildcache-release-amd64 only by SLSA-attested digest emitted by ci-acceptance.yml.
  • Non-VM changes skip vm-artifacts on per-change Any host runs (kept for VM changes, full_matrix/Nightly, and version-only releases); bundle, native-vm, and server resolve the latest verified vm-artifacts ancestor commit via scripts/build-artifact-cache.py fetch-ancestor and verify-binding --ref after gh attestation verify against refs/heads/main.
  • Job-level and ci-acceptance.yml push-main concurrency groups gate cancel-in-progress on github.run_attempt == '1' so a newer commit on main still cancels an older non-release push while re-run attempts of the same commit never cancel in-flight jobs.
  • scripts/build-artifact-cache.py retries truncated chunk reads (ConnectionError) and http.client.HTTPException through retry_io using archive_retry.transient_status with DOWNLOAD_TRANSFERS = 4 concurrent chunk downloads, because HTTPResponse.read(size) returns short EOF cleanly when an edge stream resets while full-length SHA-256 mismatches still fail immediately.
  • Docs wraps: titles and headings use text-wrap: balance and prose pretty, so none leaves one word alone where it can be helped; inline code over 24 characters (what a 320px line holds whole) is marked long at build (site/src/markdown.ts) and wraps at its spaces, while shorter code keeps the design system’s single line; long words, links and agent prompts break only when longer than the line; below 360px the header’s search keeps its prompt mark alone. site/tools/browser.ts loads every page at 320, 768 and 1280px and fails on sideways scroll or a title ending on one word.
  • Any host guards every downstream bundle acceptance job explicitly with !cancelled() && needs.bundle.result == 'success' so skipping vm-artifacts on non-VM changes never lets GitHub Actions’ implicit success() check skip native-install, native-image, container, booted, user-engine, or server jobs and starve native-evidence.
  • CI starts hermitbox-postgres on 127.0.0.1:5432 via scripts/start-postgres.sh (using scripts/pull-library-image.sh’s mirror.gcr.io -> Docker Hub fallback and --restart after Docker daemon restarts) instead of GitHub Actions services: blocks that pulled mirror.gcr.io/library/postgres:17-alpine once without fallback and hit Artifact Registry per-minute quotas across parallel E2E shards.
  • Main pushes use workflow-level concurrency with cancel-in-progress: false (<workflow>-push-main) across ci.yml, any-host.yml, any-host-vm.yml, engines.yml, and codeql.yml instead of job-level push-main concurrency groups: active runs finish uninterrupted while GitHub keeps only the newest waiting push (with changed-suites-base.py covering skipped waiting commits), Release ... commits isolate into release-<sha>, and re-runs isolate into rerun-<run_id>-<run_attempt>.
  • ci-acceptance.yml passes template images to e2e and tiers-nodes through attested R2 cache (template-images) once build-templates verifies cache hit or publication via gh attestation verify and verify-binding (skipping the GitHub artifact round-trip except on fallback), runs core e2e across 4 shards, and splits tiers-wasm into parallel agent and runtime matrix jobs.
  • Hosting acceptance (control/bench/hosting-image.ts) runs 3 platform containers concurrently across ports 18080..18085 via Promise.allSettled, ci-acceptance.yml packs hermitboxd, hermitbox-cli, and hermitbox-agent into hermitbox-bins.tar.zst inside ci-e2e-bins, and tiers-wasm moves wasm.e2e.test.ts into the agent part to balance field.e2e.test.ts (runtime).
run it yourself
$curl -fsSL https://hbx.sh | sh
or ask your agent
Install Hermitbox and set it up for me
Linux (x86_64 or aarch64), no root, no Docker. Agents can read every page: llms.txt · llms-full.txt
the floor · nothing below this line