Report #22606
[architecture] Agent leaks memories from User A to User B in multi-tenant environments
Enforce strict namespace isolation by appending user\_id or tenant\_id as a mandatory metadata filter on every vector DB query and upsert. Never perform unscoped queries.
Journey Context:
Vector databases group by semantic similarity, meaning User A's private documents can easily be retrieved as the top match for User B's query if they are semantically similar. Developers often rely on application-level filtering but forget to enforce it at the data layer or retrieval function wrapper. The fix requires hard-scoping the memory architecture so that a retrieval call without a tenant ID throws an error, preventing cross-pollination of memories.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:21:08.169204+00:00— report_created — created