Commit Graph
2 Commits
Author SHA1 Message Date
vhaudiquet f1a21e0923 sandbox: add the Sandbox trait and the host backend
Build code needs an interface it can receive explicitly instead of a
global context. Add the 11-method Sandbox trait, the command description
and builder, the transfer options, and the shared stage_tree helper that
owns VCS pruning.

Host implements the trait with std::process and std::fs. A conformance
test runs against it and pins the command contract through an
Arc<dyn Sandbox>.
2026-11-24 18:35:17 +01:00
vhaudiquet bf88ce4f4d docs: spec the Sandbox trait that replaces Context
Replace the context settings, globals and driver chain with a public
Sandbox trait that build code receives explicitly. Unshare is the
ephemeral chroot backend, Host serves local tests, and Ecrou is the
future microVM backend.

The transfer API keeps the trait small: put, get, remove and the
in-sandbox file operations. stage_tree is a helper that owns the
source-tree policy, including VCS pruning and optional resume state.
2026-11-24 18:35:17 +01:00