Files
freemo b8eeee8825 feat(actors): wire LLM strategize/execute actors to subplan spawning infrastructure
Enable tool calling in LLMStrategizeActor and LLMExecuteActor by accepting
an optional tool_runner parameter. When provided, available tools are bound
to the LLM via bind_tools() and any tool calls in the response are dispatched
through the runner before the final response is parsed.

Wire the builtin/plan-subplan tool into the tool registry available to LLM
actors in the CLI's _get_plan_executor. A DecisionRecorderAdapter bridges
the protocol mismatch between subplan_tool._DecisionRecorder and
DecisionService.record_decision.

Add SubplanService injection to PlanExecutor via a new subplan_service
parameter. After execute completes, _try_spawn_subplans() queries for
SUBPLAN_SPAWN/SUBPLAN_PARALLEL_SPAWN decisions and calls
SubplanService.spawn() to materialise child plans and populate
plan.subplan_statuses. Spawn failures are non-fatal and logged as warnings.

Add comprehensive Behave BDD tests covering _build_langchain_tools,
_dispatch_tool_calls, LLMStrategizeActor/LLMExecuteActor tool_runner
wiring, PlanExecutor subplan_service injection, and _try_spawn_subplans.

Closes #1207
2026-04-02 09:34:44 +00:00
..
2026-02-23 03:11:12 +00:00