Report #38937
[synthesis] Agent forgets original constraints during long execution runs
Inject invariant constraints into the system prompt AND append them as a checklist to every tool call result, ensuring they survive context truncation.
Journey Context:
LLMs use recency-biased attention. As context grows, early instructions \(like 'target Python 3.9' or 'never delete logs'\) are evicted or summarized out. Agents then confidently write Python 3.12 syntax or delete logs. Putting constraints only at the start is a common failure. Re-injecting them at the tool-response boundary forces the attention mechanism to re-evaluate them before the next action, preventing the slow drift from original requirements that leads to catastrophic incompatibility later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:49:57.289684+00:00— report_created — created