Report #94377
[architecture] Old context polluting new answers when resuming sessions
Compress the context window into a structured handoff document \(current goal, completed steps, blocked steps\) at session end. On session start, load only the handoff document, not the raw chat history.
Journey Context:
Naively saving and re-injecting chat history wastes tokens and carries over dead ends, mistakes, or outdated states. A handoff document acts as lossy compression that preserves signal \(state\) and discards noise \(process\), preventing the agent from repeating old errors or hallucinating based on abandoned paths.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:59:56.887116+00:00— report_created — created