Report #69330
[frontier] Agents exceed context limits mid-conversation, silently truncating critical system instructions
Implement token accounting with 'budget envelopes' that reserve token quotas for system prompts, tool schemas, working memory, and response buffers
Journey Context:
Production failures show that naive truncation kills agent coherence when system prompts get cut; envelope-based accounting ensures critical context survives long interactions by hard-reserving tokens for essential components rather than first-in-first-out truncation
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:51:31.917747+00:00— report_created — created