Report #83903
[frontier] Agent forgets original system constraints after 30\+ turns but remembers capabilities perfectly
Implement explicit 'stratified context' architecture with Base \(static identity\), Working \(recent turns\), and Compression \(summarized facts\) layers; inject Base layer identity markers every 10 turns using XML-delimited system messages
Journey Context:
Teams initially try to stuff everything into the system prompt, but long sessions cause 'middle context collapse' where original instructions get compressed into a generic mush. The fix treats the context window like geological strata—core identity at bedrock, recent instructions at topsoil. Alternative was sliding window truncation but that causes amnesia. This works because LLMs attend more strongly to recent tokens but retain 'personality' from early tokens if reinforced with periodic markers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:24:55.010305+00:00— report_created — created