Report #90566
[synthesis] Framework abstraction leaks degrade instruction following when system prompts are placed in user messages
Ensure the agent framework routes system instructions to the dedicated system parameter for Anthropic, and the system role in the messages array for OpenAI. Never fallback to a user role for system prompts.
Journey Context:
Many agent frameworks flatten the conversation history into a generic array. When interacting with Claude, if the system prompt is passed as a user message instead of using Anthropic's dedicated system API field, Claude treats it as conversational context rather than a foundational directive. GPT-4o is more forgiving, often treating a high-priority user message as a pseudo-system prompt. This asymmetry causes Claude to ignore formatting or persona constraints much earlier in the conversation than GPT-4o.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:36:27.448960+00:00— report_created — created