Skip to content
AI-Native PM

Memory: decide what your product remembers

Chapter 4 of 8 in Context & Memory · 17 min

The demo is going well. You are screen-sharing your assistant to a customer's buying committee, signed in as a pilot user who volunteered her account. Someone asks for a recap of the user's recent activity, and the assistant delivers it, then adds a helpful note: months ago she asked about managing a thyroid condition at work, and would she like to pick that thread back up? The room goes quiet, even though nothing failed technically: the record was real, the retrieval was accurate, and the product inserted the record into the prompt exactly as designed. But everyone watching felt the product had gone too far, because it repeated something the user never expected it to keep, in front of people she never expected to hear it.

Sort every memory decision on two axes

What happened in that demo calls for a policy, not better engineering. You can write that policy once you sort every memory feature with two questions. Does the record outlast the conversation or end with it (session versus durable)? And did the user give the fact to the product, or did the product deduce it from the user's behavior (explicit versus inferred)? The two questions divide memory into four quadrants, and each quadrant comes with a different obligation for you. The diagram gives an example of each, with a short label: form fields (given, not kept), the current task (guessed, not kept), saved preferences (asked and kept), and deduced habits.

  • Session and explicit. You paste your travel dates into a trip planner, and it uses them until the conversation ends, which is ordinary context that no user finds surprising.
  • Session and inferred. A writing assistant infers from your edits that you want shorter sentences and tightens its style for the rest of the draft. The stakes stay low, because the product discards the inference when the session ends.
  • Durable and explicit. You tell an email assistant to always sign off with your first name, and next month it still does. The user gave the product that fact expecting it to be kept, so keeping it is the feature working as intended.
  • Durable and inferred. After months of billing questions, a support product stores a note that the customer is probably in financial trouble and uses it in a later answer. The user never said it, never saw it stored, and first learns about it when the product repeats it back.

The demo went wrong in this last quadrant, and this is where memory starts to feel creepy to users. The diagram marks it "consent lives here", because the user never gave the product this fact, so the product has to ask before it keeps it. Teams turn it on by accident, because "learn from user behavior" sounds like a personalization win until a user hears the product read their own file back to them.

Memory is a pipeline of stored records, not model recall

It helps to be precise about how memory works, because that is what lets you write the policy. The model stores nothing between calls, and every request starts with an empty window. What products call memory is a pipeline the product runs:

  • Write. After a conversation, the product writes a record: a stated preference, a fact about the account, a summary of what happened.
  • Store. It stores the record in a database, usually with an index entry so it can be found by meaning later.
  • Retrieve and inject. At the start of a future conversation, it retrieves whichever records look relevant and inserts them into the prompt (this is called injecting them), and the model receives them like any other context.

These are the mechanics from Retrieval: let the product look things up before it answers, applied to the user's own history instead of your knowledge base. In 2023, researchers formalized the same approach in a research system called MemGPT, which treats the context window as limited working storage, backed by a larger external store.

Once you treat memory as a pipeline, you can answer the ethical question of what to keep about a user with engineering decisions. Every stage is a decision you own: what gets written down at all, how long it is kept, what gets retrieved, and what gets injected into the prompt, where it can show up in an answer in front of other people. If memory were a property of the model, you could not govern it. Because it is a series of product decisions, a one-page policy can cover all of them.

Memory is a consent feature first and a capability second: what the product remembers is a promise you make to users in the interface, not whatever the database keeps by default.

The mainstream assistants set the standard. ChatGPT's memory controls and Claude's both give the user a page listing every stored record, the ability to edit or delete individual entries, and a switch that turns memory off entirely, and the best implementations tell the user about each save at the moment it happens. Whatever your product stores should pass the same three tests without the user having to file a support ticket: the user can see the full list, change any entry, and remove any entry.

Announcing each save is the half of consent that teams tend to skip. A product that says "I've noted that you prefer bullet summaries" uses one line of interface and gets the user's consent at the moment it writes the record. A product that saves silently stores the same record, and the user is surprised by it months later. Whether the user is pleased or alarmed then depends on their mental model (their picture of what the product does), which you learned to manage in Mental models: show people what the system can do. A drafting tool that keeps your style preferences is doing exactly what an assistant is expected to do, so users take the memory as good service. The same behavior in anything related to health or money feels like monitoring, because customers do not expect a billing bot to keep a file on their situation.

