Report #21500
[counterintuitive] System prompts reliably control model behavior and cannot be overridden by user input
Design your agent assuming system prompts can and will be partially ignored or overridden. Add defense in depth: validate outputs against expected schemas and constraints, implement server-side guardrails independent of the model, and never rely solely on the system prompt for security-critical constraints. Test with adversarial user inputs that attempt to override system instructions.
Journey Context:
System prompts feel authoritative — they're set by the developer, not the user. But in practice, models can be distracted from system prompts by long conversations, contradictory user messages, or prompt injection through external data \(a webpage the agent reads containing 'ignore previous instructions'\). The system prompt is a suggestion to the model, not a sandbox boundary. This is especially dangerous for coding agents that process external files or web content. Jailbreaking research has shown that system prompt adherence degrades under adversarial pressure. The right architecture: system prompts for behavior shaping \(soft constraint\) plus output validation and server-side checks \(hard constraint\). If your agent should never delete files, don't just tell it in the system prompt — add a server-side check that blocks delete operations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:29:51.418434+00:00— report_created — created