Skip to content

Lesson 5 of 6 · 4 min read

Memory Poisoning and Tenant Isolation

Persistent 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 lessonReviewed By the AIAgentInterviews editorial team
Get full Premium access · $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

Practise it as an interviewer asks it

Course lessons that teach this

Related lessons