Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 2
Please check the settings in the CodeRabbit UI or the
|
Code review (code-reviewer pass) at b80b31fVerdict: CHANGES NEEDED — the design meets #21023 and the tests pass, but two silent-degradation paths (Redis None, and tool statuses that never advance a step) need a fix or an explicit decision before merge. Reviewed against base
AC evidence for #21023:
Not checked: CI (many checks on this stack's runs fail; I did not read the logs). I did not run the wider |
…, guarded create_plan, dispatch-branch pin (#21023)
|
Pushed 121b1d0: review fixes
|
Code review (code-reviewer pass) at 121b1d0Verdict: APPROVE-READY — every CHANGES NEEDED finding is fixed in the delta
Test runs (temporary worktree at this head, since removed): New findings:
Not checked: CI status; real Redis behaviour (the tests use an in-memory fake); the full backend suite. |
|
Code review (code-reviewer pass) at 121b1d0 Verdict: APPROVE (code, delta over #21058 only). Merge gate: stacked on #21058, which must land first and the base retargeted to main; CI shows failing checks at this head (python-suite, autofix-types, the Jekyll Liquid-tag doc check, provision-packages and others), not diagnosed by me, and red CI does not merge. Scope: 19 files in the delta, 0 behind main, 0 unresolved review threads.
|
…sync _refresh, session-scoped plan keys with an env-backed TTL (#21023)
|
Review fixes pushed at 7d51d01 (the updated #21058 branch and main are merged in first).
Tests, all in |
|
Code review (code-reviewer pass) at 7d51d01 Verdict: CHANGES. Stacked on #21058. Fix commit 7d51d01 touches 9 files; the PR shows 113 changed files against its stacked base. 0 behind main, merge state DIRTY (needs the stack base retargeted/synced), 0 review threads.
|
…sot' into issue-21023-planner-graph-node
|
Findings fixed at 555f604 (the #21058 branch merged in without conflicts; main already contained).
Tests: plan_storage, plan_runner, graph_planner, live_entry, planner, llm_failover, ssot_config, chat_graph_settings_validation, unconnected_code_gate and env registry: 157 passed before the last refactor; plan_storage and planner re-run after: 16 passed. |
|
Code review (code-reviewer pass) at 555f604 Verdict: CHANGES (three small items, all in files this PR already touches; the four requested fixes themselves verify).
Fix 1a, 1b and 6a in this PR; none needs a separate issue. |
|
Branch deleted after verification: every commit is in main and the branch shows 0 changed files against main. Restore it from this PR if needed. |
Stacked on #21024; retarget to main after it lands.
Thinking Path
The maintainer decision on #20846 (point 4b) ports the planner into the chat graph, the canonical loop. The planner becomes a graph node behind a flag, with the plan kept outside graph state so state stays small and serialisable.
What Changed
chat_workflow/graph_planner.py: thecreate_plannode, behindAUTOBOT_CHAT_PLANNER_ENABLED(default off; off returns at once and touches nothing).planner_client.py), under the existing 5-step cap (limits.py).plan_idandcurrent_step_id(plus a small progress dict).plan_runner.py,PlanTracker).plan_runner, so there is one implementation of plan creation and step advance.graph_hooks.pyandkb_sources.pyare extracted fromgraph.py/manager.py; ceilings lowered inscripts/python_file_size_known_large.py(graph.py1459 to 1443,manager.py3766 to 3750).docs/developer/ENV_VARS.mdandenv_registry_agent_tools.py; the bug(agent-loop): AgentLoop, the planner and stall escalation are built but only tests construct them — two agent loops for one concept #20846 wiring guard gains 10 lines for the node.configured_provider()(AUTOBOT_LLM_PROVIDER). An install that already sets a provider now gets it in failover and the planner too, where before both were hardcoded to Ollama. An unknown value falls back toollamawith one warning at config load (ssot_chat_graph_settings.py), becauseconfig.llm.provideris also read outside chat and failing fast could stop an existing install.LLMPlannerModulerejects an emptykey_scope; the legacy unscoped plan key is gone._NO_REDIS_LOGGEDflag is one of several hand-written log-once copies (5 private_warn_oncehelpers plus module-level flags); consolidation is tracked in refactor(logging): one shared log-once helper in autobot_shared.logging_manager, replace the private _warn_once copies #21071.Verification
planner/planner_test.py(106 lines),chat_workflow/graph_planner_20846_test.py(124),chat_workflow/plan_runner_21023_test.py(111),chat_workflow/live_entry_uses_planner_20846_test.py(135, includes a control that the flag-off baseline run produced output) andrepo_tests/agent_loop_ported_to_chat_graph_20846_test.py: 27 passed together.Single-issue rationale
The node, the shared
plan_runnerand the size refactors that make room for it cannot be split: the node does not fit under thegraph.pyceiling without the extractions. It is stacked on #21024 for the SSOT settings it reads.Risks
Flag is off by default, so no behaviour change until enabled. Progress events are not emitted yet.
Model Used
Claude Sonnet 5.5 (claude-sonnet-5-5)
Issue Link
Closes #21023
Changelog fragment
Checklist
CLAUDE.mdgit commitruns them automatically)main(notrelease) -- targets chore(agents): record the chat-graph-canonical decision and move ask-human defaults to SSOT (#20846c) #21024's branch; retarget after it landsPre-handover (docs/developer/CLAUDE_REVIEW.md, #19285)