Report #101743
[synthesis] Agent loses the original plan and loops or terminates early because the context window fills with completed steps
Maintain an external plan state \(plan-and-execute or hierarchical task network\), compact or archive obsolete observations, and reload the plan into context at each turn. Do not rely on the full chat history to preserve intent.
Journey Context:
ReAct keeps the entire observation history; as it grows, attention to the original goal degrades. LangGraph's plan-and-execute pattern separates the plan from execution traces. The synthesis is that the failure is not the model's memory but the prompt design: every token competes for attention, so old plan tokens get diluted. An external plan plus summarization is more robust than a larger context window.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:22:18.036290+00:00— report_created — created