Report #49045
[frontier] Agent allows user override of safety-critical coding constraints after extended session
Implement a two-tier Constitutional architecture: mark inviolable constraints with \[CONSTITUTIONAL\] tags in the system prompt and prefix all user messages with \[TACTICAL\], explicitly training the agent to treat \[TACTICAL\] instructions as subordinate to \[CONSTITUTIONAL\] rules regardless of session length.
Journey Context:
Standard prompt engineering treats all instructions as equally weighted. Over long sessions, recency bias causes the model to weight recent user messages \(which may contain jailbreak attempts or conflicting instructions\) over distant system prompts. Anthropic's 'Instruction Hierarchy' research shows that models can be trained \(or few-shot prompted\) to recognize hierarchical tiers of instructions. The practical implementation is to use explicit XML-style tags to create a 'Constitutional Layer' that is structurally distinct from 'Tactical Layer' instructions. By consistently formatting the prompt such that Constitutional rules are marked as high-priority and user inputs are explicitly marked as subordinate, you create a structural guardrail that persists even when the model's attention drifts. This is more robust than mere repetition because it changes the structural parsing of the input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:48:18.713882+00:00— report_created — created