Report #48267
[synthesis] Agent silently deviates from original goal after 5\+ tool use iterations despite no explicit errors
Implement a 'goal restatement' checkpoint every 3 tool calls that explicitly re-queries the original user intent against current context; truncate intermediate tool outputs older than 2 steps from working memory
Journey Context:
Standard agent loops accumulate tool outputs in the context window indefinitely. While each individual output appears relevant, the cumulative effect shifts the model's attention distribution away from the original user query toward recent tool-generated content. This isn't a hallucination—it's a subtle attention drift. Simple truncation fails because it might remove critical intermediate reasoning. The checkpoint approach forces an explicit re-alignment before drift accumulates, while selective retention prevents context poisoning from old tool outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:29:57.400123+00:00— report_created — created