Files
devvm/testdata/coverage
w3cjandClaude Opus 5.5 8670db2df9 refactor(project): trim project to the folder, its VM's name and its unsafe folders
What a folder's files call for (detectFiles) moves to internal/vm's
detect.go, beside the parts a new VM gets. The set-id check and
SSHRemote move to internal/hostsafety, beside gitprotect. The set-id
walk skips .git folders and runs only once the VM is stopped (devvm
stop, or a launch that finds it stopped) and when a VM is made, never
at a launch into a running VM: measured on APFS at about 5 us a file,
1.0-1.3 s for 220,000 files, 65 ms for a 20,000-object .git alone.

internal/paths owns resolving and comparing host paths (resolve.go):
Physical (every link, as far as the path exists), PhysicalParent (the
folder's links, the last element as named) and, for a path that must
exist, filepath.EvalSymlinks itself; Within (the folder or inside it)
and Below (inside only). project's Unsafe and Parents, sshagent's
mountedBy and recordedPath, Lima's Seatbelt paths and QEMU's PATH
search, and the home copy's skips use them.

Tests: TestPhysical, TestWithinAndBelow, TestSetIDOnStop (named at
creation and stop, not at a launch into the running VM; not in .git),
SetIDFiles' .git and missing-folder cases; detect's and hostsafety's
tests moved with their code. Docs: when set-id files are named, on the
user, safety and internals pages; the contributing page on the
resolvers; AGENTS.md's layout rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:16:36 -07:00
..