Skip to content

Which VM runs a recipe, and how does a recipe build get through the proxy?

Decided 2026-11-30: A. A recipe VM of its own, and yes to each of the other questions. The decision is in the I150I150 (closed): S06-vm-lifecycle: minimal base image and named derived images built from recipesS06-vm-lifecycle "Images" puts Homebrew, the Xcode command line tools and wb-guestd in the base image. comment that starts Decision (2026-11-30):. Source: I150I150 (closed): S06-vm-lifecycle: minimal base image and named derived images built from recipesS06-vm-lifecycle "Images" puts Homebrew, the Xcode command line tools and wb-guestd in the base image.. Adds S06-16-base-layerS06-16-base-layer: The Base LayerWhat the base layer holds, how the image build installs Apple's Command Line Tools from a package the host fetched, and the toolchain user that named images and project layers install as., S06-17-named-imagesS06-17-named-images: Named Images and RecipesThe build of a named image from a recipe on a clone of the sealed base. and S17-06-command-line-toolsS17-06-command-line-tools: Command Line ToolsThe steps by which wb-download and wb-hostd fetch and check Apple's Command Line Tools for the base layer (S06-16-base-layer).. Changes S06-01-image-layersS06-01-image-layers: Image Layers and the Toolchain PrefixThe layers of a guest image, and the toolchain prefix that project layers install into. (“Layers”, “Only the layer”, “Derivation”), S06-02-image-buildS06-02-image-build: Image BuildHow wb image build makes a guest image: the build VM, its two provisioning stages, terminfo, sealing, and storage. (“Sealing”, “The seal manifest”), S06-06-devices-and-warm-startS06-06-devices-and-warm-start: Devices, Warm Start and TimeA VM's devices and resources, saving and restoring its state, and how the guest clock follows the host., S06-07-slot-admissionS06-07-slot-admission: Slot AdmissionHow wb-hostd admits every macOS VM it starts against the limit of two, and lends the isolated VM's slot to a maintenance VM., S06-14-xcode-imageS06-14-xcode-image: The Xcode ImageHow an image gets full Xcode and the simulator runtimes from the host, as a read-only disk the host builds, and who runs Xcode's first launch., S04-00-architecture, S04-04-vm-processesS04-04-vm-processes: Per-VM ProcessesOne wb-vmd for each VM, the wb-vmd-layer entry of the Claude Code layer build, the wb-vmd-recipe entry of a named image's recipe, and wb-diskfmt, which formats a VM's new data disk. (wb-vmd-recipe), S04-05-helper-programsS04-05-helper-programs: Helper ProgramsThe programs that run once for an image build or a store operation: wb-guestadmin, wb-release-check, wb-download and wb-build-ssh., S05-03-management-commandsS05-03-management-commands: Management CommandsThe commands of wb other than the agent commands. (“wb image”), S07-01-per-vm-policyS07-01-per-vm-policy: Enforced per VMWhy the VM is the unit the gateway enforces, how the policies of its projects combine, and what happens when they conflict or change., S07-05-stream-hand-offS07-05-stream-hand-off: Stream Hand-offHow wb-netd hands each stream to wb-proxyd, and the checks that keep a compromised wb-netd from widening what a stream may reach., S09-03-project-settingsS09-03-project-settings: Project SettingsWhat a project's settings hold, and what a repository's own .wraithbox/ configuration may add. (image), S09-08-guest-trustS09-08-guest-trust: Guest TrustHow wb-guestd makes the guest's clients trust the VM's CAs., and S17-03-downloadsS17-03-downloads: DownloadsHow wb-download fetches what an image build needs from the internet. (wb-download-clt). Moves “macOS’s ncurses” from S06-02-image-buildS06-02-image-build: Image BuildHow wb image build makes a guest image: the build VM, its two provisioning stages, terminfo, sealing, and storage. to S16-03-around-the-streamS16-03-around-the-stream: Around the StreamWhat wb writes to the terminal around the filtered stream, the terminal environment the guest gets, and how guest text in wb's other output is escaped.. Follow-ups: I861I861 (open): Measure the paths macOS writes on a recipe VM's boot, for the seal comparisonS06-17-named-images, "The comparison" (from #150): before a recipe VM is sealed, wb-guestd compares the image with its parent's seal manifest, and fails on any entry added, removed or changed outside the toolchain…, I862I862 (open): Egress contract: the recipe VM's wb-netd and wb-proxyd path with the build policyS06-17-named-images (from #150) gives a recipe build its own VM, wb-vmd-recipe in the recipe slot (S04-04-vm-processes), with its own wb-netd and wb-proxyd path under the VM name recipe and a compiled-in build policy., I863I863 (open): wb image shell: an unsealable shell in the recipe VM for working out a recipe- wb image shell [<name] in wb and wb-hostd, on top of #674 (IMG.6c)., I868I868 (open): Probe whether installer refuses a CLT package with changed files under a kept signatureS17-06-command-line-tools, "The trust base" (from #150): wb-guestd checks Apple's signature over a Command Line Tools package's table of contents with pkgutil --check-signature, then installs it with installer..

