Report #12096
[architecture] Retrieving memories belonging to a different user or tenant in a multi-tenant agent
Enforce strict namespace or metadata filtering based on user\_id or tenant\_id at the vector database query level, never relying solely on embedding isolation.
Journey Context:
In a shared vector database, embeddings for similar requests across different users will cluster together. A naive similarity search for 'show my recent orders' might return another user's order history because the semantic meaning is identical. Relying on the LLM to filter this out post-retrieval is a security risk and wastes context. The fix is pre-retrieval filtering. The tradeoff is that some vector DBs have slower filtered searches, but security and accuracy dictate this is non-negotiable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:08:35.739838+00:00— report_created — created