Skip to main content

evaluate_tool_gate

Function evaluate_tool_gate 

Source
pub fn evaluate_tool_gate(
    principal_permitted: bool,
    agent_has_tool: bool,
) -> GateDecision
Expand description

Pure gate: principal flag + allowlist membership. Unit-testable without APP_STATE or MCP.