Report #102274
[synthesis] Context window pressure causes the agent to forget a guardrail it placed in step 2 and disable it in step 9
Pin guardrails and invariants outside the prompt: use a separate, immutable checklist that is re-injected before any destructive action, not a conversational instruction the model can overwrite.
Journey Context:
The common mistake is to put all instructions in one system prompt and assume the model will remember them. As context grows, attention becomes positional and compressive: middle instructions decay fastest \('lost in the middle'\). A guardrail stated once at the top of a long conversation has little chance of surviving to step 50. Alternatives include summarization \(which can drop constraints\) or re-prompting the model to remember \(which gives it another chance to hallucinate\). The robust pattern is to externalize invariants into a checklist or state object that is mechanically prepended before any irreversible operation, and to require explicit acknowledgment of each item. This turns a soft memory problem into a hard gate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:16:03.032515+00:00— report_created — created