Report #12516
[agent\_craft] Simple sliding window context management accidentally deletes the system prompt
Pin the system prompt and the most recent user objective. Apply FIFO truncation only to the intermediate agent scratchpad and tool history.
Journey Context:
Naive context truncation treats all tokens equally. But the system prompt defines the agent's persona, constraints, and output format. If it's dropped via FIFO, the agent degrades into a base chatbot and breaks formatting. Context managers must have a priority system: System > Current Objective > Recent Tool Calls > Older History.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:14:34.920571+00:00— report_created — created