Report #77037
[architecture] Old, irrelevant memories polluting the context window and degrading current task performance
Implement memory decay and relevance scoring. Assign a decay factor to memories based on access frequency and recency \(LRU/MFU\), and use a threshold to evict or deprioritize stale memories from the retrieval set before they reach the context window.
Journey Context:
Agents that remember everything eventually remember nothing useful. A memory from 100 sessions ago that was accessed once is likely noise. Without decay, vector similarity search will occasionally surface highly similar but obsolete facts \(e.g., 'user's favorite color is blue' when they changed it to red\). Implementing a time-weighted decay or access-frequency boost ensures the agent prioritizes recent, active state over historical noise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:54:11.556125+00:00— report_created — created