pub enum Request {
Show 16 variants
Propose(ProposedCommand),
Resolve(Resolution),
Observe(Observation),
Ingest(ObservedIngest),
WriteObserved {
session: String,
path: String,
cwd: PathBuf,
},
ReadObserved {
session: String,
path: String,
cwd: PathBuf,
},
Provenance(ProposedCommand),
Record(ProposedCommand),
ListPending,
PendingStatus {
id: String,
},
Approve {
id: String,
nonce: Option<String>,
proof: Option<String>,
},
Deny {
id: String,
},
PrunePending,
Status,
AuthBegin {
op: String,
},
Shutdown {
op: String,
nonce: Option<String>,
proof: Option<String>,
},
}Expand description
A request from interception to the daemon.
Variants§
Propose(ProposedCommand)
“Here is a command I’m about to run — what’s the verdict?”
Resolve(Resolution)
“A human resolved a held command; record it (and maybe remember it).”
Observe(Observation)
“I observed a filesystem change that bypassed interception — just record it.” The backstop sends these so the daemon’s single writer keeps the hash chain intact.
Ingest(ObservedIngest)
“I observed an agent ingest untrusted content (a web fetch, a search, an MCP result, an out-of-workspace read, a download).” Provenance taint input (P6.2): the daemon labels the session; it never blocks on this — observation only labels, the trifecta rule decides later.
WriteObserved
“An agent session wrote this file.” Provenance propagation input (V1.1):
a tainted session taints the path it writes, so a later reader inherits the
taint. path is an identifier — the write content never leaves the agent.
Observation only (never blocks), gated on the cwd’s [provenance] policy
exactly like the trifecta floor.
ReadObserved
“An agent session read this file.” The consumer half of the write
propagation: if an earlier tainted session labelled path, the reader now
inherits that taint (and its later egress sink trips the trifecta).
path is an identifier — the file content never leaves the agent, and this
never blocks, never enqueues, and never touches a command verdict.
Provenance(ProposedCommand)
“Show me the provenance trail for this command” (P6.4). A read-only query for the CLI/TUI: the daemon returns the session’s untrusted reads plus this command’s sensitive-read → egress-sink → rule chain. Identifiers only.
Record(ProposedCommand)
“A human (no AI agent) already ran this shell command — record it for the audit trail.” Passive session recording: the daemon classifies it (so a destructive command is flagged in the timeline) but never blocks or snapshots, because by the time we hear about it the command has run.
ListPending
“List the commands currently held for approval.”
PendingStatus
“What is the status of this queued command?” (pending/approved/denied).
Approve
“A human approved this queued command id.” Since Phase 7 (anchored
trust) this is a privileged op on a locked daemon: it carries the
nonce + proof from AuthBegin { op: "approve:<id>" }. A bare approve
(both fields absent) is refused loudly, audited, and throttled under the
default policy ([security] require_approval_proof = true); a daemon
with no vault accepts it bare (the shutdown mirror — there is no secret
to prove possession of).
Fields
Deny
“A human denied this queued command id.” Stays bare by design: an agent denying its own held command is a nuisance, not a threat.
PrunePending
“Drop every still-pending entry from the queue without recording an audit row per one — the bulk recovery for orphaned holds.”
Status
“What is the daemon’s runtime status?” — currently the active scorer, so callers can tell whether the local model loaded or it’s on the heuristic fallback.
AuthBegin
“I want to perform a privileged operation op (e.g. shutdown) — give me a
challenge.” The daemon replies with a Response::Challenge. Auth is
enforced by the daemon, against the vault IT loaded at startup, so the
caller’s environment can’t point the check at a different/empty vault.
Shutdown
“Here is the challenge proof for op; do it.” Currently only shutdown.