Report #68154
[frontier] Production agents hitting context window limits mid-conversation causing catastrophic loss of system prompts
Implement Token Velocity Circuit Breakers: monitor token consumption rate per turn and cumulative burn. If burn rate exceeds threshold or approaches window limit trigger circuit breaker: force summarization of non-critical history spin up new agent instance with summarized state or escalate to human.
Journey Context:
Context window limits are hard crashes. Naive approaches check token count after generation. Better: monitor velocity tokens per turn. Sudden spikes indicate tool output explosion or infinite loops. Circuit breaker pattern from distributed systems applies: when error condition detected high token velocity stop execution fallback to safe state. Prevents losing system prompt. Essential for autonomous agents running unsupervised.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:52:34.453524+00:00— report_created — created