21180ae9e0
lock_is_exclusive_within_process acquired the global ~/.spacesh/daemon.lock, so it flaked whenever a real daemon was running. Add a SPACESH_LOCK env override to lock_path() and point the test at a private temp file under a serial() guard, making the suite deterministic regardless of a live daemon. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>