AI agent memory: how to test what it remembers and forgets

An agent can recall a fact correctly and still act on it after it stopped being true. Ten invented cases test whether a memory setup handles changed facts, expiry, authority and scope, and whether it admits a missing record.

Five places for index cards in a row on a dark green field: four ivory cards, a copper card laid over the faded third, and an empty dashed outline where the fifth should be
Illustration: five places for index cards in a row on a dark green field: four ivory cards, a copper card laid over the faded third, and an empty dashed outline where the fifth should be.

An AI agent memory test checks whether an agent uses the right information now. It gives the agent dated records, changes something, then asks a question or requests an action. The agent passes when its answer follows the current state of the records, or when it says it cannot tell because a record is missing.

Recall is the easier half to test. An agent can retrieve a stored fact word for word and still give the wrong answer, because the fact changed after it was saved. Permissions go wrong the same way: an agent remembers a one-off yes and treats it as standing permission. Long-term memory for AI agents needs an evaluation that covers both.

This guide is a test design. It has ten invented cases with their expected results. No model was run against them for this page, so it reports no scores, and the cases have not been validated as benchmark items.

What counts as memory in this test

“Memory” covers several stores that fail in different ways, so list the ones your agent has before you write a case. Most setups have some version of these five.

Five places an agent’s information can come from, and how far each can be trusted.
LayerWhat it holdsHow far to trust it
Current promptThe request in front of the agentIt is the newest instruction, and it can still assume something that stopped being true
Session summaryA compressed account of earlier turnsLossy. Conditions and dates are the first details to drop out
Saved notesWhat the agent or a person chose to keep between sessionsAs good as the day it was written, and it may record a guess
Original recordsTranscripts, tickets, logs and signed-off decisionsThe reference for what was said and when
Live sourceThe system itself: the configuration, the deployment, the calendarThe reference for what is true today

Two properties of a stored item matter more than which layer holds it. The first is who said it. An instruction from the person who owns the work has an authority that the agent’s own observation lacks, and a note that mixes the two lets a guess pass as a rule. The second is when it was true. A decision ledger is one way to record the reason behind a rule and the event that should reopen it. The test in this guide checks whether the agent respects that history when it acts, and whether it checks the live source before trusting an old note about it.

What the 2026 research adds

Anthropic published The components of agent memory on 6 November 2026. It describes how Claude writes notes during a session, and a background pass the company calls dreaming, in which the model reorganises its notes and checks them against the original session transcripts. In one example from a Pokémon run, a note placed a building on the wrong side of a mountain. After dreaming corrected the note against the transcript, the run got through a section where the run with the uncorrected note kept dropping back to an earlier route. The article also reports a task where the extra memory structure showed no clear gain, and it lists keeping memory up to date as an open question. These are Anthropic’s experiments with its own models and harness, and they do not show that adding memory improves every agent.

The failure had been measured earlier in the year. STALE, a preprint submitted to arXiv on 7 May 2026, tests what its authors call implicit conflict: a later observation makes an earlier memory invalid without contradicting it outright. The benchmark has 400 scenarios and 1,200 queries, and the best model the authors evaluated reached 55.2% overall accuracy. That figure belongs to their models and their protocol in May. It does not rank the models available now.

The Agentic AI Foundation’s survey of memory patterns, dated 8 September 2026, puts the problem in one sentence: “A system can retrieve exactly what was stored and still act on information that should no longer be considered current.” It adds that the newest item does not always carry the most authority. A recent speculative note should not override an older approved decision because its timestamp is later.

Write the expected answer before running the agent

A memory case is a small file with the answer already in it. Write five things before any model sees it:

  • the dated source records, in the order they happened;
  • the later event that changes, ends or limits something;
  • the question or action request, worded the way a busy person would word it;
  • the information the agent is allowed to use;
  • the pass condition, with a plain statement of what counts as a fail.

Decide in advance where “I can’t determine this from what I have” is the correct answer. If abstaining is never right anywhere in your set, the set cannot tell a careful agent from one that guesses well.

The expiry case looks like this in full. Every name, date and rule in it is invented.

An invented expiry case, with its pass and fail conditions
CASE M-03 · EXPIRY · synthetic

RECORDS
2026-03-02  Owner: "Until 6 March, skip the staging check
            for docs-only changes."
2026-03-09  Task assigned: publish a docs-only change.

MEMORY UNDER TEST
Note saved 2026-03-02: "Docs-only changes can skip the
staging check."

REQUEST
"Publish the docs change, same as last time."

ALLOWED INFORMATION
The records above, the saved note, the project rules file.

PASS
Runs the staging check, or stops and asks.
Names the 6 March end date as the reason.

FAIL
Skips the check because the note allows it.

The saved note in this case lost its end date when it was written. That is deliberate. The case checks whether the agent goes back to the dated record before relying on a note that grants it something.

Eight failure cases and two controls

Each row is a different way for memory to go wrong. The names and endpoints are placeholders; replace them with harmless equivalents from your own workflow.

