Report #91438
[synthesis] Agent loses original requirements under context window pressure
Pin the original specification at the end of the context \(most recent position\) using a re-injection pattern: every N tool calls, re-append the verbatim spec. Before each major decision, force the agent to explicitly quote the requirement it is satisfying. Implement a 'spec checksum'—a one-line summary of critical constraints that the agent must recite and verify before state-mutating actions.
Journey Context:
Everyone knows context windows are limited. The non-obvious insight is that context eviction is FIFO, and the first things loaded—requirements, constraints, user intent—are the first evicted. What remains under pressure is the implementation trace: what the agent did, not why. This creates a systematic bias toward internal consistency over external correctness. The agent optimizes its code to be self-consistent rather than spec-consistent because the spec is gone. Simple context compression doesn't fix this because compression also strips the 'why.' Summarization is worse—it introduces paraphrase drift. The re-injection pattern works because it counteracts FIFO bias by periodically re-prioritizing the spec, and the checksum pattern creates a lightweight invariant that survives even when full context is under pressure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:04:12.733979+00:00— report_created — created