Orchestrata Ultimate › Tests › Reference › agents › test_kernel_handler_governance
Tests reference — tests/agents/test_kernel_handler_governance.py
Module of tests/agents, split out because the directory page would be too large.
Prose pending.
tests/agents/test_kernel_handler_governance.py
source · 7 tests · 189 lines
Real tests for the SPEC-003 Option-A governance gate in the kernel packet
Covers: agents.kernel_handler, agents.volk_registry, core.paths, core.tracing.tracer, cxp.reply_router, kernel.pipeline, orchestrator.intent_broker_factory, postman.postman
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_govern_allows_standard_intent |
50 | A normal work request passes the default-allow policy (returns None). |
| function | test_govern_denies_forbidden_intent |
62 | An operation with a matching permission_denied clause is blocked with an |
| function | test_call_short_circuits_denied_intent_before_pipeline |
85 | The full handler returns the denial and never invokes the (unbooted) |
| function | test_status_and_response_bypass_the_gate |
107 | status polls and in-thread responses are never gated (concierge owns |
| function | test_no_broker_is_passthrough |
117 | Without a broker wired, the gate is a no-op (returns None). |
| function | test_denied_intent_reply_to_routes_via_reply_router |
123 | P-B7 (D6, closes the reply_to gaps in |
| function | test_status_reply_reply_to_routes_via_reply_router |
164 | P-B7 (D6): a status_report reply built for an incoming packet |