Report #35244
[synthesis] Agent executes wrong objective when original goal is pushed out of context window by intermediate reasoning
Insert non-compressible goal anchors \(e.g., XML tags with checksums\) at start and middle of context; require agent to quote goal checksum before final tool use
Journey Context:
Standard prompt engineering assumes that stating the goal once at the beginning is sufficient. However, 'Lost in the Middle' effects \(arXiv:2307.03172\) show that middle positions are recalled worse than end positions. When agents generate long chain-of-thought, they push the original goal out of the attention window. The agent then hallucinates a plausible goal based on recent context. Simple 'reminder' prompts fail because they add to length. The solution treats the goal as data with integrity checks, not just natural language.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:37:53.740463+00:00— report_created — created