CTL-174 · agent
Walls Between Agent Memories
Separate persistent memory by person, session, agent and tenant so one context cannot affect another.
TechnicalEffort MediumEffectiveness High
If one user's chat can plant something that changes how the agent treats another user, memory is a cross-user attack path. Scope memory to the originating user, session, agent and tenant. In multi-agent and multi-tenant setups, block cross-user, cross-agent and cross-tenant propagation at the storage and retrieval layers, so contamination is prevented and not merely spotted later. Shared vector stores and shared chat summaries are the usual leak points, so review those first.
Put it in place
- 01Key every memory record by tenant, user, session and agent.
- 02Enforce the scope in the store's query layer, not in the prompt.
- 03Test that a record written by user A is never returned to user B.
- 04Deny shared memory between agents unless explicitly designed.