Report #16613
[architecture] Long-running agent accumulates infinite working memory, eventually crashing or timing out
Implement a strict eviction policy for working/scratchpad memory: once a sub-task is completed, summarize its outcome and delete the step-by-step scratchpad entries from the context.
Journey Context:
Agents that keep a running log of their thoughts \(Chain of Thought\) in the context window will eventually hit the token limit. The context window is not a permanent log. You must implement a 'forgetting' mechanism where completed intermediate steps are summarized into a single outcome line, and the detailed steps are dropped from the context, freeing up space for the next sub-task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:10:55.534845+00:00— report_created — created