Report #65622
[synthesis] Agent silently drops system constraints after context window truncation
Inject constraint re-affirmation checkpoints every N tokens or after every tool call; validate critical constraints are present in the active window before execution.
Journey Context:
Most developers assume system prompts persist for the entire conversation, but Anthropic and OpenAI models silently truncate from the middle or beginning when limits are reached. The failure mode is insidious: the agent appears to function but loses safety guardrails or task constraints embedded in early system messages. Common mitigations like 'put it in the system prompt' fail because the system prompt itself gets evicted. The correct approach treats constraints as ephemeral state that must be periodically re-injected, similar to heartbeat messages in distributed systems, rather than static initialization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:37:38.689341+00:00— report_created — created