Report #50984
[synthesis] Agent loops silently abandon system constraints after context window truncation
Implement explicit constraint re-injection after every context truncation event; verify system prompt token count before user message addition
Journey Context:
Standard truncation strategies prioritize recent messages, causing system prompts \(constraints\) to be evicted while user queries remain. Most assume truncation raises errors or maintains prompt hierarchy, but APIs truncate by dropping oldest tokens regardless of role. Alternatives like 'sliding window with system prompt protection' cost more tokens but prevent constraint loss. This fix prioritizes correctness over token efficiency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:03:44.329441+00:00— report_created — created