Skip to content
Picasso Soft
전체 글

Agent memory needs a data model

Sean Park · Picasso Soft6 분 소요

이 글은 영어로 작성되어 있습니다.

An assistant that remembers a project's conventions can save real effort. An assistant that remembers an expired permission can create a real incident. Both may begin with the same innocent-looking sentence in a notes file.

My view is that persistent agent memory belongs in the architecture review alongside application data. It needs ownership, provenance, access control, correction and deletion. Better models make that investment more valuable because the resulting memories can influence more capable actions.

Research checked November 11, 2026. The architecture below is our proposal, informed by the linked research; it is not a claim that we have benchmarked these vendors' systems.

Why this became urgent

Anthropic's November 6 article describes agents keeping notes between sessions and using later computation, which it calls dreaming, to organize or correct them. Its experiments include a document corpus where a maintained wiki worked best with search, and cases where a wiki added little value or grew larger than its source material. These are useful vendor-run experiments with task-specific results, rather than proof that more persistent memory always improves an agent. Read The components of agent memory.

Google's October 8 Gemini agent announcement makes the product direction equally clear: persistent execution, context carried across interfaces, and agents connected to business systems. Those are announced platform capabilities; whether they produce dependable outcomes in a particular company still requires testing. Read the Gemini at Work announcement.

An engineering team evaluating this direction should ask what the agent will remember, how it learned it, and what happens when the underlying fact changes. A useful memory can become a stale dependency without any change to the prompt or model.

Separate the kinds of information

I would distinguish three categories in the application, even if the initial storage implementation is simple.

Operational facts describe the current world: a ticket's status, a deployment's version, a person's access. Their authoritative source is the relevant system of record. Cache them where useful, with a freshness rule and a way to refresh before consequential use.

Learned guidance includes preferences, project conventions and previously successful approaches. It can help an agent decide where to look or how to present a result. It needs a source, scope and correction path. A convention inferred from one repository should not silently become a rule for every repository.

Authority determines what the agent may do. A stored sentence about a past approval is evidence that an approval occurred. Current permission must still come from the application or the user within the agreed scope. Treating every remembered approval as reusable authority creates an accidental permission system in prose.

This distinction is especially useful when a task resumes after a long interruption. The agent may retain the goal and its previous reasoning, while the product independently checks whether the account, target and permitted action are still valid.

Give a memory enough structure to challenge it

For a production system, I would want a memory record to carry at least a claim, a source reference, the scope in which it applies, a verification time, an access policy and a status such as proposed, verified, superseded or disputed. These are proposed design fields, not a standard imposed by the research.

Confidence is a separate concern. A model can be very confident about a misunderstanding. A confidence score should never substitute for evidence or permission.

Consider a hypothetical incident assistant that remembers: “Restarting this service is safe during business hours.” That claim might have been true for a test deployment, or before a topology change. A source link to the incident and an environment identifier let a later run inspect the basis. A free-floating sentence encourages it to generalize.

The memory system also needs relationships between derived notes and their sources. If a source is corrected or access is withdrawn, derived summaries should be invalidated or recomputed as appropriate. Deleting the original document while retaining its sensitive contents in several summaries would leave the user's deletion incomplete.

Background maintenance is a write operation

The idea of letting an agent reorganize memory while idle is appealing. My engineering preference would be to treat that process as a job that proposes changes against a known version, records what changed and validates references before committing. Ordinary concurrency controls matter when several workers can update the same material.

For low-impact preferences, automatic maintenance may be entirely reasonable. For deployment rules, security exceptions or customer commitments, I would keep an authoritative source outside the generated notes and require the agent to consult it before acting. Applying the same approval friction to every memory would make the system unpleasant without adding proportionate protection.

This is also where content and permissions must remain separate. A retrieved document can contain an instruction to send data elsewhere. The presence of that instruction in memory gives it no additional legitimacy. Anthropic's containment article discusses tool outputs as a prompt-injection surface and describes defense at multiple layers. A trusted connection alone does not make all returned content trustworthy. Read the containment engineering article.

MCP's security guidance supplies a related boundary: it prohibits token passthrough and addresses audience validation and confused-deputy risks. Protocol integration does not remove the application's responsibility to authorize the particular operation. Read the versioned MCP security guidance.

Test remembering, correcting and forgetting

A useful evaluation should include more than questions whose answers appeared earlier. I would test whether the system can:

  • Retain a harmless user preference and apply it in the right project.
  • Recognize a newer authoritative fact that contradicts an old note.
  • Keep one customer's information out of another customer's context.
  • Resume a task after permissions change and respect the new boundary.
  • Delete a source and remove or invalidate the derived memories that depend on it.
  • Recover from a mistaken note without creating a chain of increasingly confident summaries.

These tests should exercise the storage and authorization paths, as well as the model. A prompt-level test cannot prove that a database query enforces tenant separation.

There are workloads where this architecture would be excessive. A short session over a small, stable set of documents may work well with direct retrieval and no persistent generated knowledge at all. I would add memory when repeated discovery or recurring mistakes have a measurable cost, then compare against that simpler baseline.

What I expect to become valuable

Over the next year, I expect teams to discover that the valuable asset is a maintained record of how their work actually gets done: decisions, constraints, verified procedures and the sources behind them. Models can help build and navigate that record. Its usefulness depends on whether people and systems can correct it.

My test for a durable agent product would therefore include exportability. Can a customer inspect its learned guidance, move it to another system, and retain the original evidence and access boundaries? A platform that makes learning portable gives customers a reason to trust it.

I would revisit this architecture if simpler transcript search consistently matched maintained memory on a team's real tasks at lower total cost. The objective is dependable continuity. Persistent notes are one means of achieving it, and they should earn the complexity they introduce.