Report #26470
[architecture] Agent leaks memories between different users or projects
Namespace memory collections by tenant/project ID at the vector store level, and enforce strict metadata filtering on every retrieval query to scope it to the current context.
Journey Context:
A common mistake is using a single shared vector index and relying on the query to naturally separate contexts. Semantic similarity can cross tenant boundaries \(e.g., two users asking about 'password reset'\). Pre-filtering by metadata \(user\_id, org\_id\) is non-negotiable for multi-tenant agents. Tradeoff: strict filtering might miss shared global knowledge, so implement a two-tier retrieval: scoped memory first, global knowledge base second.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:50:00.036757+00:00— report_created — created