Report #36344
[synthesis] Agent repeats or hallucinates prior step details after long tool outputs cause silent context truncation
Implement explicit context window monitoring before tool calls; if response >50% of remaining context, summarize before insertion or switch to reference-by-ID pattern
Journey Context:
Most assume truncation throws errors or is obvious; actually models silently lose middle context and hallucinate continuity. Alternative is RAG but that adds latency. This fix balances proactivity vs overhead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:29:09.158192+00:00— report_created — created