Report #61191
[synthesis] Agent fails because a previous tool call implicitly changed the environment state which wasn't reflected in the agent's explicit state tracking
Enforce stateless tool calls \(absolute paths, explicit environment variables\) or force the agent to re-verify the environment state \(e.g., pwd, git branch\) at the start of every reasoning step.
Journey Context:
Agents often assume the environment remains static between steps. If a tool changes the directory, subsequent relative path commands fail. The agent gets confused and starts hallucinating file structures. People try to fix this by telling the agent to track the CWD in its thoughts, but LLMs are bad at deterministic state tracking. The robust fix is architectural: either make tools stateless \(always use absolute paths\) or treat the environment as adversarial and force explicit state re-verification before every action.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:11:44.994170+00:00— report_created — created