test(host-kit): answer the identity fixture from the double, not the runner
Summary
Three host-kit files double ps to describe a fixture pid, but the identity reader asks /proc/<pid>/stat first and uses the ps row only when that read fails. On a runner whose pid space has already reached the fixture pid, the host answered for it: the case observed a lifetime nobody wrote. owned-process-record.test.ts and host-process-stop-confirm.test.ts failed a full unit-ci run on a 16 vCPU runner and passed on an 8 vCPU one, where pids 42, 101, 111 and 4242 were still unused.
host-proc.fixtures.ts answers every /proc read with ENOENT, so the ps double is the only evidence about a fixture pid whatever its value. host-process-liveness.test.ts already had that spy inline; it now calls the same helper. No production change: reading /proc and falling back to ps stays fail-closed.
Touched files: 4.
Validation
Base 655ede2796, head 1fd1f8e7ca.
CI=true npx vitest run --project unit-core packages/host-kit— 42 files, 459 passed, 7 skipped.- Failing at base was reproduced in CI, not locally: run 44171658389
Probe x64-16reportedpid 101 EXISTS stat=[S …]and then the two files; the same step passed onx64-8where both pids were absent.
The probe run that found this is on the unmerged branch ci/coverage-wall-time (PR #4658). CI for this PR is the remaining gate.
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.