pub struct GateEnvPolicy {
pub home: PathBuf,
pub passthrough: Vec<String>,
}Expand description
The OPERATOR-owned half of every gate command’s environment, carried from
mission config through ProvisionSpec onto the WorkspaceHandle so
each of the four contract-declared command lanes (bootstrap, readiness,
data hooks, disk.prune) builds the same env from the same inputs.
Fields§
§home: PathBufThe ONE scratch HOME/TMPDIR/CARGO_HOME every gate phase of this
mission run shares (follow-up review, M-1: a per-phase home deleted
bootstrap’s output before readiness could see it).
passthrough: Vec<String>The operator’s contractEnvPassthrough — the second party in the
two-party consent a contract secrets[] name needs before it crosses
(follow-up review, H-6). Operator-only by construction: the key is in
config.rs’s PROJECT_LAYER_REFUSED, so repo content cannot set it.
Implementations§
Source§impl GateEnvPolicy
impl GateEnvPolicy
Sourcepub fn for_mission(runtime_dir: &Path, passthrough: &[String]) -> Self
pub fn for_mission(runtime_dir: &Path, passthrough: &[String]) -> Self
The policy for one mission run: the gate home under the mission’s own
writable runs/ dir, plus the operator’s passthrough list.
Trait Implementations§
Source§impl Clone for GateEnvPolicy
impl Clone for GateEnvPolicy
Source§fn clone(&self) -> GateEnvPolicy
fn clone(&self) -> GateEnvPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more