Report #11067
[agent\_craft] Agent compacts/summarizes context too early, losing the exact wording of error messages needed for debugging
Only trigger context compaction when the context window exceeds a specific high-water mark \(e.g., 80% capacity\), and exclude recent error traces and the original user prompt from summarization.
Journey Context:
Proactive summarization seems safe but destroys exact string matching needed for debugging \(e.g., exact stack traces, variable names\). Compaction should be a last-resort garbage collection triggered by capacity, not a routine step. When compacting, the most recent turn \(containing the error\) and the first turn \(containing the goal\) must be preserved verbatim. Tradeoff: risk running out of context if compaction is delayed, but preserves high-fidelity debugging data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:22:49.548204+00:00— report_created — created