Short answer: Long-term memory makes agents feel smart until a fact changes. The customer cancels the premium plan, the patient stops a medication, the supplier moves address, and the agent keeps acting on the old value. 2026 research shows this is the norm, not an edge case: in the STALE benchmark the best model handled outdated memories correctly only about half the time, and popular memory frameworks scored under 20%. The fixes that measurably work all do the same thing: they make validity an explicit property of each memory, instead of hoping similarity search returns the right version.
I build memory into agents for a living, and I maintain two open-source projects on exactly this problem, vayl and MemGuard. This post is a practical read of the research that came out this year, and what I'd do about it in a production system.
The problem in one example
A support agent stores a memory in March: "Customer is on the Premium plan." In June the customer downgrades. The agent stores a new memory: "Customer moved to the Basic plan."
Now the customer asks for a Premium-only feature. The agent searches memory for "customer plan", gets both facts back, and confidently grants the feature. Nothing crashed, no error was logged. The agent was simply wrong, using information it had technically already been told was out of date.
Multiply that by medications, account statuses, prices, permissions and addresses, and you get the failure that matters most in production: an agent that is confidently, silently wrong.
What the 2026 research shows
Agents mostly can't tell a memory has expired
The STALE benchmark (May 2026) tests "implicit conflicts": a later observation makes an earlier memory invalid without ever saying so. You told the agent you moved to Berlin; later you ask for restaurant recommendations "near home".
Across 400 scenarios and 1,200 queries:
- The best model scored about 55% overall.
- Memory frameworks did far worse: LightMem around 18%, Mem0 around 8%, Zep around 6%.
- On premise resistance, rejecting a question that assumes the old state, nearly every system scored close to zero.
The authors' prototype fix, which decides at write time whether each memory is still current and only shows current memories at read time, lifted GPT-4o-mini from about 9% to 68%.
Retrieving the new fact isn't enough
You'd think that if the newest fact is retrieved, the agent will use it. Obsolete Facts in Agent Memory (October 2026) shows otherwise. When an obsolete version of a fact sits in the context next to the current one, accuracy drops far more than when an unrelated sentence takes the same slot. In one controlled test, swapping a single unrelated statement for an obsolete one dropped a 7B model from 100% to under 45%, and every wrong answer was the stale value.
Worse, giving the model more retrieved evidence made things worse: accuracy fell as the retrieval budget grew, because a bigger budget pulls in more outdated competitors.
Most stale answers start before the model even runs
Stale, Misattributed, or Late looks at what the memory layer hands to the model. Without explicit update resolution, about 70% of prompts exposed a superseded value. Serving only the active value for each correctly identified fact removed that exposure entirely.
The hard part, the authors found, is deciding which facts are the same fact. Miss a merge and the old value stays active; merge the wrong things and you delete the current one.
Memory is also an attack surface
Two papers this summer looked at deliberate stale-making: memory poisoning.
- MemSecBench found malicious memories persisted in about 84% of cases, and went on to drive a harmful action in about half. Repairing them selectively worked only about 56% of the time.
- A systematic study of memory poisoning found roughly 50% attack success on average, higher for agents that write memory more freely. The best prompt-injection detector caught about two-thirds of attacks, and far fewer when the payload looked like normal content.
Their shared conclusion: filtering inputs isn't enough. Defences have to sit on the memory write path.
Why similarity search favours the old fact
Most memory layers retrieve by embedding similarity. The old and new versions of a fact are almost the same sentence, so both score high. The old one often has more mentions or richer wording, so it frequently ranks first. In one STALE diagnostic, the new evidence was in the top 20 results about 78% of the time, yet the old evidence ranked first in roughly 85% of cases.
Similarity scores have no notion of validity. "Customer is on Premium" is extremely relevant to "what plan is the customer on". It's just not true any more.
How the main memory tools handle it
Zep / Graphiti stores facts as graph edges with two timelines: when a fact was true in the world, and when the system learned or retired it. When a contradicting fact arrives, the old edge is marked invalid from that point instead of being deleted, so you can still ask what was true on a past date (Zep paper, Graphiti docs). Good design; the STALE results show detection of implicit contradictions is still the weak point.
Mem0 originally decided ADD, UPDATE, DELETE or no-op for each new fact. In 2026 it moved to an add-only approach, because overwrites sometimes destroyed information that mattered later; old and new facts now coexist and retrieval blends several signals (Mem0 docs). Manual update, delete and an expiration date are still available. If you use Mem0 for facts that change, you need to manage that lifecycle yourself.
What actually works
Across the papers, the fixes that moved the numbers share a pattern.
1. Give each changeable fact a key, and keep one active value per key. The TEPA approach stores observations under keys; a fresh contradicting observation under the same key revokes the old one, which is kept for audit. In their drift tests it scored 0.95 against about 0.2 for append-only memory.
2. Decide validity at write time, not read time. When a new memory is written, check whether it supersedes, retracts or conflicts with existing ones, and record the outcome. Reading becomes cheap: serve only what's marked current.
3. Serve less, not more. Smaller retrieval budgets beat larger ones once stale versions exist. Never put a superseded value in the context "for completeness".
4. Keep history, but out of the prompt. Retired facts belong in an audit log, queryable when someone asks "what did we know in March?", not in the agent's working context.
5. Gate risky changes. A changed medication, payment detail or permission shouldn't be applied silently because a message said so. Route high-impact updates through a confirmation step or human approval. This is also your best defence against poisoning.
6. Consider re-reading the source. When Evidence Changes found that simply re-reading the current source documents, filtered to the relevant ones, was cheaper than maintaining a derived memory in their clinical tasks. If the source of truth is a database or CRM you can query, query it.
A minimal pattern
# Write path: resolve before you store
def remember(key: str, value: str, source: str, risky: bool):
current = store.active(key)
if current and current.value == value:
return current # nothing changed
if risky:
return approvals.request(key, current, value, source) # human / confirmation gate
if current:
store.retire(current, superseded_by=value) # kept for audit, never served
return store.activate(key, value, source=source)
# Read path: only current facts reach the model
def recall(keys: list[str]) -> dict[str, str]:
return {k: store.active(k).value for k in keys if store.active(k)}The real work is in key: deciding that "moved to the Basic plan" and "is on Premium" describe the same fact. That's where an LLM earns its place, at write time, with the result stored explicitly.
A checklist before your agent remembers anything important
- Which facts can change? Give them keys and a single active value.
- Is validity decided when a memory is written, and stored?
- Does the prompt only ever contain current values?
- Are retired facts kept for audit, outside the prompt?
- Do high-impact changes require confirmation or approval?
- Can you trace which memory produced a given answer?
- Could you query the source of truth instead of remembering it?
Frequently asked questions
Don't bigger context windows solve this? No. The research shows the opposite: more context means more outdated competitors, and models often pick the old value even when the new one is present.
Should I stop using Mem0 or Zep? Not necessarily. Both are useful, but neither fully solves implicit contradictions today. Add explicit keys, write-time resolution and a current-only read path on top for facts that change and matter.
Is this a GDPR issue too? Often, yes. Personal data must be accurate and kept up to date, and people can ask for it to be corrected or erased. A memory layer that keeps serving outdated personal data is both a reliability problem and a compliance one.
Building an agent that has to remember things correctly over time? I can review your memory design in a production-readiness audit, or book a call and tell me what your agent needs to remember.