Report #12447
[architecture] Agent acts on outdated or contradictory memories because the vector store returns conflicting facts
Implement memory upsertion and deduplication. Before inserting a new fact, search for existing overlapping facts and use an LLM to resolve conflicts \(update or delete the old memory\) rather than just appending.
Journey Context:
Naive memory implementations just append new facts. If a user changes their preference, both facts exist. Retrieval might pull the outdated one. Appending causes context pollution and contradictions. Tradeoff: Upsertion requires an extra LLM call per memory insertion, increasing latency, but is strictly necessary for maintaining accurate stateful facts over time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:07:33.596447+00:00— report_created — created