Orchestrata Ultimate › Tests › Reference › orchestrator › test_intent_broker_refactor

Tests reference — tests/orchestrator/test_intent_broker_refactor.py

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

Prose pending.

tests/orchestrator/test_intent_broker_refactor.py

source · 10 tests · 517 lines

Tests for SPEC-103 FR-009 (REQ-103-025): REFACTOR intent routing.

Covers: agents.volk_registry, core.base.traces, knowledge_graph.config, orchestrator.impact.analyzer, orchestrator.impact.dependency_analyzer, orchestrator.intent_broker, orchestrator.intent_lifecycle, orchestrator.intent_router, orchestrator.intent_types, orchestrator.intent_validator, postman.postman, refactor.agent

Kind Name Line Description
class TestHandleRefactorDirect 221
method TestHandleRefactorDirect.test_success_invokes_arefactor_and_dispatches 222 REFACTOR intent -> arefactor(task, root) -> success DispatchResult.
method TestHandleRefactorDirect.test_error_status_fails_dispatch_and_lifecycle 250 arefactor status=="error" -> success is False, lifecycle FAILED.
method TestHandleRefactorDirect.test_max_iterations_status_fails_dispatch_and_lifecycle 279 arefactor status=="max_iterations" -> success is False, lifecycle FAILED.
class TestHandleRefactorRootResolution 315
method TestHandleRefactorRootResolution.test_root_parameter_wins_over_resource_path 316
method TestHandleRefactorRootResolution.test_workspace_parameter_used_when_root_absent 336
method TestHandleRefactorRootResolution.test_resource_path_with_suffix_resolves_to_parent_dir 356 No root/workspace param + resource_path='pkg/mod.py' -> root='pkg'.
method TestHandleRefactorRootResolution.test_resource_path_without_suffix_resolves_to_itself 377 resource_path with no file suffix is treated as the root itself.
method TestHandleRefactorRootResolution.test_env_var_fallback_when_no_root_or_resource_path 398 Neither a root/workspace param nor resource_path -> the handler falls
class TestProcessIntentRefactorBranchWiring 429
method TestProcessIntentRefactorBranchWiring.test_enabled_refactor_classified_intent_takes_refactor_path 430 enable_tool_refactor=True + a REFACTOR-classified intent (real
method TestProcessIntentRefactorBranchWiring.test_disabled_refactor_classified_intent_falls_through_to_normal_routing 474 enable_tool_refactor=False: the same REFACTOR-classified intent goes