Host clocks and timezone comparisons
Hosts shows a saved UTC clock sample, its age and uncertainty, and an estimated local time when the physical server timezone is known. The shared native, browser and desktop view uses the same telemetry. Select a host to compare the other cards with it; the selected card compares its UTC clock with the controller. Use the read-only reference control (t in native Hosts) to keep a host as reference while selecting another; T follows selection again. Timezone offset differences and UTC clock differences have separate labels. A timezone offset is never evidence of clock drift.
The display ticks locally from a stored sample and a monotonic receipt anchor. It does not poll an extra endpoint, set a clock, change timezone, or run a time synchronization service. Existing state requests bound controller-to-display delay, including native IPC. A display wall-clock jump or suspension mismatch makes the projection unavailable until the next ordinary state response. Offline or old hosts show a saved sample, not a ticking current-clock claim. Their last bounded UTC difference to the controller remains visible as a labelled historical sample; current cross-host comparisons require fresh samples on both hosts.
UTC measurement and uncertainty
Existing authenticated agent liveness/heartbeat responses carry x-devctl-controller-time, an exact controller UTC timestamp within that request. The agent records request start/end UTC and monotonic elapsed time. The complete round trip bounds the difference; symmetric network delay is not assumed. A six-millisecond allowance covers timestamp quantization and unresolved wall/monotonic sampling jitter. Long, old, missing or clock-jumped measurements remain unavailable. The controller checks the report again and keeps clock observation timestamps separate from CPU, RAM, disk and inventory observations.
A positive UTC difference means this host clock was ahead of the reference. A positive timezone difference means its zone offset is east of the reference; these are different quantities. The midpoint is an estimate, shown with its bound and sample age. It describes UTC offset at the recorded sample; it is not a frequency/drift estimate or an NTP synchronization guarantee. Unknown changes between samples cannot be predicted. Samples stop being current after45seconds. Clock metadata can still be recorded if the existing resource-metric future/stale guard rejects a skewed metric timestamp; that guard remains unchanged.
Physical timezone provenance
Container TZ, Intl defaults, and a Docker timestamp ending in Z do not identify the physical server timezone. The runtime uses native macOS OS-localtime evidence, or an already verified same-Docker-daemon physical host-proc root. The latter is supplied only after the existing complete proc/cgroup view and exact host-agent CID/PID proof succeeds. The read-only runtime method verifies this independently of allocation or Docker-default-parent policy; changing quota settings cannot create timezone evidence. Linux without that proof reports server timezone unavailable. This feature adds no host mount or privilege and does not infer readiness from a directory merely named host-proc.
The observer resolves only the physical /etc/localtime zoneinfo link, or a copied localtime file whose bytes match the named physical zonefile. Absolute links are resolved through the verified physical root, never the container's zoneinfo tree. A bounded read-only date command with an explicit TZif path observes the physical offset at its sample time; it receives no controller/provider credentials. Evidence refreshes in the background after30seconds and its monotonic age includes observation work. Telemetry returns immediately with the cached value; at most one optional probe is in flight. Stalled probes do not block heartbeats, start more probes or keep evidence current after45seconds. Unsupported or mismatched evidence is reported honestly.
The client checks its IANA timezone rules against the reported physical offset before projecting local time/DST changes. Fractional offsets are preserved. If rules differ or are unsupported, the interface formats only the physical offset sample at its own timestamp, and does not claim current local time or a current timezone comparison. The timezone observation has its own displayed age; a fresh UTC sample does not restamp cached timezone evidence. The own-card offset applies to that host’s estimated/sample local-time instant. Comparisons calculate both timezone offsets at a common controller UTC instant; they do not use the clock-skew estimate as a timezone offset.
Existing interfaces
GET /v1/state retains each authorized host's optional clock record. snapshotControllerUnixMs is a read projection anchor, not a fresh observation. get_project_runtime exposes hostClock only for the authenticated workspace's assigned host; it does not enumerate another user's hosts or start a scan. Existing operator API/MCP access to state sees the same record. There is no new endpoint or time-changing action.
The additive controller capability host-clock-v1 gates agent report fields, so strict old-controller liveness bodies remain unchanged. Old hosts simply have no clock record. Old controllers without the timestamp header leave UTC skew unmeasured. The interface preserves that distinction rather than falling back to the browser or container timezone. Deployment of these source changes and proof of actual host timezone access are separate from source validation.