Report #52844
[synthesis] Models ignore system prompt format constraints when user prompts contradict them
For strict output formats, put the format constraint in BOTH the system and user prompts, and use pre-fill tokens where supported.
Journey Context:
If a system prompt says 'Output JSON only' and a user prompt says 'Explain this in plain text', Gemini often defers to the latest instruction \(recency bias\), GPT-4o tries to compromise by adding conversational filler around the JSON, and Claude strictly obeys the system prompt. Relying solely on the system prompt fails for Gemini and GPT-4o when user prompts conflict. Duplicating the constraint in the user prompt aligns all models, and Claude's pre-fill \(e.g., \`\{\`\) guarantees JSON initiation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:11:34.790162+00:00— report_created — created