pub(super) async fn plan_capture(
state: &AppState,
caller: Option<&Caller>,
agent_block_id: &str,
auth: Option<&UiAutomationAuth>,
rules: Option<&[CaptureRule]>,
cmd: &str,
_cwd: &str,
reason: &str,
) -> Result<(Option<Job>, Vec<String>), (StatusCode, String)>Expand description
Checks a command’s capture before it runs (spec §4.2 of the generate spec). Nobody is asked: a rule that makes a new
entry holds nothing of the person’s yet, and one that replaces an entry’s value keeps the old one 7 days and leaves a
history line (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md), within the agent’s pace. None
when there is no capture. The labels returned are the entries nobody was asked about and that went ahead: always none
now, kept for the shape every caller reads.