Report #3920
[agent\_craft] Agent exhausts its context window because no quota is reserved for system prompt, memory, and retrieval
Define a token budget policy: fixed slices for system prompt, working memory, recent turns, and retrieved material; evict oldest retrieved chunks first.
Journey Context:
Without explicit caps, retrieval dumps and verbose tool outputs crowd out instructions. A budget policy turns unpredictable truncation into a deliberate eviction order. The insight is that different context types have different value decay: recent turns and working memory are high value, while old retrieved chunks are the cheapest to lose.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:31:23.038055+00:00— report_created — created