Skip to content

S17 - Install, Downloads and Upgrades

Purpose: Build, install, upgrade and remove a Wraith Box bundle, move its stored data to a new version, and download what an image build needs from the internet.

Requirements: SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts. (no root, each process gets only what it needs), 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 recorded), SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped. (what the host spends is capped), NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. (each refusal names its rule and the fix).

Tests: C12-install-and-downloadsC12-install-and-downloads: Install and DownloadsThe test cases for installing and upgrading Wraith Box: wb-download, wb-release-check, the checks wb-hostd makes on what it fetches, wb setup, and the migrations of state.db and configuration.

Brief: B49-install-upgradeB49-install-upgrade: How is Wraith Box built, installed and upgraded, and how does an image build get its downloads?Recommended - approve S17-install-and-upgrade.

Page What it covers
S17-01-bundleS17-01-bundle: The BundleWhat a Wraith Box bundle holds, and how mise run build builds and signs it. The bundle’s layout, and how mise run build builds and signs it
S17-02-setupS17-02-setup: InstallHow wb setup installs Wraith Box from its bundle without administrator rights, and how wb setup --remove takes it out. wb setup: the bundle check, the LaunchAgent, the wb link, and removal
S17-03-downloadsS17-03-downloads: DownloadsHow wb-download fetches what an image build needs from the internet. wb-download: entries, confinement, host rules, deadlines, records, audit and space
S17-04-restore-and-releaseS17-04-restore-and-release: Restore Image and ReleaseThe steps by which wb-download and wb-hostd fetch and check a macOS restore image and a Claude Code release. The steps that fetch a restore image and a Claude Code release
S17-05-upgrades-and-migrationsS17-05-upgrades-and-migrations: Upgrades and MigrationsHow an upgrade replaces the bundle, and how wb-hostd moves stored data to a new version. Replacing the bundle, and migrating state.db and configuration
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). The steps that fetch and check Apple’s Command Line Tools for the base layer

Status: Draft