fix(client): confirm a companion exit before dropping its state
Problem
stopCompanionProcess reported a companion stopped in two cases where nothing proved it had left:
- the host refused SIGTERM (
EPERM, another user or an elevated process — the #3540 case); readProcessCommandreturned null, which the stop read as "not our companion".
Both then ran clearCompanionArtifacts, so stopCompanionTunnel returned stopped: true and ensureCompanionTunnel started a second companion beside the live one. On Windows Win32_Process.CommandLine is empty for an elevated or other-user process, so that door was common; POSIX hits it on a ps timeout or under hidepid.
Change
stopProcessAndConfirmExit (host-kit) takes the recorded identity — startTime and a command matcher — and signals a pid only where a claim it recorded is confirmed by a readable fact. A released pid, a zombie row, or an identity the host contradicts proves stopped; a refusal is retained with its errno; claims resting on a silent host are retained as identity-unverified without being signalled. A missing table row proves nothing, matching waitForDaemonExit. A strict liveness probe means only ESRCH releases a pid, and a non-errno fault propagates instead of reading as "gone".
The verdict's details projection and never-signalled wording sit beside it, so #3575's builder reports it identically. The companion passes state.startTime plus isCompanionTunnelCommand, removing the fail-open precheck, and drops state only on stopped.
Metro is split to #3575. Migrating stopDaemonProcess and terminateOwnedProcess is a follow-up: it needs the identity-pinned wait moved out of daemon-contracts first.
Validated: check:affected --run exit 0 at 9d7f73b5f.
Closes #3540