The rollback pack canonicalizes the source path via realpathSync.native (correct: it resolves symlinks before comparing). On macOS tmpdir() is /var → /private/var, so the test's raw legacyPath never matched. Compare against the canonical path instead. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>