wb-hostdrecipe, steps, auditwb-vmd-recipeone network devicewb-proxydbuild policy, CAwb-netdthe recipe VM’s ownHomebrew’s hostsallowed by the build policywb-vmd-layerClaude Code, no networkrecipe VM: a clone of the sealed basewb-guestdnamed operations only_wbtoolbottles into /opt/homebrew

Figure 1. A recipe build under option A. The recipe VM has the network path a session VM has, with a compiled-in policy. The Claude Code layer’s VM stays without one. The base build itself has no guest network: the host fetches the Command Line Tools and sends them over the host-guest socket.

A fifth wb-launcher entry, wb-vmd-recipe, serves a recipe slot. Its profile is the session wb-vmd profile without install rules, as wb-vmd-layer’s is. Its VM gets one network device and never the Xcode disk.

wb-vmd-layer attaches a network device when its start call sets a new flag, as it attaches the Xcode disk today.

The case for B. The Xcode step already works this way: one entry, a flag, and wb-vmd refuses the flag in any other slot. B adds nothing to sign, launch or document, and the guest side is the same in both. If wb-hostd is trusted to set the Xcode flag right, it can be trusted to set a network flag.

Confidence in A is high. The cost difference is a table row and a profile. A finding that wb-launcher entries are scarce, or that the Swift slot code can’t share a profile between two entries, would favor B.

The spec takes each as recommended, and its Decisions entries wait on your answer. Each is a plain yes or no.

1. Should wb-proxyd inspect a recipe build’s TLS, with a build CA installed at runtime and removed before the seal? Recommended: yes.

2. Should a recipe be formulae only? Recommended: yes.

3. Should the build take the newest Command Line Tools Apple offers, with a floor, and pin no product? Recommended: yes.

  • Yes: the host takes the newest product Apple’s catalog offers for the guest’s macOS, and refuses one below a compiled-in minimum or older than the last sealed base. --allow-older-macos overrides the second, and says so. Apple ties each release of the tools to a range of macOS versions, and the restore image follows the host. It costs two things. Every build, a layer-only one included, runs a catalog run against Apple first, and fails when Apple’s hosts can’t be reached. And a new release of the tools turns the next Claude Code update into a full rebuild, which downloads the restore image again.
  • No: an exact product is pinned in code, as your addition of 2026-10-07 asked (“how its version is pinned”). It needs a bump by hand for each release, because Renovate has no data source for Apple’s catalog, and it lags each new restore image. In return, a layer-only build never contacts Apple.

4. Should the toolchain user be _wbtool, UID 440? Recommended: yes.

RequirementA. Recipe VMB. Network flag
SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable. only allowlisted destinations are reachablebuild policy onlybuild policy only
SEC07-dep-gateSEC07-dep-gate: Dependency gatePackage downloads (npm, PyPI, Go modules, crates) are refused when the version is younger than a minimum age or has a known vulnerability at or above a severity threshold. new package versions wait out a quiet periodbottles aren’t gated (T08-homebrew-ungatedT08-homebrew-ungated: Young Homebrew bottlesHomebrew bottles from homebrew/core are not age-gated or checked against OSV.)bottles aren’t gated (T08-homebrew-ungatedT08-homebrew-ungated: Young Homebrew bottlesHomebrew bottles from homebrew/core are not age-gated or checked against OSV.)
SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts. each process gets only what it needslayer VM never networkedlayer VM networked on a flag
SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter. every egress decision recordedbuild audit recordsbuild audit records
SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential. no secrets in the guestCA removed, scan checksCA removed, scan checks
Details and glossary

Why the base has no network. The maintainer’s addition of 2026-10-07 on I150I150 (closed): S06-vm-lifecycle: minimal base image and named derived images built from recipesS06-vm-lifecycle "Images" puts Homebrew, the Xcode command line tools and wb-guestd in the base image.. Anything the base build fetched from the guest would need a policy and a proxy for the build VM, and would run downloaded code before the seal. With the host fetching the tools through wb-download, which is confined and audited, the build VM’s network stays the one SSH connection of S07-18-build-networkS07-18-build-network: Build NetworkThe build VM's network: what its wb-netd serves, the one connection to the guest's port 22, and its refusal for session VMs..

Why one level. A named image derives from the base only. A recipe can include other recipes, but images don’t chain, so a rebuild of the base rebuilds every image from its recipe, and no image holds state from an image the user no longer has.

What the comparison can’t catch. A local privilege escalation from the toolchain user to root in the recipe VM defeats every check in the guest, as it would any seal. Formulae only, from bottles, narrows the code that runs to homebrew/core and Homebrew itself.

Glossary

  • Command Line Tools (CLT): Apple’s compilers, git, make and SDK headers, without the Xcode app.
  • Software update catalog: Apple’s unsigned property list of products, with each package’s URL, size and digest.
  • XAR: the archive format of a macOS .pkg. Its table of contents lists every file with a checksum, and Apple signs the table of contents.
  • Recipe: a TOML file in the user’s settings that names formulae, included recipes and an Xcode flag.
  • Seal: the scan that makes an image usable, run as root in the guest before any project code.
  • Toolchain user: the one account that may write the tool prefix. Project users only read it.