a5c1b2dda4
Add GitWorktreeSandbox.cleanup_stale() and diff_against_head() class methods, create strategy_actor module with resolve_strategy_actor(), add PlanApplyService.correction_diff() method, and fix _get_apply_service() and _get_plan_executor() to use correct API signatures. Add Behave BDD unit tests and Robot Framework integration tests for all new functionality. ISSUES CLOSED: #8628
28 lines
1.3 KiB
Gherkin
28 lines
1.3 KiB
Gherkin
Feature: Strategy actor resolution for plan execution
|
|
As a developer
|
|
I want resolve_strategy_actor to select the correct strategize actor
|
|
So that plan execution uses the right LLM or stub actor
|
|
|
|
Scenario: resolve_strategy_actor returns None when config_value is "stub"
|
|
Given a sar mock provider registry is available
|
|
And a sar mock lifecycle service is available
|
|
When I call resolve_strategy_actor with config_value "stub"
|
|
Then the sar resolved actor should be None
|
|
|
|
Scenario: resolve_strategy_actor returns None when provider_registry is None
|
|
Given a sar mock lifecycle service is available
|
|
When I call resolve_strategy_actor with no provider registry
|
|
Then the sar resolved actor should be None
|
|
|
|
Scenario: resolve_strategy_actor returns LLMStrategizeActor when registry is available
|
|
Given a sar mock provider registry is available
|
|
And a sar mock lifecycle service is available
|
|
When I call resolve_strategy_actor with config_value "llm"
|
|
Then the sar resolved actor should not be None
|
|
|
|
Scenario: resolve_strategy_actor returns LLMStrategizeActor when config_value is None
|
|
Given a sar mock provider registry is available
|
|
And a sar mock lifecycle service is available
|
|
When I call resolve_strategy_actor with no config_value
|
|
Then the sar resolved actor should not be None
|