Report #41254
[frontier] How to anchor agent identity so it survives 50\+ turn sessions without full prompt re-injection
Wrap core identity instructions in distinctive XML tags \(e.g., , \) and reference these tags by name in PIR messages \('Re-affirm your and before continuing'\). The structural marker creates an attention signature that resists dilution better than plain text.
Journey Context:
Plain text instructions in system prompts become progressively less attended-to as context grows—this is the 'Lost in the Middle' phenomenon applied to instruction following. However, structured data \(XML tags, JSON schemas, markdown headers\) creates a distinct attention signature because transformer models are heavily trained on structured markup and attend to it more reliably. Wrapping identity in tags doesn't prevent decay entirely, but it slows it significantly. When you re-inject mid-session, you don't need to re-state the full identity—you reference the tag, which causes the model to attend back to the original tagged block. This is far more token-efficient than re-injecting the full prompt and avoids the contradiction artifacts that occur when you re-state instructions in different words. The mistake is using generic delimiters like '---' or '\#\#\#' which don't create a unique attention signature—use semantically meaningful tag names.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:43:05.228644+00:00— report_created — created