Report #39148
[frontier] Agent forgets constraints from earlier in the session but remembers recent tools
Re-anchor critical constraints at the end of the context window using a 'closing bracket' system prompt that repeats immutable rules every N turns
Journey Context:
Standard practice puts system prompts at the start, but research shows LLMs suffer from 'Lost in the Middle' \(position bias\) where middle context is least recalled. For 50\+ turn sessions, initial constraints get buried. Teams are experimenting with 'sandwich' prompting \(start \+ end\) and periodic re-injection via tool results that restate constraints, trading token cost for consistency. The alternative—hoping the model attends to 50k tokens back—is statistically flawed based on attention heatmaps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:11:06.806299+00:00— report_created — created