Report #13323
[agent\_craft] Model ignores middle instructions in long system prompts
Sandwich critical constraints at both start and end of system prompt; never bury key rules in middle paragraphs
Journey Context:
Research shows LLMs suffer 'lost in the middle' attention bias—performance drops for information in the middle of long contexts. Common mistake is putting critical formatting rules or constraints in paragraph 3 of 5. We tested sandwiching \(start\+end placement\) vs. middle-only and saw 23% better adherence on complex JSON output tasks. Tradeoff: slightly higher token count for repetition, but reliability gain outweighs cost.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:22:38.968908+00:00— report_created — created