HydraIssues

Telemetry reports healthy while broken: body, head and neck
open improvement Project: experiencenet Reporter: cederik 4 Nov 2026 20:50

Description

Master for the telemetry estate. The problem is not a data shortage, it is a semantics shortage. Nearly every signal answers "did my operation complete" and almost none answers "was the result correct". Then almost nothing is retained, so the few honest signals cannot be read after the fact.

A survey of seven planes found 118 gaps. Full plan, 38 ordered changes across 12 repos with file citations: https://claude.ai/artifact/GcHuAQGpeDRaHjRocNGBQx

The largest single loss, now fixed

hydrabody has marshalled kiosk_mode_enabled, audio, xr_drivers and xr_state on every heartbeat from every body for months (pkg/provider/bodystatus.go:32-36, filled at :103-107). hydrabodystatus had no field for any of them, its JSON decoder ignores unknown keys, and the agent received 200 OK. Confirmed absent at v0.4.0, v0.3.7 and v0.3.6. Three subsystems were invisible fleet-wide while the data arrived every 30 seconds.

Worst findings per plane

  • Neck: no per-tunnel telemetry at all. One signal exists, hydraguard's handshake string, it is never stored, and the dashboard derivation reads healthy for an hour after a tunnel dies. hydraneck handleWGStatus and handleWGSetup return 200 OK with {"status":"not_implemented"} (pkg/api/handlers.go:268-299). pkg/glinet/wireguard.go:219 returns (false, nil) on firmware with no wgclient entry, a hard false negative.
  • Nothing could ever have named the MTU mismatch that stalled video. Small packets keep passing, a handshake is small, the head's WireGuard check is a TCP connect whose SYN is about 60 bytes, byte counters climb because the stream retries, and MSS clamping rewrites TCP while the video is UDP. Every signal in that path is structurally blind to the fault.
  • Body: the process exit code is fetched and discarded on the next line (hydrabody pkg/provider/processmanager_windows.go:67-92). KioskController.Status() computes observed kiosk state and only IsEnabled() is sent, so a dead overlay reads enabled.
  • Heads: hydraheadflatscreen is the workhorse and discards moonlight-qt stdout and stderr and swallows 13 heartbeat error returns. hydraheadquest already measures rtt, variance, fps in and fps rendered and drop percent in StreamDiagnostics.java and reports none of it. No head version check exists anywhere: hydracluster pkg/versions/poller.go does not list the iPad, Quest, flatscreen or Samsung heads.
  • Audio: hydravoice writes no log file, so its history dies with the process. hydrabody polls it only while a stream is up.

Security item, separate from telemetry

hydrabody pkg/provider/httpserver.go:57 is fmt.Sprintf(":%d", httpServerPort), a wildcard bind on an internet-facing fleet. Any status endpoint added there publishes slot layout, display ids, pids and log paths, so the bind must be narrowed in the same commit, never after.

Design decision

Spine is incremental: widen the heartbeat that already runs, compute the verdict centrally from freshness plus counter deltas plus want against got, and notify through the issue tracker's existing POST /report filed by hydrabodystatus, which is the only body-plane component that already holds the venue id. No new per-body daemon, which respects #867: control central, data local.

Five primitives are grafted from a rejected contract-first design, because the incremental plan otherwise patches "absence rendered as zero" five separate times with five different shapes, which is how the estate got five different ways to lie. Obs[T]{value,state,at,err} as a real generic, Counter{value,epoch,since}, one Fresh(), the four states observed/declared/unknown/unsupported with the classification held centrally and never self-declared by the reporter, and log_paths[] in the heartbeat so the log index is generated rather than maintained.

13 proposed elements were killed before merging. Two worth recording: a single composite "serviceable" bit would have emptied the eligible pool and caused a fleet-wide outage, so eligibility is per capability with unknown last-resort eligible; and a do-not-fragment MTU probe cannot work on iOS, because Network.framework does not expose IP_DONTFRAG and inside a NEPacketTunnelProvider the app does not control the outer packet, so it survives only as a plain payload ladder that exploits WireGuard dropping rather than fragmenting an oversized inner packet.

Known limits after the full plan

  • There is still no session-scoped timeline. Three event stores, no service owns a per-visit question, and agent clocks are unreconciled. Joining head events to body events for one visitor stays manual.
  • The Unreal experience stays opaque. It is a Shipping build, so UE_LOG is compiled out and there is no application log to collect. A Development build for the test bed is an ask to Soulmade.
  • Several signals still lie, recorded in the plan. Example: alvrDriver.serving() is a registered driver OR a running vrserver.exe, so a crashed compositor and a host with no HMD both report serving.

Provenance

Ten agent workflow, run wf_2fafdfed-959. Deployed trees read by tag, not working checkouts: hydravoice v0.5.1, hydraheadipad v0.2.176, hydraneck v0.18.6, hydrabodystatus v0.4.0. Live counters measured on cosmic-pretzel-98 in venue cloud-seven.

Related: #867 content plane, #1112 Mercator inactivity timer.

Session Context

Venue
nbg1-dc
District
eu-nbg1

Comments (1)

cederik 4 Nov 2026 20:54

Step 1 is committed and on main, but the release is blocked on a credential, not on code.

Done (hydrabodystatus main, commit adbfd20, tagged v0.5.0): the heartbeat now receives, stores and renders kiosk, audio and XR. 8 files, 537 insertions, no deletions, additive to the contract. Every new bool and counter is a pointer so an unreported value renders as unknown rather than as a confident false or zero. 6 tests added, including a golden hydrabody payload decoded with DisallowUnknownFields, and a template test that pins a reported false rendering as "no" while an unreported field renders "unknown" (a Go template counts any non-nil pointer as true, so a bare {{if}} would have shipped a new lying signal inside the fix for lying signals).

Release v0.5.0 FAILED, run 41910439277, and the tag is therefore not a release. Two independent failures, neither caused by the change:

  1. Run tests failed before compiling anything. Every cederikdotcom/hydra* module is private and release.yml had no module authentication, so the fetch fell through to an unauthenticated git ls-remote: reading github.com/cederikdotcom/hydraapi/go.mod at revision v0.2.0: fatal: could not read Username for 'https://github.com'. internal/store, internal/web and docs still built, because they import only the standard library and yaml, which is why it reads as a test failure rather than a credential failure. Last green run was v0.4.0 on 2026-08-04 and no release has been cut since, so nothing exposed it until now.

  2. Log in to the scale registry failed on the stale SCALE_REGISTRY_TOKEN, which is #822. That blocks only the container image. The live service reports v0.4.0 with 65 days uptime and latest.json offers 0.4.0, so the binary lane is what serves production.

Fixed in commit 8ace157: release.yml now carries the same Configure private Go modules step hydrabody and hydravoice use, and it fails with a clear message when the secret is missing instead of leaving the next person to decode a credential prompt. CLAUDE.md now lists all three required secrets.

Blocked on: GO_PRIVATE_TOKEN is not set on cederikdotcom/hydrabodystatus. The repository has only HYDRARELEASE_PUBLISH_TOKEN and SCALE_REGISTRY_TOKEN. A secret value cannot be read back from another repository, so this needs a human:

gh secret set GO_PRIVATE_TOKEN --repo cederikdotcom/hydrabodystatus

with read access to hydraapi, hydraauth, hydrarelease, hydraserve and hydrawebcomponents. After that, tag v0.5.1. v0.5.0 stays where it is; a published tag is never re-pointed.

Worth recording as its own finding: a release lane that has not run for three months is itself an untested signal. This repository's CI was broken from 2026-08-28 and looked fine because nobody cut a release.