What may the host do with a guest's disks, and how much of the data disk may a crash lose?
Decided 2026-10-04: the mount rule becomes a SEC control, and A. Keep state and commits. The decision and its reasons are in the I44I44 (closed): S06-vm-lifecycle: data disk durability, and never mount a guest-written diskS06-vm-lifecycle says the data disk "can be rebuilt from host state plus git, so it may use relaxed write-through settings for speed". comment that starts Decision (2026-10-04):. Source: I44I44 (closed): S06-vm-lifecycle: data disk durability, and never mount a guest-written diskS06-vm-lifecycle says the data disk "can be rebuilt from host state plus git, so it may use relaxed write-through settings for speed".. Affects SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces., S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does., FR13-claude-stateFR13-claude-state: Claude Code state per projectClaude Code's conversation history, and the state it keeps only in the guest, persist per project, so --resume/--continue work within a project. and NFR02-fs-speedNFR02-fs-speed: FilesystemThe workspace is on guest-native storage..
The problem
Section titled “The problem”Figure 1. The host may write into a new disk image while building it, before the guest has ever run from it. After the first boot both disks are written by the guest, which T00-indexT00-indexboundary 6 is the host terminal stream. treats as an adversary with root. Mounting either disk on the host (red) would make the host kernel parse a filesystem the adversary built. Work leaves the guest only through git to wb-hostd (S08-workspace-and-gitS08-workspace-and-git: Workspace and Git Round TripHow code gets into the guest and how the agent's work gets back out, without sharing the host filesystem.).
Decision 1: the mount rule
Section titled “Decision 1: the mount rule”Decidable now.
The issue says the rule goes in S03-requirementsS03-requirements: RequirementsThe problem Wraith Box solves, and where the requirements that answer it are. or S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does.. Requirements are now in SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces., and S03-requirementsS03-requirements: RequirementsThe problem Wraith Box solves, and where the requirements that answer it are. only points to them.
Decision 2: what the data disk must keep
Section titled “Decision 2: what the data disk must keep”The target is decidable now. The settings that meet it wait on the spikes. The options are the brief’s, built from the issue’s proposal.
Impact
Section titled “Impact”The mount rule applies under every option. It supports SEC01-separate-kernelSEC01-separate-kernel: Separate kernelThe agent runs in a hardware-virtualized guest with its own kernel, never sharing a kernel with the host or with another environment of the user (for example a WSL distribution). and SEC11-root-gains-nothingSEC11-root-gains-nothing: Guest root is not a privilegeFull control of the guest grants no control over enforcement, secrets, or policy. (guest root doesn’t gain control over the host).
Evidence
Section titled “Evidence”- verified S06-05-disksS06-05-disks: DisksA VM's system disk and data disk: how the data disk keeps what the guest flushes, and how the guest mounts it. says the data disk “can be rebuilt from host state plus git”. The project user’s home on that disk holds Claude Code state (S06-08-projects-and-sessionsS06-08-projects-and-sessions: Projects and Sessions Inside a VMHow projects map onto guest users and sessions onto worktrees, and how Claude Code runs in the guest., and FR13-claude-stateFR13-claude-state: Claude Code state per projectClaude Code's conversation history, and the state it keeps only in the guest, persist per project, so --resume/--continue work within a project.).
- verified The Virtualization framework offers three sync modes for disk images: full,
fsync, and none. For none, “In case of failure, the state of blocks on disk and their order is undefined” and the image “cannot safely be reused on failure” (VZDiskImageStorageDeviceAttachment.handVZDiskSynchronizationMode.h, macOS 27 SDK, Xcode 27.0). - verified
VZMacGuestProvisioningOptionssets a user name, password and automatic login for the first boot after restore, needs macOS 27 in the guest, and has remote login off by default (VZMacGuestProvisioningOptions.h, available from macOS 27.0). - verified The X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM? candidate is “writing files to the new guest’s data volume from the host at build time, before any untrusted code has run” (X00-indexX00-index: SpikesThe open questions that must be answered by a throwaway prototype before work builds on them, in the order they are taken up.).
- verified The base layer installs Homebrew and the org and project layers install each Brewfile (S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does.), so third-party code runs during provisioning.
- verified No code under
packages/mounts or reads a disk image yet (searched forhdiutil,diskutil,mountand the sync modes). - inferred
wb-guestd’s self-update disk is written by the host and attached read-only (S06-12-guest-agentS06-12-guest-agent: Guest AgentWhat wb-guestd, the service in the guest, does for the host, and how it updates itself., “wb-guestd”). The rule doesn’t touch it, because the host never reads it back. - assumed That full sync on the data disk costs too much for NFR02-fs-speedNFR02-fs-speed: FilesystemThe workspace is on guest-native storage.. That is X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads. (I19I19 (closed): X05-fs-benchmark: Filesystem benchmarkHow does the data disk perform with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads?).
- assumed That homes on a second disk are kept through a system disk swap. That is X08-data-diskX08-data-disk: Data disk for homesGuest user homes on a second disk, surviving a system-disk replacement. (I22I22 (closed): X08-data-disk: Data disk for homesCan guest user homes live on a second disk and survive a replacement of the system disk?).
- assumed That provisioning options get a macOS 27 guest past Setup Assistant with
wb-guestdrunning. That belongs in X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM? (I28I28 (closed): X17-image-build: Unattended image buildX17-image-build (added to S11-verification-and-spikes in #14)).
What this unblocks
Section titled “What this unblocks”- The mount rule: a pull request for SEC00-indexSEC00-index: Security requirementsThe security controls Wraith Box enforces. and S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does., now. X17-image-buildX17-image-build: Unattended image buildCan a macOS guest installed from an Apple restore image get past Setup Assistant, with wb-guestd running as a root LaunchDaemon, without SSH, scripted clicks, or MDM? (I28I28 (closed): X17-image-build: Unattended image buildX17-image-build (added to S11-verification-and-spikes in #14)) then works inside it.
- The disk settings in S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does., after X05-fs-benchmarkX05-fs-benchmark: Filesystem benchmarkData disk with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads. (I19I19 (closed): X05-fs-benchmark: Filesystem benchmarkHow does the data disk perform with default versus relaxed write-through settings, against the host, on the NFR02-fs-speed workloads?) and X08-data-diskX08-data-disk: Data disk for homesGuest user homes on a second disk, surviving a system-disk replacement. (I22I22 (closed): X08-data-disk: Data disk for homesCan guest user homes live on a second disk and survive a replacement of the system disk?). I44I44 (closed): S06-vm-lifecycle: data disk durability, and never mount a guest-written diskS06-vm-lifecycle says the data disk "can be rebuilt from host state plus git, so it may use relaxed write-through settings for speed". is blocked by both.
wb-vmddisk setup in V1-M2-walking-skeletonV1-M2-walking-skeleton: Walking skeletonwb-vmd boots a fixture VM bundle in its confined process, wb-guestd answers over vsock, a data disk made on the host holds the homes, and wb shell opens a PTY as a project user, with its output through the terminal fi….
Details and glossary
Why mounting is dangerous. A filesystem driver in the host kernel trusts the on-disk structures more than a network parser trusts packets. A crafted APFS or HFS+ volume is a known way to attack a kernel. The guest has root, so it can write any bytes to its disks. Mounting a guest disk would add a third channel next to the two in S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., the host-guest socket and Ethernet frames, which are the only places the host is meant to read guest data.
What still counts as allowed. Cloning a disk file (APFS clone), copying it, deleting it, and attaching it to a VM handle bytes without interpreting them. The rule is about interpreting the filesystem: mounting, fsck, scanning files.
Glossary
- Data disk: the second virtual disk of a VM, holding project users’ homes and workspaces. An image update leaves it in place.
- Sync mode: how the host handles the guest’s “write this to permanent storage now” requests. Full honors them,
fsyncpasses them to the drive, none ignores them. - Host crash: a host kernel panic, power loss, or forced restart. A clean shutdown of the VM is not a crash.
- Provisioning: the steps
wb image buildruns after installing macOS, throughwb-guestd. - Setup Assistant: the macOS first-boot screens that create the first user account.
- Image seal: the scan for secrets before an image can be used (S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does.).