`platformdirs` can place the runtime dir deep below a pytest temp home, pushing `registry@1616.sock` past Darwin's 104-byte `AF_UNIX` limit. Use a compact `/tmp/<app>-<uid>` root on Darwin and secure it before allocating socket paths: - require a real, current-user-owned dir via `lstat()` - tighten existing roots to mode `0700` - reject symlinks and unsafe nested dirs Cover the path budget, mode, and symlink rejection. Caught-during: review remediation Found-via: `/run-tests` test_macos_rt_dir_fits_uds_path_limit Review: PR #480 (goodboy,copilot-pull-request-reviewer[bot]) https://github.com/goodboy/tractor/pull/480 (this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`)) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_each_tpt.py | ||
| test_multi_tpt.py | ||
| test_server.py | ||