What Should Your AI Agent Remember After the Customer’s Task Is Finished?

What Should Your AI Agent Remember After the Customer’s Task Is Finished?
Data your AI agent needs for one task doesn’t belong in memory forever. How to decide what agents retain, mask or protect before storage.

Summary: The Global Privacy Assembly’s new resolution on agentic AI flags personal data retained in agent memory as a real privacy risk, especially when agents serve multiple users or tasks. This article is for security and data leaders deploying AI agents, and it lays out a practical approach: map where data persists, separate what is needed once from what is needed again, protect sensitive values before storage and treat restoring original values as a governed exception.


A customer opens a chat with your support agent to dispute a charge. Within a few turns, they have typed their account number, their date of birth and the amount they were billed. The agent verifies who they are, checks the transaction, opens the dispute and wishes them a good day. The task is done. What most teams have not decided is what happens to everything the customer typed along the way, and that is the real question behind AI agent memory.

In a lot of deployments, the honest answer is that it stays. The account number sits in the conversation history. It may be summarized into the agent’s memory so the next session feels more personal. It may also appear in logs and traces, captured by observability tools configured to help engineers debug and monitor application performance. Without deliberate controls over what these systems capture and retain, sensitive customer data can accumulate across multiple stores without security teams having a clear picture of where it resides.

Privacy regulators have noticed. On November 18, the Global Privacy Assembly announced that its members had adopted a Resolution on Privacy-protective Agentic AI at their 48th annual conference in Brussels. The resolution is non-binding, but it was sponsored by authorities including the Office of the Privacy Commissioner of Canada, the UK Information Commissioner’s Office and Switzerland’s federal data protection commissioner, which makes it a fairly clear signal of what regulators will look for. Among the risks it names are personal data held in an agent’s working memory, retention beyond what the purpose requires and inadvertent disclosure when one agent serves multiple users or tasks. It also points out that logs can contain prompts and sensitive personal data in their own right.

The principle that follows is simple to say and harder to practice. Data an agent needs during a transaction does not automatically belong in its persistent memory. Security teams should decide which values are retained, masked or protected before anything is stored, and they should define exactly when an authorized workflow genuinely needs the original value back.

Start by mapping what persists in AI agent memory

Before you can set rules, you need an honest picture of where conversational data ends up. For most agents, there are at least three places. The first is memory itself, which might be saved facts, running summaries or a vector store the agent retrieves from in later sessions. The second is conversation history, the transcripts kept for quality review, analytics or customer service. The third is logs and traces, which often capture full prompts and responses by default.

For each of these, ask four questions. What goes in, who can read it, how long does it stay, and can it be reached from another user’s session? That last question matters more than it used to. An agent that serves many customers, or that one employee uses across several workstreams, is exactly the scenario the resolution flags as raising the risk of disclosure.

Separate what is needed once from what is needed again

Most sensitive values in an agent conversation are needed for a single moment. The account number lets the agent verify the customer and find the transaction. Once that step is complete, the agent rarely needs the number itself again. What it may need next week is context, such as the fact that a dispute is open, its reference number and the outcome the customer was hoping for.

Drawing this line deliberately changes the design conversation. Instead of asking whether memory should be on or off, teams can ask which facts carry forward and which values should never leave the transaction in their original form. Preferences and case context often belong in memory. Identifiers, financial details and health information usually do not, at least not as readable values.

Classify sensitive values and test protection before persistence

Agent conversations are free-form text, which is why traditional controls struggle with them. A database policy protects a column, and data loss prevention inspects files, but neither reads a sentence like “my card ends in 4417 and I was born in March 1982.” Classification for AI agents has to work on conversational text, finding sensitive values wherever a customer happens to type them.

Once a value is identified, policy decides what happens to it. Some values can be left unchanged. Some should be masked or redacted outright when no person or application downstream will ever need the original. Others should be replaced with secure, reversible tokens, preserving conversational context and workflow utility while preventing original values from entering downstream memory, transcripts and logs where protection has been applied.

The important word is before. Protection applied after a value has already landed in memory or a log is cleanup, not control. Test the policy by running realistic conversations through the agent and then inspecting every store you mapped. If an account number still shows up in a trace or a summary, the rule is not finished.

Restrict restoration to approved applications and purposes

Reversible protection is only as strong as the rules around reversing it. Some workflows genuinely need the original value. A refund system may need the real account number to process a payment, and a fraud analyst may need to see an identifier during an investigation. The agent’s memory, the analytics dashboard and the engineer debugging a latency issue do not.

Treat restoration as the exception that requires a reason. Define which applications can request an original value, for which purposes and under which conditions, and log every request along with the decision and the policy behind it. That record is what turns a sound design into something you can demonstrate to an auditor or a regulator.

Give application owners responsibility for isolation, retention and deletion

Protecting sensitive values reduces what is at stake, but it does not replace good application design. The resolution calls for measures such as compartmentalizing memory across users and keeping personal data no longer than necessary. Those decisions live with the teams who own each agent, because they understand how sessions are structured, how long context is actually useful and how deletion requests should flow through their systems.

A clear division of labor helps. Security defines how sensitive values are classified and treated wherever they appear. Application owners own user isolation, retention periods and deletion workflows for their own agents. Each side can then be held accountable for the part it controls, rather than everyone assuming someone else has it covered.

Putting the principle into practice

This is the problem ALTR’s AI Data Cloak was built to address. It identifies sensitive values within AI prompts and responses and applies policy-driven protection, allowing organizations to tokenize, mask or leave values unchanged before passing data to AI models or memory stores. This allows agents to retain useful conversational context without unnecessarily retaining sensitive information in its original form.

When a workflow requires an original tokenized value, policies determine which applications are authorized to restore it. Detailed audit logs provide visibility into protection and restoration decisions, their outcomes and the policies applied.

Whatever tools you use, the starting point is the same. Before your next agent goes into production, ask what it should remember once the customer’s task is finished, and make sure the answer is a decision someone made on purpose rather than a default nobody questioned.

Webinar - AI Data Cloak