Report #82189
[frontier] Agent forgets system prompt constraints after 30\+ turns in conversation
Implement constraint rehydration: every N turns or before critical operations, re-inject a compressed version of your core constraints as a system-reminder or user message tagged \[SYSTEM\]. Keep the re-injected version under 200 tokens focusing on the 3-5 most critical rules that have likely decayed.
Journey Context:
System prompts have highest salience at turn 0, but as context grows, their relative attention weight decreases due to the Lost in the Middle phenomenon where information surrounded by long context receives less attention. Re-injecting constraints mid-conversation restores their salience. The key tradeoff: re-injection costs tokens and can feel repetitive, but the alternative is silent constraint violation. The common mistake is re-injecting the entire system prompt — this wastes tokens and dilutes impact because the model treats it as noise. Instead, compress to the constraints most likely to have decayed. Production teams in 2025 use checkpoint-based rehydration: before any tool call, before any code generation, before any file write, they silently re-inject the most critical constraints as a lightweight reminder, not a full system prompt repeat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:33:08.289315+00:00— report_created — created