We are building AI agents that are performing increasingly sophisticated work, typically in numerous interactions, systems and phases of work. But there is a difficulty with giving an AI system tasks that could take hours, days or even weeks to do. It has to keep track of what it's doing. 

For example, a supplier contract reviewer may need to recall past choices, open issues and particular criteria long after the original conversation is over. Without that information, it could duplicate effort, miss a critical exception, or make choices with inadequate context. But nor is the answer to keep everything. 

Because some information could be out of date, irrelevant or no longer something the organisation needs to keep. Managing the memory of AI agents is about balancing those two difficulties. Enterprises require agents that retain enough to operate dependably, but not so much that they hold on to information unnecessarily or lose control of what they've retained.

em360tech image

What Is AI Agent Memory?

The memory of an AI agent is the information that an AI agent stores and uses to facilitate its work over time. This helps the agent to remember previous interactions, decisions and experiences, instead of treating each new assignment as a blank slate. But AI agent memory isn't the same kind of memory we're accustomed to in humans. 

An agent doesn't necessarily recall anything because it encountered it one time. How the system stores, organises and retrieves that information determines how well it can remember information. There are a few ways this might happen, and they're used for different purposes. 

Short-term memory is basically the information an agent is employing right now in the given activity or conversation. This can include directions, latest messages, tool results and the progress it has so far. Much of this information is stored within the model's context window, the amount of text and other information it can handle at once. 

Long-term or persistent memory permits information to be available after the interaction. An agent may recall a user's preferences, a relevant lesson from a previous task or information required to continue work left unfinished. These memories can then be recorded as structured records, summaries or searchable information in an external database. 

When the agent needs something, the system finds the appropriate information and appends it to the context the model employs for making its next choice. An agent can also dynamically retrieve information from business systems without saving it permanently as memory. 

The importance of this distinction is that these diverse sources of information don't necessarily need the same retention standards. A transient discussion summary and a lasting record of someone's preferences could both assist an agent in its work, but they shouldn't be immediately viewed as equivalent.

What Should AI Agents Remember?

An AI agent must retain information that allows it to do its task accurately and consistently. What this actually involves depends on the task, how long the knowledge will be usable, and whether the agent needs to access it again. Useful memory for an agent handling a long-running procurement procedure might be:

  • The initial purpose and requirements of the procurement.
  • Decisions already taken and the reasons for them.
  • Supplier limits, exceptions and approval guidelines.
  • Questions still to be answered.
  • Changes to requirements that impact previous judgements.

These details allow the agent to see where the job is at and what it needs to accomplish next. But then there's the other side. Sometimes remembering what happened isn't enough. Sometimes the agent also needs to grasp why something happened. This difficulty was addressed by researchers in AMA-Bench, a benchmark presented at ICML 2026. 

They studied how AI memory systems deal with long-running projects that involve actions, observations and tool outputs, not simply chats. Researchers say that current systems struggle to retain information about causes and aims. Put simply, an agent could pull up a previous action without the context necessary to understand why it was done. 

For businesses, this implies a more selective approach to what is remembered. Information should be retained because it serves a particular purpose, with sufficient context so that it can be used later. Some way for an agent to detect when information has changed is also needed. 

If a supplier restriction was in place last month, it shouldn't continue to affect decisions after the restriction is withdrawn.

How Does Context Compression Affect AI Agent Memory?

There's a limit to how much information AI models can consume at once. As an agent progresses through a protracted task, its context can get cluttered with interactions, documents, instructions and tool outputs. One approach to address this is context compression (also known as compaction). 

This lowers the amount of information that the model has to carry forward, frequently by summarising previous encounters. The idea is simple. Instead of keeping a long discussion on a project, an agent may keep a concise summary of the goal, what has been done and what remains to be done. The problem is deciding what to put in that summary. 

Consider an agent who's analysing contracts for a corporation that operates in numerous nations. Somebody notes earlier on that a particular supplier can't handle customer information outside the UK. That piece of information may be just a sentence in a long debate, but it may be the key to whether or not the supplier satisfies the company's needs. 

If the agent compresses that talk and ignores the constraint, it can make inaccurate recommendations in the future. A study published on 15 October 2026, GACC-Bench: Benchmarking Goal-Adaptive Context Compression Ability across Large Language Models, examined this problem. 

Researchers tested ten large language models on 500 goals and 2,571 questions, from 281 source contexts. All the models had to condense information for a certain purpose without knowing exactly what questions would be asked later. Even the best model was still far below the performance of using the complete context. 

But compression performed better if the model recognised what goal the information was supposed to support. Giving it the wrong goal decreased accuracy. These are experimental results, not measured failure rates for enterprise agents. But they point out a practical limitation of the assumption that shorter context is always better context.

OpenAI's technical guidance on agent memory and compaction also differentiates between compressing information to keep going on an ongoing activity and storing reusable memories for future work. For organisations, context compression must preserve the knowledge essential for later decisions. 

This entails checking if an agent can still do its work after its context has been compressed, especially if the previous instructions have exceptions, dependencies or important limitations.

Why Is AI Agent Memory Difficult to Correct or Delete?

One difficulty is the accuracy of information. Another is ensuring that an agent can actually forget information. Persistent memory allows an agent to use information across interactions, although the stored memories aren't always still valid over time. Customer tastes could alter. An employee might change departments. 

A later decision may override a project requirement. If the previous data isn't corrected, the agent may wind up having conflicting recollections when the new information is added. Which version it uses then depends on what the system fetches. 

Organisations therefore need to know how to identify obsolete information, refresh existing memory and prevent superseded records from continuing to impact decisions. Deletion presents another challenge because deleting a stored memory doesn't mean that the information is no longer retrievable. 

