Build and test code now takes Arc<dyn Sandbox>. Context implements the
trait as a bridge for the unshare driver, so the callers move in one
commit without rewriting the driver first.
Staging goes through stage_tree with explicit ReuseState upper and work
paths. The sources backup writes its copy explicitly, and is_host keeps
the keyring cache ownership check on the host only.
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>.
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.