Agentic AI Memory: You Cannot Govern It. Yet.

Agentic AI memory header card with the thesis "You cannot govern it. Yet." and the deck "The agent decides what it remembers. So I govern the store, not the memory." by Dr. Harish Kotadia, Ph.D.

What is agentic AI memory?

Agentic AI memory is what an agent carries from one session into the next. Not the context window, because that empties when the session ends. It is the notes, files and stores the agent writes so the next run starts knowing what this one learned. Anthropic calls the pattern structured note-taking. I call it the one layer nobody has fenced yet.
New here? I publish one agentic AI governance post every weekday. Subscribe to the blog and it lands in your inbox the moment it goes live.
You cannot govern what an agent remembers, Yet. You can govern where it writes and what it reads back.

What does an agent actually remember?

Whatever it decides is worth keeping. That is the sentence to sit with. Anthropic’s Claude Code memory docs describe auto memory as “notes Claude writes itself based on your corrections and preferences.” Then comes the line I keep reading: “Claude doesn’t save something every session. It decides what’s worth remembering based on whether the information would be useful in a future conversation.”

So the agent picks. Not me, and not the admin. The docs list four note types, which are user, feedback, project and reference. But the choice of what lands in the file belongs to the model. In a coding session that is a convenience. In a system that touches customer data, it is a control gap.

Anthropic’s context engineering post defines the pattern in one line. “Structured note-taking, or agentic memory, is a technique where the agent regularly writes notes persisted to memory outside of the context window.” Outside the context window means outside the place I can inspect each session. That is the point of it, and that is the problem.

Why can I not govern it yet?

Because memory is context, not configuration. The Claude Code docs say both CLAUDE.md and auto memory are “loaded at the start of every conversation. Claude treats them as context, not enforced configuration.” Then the line that matters: “To block an action regardless of what Claude decides, use a PreToolUse hook instead.”

So memory has no enforcement of its own. There is no retention schedule in the tool, and no approval step before a note is saved. There is no schema for what a note may contain. The docs say the files are “plain markdown you can edit or delete at any time,” which is an audit after the fact, not a gate before it. And auto memory “is machine-local,” so the same agent on two machines remembers two different things.

The memory tool on the Developer Platform tells the same story from the other side. “Memory lives entirely in your application.” Claude asks to read or write a file, and my code does it. That puts the store in my hands, which I like. But the same page warns that a path such as /memories/../../secrets.env “can reach files outside the /memories directory.” So the enforcement is mine to build, and the vendor says so.

What goes wrong when memory is open?

Three things, and I have watched two of them happen. First, drift. An agent saves a workaround as a preference, so every later session inherits the workaround. Nobody asked for it, and nobody reviewed it. Second, leakage. A note from one session carries a customer detail into the next, where a different user is asking. Anthropic’s docs say Claude “usually refuses to write sensitive information to memory files.” Usually is not a control. The same page suggests adding “validation that strips sensitive data before your handler writes the file.” That is the control.

Third, poisoning. If an agent reads an untrusted page and writes what it read into memory, the bad instruction outlives the session. A prompt injection that lands in memory is not a one-off. It is a standing order, and I wrote about keeping agents safe from that earlier this month.

Question Who decides today What I add
What gets saved? The agent Allowlist of note types, one schema each
What may it contain? The agent, “usually” Sensitive-data filter before the write
Where does it live? Machine-local, or my handler One store per tenant, path-validated
How long does it stay? Until someone edits it Retention clock and an expiry sweep
Who can read it back? The next session Provenance on every line, source and session
Can I replay a write? No Memory writes logged in the trace

More on Agentic AI Runtime

  • Context Compaction: Memory is the other half of deciding what goes, because what survives compaction often lands in a note.
  • Prompt Injection: Why I check every action instead of filtering every prompt, and a memory write is an action.
  • Traces: A memory write I cannot replay is one I cannot defend, so it goes in the trace.
  • Managed Settings: The rule the developer cannot edit is where the memory filter belongs.
  • Ten Controls in One Place: The full governance controls roundup, ten questions and ten answers.

What do I build first?

  • A filter on the write. Anything headed for memory passes a sensitive-data check first, and anything that fails is dropped, not redacted.
  • Second, a scope. One memory store per tenant and per project, path-validated, never shared across them.
  • Third, provenance. Every memory line records which session wrote it and from what source, so a line born from an untrusted web page reads differently from a line born from my correction.
  • Fourth, a clock. Anthropic’s own advice is to “periodically delete memory files that haven’t been accessed in a long time.” I make that a scheduled sweep, not a hope.
  • Last, a hook. Memory writes go through PreToolUse like any other tool call, so a write can be blocked, logged and traced.

Five controls, and none of them ship in the box. Governed agentic AI memory is something I assemble, not something I switch on.

Where does this sit in the six layers?

Agentic AI memory lives in the runtime layer of my six-layer architecture, next to compaction, because it is part of the loop. But the controls around it belong elsewhere. The filter and the hook sit in the enforcement layer. The trace of every write sits in the evidence layer. So one feature touches three layers, which is why it is easy to leave ungoverned.

On the Five-Stage Roadmap, Piloted teams turn memory on and enjoy the convenience. Governed teams add the filter and the scope. Assured teams can show a reviewer every memory line, who wrote it, from what source, and when it expires.

What transfers to regulated loan origination?

The record rule. In my work in regulated loan origination, a loan file has a retention schedule, an owner, and a boundary. An underwriter does not carry one applicant’s income into the next applicant’s file. But an agent with open memory does exactly that unless I stop it. It remembers the last borrower because remembering was useful.

So agentic AI memory in origination is a record store, not a scratchpad. It is held per applicant, purged on schedule, and never shared across files. The agent’s convenience does not change the record rule. The record rule changes the agent.

Roadmap diagnostic: open the memory directory of one agent you run today and read ten lines. For each one, name who wrote it, from what source, and when it expires. If you cannot, the memory is governing you.

The bottom line

Instructions in, results out was IT. Intent in, outcomes out is agentic AI. But an outcome shaped by a memory nobody vetted is not one I can defend. Today the agent decides what it remembers, and the vendor docs say the enforcement is mine. So I build it: filter, scope, provenance, clock, hook. The “yet” in my headline is a promise. Governed agentic AI memory is coming. Until then, I fence the store.

My books go deeper on both sides of this. Intent In, Outcomes Out covers the architecture. Earned Autonomy covers how the evidence buys the next tier.

Book covers of Intent In, Outcomes Out and Earned Autonomy by Dr. Harish Kotadia, Ph.D., two field guides to agentic AI architecture and governance.

What is in your agent’s memory file right now that nobody on your team put there?

Go deeper

© Dr. Harish Kotadia, Ph.D., All Rights Reserved, 2026

Dr. Harish Kotadia, Ph.D., is an Enterprise AI Architect with 20+ years of IT consulting experience serving Fortune 100 clients, specializing in agentic AI systems built on Anthropic Claude, AWS Bedrock, and Google Vertex AI.

Disclaimer: This blog post is based on publicly available academic publications, vendor documentation, open standards, and news items from reputed media sources linked above. This post is intended for educational purposes, to help the enterprise agentic AI community build a shared vocabulary from public, authoritative sources.

Views and opinions expressed here are my own and do not represent those of any employer or client, past or present. The analysis presented is my independent interpretation of the published sources linked above and does not constitute legal, financial, or consulting advice of any kind.

 


Discover more from Agentic AI Governance | Dr. Harish Kotadia, Ph.D.

Subscribe to get the latest posts sent to your email.

Leave a Reply