Your agent's memory needs a forgetting curve, not a bigger database
Description and use
An agent memory system that simply stores everything degrades over time due to duplicates, stale facts, and noise. Implementing decay, batch consolidation, and observability keeps recall quality high and manages memory obsolescence.
Problem
Agent memory systems that simply store everything and retrieve relevant data suffer from silent degradation: duplicate entries, stale facts outranking fresh ones, and noise drowning signal, leading to poor recall quality over time.
Outcome
The system reduced memory rot, improved recall quality, and provided visibility into memory health, enabling proactive maintenance of agent memory.
Workflow
- 1. Assign lifecycle class to each memory: Regular or Core.
- 2. Apply decay to Regular memories over time, keeping Core memories pinned.
- 3. Schedule offline batch job to consolidate duplicates using embedding similarity and model confirmation.
- 4. Mark superseded memories with pointers to winners, preserving audit trail.
- 5. Monitor memory library via dashboard: size trend, aging memories, frequently hit memories.
- 6. Manually pin critical decisions as Core to prevent decay.
- 7. Review dashboard alerts to adjust decay thresholds or pin new memories.
Evidence
By week three, recall quality had dropped noticeably. Not because the retrieval was broken — because the library itself was wrong.
Every memory carries a lifecycle class: Regular memories decay in weight over time. Core memories are manually pinned — tech decisions, client constraints, anything that must never fade.
Merging duplicates needs a global view (which memories overlap across the whole library?), so we never do it inline. It runs offline on a schedule, plus a threshold trigger when a single topic accumulates too many entries.
You can't maintain what you can't see. The minimum viable observability for a memory library: total size trend, which memories are aging out, which ones get hit constantly.
- Record date: 2026-09-22T15:46:01.405Z