Report #14064
[architecture] Agent appends contradictory memories leading to conflicting retrieval results
Before inserting a new memory, search the vector store for semantically similar existing memories. If found, use an LLM to merge, update, or replace the old memory rather than appending.
Journey Context:
Append-only memory stores create logical conflicts. If a user states 'I live in New York' and later 'I moved to London', an append-only store retrieves both, causing the agent to guess or ask the user again. An upsert/merge pattern maintains a canonical state, treating long-term memory more like a database and less like a log.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:38:12.569221+00:00— report_created — created