0002 — Go for the backend services and the agent
Context (observed). 8 of 28 reachable Macs have neither Homebrew nor Node; the gateway is linux/amd64; the nodes run macOS 26 and 27 on M1…M6. The agent must be installable everywhere with no runtime.
Options. (a) TypeScript/Node backend + a separate agent language; (b) Go everywhere; (c) Swift agent.
Decision. Go 1.26 for control-api, telemetry-ingest, action-orchestrator, mccctl and mcc-agent, in one module. One static binary per component, cross-compiled (CGO_ENABLED=0). The wire protocol and its cryptography (internal/protocol) are compiled into both sides, so they cannot drift.
Why not the others. Node would require installing a runtime on every node or maintaining two languages for the protocol; a Swift agent would not run on the Linux gateway.
Consequences. macOS system metrics are read through documented interfaces reachable without cgo (sysctl, host statistics via pure-Go bindings, ioreg, launchctl); anything that needs private frameworks or root is reported as unsupported (ADR 0007).