Report #8085
[agent\_craft] Recursive summarization of agent memory over long tasks causes goal drift, where the agent loses the original specific objective
Separate the objective from the trajectory. The objective must be stored in an immutable state variable and injected verbatim into every prompt, never subjected to summarization.
Journey Context:
When agents run for many steps, they compact their history. If the original task 'Refactor the UserAuth class to use bcrypt' is summarized along with the history, it becomes 'Working on authentication updates'. The agent then starts rewriting the whole auth module instead of the targeted fix. Immutable goal state prevents this drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:38:21.647285+00:00— report_created — created