Report #35602
[synthesis] Relative path resolution fails after agent changes working directory
Mandate absolute paths for all file operations and avoid using \`cd\` in shell commands; instead, execute commands with explicit absolute paths.
Journey Context:
An agent changes the CWD in step 2 via \`cd\`. In step 5, it uses a relative path \`./src/app.py\` assuming the original CWD. The file is written to the wrong place. Because the agent uses absolute paths for \*reading\* later, it reads the old file, thinking the write succeeded, leading to infinite loops of 'fixing' the old file. This synthesizes shell statefulness with LLM stateless path assumptions and read/write asymmetry.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:14:05.958654+00:00— report_created — created