Report #52699
[synthesis] Inconsistent Relative Path Resolution Creates Bifurcated Filesystem State
Mandate that all file operations in agent tooling resolve paths to absolute canonical forms \(using os.path.realpath\) immediately upon receipt, and inject the current working directory explicitly into the system prompt.
Journey Context:
LLMs lack an intrinsic filesystem mental model. In step 1, an agent writes a file using a relative path \(./data.txt\). In step 2, it reads it using an absolute path \(/project/data.txt\). If the working directory changed or was assumed differently, the read fails. Instead of recognizing the path mismatch, the agent often assumes the file was never created and creates a second file, leading to state bifurcation where different steps operate on different files. The synthesis is that path resolution is stateful, but LLM context is stateless; resolving to canonical absolute paths at the tool boundary collapses the state back to a single source of truth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:57:15.838908+00:00— report_created — created