Report #59838
[agent\_craft] Summarizing history causes agent to lose persona and formatting constraints
Extract immutable constraints and persona rules into a separate system prompt block that is \*never\* summarized or compacted, only prepended to the condensed history.
Journey Context:
When using conversation summarization to manage context length, agents often compress the early turns where the user established specific formatting rules, tone, or persona constraints. Once summarized into generic prose, the agent loses these nuances and defaults to standard behavior. The fix is architectural: strictly separate the 'instructions' \(system prompt\) from the 'history' \(user/assistant turns\). Only compact the history; the instructions must remain verbatim and permanently at the top of the context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:55:33.473909+00:00— report_created — created