You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(agent-loop): AgentLoop, the planner and stall escalation are built but only tests construct them — two agent loops for one concept #20846
agent_loop/loop.pyAgentLoop (with planner/planner.pyLLMPlannerModule, ExecutionPlan, PlanStep, and the stall escalation ask_human_escalation_policy, around :1083) is constructed only in tests. Chat runs its own loop in chat_workflow/graph.py. That leaves two agent loops for one concept. The one with planning, structured step state and stall escalation is unwired, and the live one keeps task state only in the chat history.
Acceptance criteria
One agent loop. Either chat drives the planner/executor (plan → one step per fresh context → structured step state), or the planner and stall escalation move into the chat graph and the duplicate is retired once it is proven unused
Multi-step chat tasks keep plan and step state outside the message history
Stall escalation (ask a human after repeated non-progress) is live on the chat path
Decision recorded in the PR body: which loop is canonical, and why
The chat graph is the canonical loop. Port the planner and stall escalation into it as graph nodes. AgentLoop is never instantiated.
AgentLoop is kept and marked PORTED. A follow-up issue decides whether it is retired or kept as a library.
Both features sit behind SSOT flags that default off (AUTOBOT_CHAT_PLANNER_ENABLED, AUTOBOT_CHAT_STALL_ESCALATION=stop|ask). Wired in with default stop satisfies AC3.
Activity
mrveiss commentedon Nov 7, 2026
Maintainer decision 2026-11-07:
github-actions commentedon Nov 12, 2026
Landed via the merge train (#21348, merge
5293da27d0) via #21236