Blog

Memory Is Not Context, Let's Stop Treating It the Same

Agent memory stores facts but cannot tell which one is current. See where memory breaks down, what belongs in memory versus context, and three questions for sorting the facts your agents rely on.

BootcampBy Stacey Schneider
Memory Is Not Context, Let's Stop Treating It the Same

Originally published in Bootcamp.

Agents are good at storing facts and bad at knowing which one is current. Here is where memory breaks down and what belongs where.

An agent that remembers does better work, so memory is becoming a standard part of the agent stack. And while it is useful, it can quickly create compounding problems.

Before, when an agent forgot everything between sessions, the worst it could do was start over. Now it carries what it learned into the next run and the next agent. It carries the wrong things as faithfully as the right ones.

To make memory better, an agent needs a structured way to decide which information it can trust and to disregard older versions every time. This piece covers where memory breaks down and what belongs in memory versus context.


Firsthand lessons learned

We saw this firsthand at my company PromptOwl, where we set out two years ago to build software with a lean senior team and 90% agent automation. We are close today, at roughly 80%, and the biggest holdout is humans who prefer to stay hands on in creative work. A big piece of our transformation was building a shared second brain so humans and tools could share memory and context.

We started with the obvious hack and passed markdown files around. The models, like Claude and Copilot, kept adding their own memories, and those colored or competed with the context we fed them. It was wild how the same context and question could generate such different results.

Pricing was where it first started impacting business. The agent “remembered” pricing drafts we had, and with several proposals circulating it regularly confused the numbers. Those errors rippled through documentation and code, and humans had to undo the mess.


How big the problem is

Don't just take our word for it. Researchers who test agent memory keep finding the same weak spot: agents are good at storing facts and bad at knowing which one is current. Here is what they report.

  • Updates fail. In UC San Diego's MemoryAgentBench, the models tested answered single-step fact-update questions correctly 30% to 60% of the time. On questions that needed one more reasoning step, no method scored above 6%.
  • Old facts win. When one fact was revised several times inside a prompt, LLaMA-3.1-8B got the earliest value right 96% of the time and the latest value right 76% of the time. The errors drifted toward older values, which over time breeds context rot.
  • Conflicts go unflagged. IBM Research gave models two Wikipedia passages that disagreed, and with a plain prompt a fully correct answer that surfaced both came back only 2% to 10% of the time. Most of the time the model just picks one and moves on.
  • Retrieval is unsteady. In our own preprint with Emory's Goizueta Business School and IBM Research, a dense-vector retrieval baseline returned different documents on repeated runs of 40 of 50 identical queries. That is 80% different results on the same question, which sets an agent up to start confused.
  • Longer history makes answers worse. A study of more than 200,000 simulated conversations found an average 39% performance drop from single-turn to multi-turn across six tasks. Agents start to prioritize the beginning and end of a conversation and muddle all the rest.

These tests used benchmarks, but they point to a real gap. The first step in closing it is to divide what is memory from what is context, and to build complementary systems for each.


Memory vs context

Memory is what an agent picks up while it works, such as what you preferred and what has and hasn't worked. That makes it good at remembering a user's love of em dashes, codifying repeatable skills and tracking the state of a script that ran. It is learned and probabilistic, and it mostly helps the one agent or person who shares those memories.

Context is what the organization has decided is true, such as current pricing, the ICP, which regulation applies and who can approve what. It is versioned, so while memory will remember every price list you ever had, context serves up only the most recent. The process is deterministic, which cuts agent confusion and token burn while raising accuracy.

So while memory improves the individual experience, only context can improve an organization's performance as a whole.

Comparison chart: Use memory for what an agent learns (preferences, habits, session history) and use context for what the company decided (pricing, ICP, regulations, product specs, approval rules).

Where Memory Breaks Down

Memory holds up until a fact changes, which makes it great at first and then starts to choke. I first laid out these failure modes in Persistent Memory for AI Agents: Why You Need Zep, Mem0, and ContextNest back in June. Here is the cheat sheet of where memory fails agents.

  • Stale facts survive. A semantic memory that fails to match an update keeps both the old and the new version, and the agent burns time and tokens choosing between them. In our research it gets that wrong as often as 80% of the time, which is called context confusion.
  • Summaries keep what was said. Compressing a session log preserves the conversation and says nothing about whether it is still true. An agent can cite a guideline from three sessions ago and never learn that someone higher up cancelled it, which leads to context rot.
  • Accountability isn't part of it. When an agent extracts a fact from a chat stream, no person approves it and no one is accountable for whether it is true. Poor facts leak in, and the noise compounds into context rot.
  • No version to roll back to.Update your preferences in memory and it usually just overwrites them. If you want last week's preferences back, you have to tell the agent what they were, where managed context works more like Git and rolls back for real.
  • One bad write travels fast. Shared memory fixes drift between agents, but it also means a wrong entry reaches every agent that reads it. In a recent demo, two people's agents produced very different content until they read the same context.

A good correction in memory fixes a repeated mistake. A wrong correction sticks just as well, and memory cannot tell the difference. That is how context confusion and context rot set in, usually within days, and it is one reason AI solutions shine in the demo and fade in adoption.


How to tell if this is your problem

Not everything should be shared context, or you risk padding your window with distracting facts. To sort what is what, review your AI usage across your organization and ask three questions.

  1. Would a wrong answer cost money or create liability? Pricing, claims, regulatory language and hiring criteria all do.
  2. Does more than one agent or person need the same answer? If they must agree, someone has to own the version they agree on.
  3. Would you need to show an auditor who approved it and when? If yes, it needs a version history.

If a fact fails any of the three, treat it as context. Give it an owner, a version history and one place agents read it from, and leave the rest to memory.

Read the original article on Medium · Bootcamp.