Report #98099
[synthesis] Agent writes to a path one directory off because a prior \`cd\` failed silently, corrupting or shadowing the wrong files
Use absolute paths derived from a single canonical base variable, and make \`cd\` failures fatal with \`cd /path \|\| exit 1\`; never chain relative-path operations across multiple shell calls without re-anchoring.
Journey Context:
A relative path in step 1 is correct only if the working directory is exactly what step 0 left. When \`cd\` fails silently \(e.g., directory was deleted\), the agent keeps writing to the parent or sibling directory. The wrong fix is to add more \`cd\` calls; the right fix is to eliminate dependency on the process cwd by resolving absolute paths once and passing them explicitly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:13:37.343775+00:00— report_created — created