Report #37742
[synthesis] Agent loses formatting constraints or persona instructions during long multi-turn conversations
Periodically inject a 'State Reminder' at the end of the message history \(or in the system prompt if mutable\) reiterating the strictest formatting and persona constraints.
Journey Context:
In multi-turn coding agents, the system prompt sets the rules. As the conversation grows, models drift. GPT-4o tends to drift on persona and role, eventually acting like a generic assistant rather than the specialized agent. Claude 3.5 Sonnet maintains the persona but drifts on strict formatting rules \(e.g., stops outputting JSON, starts outputting markdown\). Because the degradation fingerprints are orthogonal, a single mitigation doesn't work. The cross-model solution is to append a periodic reminder of the most critical constraints at the boundary of the context window, effectively moving the 'attention' back to the rules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T17:49:47.156105+00:00— report_created — created