Intent-Code Divergence
Medium
- Confidence
- 96% confidence
- Finding
- The file-level documentation promises 'ALWAYS FAIL-CLOSED' behavior for tool execution, but the implementation immediately returns when `config.scan.tool_calls` is false, completely disabling pre-execution scanning. This creates a dangerous security gap: operators may rely on the documented guarantee while an attacker or misconfiguration disables the only control protecting high-risk tools such as shell or HTTP execution.
