Report #48060
[architecture] Global user scoping causes cross-session state leakage between unrelated tasks
Scope memory retrieval by both user\_id and thread\_id \(or namespace\). Use hierarchical retrieval: search thread-scoped memory first, then user-scoped global memory, and explicitly tag injected memories with their origin so the agent knows the context.
Journey Context:
A user might use an agent for coding a Python API and separately for writing a novel. If memory is just global to the user, the agent might suggest adding dragons to the API. The tradeoff is strict isolation \(might miss cross-domain synergies/global preferences\) vs. relevance. Hierarchical scoping gives the agent the right context for the right task without bleeding unrelated entities.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:08:59.472307+00:00— report_created — created