Repository navigation
Use stable machine identity for logbook locks (T48) - #210
Merged
Merged
Conversation
This was referenced Oct 14, 2026
erickb336
marked this pull request as ready for review
October 14, 2026 02:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #101
Sage task T48
Sage identifies lock owners by a stable machine ID. A renamed machine can recover its dead lock; another machine with the same host name cannot lose its lock to local PID checks. The same rule protects waiting lock folders.
Linux reads its machine-id file; macOS reads IOPlatformUUID. Missing or invalid identity preserves new owners. Old records without the field keep the previous host-name rule. Test identity overrides work only in the Node test context and a canonical temporary directory.
This changes lock functions only. Claude PR #140's task, verdict and model changes remain separate.
Validation on
21ef64c8ed61f3bb577297046944f934fe07b21c:npm run build: passed; generated provider copies committed.npm run check: all checks pass.0f9df78: tests 5, pass 0, fail 5. They fail behaviorally on renamed/same-name ownership, waiter cleanup, recorded identity and injection gates, unavailable identities, and simulated platform identity retrieval.npm test -- --test-concurrency=1: tests 1184, pass 1184, fail 0, cancelled 0, skipped 0.Fake ps, pgrep and kill are first on PATH for every repository test. No real process list or machine ID was read. Real hardware retrieval and cross-machine shared-folder operation remain unverified.