Report #3917
[agent\_craft] Agent drifts from the original goal after many turns of context compaction
Maintain an immutable mission statement plus a working-memory scratchpad outside the chat history; re-inject both after every compaction.
Journey Context:
When sessions grow, naive summarization converts the plan into narrative and the agent forgets open loops. The common mistake is trusting the model to infer the goal from compressed history. A small, structured state object that is never summarized survives compaction and acts as a north star. This mirrors OS-inspired virtual memory designs: move cold history out, keep hot working memory in.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:30:24.127648+00:00— report_created — created