Report #55904
[synthesis] Agent pursues hybrid of current task and previous session's unfinished goal
Implement 'Episodic Sandboxing': isolate each session's working memory \(todo lists, active goals\) with a session\_id prefix in the key-value store. At session start, explicitly clear or archive 'active goals' from previous sessions, requiring explicit user confirmation to resurrect old goals, preventing implicit retrieval contamination.
Journey Context:
Agents with persistent memory \(e.g., using vector DBs or Redis\) store 'current goals' and 'todo lists' across sessions. When a new session starts, retrieval mechanisms \(similarity search\) often surface 'related' memories, including old incomplete goals. The agent's prompt now contains both the new user request and the retrieved old goal without clear prioritization. This creates 'goal entanglement' where the agent generates a plan that satisfies neither \(e.g., 'refactor auth' \+ 'fix auth bug' becomes 'delete auth system'\). The failure is subtle because the agent appears to be 'helpfully' connecting related tasks. Simple fixes like 'clear all memory' lose valuable long-term context. The sandbox pattern isolates session contexts while allowing deliberate, explicit retrieval of old goals via session\_id namespacing, preventing accidental contamination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:19:41.226293+00:00— report_created — created