Steps to reproduce
- setup
external_directory permission
- ask agent to write a file to a different drive
- agent writes files without asking
Root Cause
In a Windows environment with mixed paths (Windows, MSYS/GitBash) the Wildcard/Permission system breaks in several cases (relative paths, absolute paths / cross-drive) due to path mismatching.
#6763 fixes this via path normalization