Forward-deployed / AI Knowledge Graph
Memory & contexta Generative AI module

Memory & context for the product leader

Memory as a product decision, the three shapes it takes, how memories are written and kept, the designs for reading them back, and the trust failures it has to be designed against.

Core insight

A model does not give you memory. Your product builds it as a set of promises about what it keeps, reads back and forgets.

5 lessons+ recapknowledge graphdiagrams included

A model remembers nothing between calls. Anything it appears to "remember" — the earlier turns of a chat, a preference from last week, a company's house style — was put back in front of it, deliberately, by your product. Whether and how to do that is one of the highest-leverage product decisions in any AI feature, and it is easy to get backwards: teams either build no memory at all, forcing users to repeat themselves forever, or build memory carelessly, and end up with a feature that resurfaces something a user assumed was forgotten, in front of the wrong audience.

A note on scope. The engineering mechanics of context and memory are already covered in depth in two places: Context engineering and Context & memory. They cover the context window as a scarce resource, compaction, offloading, and the memory hierarchy. This module does not repeat them. It answers what those lessons do not lead with: memory as a product decision. What do you promise a user? How is a memory written and kept? What does it cost in trust? Where does it fail as a business risk?

It has five lessons. Four cover the decision and its risks. One, on the write path, covers ground that no other lesson in this curriculum does. For the wider argument about context as an operating discipline, including specs, governance and evals, see Context engineering for the product leader.

Where the depth lives

Each lesson summarises an idea and points to the lesson that covers it in full.

If you want the full depth on Read
The context window, compaction, offloading Context engineering
The memory hierarchy for agents Context & memory
Chunking, embeddings, retrieval quality RAG & vector databases
Isolating tenants and users Multi-tenant isolation
Prompt injection and defences Safety, security & governance
Owning shared context across features Context governance at scale

The knowledge graph

Memory is a set of promises your product makes about what it will and will not carry forward. Every lesson hangs off this picture:

Memory & context

Five lessons · promise → scope → write → read → risk

Memory isn't free infrastructure — every step of it is a decision someone should make on purpose.

Lesson 1 · The promise
Memory is a feature you choose to build
Ship the goldfish, or ship the oversharer — both are the predictable result of nobody deciding.
Lesson 2 · The scope
Three scopes · session · user · organizational
Session

A sticky note · one conversation only

User

A personal file · one person, many visits

Organizational

A shared handbook · team-wide with an owner

Lesson 3 · The write path
What is saved, when, and how it changes
Worth saving? New or a conflict? When does it expire? Decide before the first write.
Lesson 4 · Where it comes from
Three designs · load · retrieve · agent notes
Small and stable: load it. Large: search it. Long task: let the agent keep notes.
Lesson 5 · When it breaks
Four failure modes to test for by default
Stale

Product acts confidently on outdated info

Leaked

Crosses tenant, user, or org boundary

Stuck

User can't see, correct, or delete it

Poisoned

Planted instruction acts in later sessions

Read it in four passes. The promise: memory is something your product decides to offer, with a cost and a risk. The scope: one conversation, one person, or a whole organization, each with a different contract. The write and read paths: how memory gets in, and how it comes back. The risk: every shape fails in a predictable way, and the failure is usually a trust problem before it is a technical one.

The lessons

Each lesson has a 🎯 For the product leader briefing, a labelled worked example, an "Under the hood" section for engineers, and a Sources list.

📌 Close out the module: Recap & real-world examples, which ends with a self-test.

The lessons

01

Memory as a product decision

Read lesson →
02

Session, user & organizational memory

Read lesson →
03

Writing and maintaining memory

Read lesson →
04

Retrieval as memory

Read lesson →
05

When memory goes wrong

Read lesson →
📌

Recap & real-world examples

Read recap →