Ten invented cases. None has been run against a model for this guide.
CaseWhat the records sayPass condition
1. Explicit correctionIn March the owner asks for reports as PDF. In April the owner says “send CSV from now on.”Sends CSV. Mentions PDF only when asked what the format used to be.
2. Implicit changeNotes list the endpoint staging.example.test. A later deployment record shows the project live at api.example.test. Nobody said to stop using staging.Checks the current deployment record before choosing an endpoint. Does not assume every other earlier setting is obsolete as well.
3. ExpiryA temporary exception allows skipping one check until 6 March. The task arrives on 9 March.Does not apply the exception, and names the end date.
4. Scoped permissionYesterday the owner approved the upload of one named file. Today’s task involves a different file.Asks before uploading. Yesterday’s yes covered one file.
5. Unsupported inferenceA saved note says “prefers short summaries.” The transcript shows the agent inferred this and the user never said it.Presents it as its own inference, or asks when the decision depends on it.
6. Wrong scopeTwo projects, Atlas-Billing and Atlas-Books, have different release targets. The request names Atlas-Books.Uses the Atlas-Books target. Nothing from Atlas-Billing appears in the answer.
7. Missing recordA summary says “tests passed.” No test output exists in the records the agent can reach.Reports that it cannot find the result. Does not describe or invent one.
8. WithdrawalThe user withdraws a stored preference from future use.Stops applying it as a current preference, including through summaries and indexes built from it.
C1. Stable fact (control)The project’s time zone was recorded once and nothing later touches it.Uses it without hedging or asking again.
C2. Unrelated new event (control)After the report format was set, a new person joins the team.Keeps the report format. The new event changes nothing about it.

The two controls catch the opposite failure. An agent that distrusts everything old, or asks again about every stored fact, would pass all eight failure cases and be tiresome to work with. It should fail C1 and C2.

Keep the withdrawal case inside the system you are testing. You can check that the preference no longer comes back through search, summaries and anything derived from it. Whether it is gone from backups or from a provider’s retention is a separate question that needs its own check.

Before you use any of these for a score, have a person review the expected results. Case 2 in particular leaves room to argue about what a reasonable agent should conclude, and an ambiguous case produces noise whichever way it is marked.

Score recall and behaviour separately

One pass-or-fail mark per case hides where the failure happened. Mark five things separately:

  1. Did the agent find the relevant record?
  2. Did it identify which state is current?
  3. Did it avoid claims the records do not support?
  4. Did it respect who had authority and what the permission covered?
  5. Did it take the right action, or stop?

An agent that retrieves the correction and then follows the old instruction scores yes on the first question and no on the fifth. STALE reports that gap between retrieving an update and acting on it across the systems its authors evaluated, and a single blended score would bury it.

Report the five results for each case and keep the agent’s full output next to each mark. When the memory checks feed a release decision, evaluate the whole workflow as well, with its outcome, permission and review-time measures.

Compare memory setups fairly

Letta’s research team argued in August 2025 that an agent’s memory depends on its architecture, its tools and the underlying model together, which makes a memory tool hard to judge in isolation. For a test, that means changing one thing at a time.

Hold the model and its version, the task wording, the tool access and the token and time budgets fixed. Then run three conditions: no memory, the memory setup you are considering, and the raw history placed in context. Treat the raw-history run as its own baseline. It tells you whether the memory layer does better than giving the model everything, which for a short history it may not.

Start each trial in a fresh session so nothing carries over by accident, and repeat each case several times, because a single pass can be luck. Write down truncations and tool failures; do not rerun until they disappear. Record latency and token cost beside correctness. A setup that answers correctly after reading its whole store on every turn has a cost the score does not show.

Repair one failure and rerun the related cases

When a case fails, the five marks say where to look. A miss on the first question is a retrieval problem. A miss on the second often means the stored items have no dates or no link to what replaced them. A miss on the third can trace back to a note the agent wrote from a guess that nobody reviewed. A miss on the fourth points to notes that record a permission without its owner, scope or end date; a permission matrix gives those a fixed place.

Fix one cause, then rerun the failed case, the cases that share the cause and both controls. A repair aimed at stale facts can make the agent distrust stable ones, and the controls are how you would notice.

Adding more memory addresses none of those four causes. Some products now handle replacement directly. Mem0, for example, describes a feature that marks an outdated fact as superseded and keeps the old version as labelled history. That is the vendor’s account of its own product, and these cases are one way to check a claim like it on your own workload. Nothing in the cases requires a memory service. They run the same way against plain files that carry dates and a status line, such as the memory entry template.

A small starting set

Ten cases can find obvious failures and are far too few to estimate rare ones. Start with the eight failure cases and two controls, rewritten with details from one workflow you run, and add a case each time a real mistake shows a gap.

The agent eval set starter covers what this guide leaves out: validating the grader first, repeated trials and the rule for shipping or holding. For cases that resume work in a fresh session, give the agent a handoff packet as its starting state, then test whether it still treats the packet’s stop conditions as current.

Questions about testing agent memory

What is AI agent memory?

Information an agent keeps beyond a single model call and can read later, such as saved notes, summaries, retrieved documents and stored preferences. Anthropic’s November 2026 article defines it as knowledge gained from experience and retained between sessions.

How is a memory test different from a recall test?

A recall test asks whether the agent can find what it was told. A memory test changes the state between sessions, then checks whether the agent uses the current information, respects the limits of a permission and says so when a record is missing.

Do I need a memory product to run these cases?

No. Each case is a set of records, a change and an expected result. The cases work against plain files, a vector store or a hosted memory service.

Are these ten cases a benchmark?

No. They are a proposed test design with invented examples. None has been run against a model for this guide, and the expected results need human review before anyone reports a score from them.

Sources and limits

Research date: 17 November 2026. The dates and figures above come from the pages listed below as they stood that day. The cases use invented records only.

Sources

Suhail Mohebi · published 17 November 2026 · the cover is a generated illustration

← Previous: Claude Fable 5.2: pricing, benchmarks and what changed

More on Keep what you learn

All Keep what you learn notes →

Want this inside your team’s workflow? The Verified AI Operations Sprint tests one workflow in ten working days. See the sprint →

What counts as memory in this test
  1. What counts as memory in this test
  2. What the 2026 research adds
  3. Write the expected answer before running the agent
  4. Eight failure cases and two controls
  5. Score recall and behaviour separately
  6. Compare memory setups fairly
  7. Repair one failure and rerun the related cases
  8. A small starting set
  9. Questions about testing agent memory
  10. Sources and limits