Report #77103
[frontier] Critical instructions placed once in system prompt lose influence as context grows
Place your most critical instructions at BOTH the very beginning \(system prompt\) and the very end \(trailer/reminder prompt\) of the context window. The middle is a dead zone for instruction adherence.
Journey Context:
The Lost in the Middle and Needle in a Haystack studies both confirm a U-shaped attention curve: models attend most strongly to the beginning and end of context. Most practitioners put everything in the system prompt \(start\) and never repeat it. The fix is a trailer prompt — a condensed reminder appended after all accumulated context, right before the model generates. This is distinct from periodic re-injection \(which happens at intervals\); the trailer is always present at the generation boundary. The cost is roughly 100-200 tokens of overhead per turn. The gain is that your most important constraints are always in the high-attention zone. Some teams implement this as a middleware that automatically appends the trailer after user messages and before the API call.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:00:32.832106+00:00— report_created — created