AI tried to fix this
Created the worktree filesystem wrapper and applied validPath to mutating operations.
The AI change was a real security patch, but it left the same advisory reachable.
Missed: validPath did not reject an existing leading symlink.