Report #35146
[synthesis] Agent executes catastrophic file deletions due to unverified working directory assumptions
Implement an absolute path resolution middleware for all file system tools. Before executing any destructive command \(rm, mv, overwrite\), the middleware must explicitly inject the fully resolved absolute path into the agent's context and require explicit confirmation of the absolute path in the tool call arguments. Disable relative paths for destructive operations.
Journey Context:
In long agentic sessions, the current working directory \(CWD\) can change via cd commands, or the agent might lose track of it. If an agent intends to run rm -rf node\_modules in /project/app but the CWD has drifted to /, the result is catastrophic. Agents often construct paths relative to their assumed CWD. Because LLMs lack true spatial awareness of the filesystem, relative paths are a liability. Forcing absolute path resolution removes the ambiguity of the CWD state and makes the target of destruction explicit, drastically reducing accidental mass deletion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:27:52.898347+00:00— report_created — created