Orchestrata Ultimate › Tests › Reference › orchestrator › test_tool_interceptor_governance

Tests reference — tests/orchestrator/test_tool_interceptor_governance.py

Module of tests/orchestrator, split out because the directory page would be too large.

Prose pending.

tests/orchestrator/test_tool_interceptor_governance.py

source · 3 tests · 89 lines

End-to-end async governance enforcement through ToolInterceptor.

Covers: core.adapters.claude.tool_interceptor, infra.redis_state, orchestrator.engine

Kind Name Line Description
function test_check_governance_and_intercept_are_async 56 The governance path must be coroutine functions so the async engine is
function test_intercept_blocks_on_real_governance_deny 63 A real async governance DENY propagates through intercept as a BLOCK.
function test_intercept_allows_safe_tool_via_real_governance 78 A real governance ALLOW yields no blocking result, so the interceptor