fix(plan-lifecycle): record prompt_definition as root decision during Strategize #9195

Merged
HAL9000 merged 1 commits from fix/9061-plan-lifecycle-decision-type into main 2026-04-14 20:04:01 +00:00

1 Commits

Author SHA1 Message Date
HAL9000 6745770d7d fix(plan-lifecycle): record prompt_definition as root decision during Strategize
Fixes a bug where the root decision was recorded as 'strategy_choice' instead of
the correct 'prompt_definition' type during the Strategize phase. The decision tree
now correctly records the plan's prompt/description as the root decision, ensuring
proper decision tree structure and downstream decision evaluation.

Changes:
- Modified start_strategize() to record prompt_definition as the root decision
- Updated decision question to 'What is the plan prompt?'
- Set chosen_option to plan.description with fallback to action_name or plan_id
- Added test scenario to verify root decision type is prompt_definition

Closes #9061
2026-04-14 10:12:02 +00:00