feat(actors): wire LLM strategize/execute actors to subplan spawning infrastructure #1304

Closed
freemo wants to merge 1 commits from feature/llm-actor-subplan-wiring into master

1 Commits

Author SHA1 Message Date
freemo b8eeee8825 feat(actors): wire LLM strategize/execute actors to subplan spawning infrastructure
CI / lint (pull_request) Successful in 24s
CI / security (pull_request) Failing after 4s
CI / quality (pull_request) Failing after 2s
CI / unit_tests (pull_request) Failing after 2s
CI / integration_tests (pull_request) Failing after 2s
CI / e2e_tests (pull_request) Failing after 1s
CI / build (pull_request) Failing after 1s
CI / helm (pull_request) Failing after 2s
CI / typecheck (pull_request) Successful in 57s
CI / docker (pull_request) Has been skipped
CI / coverage (pull_request) Successful in 9m33s
CI / status-check (pull_request) Failing after 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 55m4s
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