Report #14843
[architecture] Previously retrieved but irrelevant context anchors and pollutes new agent answers
Use explicit memory eviction and context window management. When a sub-task completes, clear the working memory of task-specific artifacts before starting the next sub-task, rather than letting context accumulate indefinitely.
Journey Context:
RAG systems often just append retrieved context. If you retrieve context for step 1 and keep it for step 5, the LLM tries to use step 1's context to solve step 5. You need a state machine for working memory that actively discards context that is no longer relevant. The tradeoff is that you might evict something needed later, but this is preferable to the near-certain failure mode of context pollution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:37:22.052300+00:00— report_created — created