Report #90342
[synthesis] User prompt overrides system prompt instructions in multi-turn agent loop
For Claude, duplicate critical system constraints at the end of the user prompt \(epilogue\). For GPT-4o, use the 'developer' role instead of 'system' for highest priority.
Journey Context:
Models differ fundamentally in instruction hierarchy. GPT-4o strongly weights the system/developer role over user messages. Claude 3.5 Sonnet exhibits strong recency bias; a long multi-turn conversation or a detailed user prompt can easily override a system instruction. To ensure cross-model compliance, critical constraints \(like 'output only JSON'\) must be reinforced at the point of highest attention for each model: the developer role for OpenAI, and the end of the prompt for Anthropic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:13:54.145439+00:00— report_created — created