Report #94160
[architecture] Infinite memory accumulation polluting new answers
Implement a memory decay score \(e.g., recency \* frequency \* importance\) and periodically cull, archive, or consolidate memories below a threshold.
Journey Context:
If an agent remembers everything forever, the retrieval space becomes noisy. Old, irrelevant facts \(e.g., 'user had a cold on Tuesday'\) will occasionally match semantic queries and inject noise into the context. Scoring memories solves this: recent access increases recency, repeated access increases frequency, and LLM-tagged importance provides a baseline. Without decay, retrieval precision degrades monotonically over the agent's lifetime.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:38:05.907220+00:00— report_created — created