Report #49591
[synthesis] Catastrophic tool calls cascade from a single wrong state assumption like wrong CWD
Always inject state-verification commands \(like pwd\) as implicit prefixes to any file-modifying tool calls, and require the agent to verify file existence via absolute paths before writing.
Journey Context:
An agent assumes it is in the project root, but is actually in a subdirectory. A 'file not found' error triggers a 'fix' where the agent creates the file, polluting the filesystem. Subsequent commands run in the root interact with the wrong files. People try to fix this by giving the agent a 'cd' tool, but agents forget to use it. The right call is to make state verification implicit and force absolute paths, removing the reliance on the agent's internal state model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:43:20.137674+00:00— report_created — created