Files
cleveragents-core/features/executor_error_details.feature
T
HAL9001 9e3d7c6622 fix(plan): preserve strategy_decisions_json in error_details during execute and report actual actor mode
Merge error_details instead of replacing them in _run_execute_with_actor
(formerly _run_execute_with_stub), preserving strategy_decisions_json
stored by run_strategize.  On execute retry, _build_decisions now finds
the full decision hierarchy instead of falling back to definition_of_done
parsing.

- Merge error_details on both success and failure paths
- Report type(self._execute_actor).__name__ instead of hardcoded 'stub'
- Rename _run_execute_with_stub to _run_execute_with_actor
- Add 4 Behave scenarios verifying preservation and mode reporting

ISSUES CLOSED: #10874
2026-04-30 14:56:33 +00:00

35 lines
2.0 KiB
Gherkin

@executor-error-details
Feature: Executor preserves strategy_decisions_json and reports actual actor mode (#10874)
Verifies that _run_execute_with_actor merges error_details instead of
replacing them, preserving strategy_decisions_json stored by
run_strategize. Also verifies the mode field reflects the actual
execute actor type rather than a hardcoded "stub" string.
Scenario: Execute success preserves strategy_decisions_json in error_details for eed
Given a eed mock lifecycle service with strategy_decisions_json in error_details
And a eed PlanExecutor with a succeeding execute actor
When I eed run execute on the plan
Then the eed committed error_details should contain strategy_decisions_json
And the eed committed error_details should contain tool_calls_count
And the eed committed error_details should contain sandbox_refs_count
Scenario: Execute success reports actual actor type in mode for eed
Given a eed mock lifecycle service with strategy_decisions_json in error_details
And a eed PlanExecutor with a succeeding execute actor
When I eed run execute on the plan
Then the eed committed error_details mode should be the execute actor class name
Scenario: Execute failure preserves strategy_decisions_json in error_details for eed
Given a eed mock lifecycle service with strategy_decisions_json in error_details
And a eed PlanExecutor with a failing execute actor
When I eed run execute expecting failure on the plan
Then the eed committed error_details should contain strategy_decisions_json
And the eed committed error_details should contain exception_type
And the eed committed error_details should contain traceback
Scenario: Execute failure reports actual actor type in mode for eed
Given a eed mock lifecycle service with strategy_decisions_json in error_details
And a eed PlanExecutor with a failing execute actor
When I eed run execute expecting failure on the plan
Then the eed committed error_details mode should be the execute actor class name