An agent may have stored a critical detail in more than one place. It can be in an original conversation, a synopsis of that talk or any other memory that contains information from which the detail might be pieced together. The original record may be erased, but those other traces could remain. 

Researchers explored this in MemCut: Every Secret Leaves a Trail in the Long-Term Memory of LLM Agents, published on 15 October 2026. The study employed 456 purposefully embedded secrets in extended discussions. The researchers next checked if such secrets might be recovered after erasure. 

They measured two separate outcomes. Native recovery examined if the memory system could retrieve the secret via its normal method. Residual recovery examined if the secret could be rebuilt from surviving memory objects fed directly to the model. Removal of the initial disclosures reduced native recovery to a greater degree than residual recovery. 

In one set of deletion studies, the authors showed that depending on the configuration tested, 39% to 76% of secrets could still be recovered from remaining evidence. These percentages are for the study's experimental conditions, not the failure rate of enterprise AI memory systems. But the research does highlight a significant distinction. 

In regular use, an agent might stop returning a deleted detail, but still have enough associated information to enable someone to recreate it. So, for companies, getting rid of memory effectively could mean doing more than just deleting one specific entry in a database. 

Depending on the architecture, organisations may need to look at summaries, derived records, copies and other information stored with the original memory. That's not the same as erasing knowledge gathered during the model's original training. The problem is in the information retained by the operating agent and the surrounding memory systems.

How Should Enterprises Manage AI Agent Memory?

To handle AI agent memory, you need to know where the information ends up when an agent encounters it. The organisation must understand what information the agent can hold, where it's stored, who can access it, and for how long it should be retained. Enforcing such judgements is more difficult when various agents or apps use distinct memory systems. 

The goal should be to administer memory throughout its lifecycle, from the moment information is captured until it's refreshed, expires or is erased. Gartner's 2026 research on AI agent memory and memory platforms shows the increased attention being paid to this space. 

But businesses still need to think about what each individual platform actually does, rather than assuming that a single feature encompasses every control you would need. There are several practical criteria to think about. Decide what is worth remembering. Some interactions don't need to leave a lasting memory. 

Organisations should specify which categories of information agents are entitled to maintain, for what purpose and under what conditions. This can involve alternative rules for work progress, reusable preferences and sensitive information. Define certain retention durations. Some memories may only be useful till a task is completed. 

Are you enjoying the content so far?

Others may support recurring workflows. Retention rules should account for these differences and provide a method to purge information after it has served its purpose. Manage who can see memories. An agent working for one employee shouldn't have free access to the stored information of another employee. 

If agents share memory architecture, access restrictions must be applied at information retrieval time, not merely at the time that the model generates an answer. Make memories inspectable and modifiable. Organisations must be able to check out what information has been saved and alter it if necessary. 

This means dealing with contradictory records and ensuring that corrections are carried forward in subsequent retrievals. Define what deletion actually removes. A platform may allow for the deletion of individual records, entire memory stores or information related to a particular user. 

Enterprises should identify if those procedures also cover summaries, derived memories and other copies in the system. The significance of these differences is illustrated in first-party platform documentation. The Foundry Agent Service from Microsoft, for example, documents the memory-management capabilities of storage scopes, expiry settings and record-level operations. 

These are useful controls to have, but they aren't, in and of themselves, evidence that deleted information can't be recovered. The organisation also needs to assign responsibility for these decisions. 

Application teams can understand how an agent utilises memory, and data governance and privacy teams can set the guidelines for what should be preserved. Without knowing how the memory architecture works, neither can make those decisions well.

What Should Enterprises Test Before Deployment?

A memory system can appear stable in a short demo, but perform very differently after hundreds of interactions, several modifications to a task or a deletion request. Thus, testing should be done under the same conditions in which the agent would be operating. Useful questions are:

  • Does the agent still obey crucial commands and limits when its context is compressed?
  • Is it retrieving the correct information for the present task, including the context needed to interpret previous decisions?
  • What if a stored fact is modified? Is the agent using the corrected version, or is it still using the old information?
  • After deleting a memory, can the agent still access or reconstruct the information from surviving records?
  • Is the organisation able to look back at memory operations and show that its procedures for retention, correction and deletion worked as intended?

These tests should incorporate real-world variations and exceptions instead of simple questions with expected answers. For example, an agent may be given a procurement limit, allowed to work through a few stages, and then notified that the restriction has changed. The test will look at whether it changes its understanding and applies the new rule in subsequent judgements. 

Deletion testing must be handled with care. It isn't enough to show that the information has vanished just by asking the agent to recite a deleted secret. Organisations may have to inspect relevant memory stores and see if residual information might expose it. And the results should also be measured against the organisation's own requirements.

Benchmark research can reveal flaws and guide testing approaches, but it can't substitute for evidence gathered from the system actually going into production.

Final Thoughts: AI Agent Memory Needs to Be Managed, Not Just Stored

AI agents must have memory to function on long and complex tasks. But offering an agent a place to put information is only part of the problem. Enterprises also need to know what happens with the information over time. 

Compression can have the effect of losing important detail, old memories can influence later judgements, and information that has been removed may still be retrieved from other records. The problem is to develop systems that can keep relevant context without the information saved becoming an uncontrolled component of the agent's operation. 

As businesses consider persistent AI agents, memory behaviour merits the same degree of attention as the jobs those agents are required to execute. By understanding how an agent remembers, updates and forgets information, organisations have a better practical basis for assessing if it's ready for their environment. 

EM360Tech continues to study the technical decisions that support enterprise AI implementation, including how organisations can review the systems and controls they're increasingly reliant upon.