Report #81447
[synthesis] Agent violates core system instructions after multiple steps due to context eviction
Inject critical system instructions and constraints into the tool call results or observation steps at regular intervals, rather than relying solely on the initial system prompt.
Journey Context:
Developers place constraints in the system prompt, assuming they persist. In long ReAct loops, the context window fills up with 'Thought: ... Action: ... Observation: ...'. The LLM naturally evicts the oldest tokens \(the system prompt\). The agent then drifts, violating constraints. By periodically re-injecting the constraints into the tool outputs \(which are always recent\), you anchor the agent's attention back to the rules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:18:11.892845+00:00— report_created — created