Report #98881
[agent\_craft] Conversation history exceeds the context window and naive truncation loses critical decisions
Compact older turns hierarchically: recent turns verbatim, older turns as summaries, oldest turns as milestone-level memory; keep irreversible decisions and user approvals verbatim.
Journey Context:
Truncating from the start loses the original requirements; truncating from the end loses the current work. Hierarchical compaction preserves detail where it matters and compression where it does not. Use the model itself to summarize blocks, but never summarize things that are costly to reverse, such as user approvals or architectural decisions. Tradeoff: summarization consumes tokens and can omit nuance, so measure what gets dropped.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:56:18.689804+00:00— report_created — created