Executive summary
AI memory improves continuity and personalization, but persistent state creates risks that a one-turn response test cannot reveal. Trust requires correct recall, strict user and tenant isolation, freshness, safe deletion, resistance to poisoned content, and an evidence trail.
Method
Plain-English synthesis of current OWASP agentic-security guidance, the NIST Generative AI risk-management profile, and official memory architecture documentation. This note proposes a practical test framework; it does not claim original experimental results.
What the evidence suggests
Useful recall is only one requirement
A system may remember a preference correctly and still fail because the memory belongs to another user, has expired, or should never have been stored.
Memory can carry an attack forward
Malicious content may become persistent state and influence later sessions, decisions, or actions after the original input is no longer visible.
Deletion and provenance must be tested
Teams need evidence that a memory was corrected or removed and must be able to identify the owner, source, time, version, and effect of reused memory.
Practical test protocol
- 01Track what was saved, from which source, for whom, and for how long.
- 02Restrict memory by user, tenant, session, agent, tool, purpose, and permission.
- 03Update facts, expire stale records, and prove that deletion stops future reuse.
- 04Stress the system with conflicting facts, poisoned content, account switching, and delayed activation.
- 05Trace which memory was retrieved and how it changed the answer or action.
- 06Block release for confirmed cross-user leakage or policy-changing memory poison.
Use the TRUST test: Track, Restrict, Update, Stress, and Trace. Safe memory means the correct fact, the correct owner, the current value, safe reuse, and an auditable evidence trail.
Limitations
No finite test suite can prove that a memory feature is always safe. Thresholds and escalation must reflect the data sensitivity, permissions, user population, and consequence of a wrong action.