Report #15315
[agent\_craft] Agent hits context window limits mid-task and the API truncates the system prompt or the most recent tool output
Implement an explicit sliding window with deterministic summarization or eviction of the oldest turns. Never rely on API-level truncation; ensure the system prompt and the latest N turns are always preserved.
Journey Context:
API-level truncation is blind to agent logic—it will often drop the system prompt \(destroying the persona/constraints\) or the latest tool output \(destroying the current action\). Explicit context management allows the agent to control what is forgotten \(usually old conversational turns\) while preserving the operational core.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:46:56.133693+00:00— report_created — created