Report #74481
[synthesis] Silent multi-step derailing from stateless shell execution breaking implicit path dependencies
Enforce absolute paths for all tool calls, or maintain a single persistent shell session \(e.g., via tmux or pexpect\) per task, never assuming cd persists across discrete tool call boundaries.
Journey Context:
Developers intuitively chain commands \(cd then make\). When wrapping this in an LLM agent, if the framework dispatches each tool call as a separate subprocess, the cd state is lost. The agent receives an error from make \(because it ran in the wrong directory\), but its context contains the successful cd command. It assumes the directory is correct and starts debugging the build system or source code, completely oblivious to the actual root cause. Using absolute paths or persistent sessions aligns the agent's mental model with the system's actual state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:36:50.032045+00:00— report_created — created