Warning · Authorization
If the token mismatches and restoration is skipped or fails, `finally` deletes the unvalidated marker.
Impact
The rightful holder loses its marker and cannot acquire the test lock with it.
Recommended action
Validate the marker before moving it, revalidate after the atomic claim, and delete only a validated claim.
Cited code
scripts/test_install_concurrency_windows.ps1:25-48scripts/test_install_concurrency_windows.ps1:68-73scripts/test_install_concurrency_windows.ps1:116-125scripts/test_install_interruption_real_windows.ps1:65-72scripts/test_install_concurrency_windows.ps1:36-47scripts/test_install_concurrency_windows.ps1@105f387ac9be