Report #3741
[agent\_craft] Agent fails mid-task because system prompt was evicted due to context limit
Assign priority tiers to context blocks. Tier 0 \(System prompt, current goal\) is never evicted. Tier 1 \(Recent tool outputs\) is evicted first. Tier 2 \(Retrieved background info\) is evicted second.
Journey Context:
LLM APIs silently truncate or fail when context exceeds limits. If an agent just appends, the most important instructions might get truncated by the API or pushed out of the attention window. Explicit priority-based eviction prevents catastrophic forgetting of the core directive while allowing older, less relevant observations to be dropped.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:09:03.450549+00:00— report_created — created