First milestone of #404: the tree builds and type-checks for windows/amd64, every unix-only site has a named seam, and the two controls that cannot yet be honoured on Windows refuse instead of silently weakening.
What moved:
internal/storage:Stat_tblock accounting, hard-link identity, andStatfscapacity are split intostat_unix.goandstat_windows.go. Windows usesGetCompressedFileSizefor allocated bytes (so sparse and compressed files do not claim their apparent size), a handle plusGetFileInformationByHandlefor hard-link identity, andGetDiskFreeSpaceExfor capacity.stat_other.gokeeps the package building where none of that exists, reporting the disk error throughStats.DiskErrrather than inventing numbers.internal/secureandinternal/audit: the mode/uid checks move whole intotighten_unix.goandverify_unix.go, with unchanged messages and order. The non-unix halves refuse:Chmod(0600)on Windows only sets the read-only attribute andos.Statreports every writable file as 0666, so applying or verifying a unix mode there would invert the guarantee the package exists for. ACL-backed hardening is the next milestone; until it lands, a Windows build cannot create or accept a secret, and the instance refuses to start.ci/agent: free space, the cache lock, the liveness probe, and the command’s process group are behind platform files.LockFileEx/UnlockFileExgive the runner the same die-with-the-process releaseflockgives. Windows kills the direct child only: reaching grandchildren needs a Job Object, which is not implemented and is called out in the file rather than hidden.cmd/vole: the forced-command handoff callsreplaceProcess, which issyscall.Execon unix and an explanation elsewhere. Windows has no exec, andsyscall.Execthere returnsEWINDOWSwith nothing sshd can act on.server/integration_test.go: the runner cleanup usesownProcessGroup/killRunnerTreeso the tests compile for Windows while keeping the group kill on unix.golang.org/x/sysbecomes a direct requirement (it was already v0.49.0 in the graph; BSD-3-Clause is already listed inlicenses.toml).
CI gains a windows build step beside macOS binaries that cross-compiles windows/amd64 and runs GOOS=windows go vet ./.... The vet is the part that matters: it type-checks test files, which go build does not compile.
Verification: vole workflow check, then vole workflow run verify (all steps, including windows build and the race suite, in the verify image). Also GOOS=windows GOARCH=amd64 go build ./... and go vet ./..., GOOS=darwin GOARCH=arm64 go vet ./..., and the unit tests of every touched package on linux.
Out of scope, per #404: running vole serve on Windows (ACL hardening, SID ownership, Job Objects, a Windows sshd drop-in), packaging and service management, and any Windows CI beyond type-checking.