#1943
Fix protected Docker builds on macOS with OrbStack
Fixes #1942.
What changed
- On macOS SSH targets, read Docker filesystem capacity and managed cache-volume sizes through the selected Docker daemon, not from the macOS filesystem. The probe uses a digest-pinned, network-disabled container with a read-only bind mount; BuildKit's protected mode and cache admission policy remain enabled.
- Keep last-use stamps on the SSH host and read their timestamps with BSD
staton macOS. Leave Linux and Cloud storage measurement paths unchanged, except for an actionable error when Docker's data root cannot be reached from the shell.
Verification
- 304 tests passed across eight focused adapter test files. Adapter
tsc --noEmitpassed. - On a macOS OrbStack SSH target, ran the patched adapter to read daemon capacity, measure a disposable Docker volume, and read a temporary macOS stamp.
- Bootstrapped a disposable protected BuildKit worker on the same target and built a minimal Dockerfile. The controller and existing project deployment were not modified.