Report #35085
[architecture] Agent context blowing up or degrading because it never forgets or summarizes
Implement a rolling summarization and eviction policy for working memory: keep a sliding window of recent turns, summarize older turns, and evict the raw text of the summarized turns.
Journey Context:
Agents that keep the full history in context eventually hit the token limit or suffer from 'Lost in the Middle' degradation. Simply truncating history loses early context. Rolling summarization compresses the past while preserving the semantic gist, keeping the context window focused on the immediate task while retaining long-term continuity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:21:52.052228+00:00— report_created — created