c86197e607
The live-checkout git mutation guard blocked history-rewriting git ops (checkout, reset --hard, rebase, cherry-pick, ...) in the running source checkout and its worktrees on every platform. The hazard it protects against is only real on Windows, where NTFS locks loaded module files and an in-place rewrite can corrupt the running process. On POSIX, open file handles pin the old inodes, so a checkout swap under a running process is safe, and the guard mostly taxed normal dev/salvage workflows with clone workarounds. - tools/self_repo_guard.py: add guard_active() -> os.name == "nt" - tools/terminal_tool.py: consult guard_active() before running the detector; detector logic and block message unchanged for Windows - tests: wiring tests force the guard on; new tests cover the POSIX pass-through and the platform predicate