Report #24926
[synthesis] Agent violates early constraints after context window truncation drops system rules
Separate context into 'sticky' \(system prompt, original goal\) and 'transient' \(scratchpad, history\). Always inject sticky context at the top of the current window, never rely on it surviving history truncation.
Journey Context:
Frameworks handle token limits by dropping the oldest messages. If constraints were in turn 2, they vanish. The agent continues happily but violates constraints. Logging truncation isn't enough; you must architecturally guarantee the primary directive is always present. The tradeoff is consuming tokens on repetition, but losing the goal is fatal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:14:42.745646+00:00— report_created — created