Blog

Your agent's memory is a liability until you can audit it

Stored memories are user data. Knowing what you hold about each user, where it came from and how to delete it is what makes memory safe to ship to enterprise and EU users.

Jonathan Bree

Every memory an agent stores about a person is personal data. Until a team can say what the agent knows about a given user, where each piece came from, and how to remove it, that memory is a liability as much as a feature. Auditability is what turns it into something an enterprise customer will approve and a European user can trust.

Most teams add memory to make an agent more useful, and it works: users stop repeating themselves and answers fit them better. The governance questions arrive later, usually in a security questionnaire or a deletion request, and they are much harder to answer once months of memories have piled up without structure.

Memories are user data

A memory such as “the user is pregnant and due in March” or “the customer is negotiating with a competitor” is information about an identifiable person or company, inferred by a model and kept indefinitely. In most jurisdictions that makes it personal data, with the same obligations as a row in a customer database. The difference is that a database row was written on purpose by your code, while a memory may have been inferred from a passing remark the user has forgotten making.

That raises the stakes. A user who learns that an assistant has stored something sensitive will want to know what else it holds. An enterprise customer will want to know whether their employees’ conversations could ever influence answers for another company. A regulator will want to know how a deletion request is carried out. Each of these is a question about the memory layer, and GDPR obligations for AI apply to it as they apply to any other store of personal data.

The three questions you need to answer

What do you know about this user?

The first question sounds simple and often is not. If memories live in a shared vector database with a user ID in the metadata, answering it means a filtered export that someone has to write and trust. If they are mixed into raw conversation logs, the honest answer is “everything they ever said”, which is rarely what the user or the customer wants to hear.

A memory layer that can be audited keeps each user’s memories in a clearly bounded place and stores them as discrete, readable facts rather than embeddings or transcripts. A person reviewing them should be able to read the list and recognise it as a user profile.

Where did each memory come from?

Inferred memories are model output. When a user disputes one (“I never said I was leaving the company”), the team needs to trace it back to the conversation or document it was extracted from. This is source attribution applied to memory. Without it, a wrong memory cannot be explained, and a planted one cannot be found. Memory poisoning, where an attacker uses a document or message to write false memories, is far easier to investigate when each memory can be tied to its source and its creation time.

Provenance also means time. A memory created in March and updated in September tells a different story from one created yesterday. Creation and modification timestamps form the backbone of an audit trail, and they are what lets a team answer “why did the agent say that on the 14th?”

Provenance helps outside incidents too. When an answer surprises a user, agent observability tooling can show which memories were retrieved for that turn, and each memory’s source shows why the agent believed what it said. Teams that log the IDs of retrieved memories next to each response can reconstruct most conversations later without keeping the full prompt.

How do you delete it?

Deletion comes in three sizes. A single memory the user asks to remove. Everything about one user, when they close their account or exercise the right to be forgotten. Everything about one customer organisation, when a contract ends. A memory layer should make each of these one operation, and should make it possible to show that the deletion happened. The post on why agents need to forget covers deletion as part of memory quality; here the concern is that it must be provable.

Why enterprise and EU deals depend on it

Enterprise buyers ask these questions before they sign. Security questionnaires for AI products now routinely ask where conversation data is stored, whether it is used across customers, how long it is kept and how it is deleted; the post on the security questions your AI product will be asked lists the common ones. An answer that depends on a filter in application code invites follow-up questions. An answer that points to per-customer isolation and a documented deletion path usually closes the topic. That is why enterprise AI deals are won on data isolation more often than on model quality.

European users and customers add specific expectations: access to the data held about them, correction of what is wrong, deletion on request, and clear data retention periods. Some customers also ask about data residency. Whether a particular product meets these obligations is for its own legal and engineering review. What the memory layer can do is make the answers possible without a forensic project each time.

Regulated industries raise the bar further. A healthcare agent holding patient context, a legal agent working across client matters, or a bank’s assistant in banking needs memory that can be inspected by compliance staff who will never read a line of code.

What an auditable memory layer looks like

Putting the three questions together gives a short list of properties.

Bounded scope. Each user, customer or matter has its own container, so “everything about this customer” is a container rather than a query. Tenant isolation enforced by the infrastructure is easier to explain than isolation enforced by every query remembering a filter, and it removes the main route to cross-tenant data leakage.

