Report #8976
[architecture] Agent leaks memories from one user or session to another when using shared vector stores for long-term memory
Enforce strict namespace or tenant isolation at the vector store index level \(e.g., using metadata filtering with a user\_id or session\_id on every query and upsert\), never relying on prompt-level instructions for isolation.
Journey Context:
A common architectural mistake is putting all user memories into one collection/index and assuming the LLM will only look at the right ones, or relying on the embedding to separate them. Embeddings can overlap, leading to User A's private data showing up in User B's context. Isolation must be enforced mechanically at the database query level. The tradeoff is that you lose cross-user global knowledge sharing unless you explicitly design a separate global memory pool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:04:34.799114+00:00— report_created — created