Report #71410
[frontier] Agent forgets constraints between tool calls in multi-step workflows
Append a condensed constraint reminder to tool call results or observations. After a file read, append: '\[Reminder: Only modify files in /src/features. Do not touch /src/core.\]' This places constraints where the agent's attention is focused.
Journey Context:
In multi-step agent workflows, each tool call result pushes previous context further back. The agent's attention is naturally focused on the most recent tool output—this is where it looks for information to decide its next step. Injecting constraints into tool outputs places them exactly where the agent is looking. This is more effective than re-injecting at arbitrary turn intervals because it aligns constraint delivery with the agent's decision points. Production teams discovered this by noticing that agents were most likely to violate constraints immediately after processing a tool result that 'suggested' a constraint-violating action. The tool output is the moment of maximum drift risk. Tradeoff: modifying tool outputs can obscure the actual result and adds token overhead. Keep reminders short and clearly delimited \(in brackets\) to minimize interference with the tool result itself.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:26:34.073011+00:00— report_created — created