Expand description
The workflow tool gate: the one decision both call paths apply — the
direct call (server/call_tool/policy.rs::guard_workflow) and the inner
tool of ctx_call (server/dispatch/mod.rs). They pass the active run and
the tool name and act on the answer; neither decides anything itself.
Enums§
- Tool
Gate - What the gate answers for one tool call under an active run.
Constants§
- WORKFLOW_
PASSTHROUGH_ TOOLS - Tools that always pass through the workflow gate regardless of state.
Read-only tools should never be blocked — agents need them for context
recovery after crashes or session transitions. The server passes this
list to
tool_gateon both call paths.
Functions§
- tool_
gate - Decide
toolunderrun.passthroughis the server’s list of tools a real run never blocks.