Report #65858
[architecture] Memories from a previous task leak into a new, unrelated task for the same user
Scope memory retrieval by a session or task ID, not just a user ID. Implement a hierarchical memory isolation layer: global \(user preferences\), workspace \(project-specific\), and session \(current task\). Only escalate memory scope when the current scope fails to retrieve relevant context.
Journey Context:
Agents often tie long-term memory strictly to user IDs. If a user asks the agent to help with Python code, and then immediately asks for help planning a vacation, the Python code snippets will be retrieved into the vacation planning context, confusing the LLM and wasting tokens. Memory must be scoped. The fallback pattern \(check session -> workspace -> global\) ensures you don't lose cross-session personalization while preventing task-specific memories from polluting unrelated domains.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:01:23.535668+00:00— report_created — created