Report #3705
[architecture] Agent leaks memories from one user or session into another user's context
Namespace all memory writes and queries by a strict user\_id and/or session\_id. Enforce this at the database or retrieval layer \(e.g., using metadata filtering\) rather than relying on the LLM to infer boundaries.
Journey Context:
When implementing cross-session persistence, it is easy to just query the vector DB globally by semantic similarity. This leads to catastrophic data leakage where User A's preferences are served to User B. Relying on the LLM to filter out other users' data based on metadata in the text is unsafe. The fix is hard namespace isolation via metadata filtering on every query. The tradeoff is that this prevents global knowledge sharing, so you need a separate global namespace for non-user-specific facts and a clear routing logic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:05:03.135523+00:00— report_created — created