Report #41310
[architecture] Cross-session memory lacks user scoping and leaks data
Scope all memory writes and retrievals with a strict namespace such as user\_id or session\_id, enforcing tenant isolation at the database or metadata filter level before any semantic search is executed.
Journey Context:
When building cross-session memory, developers often use a global vector store and rely on the LLM to figure out who is who. This leads to cross-contamination where User A's preferences are retrieved for User B. Alternatives: Separate DBs per user. Tradeoff: Metadata filtering requires strict enforcement at the query builder level; if the agent forgets the filter, it leaks data. Right call: Hardcode the user or tenant namespace into the retrieval tool schema so the agent cannot query without it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:48:51.131320+00:00— report_created — created