---
title: "AI agent memory: the asset you are building for your vendor"
description: "AI agent memory is the asset, not the model. Most of it is piling up in a vendor's memory feature, in the vendor's schema. How to own it, and how to prove it."
type: Essay
url: https://sunilkumar.ai/writing/ai-agent-memory/
author: Sunil Kumar (https://sunilkumar.ai/about/)
datePublished: 2026-11-06
pillar: Architecture
tags: [agentic-ai, memory, architecture, governance]
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
---

# AI agent memory: the asset you are building for your vendor

AI agent memory is the asset, not the model. Most of it is piling up in a vendor's memory feature, in the vendor's schema. How to own it, and how to prove it.

## In short

- The model layer reshuffled twice in two years. Menlo Ventures puts Anthropic at 55 percent of enterprise model spend in 2026, from 12 percent in 2023, and Google at 9 percent, from 21 a year earlier. Whatever you rent today, you will probably rent something else by 2028.
- What your agents learn is the asset. The corrections, the approvals, the refusals and the reasons behind them are accumulating in a vendor's memory feature, in the vendor's schema, with an export that is a text file, if there is one.
- The raw material already exists. An agent's audit trail, kept because a regulator might ask, is a record of decisions with evidence and outcomes. Kept past six months, in a schema you own, the same log is memory.
- Memory earns its keep only when it is measured. LinkedIn's text-to-SQL agent went from 9 to 48 percent correct by adding what the organisation knew, not by changing the model. Airbnb lifted retrieval recall 11.7 percent by capturing its support agents' decisions as they made them.
- Four decisions make memory yours. Own the schema and buy the engines, capture decisions rather than conversations, confirm memories with a person who is actually deciding, and prove the compounding before you scale it.

A client changed its model in September. The reason was ordinary. The new one was cheaper on long inputs, it scored better on their evaluation set, and the switch took a pod four days. What took longer was noticing what had gone missing. For eight months the people using the agent had been correcting it: which two supplier names are the same company, which approvals need a second signature, which of the three price lists is the real one. Those corrections had gone into the previous vendor's memory feature, because that was the box on the screen. The export was a text file. The new model read it the way you would read a stranger's notebook, and the agent spent October being taught things it had known in August.

That is a composite of things we have seen this year, with the details changed, and I tell it because the client had done nothing wrong. They used the feature the vendor shipped. Nobody had asked where the memory lived, in whose schema, and what would survive the day the model changed. Those three questions are what this piece is about.

Here is the claim. The model is rented, and it will be swapped. AI agent memory, the record of what your agents learn while they run, is the only part of the system that compounds. Almost every company I meet is building it, by default, inside a vendor it will leave.

> **Enterprise memory layer**: The record a company keeps of what its agents and people knew and decided: the facts it relies on, and the decisions with their evidence, constraints, reasoning and outcomes. It is held in a schema the company owns, readable by whichever model it runs this year, and governed like any other business record.

## The model layer reshuffled twice in two years

Menlo Ventures publishes the best numbers I know of on what enterprises actually spend on models, and I read them every year for one thing: the churn. In 2023 OpenAI had 50 percent of enterprise LLM spend, Anthropic 12 percent and Google 7 percent. By 2025 it was 27, 40 and 21, with Anthropic passing OpenAI somewhere in 2024. In the 2026 report, published on 3 November, it is 31, 55 and 9. Google's share fell from 21 to 9 percent in a single year. Enterprise AI spend went from 33 billion to 177 billion dollars over the same twelve months, so the shares were moving while the pie grew more than five times.

I do not read that as a league table. I read it as a churn rate. Every one of those points moved because an enterprise somewhere pointed its agents at a different model. Whichever vendor you rent from today, the odds that you rent from the same one in 2028 are not good, and that is fine. Swapping a model is a few days of work for a pod. Swapping the memory is the problem, because nobody built it to be swapped.

Asif Hasan, writing at AI Value Labs, put the principle in one line in October, and I have not found a better one: "The model can be rented. The memory must be owned." I would add the part that line is polite about. Today the memory is being rented too, and the rent is paid in the one asset you cannot buy back.

There is an old finding behind this. In 2002 Brynjolfsson, Hitt and Yang found that each dollar a firm invested in computers was associated with over ten dollars of market value. Most of that value, they argued, came from intangible assets: the records, habits and practices built around the machines, not the machines themselves. The computer was the rented part even then. Memory is the intangible asset of the agent era, and it is the first one the system can write down itself, as a by-product of the work. The model is a churn rate. The memory is the only part of the system that compounds.

## What enterprise memory is, and what it is not

In the [reference architecture](/playbooks/agentic-ai-reference-architecture-for-enterprise/) I separate three things that all get called memory. Working context is what the model sees during a run. Retrieval is fetching the documents a task needs. Long-term memory is what the agent keeps between runs. Most of what is sold as memory today is the first two: a longer context window, or a search index over your documents. Both are useful. Neither is the asset.

The asset is the third thing, and it is narrower than people assume. It has two parts. The first is what Hasan calls the vault: the governed, versioned record of what the firm knows, its facts, policies and master data. Most companies have a version of this already, usually in poor condition. The second part is new, and Foundation Capital's name for it has stuck: the context graph, a record of decisions with the evidence, constraints, reasoning and outcomes attached. Ashu Garg's line is that "the last generation of software captured what happened. This generation will capture why." A CRM records that a discount was given. A context graph records that the discount was given because the renewal was at risk, the regional head approved it, policy allowed ten percent, and the deal closed.

A chat log is not memory. A transcript of what people said to the agent is the raw material of a data-protection incident, not an asset. Memory worth owning is the decision, the evidence it rested on, who confirmed it, and what happened next.

The evidence that this compounds, and that it sits outside the model, is now in print from companies that measured it. LinkedIn built a text-to-SQL agent for its internal analytics and ran an ablation. With the database schemas alone, 9 percent of its answers were correct or close to correct. With the full knowledge layer, built from metadata, query logs, wikis, code and the domain knowledge analysts added in the chat, the figure was 48 percent. The model did not change; what it knew did. Airbnb's support team captured four kinds of feedback from its human agents in live operations: which of two responses they preferred, whether they adopted a suggestion and why, whether the retrieved knowledge was relevant, and what was missing. Annotations from more than 5,000 cases lifted retrieval recall by 11.7 percent and helpfulness by 8.4 percent, and cut the retraining cycle from months to weeks.

The research says the same. Agent Workflow Memory, from Carnegie Mellon, had agents induce reusable workflows from their own successful runs and lifted success rates by 24.6 percent on Mind2Web and 51.1 percent on WebArena, relative to the same agents without it. Reflexion took GPT-4 from 80 to 91 percent on HumanEval without updating a single weight, by storing what the model had learned from its own earlier attempts. Four results, one pattern. The gains came from a record the organisation kept, not from the model it rented.

## Most AI agent memory is being built inside a vendor

Look at where the memory features arrived in the last fourteen months, and look at who holds the schema.

Anthropic shipped memory for Claude's Team and Enterprise plans in September 2025. It is scoped to projects, opt-in, and an administrator can switch it off for the whole organisation. You can export it project by project; the support page says the export is plain text and marks the import as experimental. OpenAI followed in October 2025 with company knowledge in ChatGPT for Business, Enterprise and Edu. It reads Slack, SharePoint, Google Drive, GitHub and the rest, respects your permissions and cites its sources, and the announcement says nothing about taking the knowledge out. Microsoft used Ignite in November 2025 to introduce Work IQ, which it calls "the intelligence layer that enables Microsoft 365 Copilot and agents", built, in its words, on your data, memory and inference. Salesforce went furthest. Its Agent Context Engine has been in preview since October. It turns agent interactions into shared memory with provenance, and it can require a person to confirm a memory before other agents rely on it. Agents built on Google's ADK, Bedrock, LangGraph or the OpenAI SDK can read that memory through an SDK or MCP. To its credit, the design is closer to right than most. And Mem0, which sells a memory API to developers, raised 24 million dollars in October 2025 after its API calls grew from 35 million in the first quarter of the year to 186 million in the third. The demand is real.

None of these companies is doing anything wrong. Each is doing the obvious thing. The agent runs on their platform, so the memory accumulates on their platform, in their schema, under their retention rules. The question is what happens the day you leave, and the honest answer from the documentation is a text file, if that. The memory that made your agent useful in month eight becomes a note from a stranger in month nine.

Three questions settle it, and I would put them in every procurement checklist next to the ones in [how to evaluate an agentic AI vendor](/playbooks/how-to-evaluate-an-agentic-ai-vendor/). Can I export the memory in a structured form with its provenance? Can a different model read it and act on it without being retaught? Can I delete one person's entries on request and prove that I did? If any answer is no, you have your answer. A memory you cannot export with its provenance is a feature of the vendor's product, not an asset of your company.

## The raw material already exists: it is the audit trail

The tests I call [Agentic in Production](/ideas/agentic-in-production/) ask five things of an agent before it counts as production-grade: refusals that are enforced, a trace a stranger can reconstruct, a named owner who can stop it, a budget it cannot exceed, and behaviour measured on every change. I set them out in [What production-grade actually means](/writing/what-production-grade-actually-means-for-an-ai-agent/). Look at the second one. A trace a stranger can reconstruct holds the input, the context the model saw, each decision, the tools called, what they returned, what went out and what it cost. That is a context graph, written by the system as a by-product of the work. Most companies keep it because a regulator might ask, and delete it when the retention period ends.

The regulator will ask. Article 26 of the EU AI Act requires deployers of high-risk systems to keep the automatically generated logs for at least six months, and to assign human oversight to natural persons with the competence, training and authority to use it. The Digital Omnibus, which the Council approved in June, pushed the high-risk deadlines out to 2 December 2027 for Annex III systems and 2 August 2028 for Annex I. So the law will require the log, and the deadline just moved. I would not wait for it, and I would not build it twice. Keep the trace longer than six months, keep it in a schema you own, and it serves both purposes. An audit trail kept for the regulator and deleted after six months is a memory layer you paid for and never used.

We learned what that log is worth by not reading it. In [the approver who said yes 1,900 times](/notes/the-approver-who-said-yes-1900-times/), a payables agent asked a person for approval 1,900 times in three weeks and was told yes 1,893 times, once for a changed bank account. Every one of those approvals was a decision with evidence, an outcome and a timestamp, and we measured the agent every day without once reading the record as memory. When we finally did, it told us the person had stopped deciding by week three. A context graph nobody queries is a log. The difference is whether anyone asks it why.

People have never been good at writing down why. A study of architecture decision records on GitHub found that about half of the repositories that adopted them hold one to five records in total. Engineers like the idea of recording decisions and stop after the fifth. Agents do not stop, and they do not mind. The reasoning is already in the trace. The only question is whether you keep it.

## Four decisions that make the memory yours

Hasan ends his piece with four imperatives, and three of them survive contact with a build unchanged. Here is my version, with what each one looks like from the inside. The third is the one his list does not have, and it is the one I have watched go wrong.

Own the schema, buy the engines. The schema is a page: what was decided, the evidence it rested on, the constraint that applied, who confirmed it, the outcome, and which model and version was running. Write it before you choose an engine. The engine, whether a vector store, a graph database, Mem0, Zep or Salesforce's context engine, is a product, and products can be swapped. If the schema lives inside the engine, you own neither.

Capture decisions, not conversations. Memory is written at the point of decision, by the run, as a by-product. It is not a transcript. The data-protection rule from the reference architecture still applies: a written policy for what may be stored, for how long, who can read it and who can delete it. In healthcare and finance, "nothing beyond the record of the run" remains a fine answer. Retention should be longer than the regulator's six months, because the compounding happens in the second year.

Confirm memories with a person who is actually deciding. Salesforce is right to let a memory wait for human confirmation. The approver note is the warning: a confirmation that takes four seconds is a button, not a decision. Route confirmations by consequence, so a person sees the memories that would change what an agent does with money or customers, and measure the confirmer the way you measure the agent. A memory confirmed in under ten seconds should not count.

Prove the compounding before you scale it. LinkedIn and Airbnb got their numbers from the same experiment: the same model, with and without the memory, on an evaluation set. Run it quarterly on every agent that keeps memory, and report the gap. Then run the other test, the one that tells you who owns the memory. Swap the model, keep the memory, and measure what you lose. If the number barely moves, the memory is yours. If it collapses, it was the vendor's.

## If you are doing this in your company

Find out where your agents' memory lives today. List every memory feature that is switched on: the model vendor's, the office suite's, the CRM's, any memory API a team has adopted. For each one, write down who owns the schema and what an export looks like. Ask for one export this week and try to read it.

Write the decision record on one page: decision, evidence, constraint, confirmer, outcome, model and version. Make every agent write it on every consequential run.

Change the retention on your agents' traces to longer than six months and stop deleting them. Put them in a store you control, with the data-protection policy next to them.

Pick one agent and run the ablation: the same model, with and without its memory, on the evaluation set. Report the gap. If there is no gap, you have a log, not memory, and that is worth knowing before you buy anything.

Add the three vendor questions, export, portability and deletion, to the procurement checklist, and ask them of the vendors you already have.

If you want a second pair of eyes on where your memory sits and whose schema it is in, the [work with me](/work-with-me/) page has the shape of a short engagement. The first two items you can do this week without anyone's help, and the first one will surprise you.

## Sources

- Menlo Ventures, [2025: The State of Generative AI in the Enterprise](https://menlovc.com/perspective/2025-the-state-of-generative-ai-in-the-enterprise/), 9 December 2025: enterprise LLM spend shares for 2023 and 2025 (OpenAI 50 to 27 percent, Anthropic 12 to 40, Google 7 to 21), estimated from production API usage.
- Menlo Ventures, [2026: The State of Enterprise AI](https://menlovc.com/perspective/2026-the-state-of-enterprise-ai/), 3 November 2026: enterprise AI spend of 177 billion dollars by September 2026, from 33 billion; Anthropic 55 percent, OpenAI 31 percent and Google 9 percent of enterprise API spend; survey of nearly 400 US decision-makers fielded by Morning Consult, 8 to 26 September 2026.
- Hasan, A., [Enterprise Memory Layer: The Moat That Compounds in the Agentic Era](https://asifonai.substack.com/p/enterprise-memory-layer-the-moat), AI Value Labs, 4 October 2026: the vault and the context graph, the four imperatives, and the line "The model can be rented. The memory must be owned."
- Garg, A., [Context graphs, one month in](https://foundationcapital.com/context-graphs-one-month-in/), Foundation Capital, 30 January 2026, following Garg, A. and Gupta, J., [AI's trillion-dollar opportunity: Context graphs](https://foundationcapital.com/context-graphs-ais-trillion-dollar-opportunity/): decision traces, and the line on capturing what versus why.
- Brynjolfsson, E., Hitt, L. M. and Yang, S., [Intangible Assets: Computers and Organizational Capital](https://www.brookings.edu/wp-content/uploads/2002/01/2002a_bpea_brynjolfsson.pdf), Brookings Papers on Economic Activity, 2002:1: each dollar invested in computers associated with over ten dollars of market value, most of it from intangible assets.
- Chen, A. et al., [Text-to-SQL for Enterprise Data Analytics](https://arxiv.org/abs/2507.14372), LinkedIn, arXiv, July 2025: the ablation from 9 percent with schemas only to 48 percent with the full knowledge layer; over 300 weekly active users.
- Zhao, C. et al., [Agent-in-the-Loop: A Data Flywheel for Continuous Improvement in LLM-based Customer Support](https://aclanthology.org/2025.emnlp-industry.135), Airbnb, EMNLP 2025 Industry Track, November 2025: annotations from more than 5,000 cases; +11.7 percent recall@75, +8.4 percent helpfulness, +4.5 percent agent adoption; retraining cycles from months to weeks.
- Wang, Z. Z., Mao, J., Fried, D. and Neubig, G., [Agent Workflow Memory](https://arxiv.org/abs/2409.07429), Carnegie Mellon University, arXiv, September 2024: 24.6 percent and 51.1 percent relative success rate improvements on Mind2Web and WebArena.
- Shinn, N. et al., [Reflexion: Language Agents with Verbal Reinforcement Learning](https://arxiv.org/abs/2303.11366), NeurIPS 2023: 91 percent pass@1 on HumanEval against 80 percent for GPT-4, with no weight updates.
- Franzen, C., [Anthropic adds memory to Claude Team and Enterprise](https://venturebeat.com/ai/anthropic-adds-memory-to-claude-team-and-enterprise-incognito-for-all), VentureBeat, 11 September 2025, and Anthropic, [Importing and exporting your memory from Claude](https://support.anthropic.com/en/articles/12123587-importing-and-exporting-your-memory-from-claude): project-scoped, opt-in, organisation-level admin control, export per project, plain-text export and experimental import.
- OpenAI, [Work smarter with your company knowledge in ChatGPT](https://openai.com/index/introducing-company-knowledge), 23 October 2025: Business, Enterprise and Edu; connectors; permissions respected; citations.
- Shaw, F. X., [From idea to deployment: the complete lifecycle of AI on display at Ignite 2025](https://blogs.microsoft.com/blog/2025/11/18/from-idea-to-deployment-the-complete-lifecycle-of-ai-on-display-at-ignite-2025/), Microsoft, 18 November 2025: Work IQ, Fabric IQ and Foundry IQ.
- Nakashima, J., [Turning data into trusted, shared context with the Agent Context Engine](https://www.salesforce.com/blog/agent-context-engine-trusted-shared-context/), Salesforce, 20 October 2026: preview on Data 360; memory with provenance; human confirmation; Google ADK, Bedrock, LangGraph and OpenAI SDK through SDK or MCP.
- Velazquez, R., [Mem0 raises $24M to overcome AI memory challenges](https://builtin.com/articles/mem0-raises-24m-AI-memory-infrastructure-20251103), Built In, 3 November 2025: 24 million dollars across Seed and Series A; API calls from 35 million in Q1 2025 to 186 million in Q3.
- European Commission AI Act Service Desk, [Article 26: Obligations of deployers of high-risk AI systems](https://ai-act-service-desk.ec.europa.eu/en/ai-act/article-26), Regulation (EU) 2024/1689: logs kept for at least six months (26(6)); human oversight assigned to natural persons (26(2)).
- Gibson Dunn, [EU AI Act Omnibus Agreement: Postponed High-Risk Deadlines and Other Key Changes](https://www.gibsondunn.com/eu-ai-act-omnibus-agreement-postponed-high-risk-deadlines-and-other-key-changes/), 27 May 2026, and Cuatrecasas, [Council of the EU approves Digital Omnibus on AI](https://www.cuatrecasas.com/en/global/intellectual-property/art/council-eu-approves-digital-omnibus-ai), 30 June 2026: Annex III obligations from 2 December 2027, Annex I from 2 August 2028; Council final approval on 29 June 2026.
- Buchgeher, G. et al., [Using Architecture Decision Records in Open Source Projects: An MSR Study on GitHub](https://doi.org/10.1109/ACCESS.2023.3287654), IEEE Access, vol. 11, 2023: about 50 percent of repositories with ADRs contain one to five.


## Questions people ask

**Is AI agent memory the same thing as RAG?**

No. Retrieval fetches the documents a task needs, and it is built as a tool with permission checks. Memory is what the agent keeps between runs, and the valuable part is decisions with their evidence, who confirmed them and what happened next. You can have excellent retrieval and no memory at all. The ablation in the piece, the same model with and without the memory on your evaluation set, tells you which one you have.

**Should we buy a memory product or build our own?**

Buy the engine and own the schema. Mem0, Zep, Salesforce's Agent Context Engine and the graph databases are engines, and engines can be swapped. Write the one-page decision record first, insist on a structured export with provenance and on deletion you can prove, and run the swap test before you scale. If the memory only works inside one product, it is that product's feature, not your asset.

**Should agents remember customer data at all?**

Often not, and that is a fine answer. Memory is the decision and the evidence it rested on, not the transcript. Write the policy before the first run, with what may be stored, for how long, who can read it and who can delete it. In healthcare and finance "nothing beyond the record of the run" is a reasonable policy, and the record of the run is still memory.

**How do we know the memory is compounding rather than just accumulating?**

Run the same agent, on the same model, with and without its memory, against the evaluation set, and report the gap every quarter. The gap should widen as the record grows. Then swap the model, keep the memory, and measure what you lose. A small loss means the memory is yours. A collapse means it belonged to the vendor.


---
Sunil Kumar, Co-founder and CEO, Ailoitte Technologies. https://sunilkumar.ai/about/
