TL;DR: Memory is what an agent keeps between turns and sessions and chooses to bring back; context is what the model sees this turn; retrieval is how something stored gets into context. The kinds differ by lifetime and by what they hold: working memory is this run's transcript and scratch state, episodic memory is a record of what happened in past sessions, semantic memory is facts about the user and the world, procedural memory is how to do things, as instructions and skills. The model may propose that something is worth remembering; the harness decides whether it is written, with a source, a time and a scope, because a wrong memory is a bug that repeats on every future session.
How to approach it
Draw the three-way distinction first, because candidates who blur memory, context and retrieval cannot answer anything after it. Then give the kinds as a table with a store and a lifetime for each. Then make it concrete with one write and one read. Finish with who decides, and what goes wrong when the model decides alone.
A strong answer
Three words that get used as one. Context is the request the model reads on this turn; it is rebuilt every time and lives for one call. Memory is a store outside the model that survives the call, the run and the session. Retrieval is the step that selects something from the store and places it into the context. An agent can have a large window and no memory, and a long memory it never retrieves from (Memory, Context and Retrieval).
The kinds are easiest to separate by what they hold and how long they last:
| Kind | Holds | Lifetime | Store | Written by |
|---|---|---|---|---|
| Working | This run's transcript, tool results, scratch notes | One run | The context itself, plus a scratch file | The loop, every turn |
| Episodic | What happened: past sessions, decisions, outcomes | Weeks to months | Session logs, summaries keyed by user and time | The harness at session end |
| Semantic | Facts: preferences, entities, the state of the world | Until corrected | A record per fact with source and time | Policy, from model proposals |
| Procedural | How to do things: instructions, skills, learned fixes | Until revised | Versioned instruction files and skills | People, with review |
Short-term and long-term memory, the terms from older systems, map onto working memory and the other three.
One write and one read show the mechanism. In a session the user says, "I moved to Lisbon last month." The model proposes a memory: the user's city is Lisbon. The harness applies its write policy: is this a stable fact or a passing mention, does the user consent to this being kept, which scope does it belong to (this user, not this workspace). It writes a record: value, source turn, time, confidence. Three weeks later the user asks for restaurant ideas. Retrieval runs on the request, finds the city record, and the harness places one line into the context: "User's city: Lisbon (stated 2026-11-04)." The model never knew the record existed until that line appeared.
Each kind fails in its own way, and the write policy exists for those failures. Working memory fails by overflow, so it is compacted. Episodic memory fails by volume, so it is summarised and expires. Semantic memory fails by being wrong or stale, so every record carries a source and a time, corrections replace rather than add, and a user can see and delete what is held about them. Procedural memory fails by drift, so it is versioned and reviewed like code, because a wrong instruction changes every future run.
Authority line: the model proposes what is worth remembering and recalls what it is given; the harness decides what is written, with what provenance, for whom, and for how long. "Remember everything" is not a policy, it is a liability and a context problem at once.
What interviewers probe next
"Why not store every turn and let retrieval sort it out?" Volume makes retrieval worse, old facts outvote new ones, and you have kept everything the user ever said, including what they asked you to forget. Store decisions and stable facts; summarise the rest.
"The stored fact is wrong. What happens?" It is retrieved into every relevant session and the agent acts on it, confidently, until someone notices. Provenance lets you find how it got in; a correction path lets the user fix it; a time lets stale facts lose to newer ones.
"Two users share a workspace. Where does a memory live?" Scope is part of the record. A personal preference lives under the user; a team convention lives under the workspace; nothing is retrieved across a boundary the user did not cross. Mixing them is the start of a data leak.
How it's scored
Weak: Calls the context window "memory", or lists vector storage as the answer to what memory is.
Hire: Separates memory, context and retrieval, names the four kinds with a lifetime and a store each, and shows a write and a read.
Strong Hire: Also puts the write decision under a harness policy with provenance and scope, names the failure mode of each kind and its control, and treats procedural memory as versioned code.
Common mistakes
- Using memory, context and retrieval interchangeably.
- Letting the model write to long-term memory without a policy.
- Records with no source or time, so wrong facts cannot be traced or aged out.
- Retrieving across user or workspace boundaries.
- Storing raw transcripts and expecting retrieval to find the one fact that matters.