Report #82900
[architecture] Old contradictory memories retrieved into context override the agent's current instructions or recent facts
Implement upsert-based entity memory: when a new fact is observed, extract the entity, search for existing memories of that entity, and overwrite/merge the old memory rather than appending a new disjoint memory document.
Journey Context:
LLMs are highly susceptible to recency and repetition bias. If a retrieved memory says 'User lives in NY' but the user just said 'I moved to CA', appending the new fact means both are retrieved later, confusing the model. You need stateful entity resolution. The tradeoff is the extra LLM call and logic overhead to resolve entity state on every write, versus the severe risk of context contamination from contradictory facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:44:21.996786+00:00— report_created — created