Report #17541
[agent\_craft] Naive sliding window context management deletes critical prior steps needed for backtracking
Use structured compaction \(summarization of completed sub-tasks\) rather than simple truncation of the oldest messages. Keep a stack of active goals and completed summaries.
Journey Context:
A simple sliding window drops the oldest messages. If an agent is working on step 10 of a refactor, dropping step 1 \(the original error message\) means it loses the plot. Structured compaction—where the LLM summarizes what it has done so far and what the remaining goal is—preserves the semantic intent while shedding the token cost of the raw trajectory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:43:49.710960+00:00— report_created — created