Report #100713
[architecture] As the session grows, the agent repeats old decisions or ignores recent instructions.
Keep the system prompt and current task framing at the top, summarize or evict old conversation turns before the context window fills, and prepend a retrieved 'current state' block that explicitly overrides stale prior context. Instruct the model to weight recent context and retrieved facts over middle-placed older turns.
Journey Context:
LLMs have primacy and recency bias; information in the middle of a long context is underattended. If older turns are allowed to stay in the middle while recent turns get pushed to the end, the model may follow stale guidance. Lost in the Middle shows this is a generation-side attention failure, not a retrieval failure, so the fix is in context assembly and ranking.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T04:58:27.160452+00:00— report_created — created