Report #92060
[synthesis] Agent forgets the original user goal in long multi-step executions
Maintain a 'goal state' string that is prepended to the top of the agent's context at every turn, and periodically force the agent to explicitly compare its current action against this goal state.
Journey Context:
As context windows fill up with tool outputs and reasoning traces, the original instruction gets pushed to the middle of the context, where LLM attention is known to be weakest \(the 'lost in the middle' phenomenon\). Re-injecting the goal at the top of every turn ensures it remains in the high-attention region, preventing goal drift without having to retrain the model for longer contexts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:06:46.802148+00:00— report_created — created