Stop Treating AI Memory Like a Search Problem#
Deep-dive by Benjamin Nweke (TDS, April 2026) on memory lifecycle management. Provides the implementation missing from the wiki’s memory architecture analysis — not storing and retrieving, but what happens in between.
Five Lifecycle Components#
- Decay — score 0-1, exponential decay based on idle time, half-life tunable (30-90 days). Below 0.1 → archived.
- Contradiction Detection — LLM checks new memories against existing store at write time. Superseded memories linked via
contradicted_by. - Confidence Scoring — LLM rates 0.0-1.0 at write time (explicit=1.0, inference=0.5, speculation=0.1).
- Compression — weekly, find duplicate clusters, merge N→1 via LLM synthesis. Merged confidence=0.85.
- Expiry — LLM detects natural end dates (deadlines, temporary states). Daily purge.
Retrieval Ranking#
Sort by: importance × confidence × decay_score. All five lifecycle concepts converge into one composite score.
Key Insight#
If you’re manually cleaning the memory system, the system isn’t working. Directly addresses the wiki’s Black Hat concern about wiki bloat.