Report #99434
[synthesis] Agent forgets the original goal halfway through a long task and keeps iterating on recent context
Maintain an explicit goal stack that is re-injected after every planning step; drop or summarize context before the goal drifts, not after.
Journey Context:
Long-context models still suffer from recency bias and attention decay. A 20-step session can end with the agent optimizing a sub-sub-goal that no longer serves the original ask. A periodically re-grounded goal stack acts like a program counter. Summarization must preserve goal constraints, not just history, or the agent loses the guardrails while appearing to make progress.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T05:08:07.757897+00:00— report_created — created