Blog
A production checklist for agent memory
Eight things to check before agent memory reaches real users: scoping, deletion, conflict handling, an eval set, a latency budget, cost per user, observability and user controls, with a copyable checklist.

Jonathan Bree
Before agent memory goes to production, check eight things: how memories are scoped, how they are deleted, how conflicts are handled, what your evaluation set covers, what latency you can afford, what memory costs per user, what you can observe, and what control users have. Each area has a small number of concrete checks, collected in a copyable table below. Most teams can run through the list in an afternoon, and it catches the problems that are expensive to fix once real users have months of history.
The list assumes you already know your agent needs memory. If that is still an open question, start with our guide to whether an agent needs memory. It also assumes you have chosen what kinds of information to keep; the anatomy of a memory covers that design step.
1. Scoping
Every memory must belong to a defined scope, usually a user, a team or a tenant, and every read and write must name that scope. This is the check that prevents the most damaging failure, one user’s memories appearing in another user’s session.
Confirm that scope is enforced structurally, with a separate store or namespace per scope, rather than by a filter on a shared table. Confirm that the code path with no scope is either impossible or an error in multi-tenant code. Decide what happens to shared knowledge: if a team assistant learns something that belongs to everyone, it needs a team scope as well as personal ones. Then test it: write a memory as user A, query as user B, and check that nothing comes back. Memory isolation and tenant isolation cover the principles, and per-tenant memory patterns covers the designs that work.
2. Deletion
You should be able to delete one memory, all memories for one user, and everything for one tenant, and prove each happened.
Map each deletion request type to an operation. A user correcting a wrong fact needs single-memory deletion or update. A user closing their account needs everything about them removed, including any raw transcripts kept elsewhere. A customer ending a contract needs their whole scope removed. Check that deletion reaches every copy: caches, search indexes, analytics exports and backups each have their own retention. GDPR obligations for AI and the right to be forgotten make this a legal question as well as a product one, so have your legal team confirm what your deployment requires. Setting a data retention period for each kind of data is easier before launch than after; designing retention policies walks through it.
3. Conflict handling
Facts change, and a memory system that keeps old and new versions side by side will eventually act on the old one.
Check what happens when a new statement contradicts an existing memory. The newer fact should supersede the older one for things that change, such as a plan, an address or a role. Explicit statements should outweigh inferences. Context-specific facts should keep their context rather than overwrite each other. Write a test: tell the agent the user is on the free plan, then that they have upgraded, then ask which plan they are on. Repeat with a correction (“no, I said Tuesday, not Thursday”). Contradiction resolution is the general technique, and unresolved conflicts are the root of memory drift.
Also decide how the system should treat untrusted input. A document or web page an agent reads can contain instructions that end up stored as memories, a risk known as memory poisoning. Limit which sources can write memories, and treat memories derived from third-party content with more caution than what the user said directly.
4. Evaluation set
You cannot tell whether a memory change made things better without a fixed set of scripted conversations and expected outcomes.
Build a small golden dataset, 30 to 100 scripted multi-session conversations is enough to start, covering each failure you care about: a changed fact, a contradiction, two people with similar names, an expired event, a preference that should shape an answer without being mentioned, and a second user who must not see the first user’s data. For each script, record what the agent should remember and what it should answer. Run the set on every change to extraction, retrieval or prompts. A good agent evaluation checks memory contents directly, not only the final answer; an LLM-as-a-judge can grade answers at scale once the expected outcomes are written down. If labelled data is scarce, evaluating retrieval without a labelled dataset has practical shortcuts. The failure catalogue in 9 ways agent memory fails is a good source of test cases.
5. Latency budget
Memory retrieval sits on the critical path of every response, so it needs an explicit budget.
Decide how many milliseconds memory may add to time to first token, and measure retrieval at the 50th, 95th and 99th percentiles under realistic load. Voice agents and live chat are the most sensitive; a background report can afford far more. Decide which retrieval options run on every turn and which only when the question needs them, since query expansion and reranking add time. Write memories asynchronously so that saving what the user just said never delays the reply. LLM latency covers where the rest of the time goes.
6. Cost per user
Memory should reduce the tokens you send per request, and its own cost should grow with the number of users rather than with the length of their history.
Measure average input tokens per request for users at one week, one month and six months of history. If that number keeps climbing, memory is being implemented as history and will get more expensive as your users stay. Estimate the cost of memory writes and retrievals per active user per month, including any model calls used for extraction or reranking. Check what happens at plan limits: a write that fails because a quota ran out should be visible, not silent. We set out the reasoning in a post on LLM bills and retrieval.
7. Observability
When a user says “it forgot what I told it”, you need to be able to find out why within minutes.
Log every memory write with its scope, source, result and a trace ID. Alert on write failures, on HTTP 429 responses from rate limiting and on unusual growth in memories per user. Record which memories were retrieved for each response, so a wrong answer can be traced to the memory that caused it. Keep an audit trail of when each memory was created, changed and deleted. Make sure someone outside engineering, such as a support lead, can look at what the agent knows about a given user without writing a query. Agent observability covers the wider practice, and agents need an audit trail explains why logs alone are not enough.
8. User controls
Users will trust memory more when they can see and change it.
Decide what users can do: view what the agent remembers about them, correct a wrong memory, delete individual memories, pause memory for a conversation, and delete everything. Decide how the agent should behave when it uses a memory in a sensitive way; a short “based on what you told me last month” is often enough to make the behaviour feel transparent rather than unsettling. Write the in-product explanation of what is remembered and for how long. These choices are product decisions, which is why we argue memory is a product decision as much as an infrastructure one. Auditability for enterprise buyers is covered in auditing agent memory.
The checklist
Copy this table into your launch document and update the third column as each check passes.
Area | Check | Status |
|---|---|---|
Scoping | Every read and write names a scope enforced structurally | Not checked |
Scoping | Cross-user test returns nothing | Not checked |
Deletion | Single-memory, per-user and per-tenant deletion all work | Not checked |
Deletion | Deletion reaches caches, indexes, exports and transcript stores | Not checked |
Conflicts | Newer facts supersede older ones in a scripted test | Not checked |
Conflicts | Sources allowed to write memories are restricted | Not checked |
Evaluation | Golden set of scripted conversations runs on every change | Not checked |
Latency | p95 retrieval time is inside the budget under load | Not checked |
Latency | Memory writes are asynchronous | Not checked |
Cost | Input tokens per request stay flat as history grows | Not checked |
Cost | Plan and quota limits fail visibly | Not checked |
Observability | Writes, failures and retrieved memories are logged with trace IDs | Not checked |
Observability | Non-engineers can inspect a user’s memories | Not checked |
User controls | Users can view, correct and delete what is remembered | Not checked |
User controls | Product copy explains what is kept and for how long | Not checked |
A worked example
A team is about to launch memory for a customer support agent used by 200 business customers. Running the checklist takes them two days and finds four gaps. Memories are filtered by customer ID on a shared index, so they move to one scope per customer. Their eval set has no contradiction cases, so they add twelve. Input tokens per request have tripled for their oldest accounts because the agent loads the last ten conversations, so they switch to retrieving memories instead. And support staff cannot see what the agent knows about a customer, so they add a read-only view. None of these would have caused an outage at launch. All of them would have caused an incident within a quarter.
How Exabase helps with the checklist
Exabase covers several of these checks at the infrastructure level; your product still owns the policies. Scoping uses Bases: one per user or tenant, selected with a header, with isolation enforced so that a scoped call cannot read another Base, as described in the memory scoping guide. Individual memories can be updated or deleted through the API, and deleting a Base removes its files, memories, search index and history together.
Exabase Memory resolves contradictions and consolidates related memories when they are written, and simple retrieval takes about 200ms, with query expansion and reranking available when a question needs them. Inferred writes are asynchronous and return a job ID you can check, every response carries a trace ID, and limits are documented in rate limiting. Every memory has creation and modification timestamps, and staff can browse a Base in the workspace explorer without writing code. Data is encrypted at rest with AES-256 and in transit, and Exabase is CASA certified. Plans are on the pricing page, and the full approach is on the agent memory solution page.
FAQs
What should be on an agent memory checklist?
Scoping, deletion, conflict handling, an evaluation set, a latency budget, cost per user, observability and user controls. Each needs a concrete test rather than a statement of intent.
How do I test that memories do not leak between users?
Write a memory as one user, query as another, and check that nothing is returned. Run it as part of your evaluation set, and enforce scope structurally rather than by filtering a shared store.
How big should a memory evaluation set be?
Thirty to a hundred scripted multi-session conversations is enough to start, as long as they cover changed facts, contradictions, similar names, expired events and a second user.
What is a reasonable latency budget for memory retrieval?
It depends on the product. Live chat and voice need retrieval in the low hundreds of milliseconds; Exabase’s simple retrieval takes about 200ms. Background tasks can afford more.
How do I keep memory costs under control?
Retrieve a small set of relevant memories instead of loading history, and track input tokens per request as users age. If that number climbs, memory is being implemented as history.
Should users be able to see what an agent remembers?
Yes, where possible. Viewing, correcting and deleting memories builds trust and makes data protection requests easier to handle.
How do I delete everything an agent knows about a customer?
Keep each customer’s memories in their own scope and delete the scope. With Exabase, deleting the customer’s Base removes their memories, files and search index together.
What should I monitor after launch?
Memory write failures, rate-limit responses, memories per user, input tokens per request and which memories were retrieved for each answer.
Related pages: Agent memory solution, Multi-tenant solution, Audit log, Retry logic, Security questions buyers ask, Against storing every conversation, Multi-tenant SaaS, Best agent memory platforms, What should an agent remember?, Context engineering is backend engineering, Your LLM bill is a retrieval problem
Other blog posts:

What breaks invoice extraction (and how to catch it)

Scanned vs digital PDFs: why your pipeline needs both paths

The 15 nastiest PDF edge cases we've seen

Should every website ship an llms.txt?

OCR is solved. Document understanding isn't

The PDF is the last unsolved file format

Parsing is a product you didn’t mean to build

The metadata hiding in your photos and videos