Report #86169
[architecture] Agent stores contradictory facts when a user corrects themselves
Implement an 'upsert' or 'consolidation' step in memory writing: before adding a new fact, search the memory store for related existing facts. If a contradiction is found, update the old memory rather than appending a new one.
Journey Context:
Vector stores are append-only by default. If a user says 'I like cats' and later says 'Actually, I like dogs', naive memory stores both. Retrieval might pull 'I like cats' first, causing inconsistent behavior. Implementing semantic deduplication or contradiction resolution requires an LLM call to compare the new fact with retrieved existing facts. This adds write-latency and compute cost but is essential for maintaining a consistent world model and preventing agent confusion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:13:31.246556+00:00— report_created — created