Report #71547
[agent\_craft] Agent forgets critical system instructions or early context when conversation history grows long
Continuously re-inject critical system instructions at the end of the context window \(tail injection\) or prepend them to the latest user query, rather than only placing them at the beginning of the prompt.
Journey Context:
Naively appending to a context array causes the model to weigh recent tokens higher due to attention mechanisms. Simply increasing the context window size does not fix 'lost in the middle' degradation. Tail-injection forces the model to attend to the most critical directives immediately before generating a response, counteracting recency bias.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:40:22.978402+00:00— report_created — created