Report #99759
[architecture] Agent keeps answering the current task as if the previous session's project context still applies
Scope every memory read by session\_id and an explicit TTL; treat cross-session memory as an opt-in retrieval source, not implicit context. Re-hydrate only after a named lookup succeeds.
Journey Context:
The default temptation is to dump the entire conversation \+ prior sessions into the prompt to make the agent 'feel continuous.' That causes cross-session bleed: stale file paths, cancelled requirements, and old debug hypotheses leak into new work. The fix is to separate 'working memory' \(this turn/session\) from 'long-term memory' \(external store\). Cross-session facts must be fetched with a query and verified against timestamps. Most agent frameworks now store memory but do not auto-load it; retrieval should be deliberate. A common mistake is storing everything in a single vector table without session partitioning, so similarity search returns another user's or another session's facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T05:00:57.836936+00:00— report_created — created