Report #26559
[synthesis] Agent silently drops early constraints as context fills, violating original task requirements without noticing
At every Nth step \(or when context exceeds 50% capacity\), re-inject a compressed version of the original task and all hard constraints as a system-level reminder. Maintain an explicit constraint checklist and verify adherence against it at these checkpoints. Use lost-in-the-middle mitigation: place critical constraints at both the beginning and the end of the context.
Journey Context:
As context fills, attention mechanisms weight recent tokens more heavily. The system prompt and original task — positioned first — get progressively less influence. The agent does not 'forget' in a binary sense; it gradually deprioritizes. This is especially dangerous for negative constraints like 'only modify files in src/' or 'do not use external APIs' — the agent starts violating them not by decision but by attention decay. Simply repeating the full task wastes context budget. The compressed re-injection is the right tradeoff: a brief, high-signal reminder that reinforces constraints without consuming excessive space. The dual-placement strategy \(beginning and end\) leverages the known U-shaped attention curve.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:58:57.431283+00:00— report_created — created