Report #15239
[architecture] Append-only memory store leading to contradictory facts
Implement an upsert-based memory architecture where before writing a new semantic memory, the agent queries the store for overlapping facts. If an existing memory is found, update it rather than appending a new one.
Journey Context:
Naive agents append every extracted fact to a vector store. Over time, user preferences change \(e.g., 'I like vanilla' -> 'I now like chocolate'\). Append-only stores retain both, causing the agent to randomly choose or contradict itself. The alternative is TTL-based decay, but that destroys stable facts. Upserting requires an extra read-before-write step \(increasing latency/cost\) but maintains a single source of truth for semantic facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:38:54.269873+00:00— report_created — created