fix(host-kit): keep Linux process identity stable across clock steps

Merged
PC
3d ago
+258-18

Summary

Fixes #4437. Keep Linux process identity stable across wall-clock steps using boot ID and kernel start ticks. One shared comparison treats legacy timestamps and Linux tokens as incomparable, preserving daemon drain waits, owner locks and browser records. Fourteen files: identity consumers and reuse fixtures.

Validation

Head 60ecdaa0250e18f793956d1926844df1dcca6e3d, based on 80075b6. Focused tests: 131 passed, one real-/proc test skipped on macOS. Four isolated regressions fail before the comparison fix and pass after it. Independent review found no remaining production-code blocker; documentation requests are addressed.

Coverage failed at 8e977aa on four stale-format reuse fixtures and an unexpected daemon launch. This commit corrects the four fixtures without changing assertions or timeouts. Ubuntu Coverage passed at this head: all five failures are gone. The full unit-ci lane includes the unmocked /proc test, enabled on Linux.

Exact affected validation at this head passed format, lint, types, layering, Fallow and build, then failed an iOS recording provider-test timeout (405 related tests passed). The earlier receipt passed all 406 related tests, then failed two unit timeouts. Full-unit base failed at four different tests; timeout attribution remains unproven. Six current-head checks succeeded; six draft entries skipped. Marked ready for review to run the remaining lanes.

Rollout

Upgrade all installations sharing a Linux host together, including global and project-local installs. Older binaries can misclassify new-format owners and reclaim locks. New binaries retain incomparable owners. On Linux, the new CLI refuses to signal a daemon recorded in the old start-time format, so agent-device daemon stop does nothing for it: stop each running daemon with the old binary (or end its process) before upgrading. This cannot repair old binaries.