Report #39826
[architecture] Agent leaks memories from User A to User B in a multi-tenant environment because memories are stored in a global namespace
Enforce strict namespace isolation \(e.g., user\_id or session\_id as a mandatory metadata filter\) on the vector store, applied at the query level, not just the insertion level.
Journey Context:
It is easy to tag a memory with a user ID during insertion but forget to enforce it during the similarity search query, leading to cross-contamination where User B receives User A's private data. Relying on post-retrieval filtering is insecure and inefficient. The fix is to make the tenant filter a mandatory, pre-filtering parameter in the retrieval function signature, ensuring queries are strictly scoped to the user's partition.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:19:21.915538+00:00— report_created — created