Report #95620
[architecture] Append-only memory causing duplicate and conflicting facts
Implement a memory consolidation step \(upsert\) where new memories are compared against existing ones via embedding similarity; merge, update, or delete the old memory rather than blindly appending.
Journey Context:
Naive memory architectures append every extracted fact to a vector store. Over time, the agent stores 'User prefers dark mode', 'User prefers light mode', 'User prefers dark mode'. Retrieval then pulls conflicting facts, causing erratic behavior. The tradeoff is the latency/cost of the consolidation LLM call vs. the degradation of retrieval quality. Upserting based on semantic similarity resolves this by treating memory as a mutable state rather than an append-only log.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:04:46.540340+00:00— report_created — created