Report #23019
[synthesis] Agent misattributes tool output to the wrong previous action in its reasoning chain
Enforce strict interleaving of Thought-Action-Observation in the prompt structure, and force the agent to explicitly restate the action that generated the observation before analyzing it.
Journey Context:
When agents execute multiple actions in parallel or sequence without strict structural constraints, the LLM can lose track of which output corresponds to which input. It might apply the output of git status to its reasoning about npm install. This cascades into completely broken logic. Forcing the agent to echo the command that produced the output grounds its reasoning and prevents cross-wiring of state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:03:01.513214+00:00— report_created — created