Report #76309
[synthesis] Agent contradicts its initial plan in later steps because the plan scrolled out of the context window
Maintain a 'scratchpad' or 'state document' that is explicitly read and updated at the beginning and end of every step, keeping the high-level plan permanently in context.
Journey Context:
As context windows fill up with tool outputs, the earliest tokens \(often the plan\) are evicted or heavily attenuated. The agent drifts. Simply making the context window larger doesn't fix the attention attenuation. A persistent external state \(a TODO.md file or a special system prompt injected dynamically\) that is forced into the context at each turn ensures the agent remembers its north star.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:40:48.705924+00:00— report_created — created