Report #36731
[frontier] Long-horizon agent tasks hit context window limits or exceed cost budgets unpredictably
Implement Hierarchical Token Treasury: allocate fixed token sub-budgets to child agents \(e.g., 2k for research, 4k for synthesis\) with mandatory semantic distillation before parent handoff
Journey Context:
The naive 2024 approach was 'use 128k context and hope.' Production failures in 2025 show this leads to 'context bankruptcy' where critical early instructions are lost in noise. The fix is OS-style resource management: a parent agent holds a 'Token Treasury' \(e.g., 10k tokens\). It spawns children with strict sub-budgets. When a child returns, its output is not raw-dumped but processed by a 'Distillation Compressor' \(small model or heuristic\) that extracts only semantically critical tokens \(novel or contradictory info\) before passing to the parent. This preserves the 'critical path' while evicting noise. Alternatives like recursive summarization lose nuance; HTBG preserves signal through hierarchical budget enforcement. Tradeoff: adds latency for compression, but prevents catastrophic context loss.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:07:34.889421+00:00— report_created — created