Report #36769
[frontier] Agent fails mid-task due to context overflow during long sessions
Enforce strict token budgets: reserve 20% system, 30% tools/schemas, 40% conversation history, 10% output buffer
Journey Context:
Naive truncation removes recent messages first, breaking task coherence. Explicit budgeting ensures critical instructions and recent context are preserved while aggressively compressing older turns via summarization. This prevents the amnesia pattern where agents forget their goal mid-execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:11:34.346316+00:00— report_created — created