Report #80266
[architecture] Agent leaking memories from one user/session into another user's context
Enforce strict namespace or tenant isolation at the vector store index level. Always prepend a user\_id or session\_id to all vector store queries and upserts as a hard metadata filter, never relying solely on the embedding space to separate user data.
Journey Context:
It is tempting to just embed all user data into one large index to save costs and simplify architecture, assuming the vector math will naturally separate distinct users' contexts. This is a fatal flaw; vector similarity does not respect logical boundaries, and a query from User A can easily retrieve a highly similar memory from User B. The tradeoff is that strict filtering can reduce the pool of global knowledge, but it is an absolute requirement for privacy and security.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:19:47.541229+00:00— report_created — created