HydraIssues

hydracluster reports a streaming hydraheadipad head as self-service indefinitely
open bug Project: hydracluster Parent: #663 Reporter: 17 Oct 2026 13:23

Description

What happens

A hydraheadipad head can stream for over 40 minutes while hydracluster keeps reporting it as self-service. The status never corrects itself. The head is streaming, the body is serving it, and the cluster does not know.

Measured 2026-10-17 at mobile-kit on the three-head bed (ipad-head-map-35/37/39, app v0.2.160, bodies chunky-turnip-23 and cloud-l4-euw1).

Evidence

Three heads were sent to mercator-talks by three taps on the kiosk grid. Transition log, sampled every 3s, only changes recorded:

12:34:47  FREE  cg=0          certs=19   35 self-service  37 self-service  39 self-service
12:36:17  BUSY  cg=593751559  certs=22   (+3 certs, all three paired)
12:36:21  BUSY  cg=593751559  certs=22   39 streaming
12:36:24  BUSY  cg=593751559  certs=23   (+1) 37 starting
12:36:27  BUSY  cg=593751559  certs=23   37 streaming  39 streaming

Nothing changed for the next 40 minutes. ipad-head-map-35 stayed self-service throughout.

ipad-head-map-35 was streaming. Confirmed on the glass: the owner changed the language on one iPad and the change appeared on all three screens, map-35 included. So map-35 was attached to the session and responding to it while the cluster called it idle.

live_body_id was - on all three heads for the whole period, so that field did not carry the truth either.

It is one-directional

The downward transition is fine. After DELETE /api/v1/heads/{id}/stream on all three, every head went back to self-service within 12 seconds and the body returned to SUNSHINE_SERVER_FREE with currentgame 0.

So the defect is specifically that a head's transition INTO streaming can be missed and then never reconciled.

Hypothesis, not yet verified

map-35 was the last of the three to attach, and joined a session that already existed rather than creating one. The two heads that did transition correctly were the one that created the session and one that joined early. It is worth checking whether the resume path reports a different head status than the launch path, and whether anything reconciles head status against observed body state.

The cert count also went from 19 to 23, four new rows for three heads, so one head paired twice.

Why it matters

This removes the last place an operator could have detected the double-booking in #663.

  • /api/v1/sessions cannot show it, because sessionStore.active is keyed by body id, so several heads on one body collapse into one record.
  • live_body_id on the head is empty.
  • And now head status can be wrong as well.

A venue can have three kiosks piled on one session while every cluster-side view reads normal. The only reading that told the truth was currentgame from http://<body>:47989/serverinfo, which stayed at a single value for all three heads.

Repro

  1. Put three iPad heads in one district and venue with one eligible body.
  2. Tap the same experience on all three within a few seconds.
  3. Compare head status from GET /api/v1/heads against currentgame and state from the body's serverinfo.

Not in scope here

The shared session itself is #663. This issue is only about the cluster failing to observe that a head is streaming.

Session Context

Venue
mobile-kit