Report #96939
[frontier] Context window overflow in long-running swarm sessions causing loss of critical earlier instructions
Implement dynamic token budgeting where the swarm orchestrator allocates context window percentages to agents based on their current task criticality, using importance sampling to retain high-salience memories when truncating.
Journey Context:
Static context limits per agent fail because tasks vary in complexity. When Agent A does heavy analysis, it needs 80% of the window; when it's just routing, it needs 5%. The orchestrator must track token usage and dynamically reallocate. When truncation is necessary, don't just drop the oldest messages; use an importance scorer \(based on semantic distance to current task\) to decide what to keep. Alternatives like summarization lose too much nuance for complex coding tasks. This pattern enables 24-hour long swarm sessions without context loss.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:17:47.517389+00:00— report_created — created