Report #64077
[synthesis] Agent loop silently diverges from task objective after context window truncation
Implement hierarchical context preservation: always retain system prompt \+ task definition in a 'reserved' context slot, truncate only historical turns using summarization with semantic similarity to task goal, not just FIFO.
Journey Context:
Many truncate FIFO \(wrong\) or use summarization that loses intent. The tradeoff is between context window limits and task coherence. The insight is that standard truncation removes the 'anchor' \(task def\), not just history. Alternatives like sliding window with anchor preservation or hierarchical context \(long-term vs working memory\) solve this.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:02:32.038726+00:00— report_created — created