pub struct ProvisionSpec {
pub mission_id: String,
pub repo_root: PathBuf,
pub runtime_dir: PathBuf,
pub base_sha: Option<String>,
pub contract: Option<WorkspaceContract>,
pub gate_env: GateEnvPolicy,
}Expand description
Everything a provider needs to provision one mission’s workspace.
Fields§
§mission_id: String§repo_root: PathBufThe mission execution root — the integration worktree in worktree
mode, the repo root in checkout mode, resolved by run()’s existing
isolation machinery (the local provider reuses it, never recreates
it).
runtime_dir: PathBufThe mission-owned runtime dir (.kranz/missions/<id>/ on the primary
side, gitignored): container providers write their compose project
files under it — never inside the worktree, whose lifecycle belongs
to the mission-branch machinery. Unused by the local provider.
base_sha: Option<String>Base SHA pinned at approval; the handle env carries it as
KRANZ_BASE_SHA (the contract_env idiom every contract-command
execution context shares).
contract: Option<WorkspaceContract>The workspace contract read from the live base branch, when present
(None = today’s worktree-only behavior, readiness trivially ready).
gate_env: GateEnvPolicyThe operator-owned gate env inputs every provider copies onto its
handle (see GateEnvPolicy).
Trait Implementations§
Source§impl Clone for ProvisionSpec
impl Clone for ProvisionSpec
Source§fn clone(&self) -> ProvisionSpec
fn clone(&self) -> ProvisionSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more