Orchestrata Ultimate › Tests › Reference › kernel › test_dispatcher_policy_audit
Tests reference — tests/kernel/test_dispatcher_policy_audit.py
Module of tests/kernel, split out because the directory page would be too large.
Prose pending.
tests/kernel/test_dispatcher_policy_audit.py
source · 16 tests · 568 lines
Tests for the staged (AUDIT-ONLY) PolicyEvaluator wiring in kernel.dispatcher.
Covers: agents.volk_registry, core.paths, cxp.servicer, cxp.transport, governance.constitutional, governance.prolog_client, infra.prolog_bridge, kernel.dispatcher, kernel.policy_evaluator, core.packet/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestPolicyAuditModeOff |
142 | |
| method | TestPolicyAuditModeOff.test_default_flag_is_off_and_no_evaluator_built |
143 | policy_audit_mode defaults to False and no PolicyEvaluator exists. |
| method | TestPolicyAuditModeOff.test_explicit_flag_off_no_evaluator_built |
149 | |
| method | TestPolicyAuditModeOff.test_flag_off_dispatch_succeeds_unaffected |
154 | dispatch() behaves identically to before this wiring when the flag |
| class | TestPolicyAuditModeOn |
178 | |
| method | TestPolicyAuditModeOn.test_flag_on_invokes_evaluator_with_real_args_and_logs_allow |
180 | With the flag on, dispatch() calls evaluate_routing with the |
| method | TestPolicyAuditModeOn.test_flag_on_deny_verdict_does_not_block_dispatch |
246 | The whole point of AUDIT-ONLY mode: a DENY verdict is logged but |
| method | TestPolicyAuditModeOn.test_flag_on_without_injection_builds_default_evaluator |
283 | When no evaluator is injected, init builds one itself from the |
| class | TestDefaultEvaluatorLoadsPamRules |
299 | Regression proof for the W1-P3 concrete known instance |
| method | TestDefaultEvaluatorLoadsPamRules.test_default_evaluator_resolves_true_owner |
321 | |
| method | TestDefaultEvaluatorLoadsPamRules.test_default_evaluator_denies_wrong_claimant |
332 | The discriminating case: 'governance' is shipped-owned by U:Ox |
| class | TestPolicyAuditModeEvaluatorFailure |
354 | |
| method | TestPolicyAuditModeEvaluatorFailure.test_evaluator_raising_does_not_break_dispatch |
356 | If PolicyEvaluator itself raises, dispatch still succeeds and a |
| class | TestArticleXIIAuditModeOff |
395 | |
| method | TestArticleXIIAuditModeOff.test_default_flag_is_off_and_no_enforcer_built |
396 | |
| method | TestArticleXIIAuditModeOff.test_flag_off_dispatch_succeeds_unaffected |
401 | |
| class | TestArticleXIIAuditModeOn |
418 | |
| method | TestArticleXIIAuditModeOn.test_flag_on_without_injection_builds_default_enforcer |
419 | Mirrors test_flag_on_without_injection_builds_default_evaluator: |
| method | TestArticleXIIAuditModeOn.test_flag_on_default_plan_is_vacuously_faithful |
428 | plans/execution-plan.md is marked STATUS: DONE (superseded |
| method | TestArticleXIIAuditModeOn.test_flag_on_active_plan_flags_off_plan_action_but_never_blocks |
459 | With a REAL, actively-parsed plan (via the REAL |
| class | TestArticleXIIAuditModeEnforcerFailure |
516 | |
| method | TestArticleXIIAuditModeEnforcerFailure.test_missing_plan_file_construction_returns_none |
517 | _build_default_constitutional_enforcer resolves the plan via |
| method | TestArticleXIIAuditModeEnforcerFailure.test_enforcer_raising_does_not_break_dispatch |
533 | If ConstitutionalEnforcer itself raises, dispatch still succeeds |