User Story
As an operator setting up OpenShell's microVM backend on a Mac, I want to check its required host tools before starting the gateway, so I can fix the installation before anyone tries to create a sandbox.
Problem Statement
The VM driver needs host filesystem tools to prepare and recover sandbox disks: mke2fs or mkfs.ext4, debugfs, and e2fsck. openshell-gateway config preflight validates gateway configuration but does not currently check whether these tools are available and usable.
Impact / Why This Matters
An operator can pass configuration validation and still discover a missing dependency during sandbox creation or recovery. Checking tools in an interactive terminal is insufficient when the gateway service uses a different account or PATH. Operators must diagnose those differences during provisioning and reproduce the fixes across managed Macs.
Proposed Design
The operator runs preflight with the gateway's intended configuration, account and environment. It uses the VM driver's tool lookup rules, reports selected executable paths, and checks that tools start and report supported versions. A failure identifies the tool, preserves its error, and explains what to install or fix. The operator corrects the dependency and reruns preflight before launching the gateway.
OpenShell documents the required tools; the operator installs and manages them. Preflight runs without downloading images, creating disks, starting a VM, or initializing gateway state. Its result applies to the host and environment where it ran.
Acceptance Criteria
Alternatives Considered
Documentation alone leaves the dependency unchecked. PR #3477 already proposes the discovery change.
Agent Investigation
Source review found existing configuration validation and VM tool lookup code. The change should share lookup rules with image operations and preserve preflight's ability to run without starting a driver. #3400 and #3477 cover related discovery work.
Checklist
User Story
As an operator setting up OpenShell's microVM backend on a Mac, I want to check its required host tools before starting the gateway, so I can fix the installation before anyone tries to create a sandbox.
Problem Statement
The VM driver needs host filesystem tools to prepare and recover sandbox disks:
mke2fsormkfs.ext4,debugfs, ande2fsck.openshell-gateway config preflightvalidates gateway configuration but does not currently check whether these tools are available and usable.Impact / Why This Matters
An operator can pass configuration validation and still discover a missing dependency during sandbox creation or recovery. Checking tools in an interactive terminal is insufficient when the gateway service uses a different account or
PATH. Operators must diagnose those differences during provisioning and reproduce the fixes across managed Macs.Proposed Design
The operator runs preflight with the gateway's intended configuration, account and environment. It uses the VM driver's tool lookup rules, reports selected executable paths, and checks that tools start and report supported versions. A failure identifies the tool, preserves its error, and explains what to install or fix. The operator corrects the dependency and reruns preflight before launching the gateway.
OpenShell documents the required tools; the operator installs and manages them. Preflight runs without downloading images, creating disks, starting a VM, or initializing gateway state. Its result applies to the host and environment where it ran.
Acceptance Criteria
mke2fsormkfs.ext4),debugfs, ande2fsck, and reports their selected paths.PATH.Alternatives Considered
Documentation alone leaves the dependency unchecked. PR #3477 already proposes the discovery change.
Agent Investigation
Source review found existing configuration validation and VM tool lookup code. The change should share lookup rules with image operations and preserve preflight's ability to run without starting a driver. #3400 and #3477 cover related discovery work.
Checklist