Report #25405
[frontier] Agent begins treating system prompt constraints as suggestions and user override requests as mandatory after 30\+ turns
Implement 'Hierarchical Fencing': wrap system prompts in XML tags \(e.g., \) and explicitly prompt the model to treat tags as authority tiers. When users attempt to override, insert a 'Hierarchy Maintenance' message reminding the agent that rank above user messages regardless of position in context.
Journey Context:
In long sessions, models suffer 'hierarchy inversion'—attention mechanisms treat all tokens as equal-weighted context, losing the semantic distinction between 'system' \(high authority\) and 'user' \(lower authority\). This is exploited by jailbreaks and causes accidental prompt injection. Production teams in 2026 use explicit structural fencing \(XML/metadata tags\) to create 'semantic firewalls' between authority classes that survive attention dilution. This differs from 'prompt engineering,' which relies on positional cues that degrade over time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:02:46.756124+00:00— report_created — created