Comprehensive audit of machine ID implementations across the
agent codebase. Identified 3 production call sites with 1 critical
divergence.
Key findings:
- F-D1-1 HIGH: Registration fallback "unknown-"+hostname is unhashed,
mismatches runtime SHA256 hash, causes permanent agent lockout
when GetMachineID() transiently fails then recovers
- F-D1-2 MEDIUM: No recovery path from machine ID mismatch
- F-D1-3 LOW: example_integration.go is dead code calling
machineid.ID() directly (bypasses canonical hashing)
- F-D1-4 LOW: Windows redundant machineid.ID() retry
- F-D1-5 LOW: client.go uses fmt.Printf for machine ID error
6 findings total. See docs/D1_MachineID_Audit.md for details.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>