Report #63762
[synthesis] Agent resolves a file path in one shell context but writes to it in another, causing host/container boundary violations
Force the agent to resolve absolute paths using a 'pwd' equivalent immediately prior to any file write, and explicitly map container volumes to identical paths inside and outside the container to eliminate context-dependent path resolution.
Journey Context:
An agent runs 'cd /var/app && mkdir data'. Later, it executes a Docker command binding '-v $\(pwd\)/data:/data'. Because the Docker command runs in a subshell or different working directory context, '$\(pwd\)' resolves to the host's home directory, not '/var/app'. The agent confidently mounts the wrong host directory into the container. The container writes sensitive data to the host's unprotected directory. Agents fail to track shell environmental context across tool calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:30:45.821345+00:00— report_created — created