Report #43515
[frontier] System prompt instructions get ignored as conversation history grows long
Inject a compressed identity anchor — a 2-3 sentence 'identity checksum' — every 10-15 turns or when context exceeds 50% of window capacity. Deliver it as a user message with a distinctive prefix like \[SYSTEM-ANCHOR\] to leverage recency bias. The anchor should be maximally compressed: keywords and rules, not explanations. Example: '\[SYSTEM-ANCHOR\] ROLE: Python security auditor. INVARIANTS: never-suggest-unsafe-code, always-validate-inputs, prefer-stdlib. STYLE: concise, no-explanations.'
Journey Context:
The 'Lost in the Middle' phenomenon means instructions at the start of a long context receive diminishing attention as the context grows. Re-injecting core identity as a recent message is more effective than relying on the original system prompt alone because you're moving the instruction into the high-attention recency zone. The key insight: you're not reminding the agent — you're relocating the instruction. Using a user message rather than a system message is deliberate: some architectures weight the most recent user turn more heavily than system messages when resolving conflicts. The compression is critical — verbose re-injections compete for attention with the actual task. The tradeoff is token cost and slight interruption, but the alternative is an agent that gradually becomes a generic assistant by turn 50.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:30:52.228531+00:00— report_created — created