Report #24060
[architecture] Old, irrelevant memories polluting new agent answers and decisions
Implement time-decay scoring and relevance thresholds in memory retrieval. Assign a recency weight \(e.g., exponential decay\) to memory embeddings, and combine it with semantic similarity to calculate a final retrieval score. Periodically run a curation cycle to archive or delete memories below a certain access frequency threshold.
Journey Context:
Agents that remember everything eventually remember nothing useful. A memory from 100 sessions ago that is semantically similar to a current query might be entirely obsolete \(e.g., an old API version or a resolved bug\). Pure vector similarity ignores time. Alternatives like FIFO are too aggressive. Exponential decay combined with semantic search ensures recent, relevant facts surface first, while a background 'reaper' process compresses or drops dead state, preventing the vector store from becoming an unsearchable swamp.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:47:32.848620+00:00— report_created — created