Context Rot: What Long Calls Lose Along the Way

Parloa Labs' research on long-conversation performance frames the problem less as the model "forgetting" and more as it losing track of which facts matter as the conversation grows — a pattern it calls context rot. Squadstack reports that voice calls in the 20-to-45-minute range see cost, latency, and context loss all climb together. Callbot loops are usually designed around short calls, so the slow quality collapse during a stalled handoff or a repeated verification goes unnoticed.

Tool-Call Results Fill the Window Fastest

Twilio's engineering blog notes that once a conversation crosses its token budget, the most common fix is naive truncation — dropping the oldest turns first — and it names tool-call results as the single biggest driver of context growth. In a callbot loop, a CRM or order-lookup API response lands in the transcript as raw JSON, and the system instructions or consent confirmation spoken early in the call end up pushed to the back of the queue — exactly where naive truncation cuts first.

From Design to Operations: A Context-Rot Prevention Gate Checklist

Fix the target numbers first. Trigger forced compaction the moment context usage crosses 70% of the model's available tokens, keep the compaction round-trip under 500ms, and cap calls running past 45 minutes at 5% of total volume. Recalculate these constants whenever a vendor changes its context window size — hardcode them against one model and a vendor switch breaks them silently.

The most common failure is naive truncation of the oldest turns. When the system instructions, recording-consent confirmation, or identity-verification result get dropped first, the model can either re-ask for consent or identity it already confirmed, or proceed without confirming them at all — both failure directions become possible at once.

The second failure is tool-call accumulation. Feeding a CRM or order-lookup API response straight into the transcript adds hundreds to thousands of tokens per turn, pushing even short calls past budget. The third is compaction itself dropping fields — PII, consent state — that regulation requires you to keep intact through the summary.

Design recovery around two separate pieces: a fixed slot and a rolling summary. Keep system instructions, consent state, and identity-verification results in a fixed slot excluded from truncation, and compact only the remaining turns via rolling summary. When compaction fails or its latency exceeds budget, hand off to a human agent immediately, passing the entire fixed slot along so the same verification questions don't repeat.

Pre-deployment tests should cover calls simulated past 45 minutes, a sequence of large tool-call responses (multi-KB JSON), and network reconnection mid-compaction. Call logs need four fields — context_tokens_used, context_budget_pct, compaction_count, compaction_latency_ms — so a post-incident review can tell which calls crossed the compaction boundary.

Review weekly which compaction failures and handoffs lead the pack, and adjust the fixed-slot design accordingly. When a vendor raises or lowers its context window, retune constants like 70% and 500ms within that same quarter, and keep the retuning history in a separate changelog.

Takeaways at a Glance

Context rot is a structural pattern: once a call crosses the 20-to-45-minute range, cost, latency, and context loss spread together. Lock in three things as code constants — a fixed slot that keeps system instructions, consent, and identity verification out of truncation, forced compaction at the 70% usage mark, and an immediate human handoff when compaction lags — and a call running long stops being the kind of thing that quietly breaks quality.

References

How to handle token limits in long AI support conversations — Twilio Engineering Blog
The never-ending conversation: Measuring long-conversation performance in LLMs — Parloa Labs

Ask AI about this article

The assistant has read this article. Ask anything — it answers from the text and says so when something isn't in it.

Loading the chat…