Retention and deletion are product features, not cleanup

Forgetting is a feature you design, not a maintenance task.

Forgetting on request. "Forget that" has to work as a fully supported command, both in the conversation and from settings, and it has to work the first time. GDPR's right to erasure makes this a legal obligation for users in much of the world, so treat the regulation as the minimum and design beyond it.

Expiry by default for sensitive classes. Records about health, finances, legal matters, or other people should expire after a short time unless the user explicitly asks the product to keep them. The record behind the demo failure was an old one that should not have outlasted the week it was created.

Deletion that actually deletes.

Deletion must remove the record and everything derived from it: the stored entry, the index entry that makes it findable, and any summary or profile computed from it.

A memory that disappears from the visible list but remains in an embedding index or a weekly profile summary is hidden, not deleted, and retrieval will eventually bring it back. List every stop in the pipeline where a copy is kept, the same exercise you ran in Data: what flows in and what leaks out, and make the deletion path (the steps that run when a user asks to delete a record) cover all of them.

Write your memory policy

You now have everything you need for the policy, and it fits on one page.

  • The quadrant rules. Write one line per quadrant: session-explicit is always allowed, session-inferred expires with the conversation, durable-explicit requires an announcement when the record is written, and durable-inferred requires the user's confirmation or is not kept at all.
  • The visibility rule. Write it as one sentence: the user can see, edit, and delete every stored record from inside the product.
  • The retention table. Give each class of record a row covering how long it is kept by default, what its deletion path removes, and how quickly a deletion request is carried out, with the shortest times for the sensitive classes.

You copy these lines straight into the Knowledge Charter, the part's final artifact, which you complete in Write your Knowledge Charter and ship a product that knows its facts, and the fillable version has a section for them.

Try it now

This drill takes about 20 minutes and costs nothing.

Open two products that keep memory. Pick two AI products you use that carry facts across conversations; the mainstream assistants all show their memory controls in settings, and so do most writing and meeting tools that keep memory.

Read the list of what each one has stored. Find the memory or personalization page and read the stored list end to end, noting how much of it you knew was there.

Find one inferred entry. Look for something you never typed as a fact: a preference deduced from your behavior, a topic you were filed under, a detail assembled from several conversations, and note whether the product told you when it was saved.

Check the controls. Edit one entry, delete another, and find the switch that turns memory off entirely. Then open a fresh conversation and test whether the deleted entry is really gone.

Write the policy you would ship. Draft one page for your own product: the quadrant rules, the visibility rule, and the retention table with its deletion path. Keep it, because it goes straight into the Knowledge Charter.

Chapter Summary

  • Sort every memory decision along two axes: does the record outlast the conversation (session versus durable), and did the user state the fact or did the product deduce it (explicit versus inferred).
  • Durable inferred memory is where memory feels creepy, because the user hears a fact they never stated at a moment they did not choose. Keep that quadrant off by default.
  • The model stores nothing between calls. Memory is a pipeline your product runs: write a record, store it, retrieve it later, and inject it into the prompt.
  • Because every stage of that pipeline is a product decision, you can govern all of it with a one-page policy.
  • Memory is a consent feature first and a capability second: announce what is saved when it is saved, and give users a full list they can see, edit, and delete.
  • Users are pleased when a drafting tool remembers a fact and alarmed when a product related to health or money does the same, because the memory either fits or breaks their mental model of the product.
  • Give sensitive record classes short default lifetimes, and make "forget that" work as a fully supported command.
  • Deletion must remove the record, its index entry, and everything derived from it, or the memory is hidden rather than gone.
  • Everything you keep still has to fit into a finite prompt at answer time, and fitting it in is the subject of Context budgets: fit the right facts into a finite window.

Sources

  • Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., and Gonzalez, J. E. (2023). MemGPT: Towards LLMs as Operating Systems. arXiv preprint.
  • OpenAI. Memory and controls in ChatGPT, help documentation (last verified July 2026).
  • Anthropic. Memory in Claude, help documentation (last verified July 2026).
  • European Union (2016). General Data Protection Regulation, Article 17: Right to erasure.