Readable memories. Memories are stored as discrete facts, preferences and events in plain language, so a person can review them.

Timestamps and history. Every memory records when it was created and last changed, and contradictions are resolved in a way that leaves the current state clear.

Provenance. Each memory can be traced to the job or conversation that produced it, even if part of that mapping lives in your own system.

Deletion at every level. One memory, one user, one customer, each as a single operation.

Inspection without code. Compliance and support staff can browse what the agent holds through an interface rather than through engineers.

Separation from logs. Raw transcripts and memories are governed separately, so keeping a compact memory set does not require keeping every conversation forever. The post on the case against storing every conversation argues this in more detail.

A worked example

A software company sells a support assistant to mid-sized businesses. One customer, a clinic group, asks three things during procurement: can our patients’ details leak to other customers, can we see what the assistant remembers about our staff, and what happens to our data if we leave?

In the first version of the product, memories sit in one vector index with a customer ID column. The answers are “we filter every query”, “we can run an export for you” and “we will write a script”. The deal stalls in security review.

In the second version, each customer has its own isolated environment. The answers become: memories for your organisation live in a separate container that queries for other customers cannot reach; your administrators can browse the memories in a console, each with creation and update times; and ending the contract deletes the container, with confirmation. The engineering effort is similar. The difference is that the second version was designed to be audited.

How Exabase supports auditing

Exabase Memory stores memories as structured facts, preferences and events extracted by the M-1 engine, with creation and modification timestamps on every memory. When facts change, M-1 resolves the contradiction so the current state is clear. Individual memories can be fetched with GET /v2/memories/{id}, updated, or removed with DELETE /v2/memories/{id}, and memories can be marked immutable when the engine should never change them.

For provenance, each inferred write returns a memory job, and the job reports the IDs of the memories it created. Storing the job ID next to the conversation or document reference in your own system gives a trace from memory back to source. Memory search returns ranked results with scores, which helps explain why a memory reached a prompt.

Scope comes from Bases. Each user, customer or matter can have its own Base, isolated at the infrastructure level, so a call scoped to one Base cannot reach another. Every Base can be browsed in the Exabase workspace explorer, where staff can see the memories, files and notes an agent created without writing code. Deleting a Base permanently removes its memories, files, search index and history; by default Exabase emails a confirmation link first. Data is encrypted in transit and at rest with AES-256, and Exabase is CASA certified. The multi-tenant and agent memory solution pages describe the wider design, and the memory scoping guide shows how to scope calls. To compare approaches, Exabase vs Mem0 and the best agent memory platforms roundup cover the main options.

FAQs

Is agent memory personal data?

In most cases, yes. A memory about a user is information about an identifiable person, often inferred by a model and kept over time, so it carries the same obligations as other personal data. Each team should confirm the details for its own product with its legal review.

What does it mean to audit an agent’s memory?

It means being able to show what the agent knows about a user, where each memory came from and when it changed, and to delete memories on request in a way that can be demonstrated.

Why do enterprise buyers care about agent memory?

Because memories can contain their employees’ and customers’ information. Buyers ask where it is stored, whether it can reach other customers, how long it is kept and how it is deleted, and they expect clear answers before signing.

How do I trace a memory back to its source?

Record which conversation or document produced each memory. With Exabase, each inferred write returns a job that lists the memories it created, so storing the job ID with your conversation reference gives the trace.

How do I delete everything an agent knows about one user?

Keep each user’s memories in their own container and delete the container. With Exabase, deleting the user’s Base removes their memories, files, search index and history permanently.

Can non-engineers review what an agent remembers?

They should be able to. Exabase’s workspace explorer lets staff browse a Base and see the memories, files and notes an agent created, without querying the API.

Do memories need a retention policy?

Yes. Decide how long memories are kept, when they are reviewed and what triggers deletion, and keep raw transcripts under a separate, usually shorter, policy.

Does auditing memory make an agent worse?

No. Readable, scoped and timestamped memories also make the agent easier to debug and more accurate, because outdated and wrong memories are easier to find and fix.

Related pages: Agent memory solution, Multi-tenant solution, Audit trail, Audit log, Right to be forgotten, Memory isolation, Agents need an audit trail, not just logs, Designing retention policies for agent data, Compliance audit use case, Against storing every conversation, Memory vs fine-tuning, Agent memory checklist, Shared vs private memory

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.