← AI AgentsLesson 4 of 10
Systems · 12 min
Memory that does not leak
Memory is data with a retention policy. Session scratch, user preferences, and incident notes are three stores — not one vector bucket.
Never put secrets in embeddings “because the model might need them later.” Later is how leaks happen.
Expire memory on purpose. An agent that remembers a retracted document is a liability.