Agent Memory & State
16 questionsDONEUNLOCKEDLOCKED
Agent Memory Interview Questions
What an agent keeps between turns, sessions and months. Working, episodic, semantic and procedural memory; when to write and when to read; provenance and forgetting; and why memory, context and retrieval are three different design decisions.
Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.
You have 5 free answers unlocked here.Sign in free for 1 more · 10 are premium.
01–07Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/7 done
08–13Core questionsthe questions this topic is most often tested on, with full worked answers0/6 done
14–16Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/3 done
The concepts behind Agent Memory & State
Lessons behind these answers. The opening lessons are free; deeper ones are Premium.
Foundational
Memory, Context and RetrievalAgent memory is often confused with two neighbouring ideas. Context is what the model reads on this turn and nothing more; it disappears when the request ends. Retrieval reads from a corpus that someone else curates (documents, tickets, code), shared across users. Memory is what the agent system itself writes, about a user, a task or how to do something, and reads back later. Each has a different writer, lifetime, audience and way of going wrong, and a design has to say which one each fact belongs in.Core
Memory Write and Read PoliciesA memory system is defined less by its storage than by two policies. The write policy says what earns a place (stated preferences, confirmed outcomes, lessons that held up), what never does (secrets, guesses about sensitive traits, transient details), and that scope and source come from the harness, not the model. The read policy filters by scope before relevance, caps how much is injected, renders each memory with its source and age, and lets the agent search memory as a tool when automatic injection would add noise.Sign in
Advanced
Provenance, Expiry and CorrectionMemories go wrong in three ways: they were never true, they stopped being true, or they were true for someone else. Each record therefore needs provenance (who or what wrote it, from which run and on what basis), a lifetime suited to its kind, and a correction path in which new facts supersede old ones rather than overwriting them silently. Deletion must reach every copy, including summaries and search indexes, and the system must be able to answer 'why does the agent believe this?' from the record alone.🔒 Premium
Advanced
Episodic, Semantic and Procedural MemoryBorrowed from cognitive science and applied to language agents in work such as CoALA (Sumers et al., 2023), the split is practical. Episodic memory records what happened in past runs and is read as examples of similar situations. Semantic memory holds facts about users, projects and the world, read by key or relevance. Procedural memory holds how to do things, as instructions, scripts or skill files, and changes the agent's behaviour on every run that loads it. Consolidation turns episodes into facts and procedures, and because procedures act on every later run, promoting one needs evidence across runs and a review.🔒 Premium
Advanced
Memory Poisoning and Tenant IsolationPersistent memory adds two engineering risks to an agent. Poisoning: content the agent read (a web page, an email, a ticket) ends up written as memory and steers later runs long after the original content is gone. Leakage: a record written in one tenant's or user's scope is read in another's because isolation depended on a query filter. The defences are structural: memories carry taint from untrusted sources and cannot become stated facts, writes from runs that read untrusted content are held for review, memory never authorises an action by itself, and storage, indexes and caches are partitioned by scope with tests that try to cross it.🔒 Premium
Advanced
Memory Architectures Compared: Vector Stores, Graphs, Profiles and NotesAgent memory systems are combinations of four storage shapes. Vector stores retrieve snippets by semantic similarity and suit fuzzy recall over many past interactions, but return near-misses and handle updates poorly. Knowledge graphs store entities and relations and answer multi-hop and time-bounded questions, at the cost of extraction quality. Structured profiles hold known fields with clear update rules. Notes files are plain text the agent edits, simple and inspectable but unindexed. Choosing is about the questions the agent must answer and how facts change, then write and read policies on top.🔒 Premium
Unlock all 16 answers · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal