Report #1802
[agent\_craft] Agent ignores early instructions or facts in long conversations \(context rot / lost in the middle\)
During any compaction or summarization step, re-inject critical constraints and task definitions as a preamble at the TOP of the compressed context. Never rely on the model attending to buried original instructions. Structure your context so that essential facts occupy the first and last positions in the window.
Journey Context:
The 'lost in the middle' phenomenon demonstrates that LLMs disproportionately attend to the beginning and end of long contexts, with significantly degraded recall for information in the middle. Agents that naively append to conversation history gradually bury their original task constraints under layers of exploration and tool output. The common wrong fix is to simply shorten the context or increase the window — both miss the point. The structural fix is to treat context as a managed data structure with reserved positions: preamble \(immutable constraints\) at the top, working area in the middle, and a recap/next-steps block at the bottom. Every compaction pass must rebuild these boundary regions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T08:31:53.640813+00:00— report_created — created