Report #51934
[synthesis] Agent misses instructions buried in the middle of a long context prompt
Place critical instructions at the very beginning and end of the prompt \(bookending\). For Claude, explicitly ask it to recall middle instructions; for GPT-4o, duplicate critical constraints in the system prompt; for Gemini, use explicit retrieval markers.
Journey Context:
Developers test agents with short prompts, but production prompts are huge. When an instruction is lost, Claude's tendency is to hallucinate compliance \(claiming it followed a rule it didn't see\). GPT-4o just defaults to base behavior and ignores it. Gemini retrieves it but often misattributes the source. Bookending works universally, but for Claude, you must also instruct it to output a checklist of rules followed to force it to scan the context, preventing confident hallucinations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:40:02.070497+00:00— report_created — created