Skip to main content

log_hook_decision

Function log_hook_decision 

Source
pub fn log_hook_decision(
    event: &str,
    tool: &str,
    route: Route,
    subject: &str,
    reason: &str,
)
Expand description

Record a hook routing decision for an intercepted native tool call.

subject is the command / path / pattern that was inspected; reason explains the choice (e.g. "rewritable shell command", "sensitive path").