feat(daemon): report the host CPU architecture in /health
Summary
/health now reports hostArch, the machine's native CPU architecture: the one its simulators run by default. A proxy reports its own machine and passes the daemon's through in upstream; readRemoteDaemonHealth parses both.
Use case: Stim builds iOS simulator apps on one machine and installs them on a remote Mac through agent-device proxy or EAS Simulator. Without a remote UDID, xcodebuild compiles arm64 and x86_64 (285 s / 341 MB, against 151 s / 172 MB for arm64 only). With upstream.hostArch, the client builds one slice.
host-kit readHostCpuArch resolves it once per process: on macOS, sysctl -n hw.optional.arm64 is 1 on Apple silicon even under Rosetta; otherwise process.arch, with x64 named x86_64.
The same helper now picks the Mac runner's platform=macOS,arch= destination, which previously came from the Node process's process.arch, and the -arch of the simulator bridge and fold helper builds, which came from uname -m. Under a Rosetta Node both said x86_64 on an arm64 Mac. The runner's sync destination code reads the same cached value through readHostCpuArchSync.
Compatibility: hostArch is optional, so rpcProtocolVersion stays 2 under ADR 0006; the wire ledger acks are updated.
Closes #3047, and fixes the Rosetta arch choice in the Mac runner and simulator builds.
Validation
At 01804591b, pnpm check:affected --base upstream/main --run passed (634 files, 4803 tests). Unit tests stub Node as darwin/x64 with sysctl 1 and assert arm64 for /health, the three Mac runner destinations, the toolchain identity and a sync-first readHostCpuArchSync.
Live on Apple silicon (no Rosetta installed, so the x64 Node path is unit-tested only):
{"ok":true,"service":"agent-device-proxy","version":"0.21.16","rpcProtocolVersion":2,"instanceId":"a155cf1f-…","hostArch":"arm64","upstream":{"ok":true,"service":"agent-device-daemon","version":"0.21.16","rpcProtocolVersion":2,"instanceId":"2ddc17cb-…","hostArch":"arm64"}}