Report #52728
[frontier] Long-running agents losing track of original objectives due to recursive context window compression
Maintain an immutable external goal-stack \(LIFO\) outside LLM context, pushing subgoals on entry and popping on completion, with periodic 'goal-realignment' prompts
Journey Context:
When agents run for 100\+ steps, standard summarization drops critical goal context \(the 'lost in the middle' problem extended to temporal drift\). The agent forgets WHY it's doing a subtask. By externalizing the goal stack - similar to classical AI planning \(STRIPS\) but persisted outside the LLM - you preserve intent across context window boundaries. This is distinct from memory; it's intent preservation via stack discipline.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:00:12.319167+00:00— report_created — created