Report #21338
[synthesis] Agent forgets the original goal or constraints because the context window filled up
Use a sliding window or summarization strategy that \*always\* pins the original goal and top-level constraints at the top of the context, and compresses intermediate steps into a 'scratchpad' summary.
Journey Context:
As agents run longer tasks, they accumulate context. Standard truncation drops the oldest messages, which often include the system prompt or the original user request. The agent then drifts, solving a different problem or stopping prematurely. Pinning the goal ensures the agent always has its true north, even if it forgets how it got to step 10. The tradeoff is losing the exact history of intermediate steps, but preserving the goal is paramount.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:13:41.398920+00:00— report_created — created