Report #20846
[architecture] Agent memory grows infinitely causing vector store bloat and retrieval of outdated information
Implement a time-decay scoring mechanism on memory retrieval \(e.g., exponential decay on the similarity score\) and a periodic compaction job that merges or deletes redundant episodic memories.
Journey Context:
Agents that remember everything eventually remember nothing useful because the vector space gets saturated with obsolete states. A common mistake is relying solely on cosine similarity. Real human memory decays. The tradeoff: aggressive decay might lose important long-tail facts, while no decay leads to memory hoarding. Using a hybrid score \(similarity \* recency\_factor\) balances this, ensuring fresh facts rank higher unless an old fact is a near-exact match.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T13:23:36.419160+00:00— report_created — created