Report #36260
[synthesis] Agent forgets original goal and wanders into unrelated tasks mid-execution
Maintain a 'Goal State' object outside the LLM context window. Prepend a condensed, immutable version of this goal state to every subsequent LLM prompt, overriding the natural context window eviction.
Journey Context:
In long-running tasks, as the context window fills up, older messages \(often containing the original user prompt and constraints\) are evicted or summarized. The agent continues executing based on the most recent context, which might be a tangential sub-task, completely forgetting the original goal \('Goal Amnesia'\). The synthesis is that LLM context windows are FIFO queues, not persistent memory. Relying on the context window to maintain high-level strategic intent over thousands of tokens is a fundamental architectural flaw. Externalizing the goal state and re-injecting it ensures strategic continuity despite context churn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:20:21.920569+00:00— report_created — created