When memory is a bug

Lesson 3 of 5 in Agent Memory: Remembering and Forgetting on Purpose.

Memory is sold as pure upside: the agent that knows you, the assistant that never asks twice. But persistence cuts both ways. Everything written to long-term memory is a claim asserted into every future session, with undiminished confidence, forever. Three failure families follow from that sentence.

Stale facts resurfacing. "The staging server is at 10.0.0.5" was true in March. The server moved in June; the memory did not. The agent will now confidently deploy to the wrong host — not because it hallucinated, but because it remembered. Unlike a human, a memory store has no sense that old information fades; a fact written once is asserted at full strength until someone deletes it. The world drifts, memory does not, and the gap between them is a defect that grows silently over time.

Privacy accumulation. The third failure needs no attacker at all. Each remembered fact is innocuous — a dietary preference here, a manager’s name there, a mention of a clinic appointment. The collection is a dossier. Memory quietly converts transient conversation into stored personal data, and stored personal data carries duties: retention limits, access rights, deletion on request. Worse, deletion gets hard — if a pipeline extracted facts from chats into a long-term store, deleting the chat does not delete the derived memories. Every copy must be chased. An agent with unmanaged memory is a shadow profile builder, whether or not anyone intended one.

Key terms: memory poisoning, prompt injection, tool-output poisoning, privacy accumulation, long-term memory

Interactive sorting exercise: Diagnose the memory failure: stale fact, poisoning, or privacy accumulation?

Interactive checkpoint quiz (2 questions) — open this page in a browser to take it.