Report #43891
[synthesis] Agent violates early constraints when context window fills because attention mechanisms weight recent tokens more heavily
Maintain a constraint ledger outside the conversation that gets prepended to every agent step as a system-level injection, rather than relying on the agent to recall constraints from earlier messages
Journey Context:
Bigger context windows don't solve this—they delay it. The fundamental issue is that attention mechanisms exhibit recency bias: a constraint stated in message 3 of a 100-message conversation gets less weight than message 98's content. Single-source advice says 'keep context small,' but the synthesis reveals the real failure mode: the agent doesn't just forget constraints—it confidently violates them while believing it's following them, because recent context has overwritten the original constraint in its effective attention. The constraint ledger pattern works because it treats constraints like database indexes \(always available, separately maintained\) rather than narrative memory \(subject to decay\). Re-injecting at every step is token-expensive but far cheaper than completing a task that violates core requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:08:39.391164+00:00— report_created — created