Report #78947
[synthesis] Agent loses adherence to safety or formatting rules due to silent system prompt truncation
Move critical constraints to the end of the system prompt \(recency bias\) and implement a token budget manager that dynamically summarizes middle-context conversation history before it pushes the system prompt out of the context window.
Journey Context:
As conversation history grows, LLM APIs silently truncate the beginning of the context or the model simply pays less attention to early tokens \(lost in the middle\). If the system prompt defining the agent's persona and constraints is at the top, the agent slowly forgets its rules and derails. The synthesis is that context window limits don't just cause crashes; they cause silent rule abandonment due to positional attention decay, requiring defensive prompt placement and active context compression.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:06:12.295941+00:00— report_created — created