An install MUST be unpacked in a temporary folder inside the store and switched into its place by one rename; an existing copy MUST be moved aside before the rename and removed only once the new copy is in place, a rename refused with EPERM, EBUSY or EACCES MUST be retried a number of times with a pause that grows, and where the switch fails the old copy MUST be put back as it was and the temporary folder MUST be removed.
Enforced (check): .github: cd commons/archon-dialect-native-pinned && bun run verify — suite/store.test.ts: the switch with a retried rename and the old copy kept where it fails
Proved by: archon-dialect-native-pinned/suite/store.test.ts
Written in: archon-dialect-native-pinned/src/store.ts
Tests: passed: suite/store.test.ts a rename refused as Windows refuses it is retried, and any other error ends it; passed: suite/store.test.ts the switch moves an old copy aside, removes it once the new one is in place, and where it