pub struct HookGateSpec {
pub version: u32,
pub gate: String,
pub session_cwd: PathBuf,
pub touch_set: Vec<String>,
pub record_file: PathBuf,
}Expand description
Everything kranz hook-guard needs to judge one tool call, written by
the engine at spec-build time into the session-private scratch root. The
hook command line carries ONLY this file’s path: no touch-set on the
command line, no env vars — the session’s already-cleared env is the
whole channel (house rule: no new ambient credential or env channel).
Fields§
§version: u32SPEC_VERSION at write time.
gate: StringGate identity (HOOK_GATE_ID).
session_cwd: PathBufThe session’s working directory (the mission worktree in worktree
mode, the repo root in checkout mode): the root touch-set globs are
relative to, and the base relative file_paths resolve against.
touch_set: Vec<String>The mission’s declared touch-set globs, verbatim (gitignore-style:
! negates, last match wins — contract_sweep::touch_set_includes).
record_file: PathBufAbsolute path of the record file the guard appends to
(record_file). Session-writable by construction (see module docs).
Implementations§
Trait Implementations§
Source§impl Clone for HookGateSpec
impl Clone for HookGateSpec
Source§fn clone(&self) -> HookGateSpec
fn clone(&self) -> HookGateSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more