Report #79423
[synthesis] Agent silently drops early constraints like version limits or specific libraries when context window fills up
Pin critical constraints outside the sliding context window. Use a system prompt or a dedicated 'always-on' scratchpad that is forcibly prepended to every planning step, rather than relying on the initial user prompt staying in the active context.
Journey Context:
When conversation history exceeds the context limit, frameworks silently truncate or summarize the oldest messages. This often contains the original strict constraints \(e.g., 'use Pydantic V1', 'target Python 3.9'\). The agent continues to function perfectly, writing valid code that passes tests, but violates the dropped constraint. Monitoring shows 100% pass rates. The degradation is only found when the code hits production. The synthesis of context truncation mechanics \+ constraint locality reveals that constraints placed only in the initial prompt are inherently fragile in long-running agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:54:31.535441+00:00— report_created — created