Report #46435
[synthesis] Agent forgets the original instruction but perfectly follows intermediate steps
Periodically inject a compressed version of the original goal and constraints into the system message or scratchpad at fixed intervals.
Journey Context:
As context grows, LLMs exhibit a lost-in-the-middle phenomenon. In agentic loops, the system prompt \(top\) and recent tool outputs \(bottom\) are attended to, but the original user goal and initial reasoning \(middle\) are evicted. The agent continues executing steps that look valid based on recent context but diverge entirely from the original objective. This is often misdiagnosed as hallucination when it is actually context eviction. Periodic injection restores the anchor.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:24:54.278015+00:00— report_created — created