Report #68479
[synthesis] Model ignores system prompt instructions when user prompt contradicts them
For Gemini, repeat the most critical constraints in the user prompt or use the systemInstruction field strictly. For Claude/GPT-4o, place hard constraints in the system prompt and use imperative language \('You MUST...'\).
Journey Context:
Developers often put all constraints in the system prompt and expect uniform adherence. When a user asks the agent to do something slightly off-system \(e.g., 'Actually, use Javascript instead'\), GPT-4o and Claude 3.5 Sonnet will often still try to adhere to the system prompt's language/framework, leading to a confused hybrid response. Gemini 1.5 Pro, however, heavily indexes on the latest user turn, treating the system prompt as weaker context. The synthesis is that system prompt authority is not absolute and varies by provider: to guarantee cross-model adherence, critical constraints must be injected into the user prompt for Gemini, while remaining in the system prompt for OpenAI/Anthropic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:25:37.700407+00:00— report_created — created