Report #35526
[agent\_craft] dynamic context injection pushes system prompt rules out of attention window
Separate the system prompt into a static constitution always at the top and a dynamic scratchpad appended at the bottom or in a separate user turn. Never overwrite core rules with dynamic state.
Journey Context:
When agents update their context with retrieved docs or tool outputs, they often append it to the system prompt. As this grows, the model's attention shifts almost entirely to the new text, causing it to 'forget' its persona, output format, or safety constraints. Keeping the constitution strictly isolated and prioritized prevents instruction drift.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:06:02.287718+00:00— report_created — created