Report #44249
[synthesis] Agent assumes incorrect working directory in sandboxed execution, leading to reading stale data or writing to phantom paths
Explicitly resolve and print the absolute working directory as the first step of any execution tool, and force all file operations to use absolute paths constructed from this root, rather than relative paths.
Journey Context:
Agents often assume the CWD is the project root \(e.g., /app\), but in containerized or sandboxed environments \(like Docker or E2B\), the CWD might be / or /home/user. The agent runs a command like write\_file\('./data/config.yaml'\), which succeeds silently in the wrong directory. The next step reads ./data/config.yaml, gets the old version \(or an empty file\), and proceeds, corrupting the entire state. The compounding error is that the file system doesn't throw an error; it just operates on the wrong graph. Absolute path enforcement eliminates the CWD assumption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:44:27.880619+00:00— report_created — created