HydraIssues

Mobile kit signage: hold each screen in its configured state by itself
open feature Project: hydravenues Reporter: claude-user-71 9 Nov 2026 12:13

Description

A kit power cycle leaves every screen wrong until a person presses a button, and
the signage page reports those screens as healthy while they are blank. Four days
with the mobile kit at FTI produced the same two failures again and again. One
change removes most of the work: the service must hold each screen in its
configured state by itself, and must say plainly when it cannot.

What to build

1. A reconcile loop, one per venue, about every 30 seconds.

  • For each display with intro_enabled, confirm the app is running and the video
    is advancing. If it is not, launch the intro.
  • Never touch a display whose cast is connected.
  • Stop clearing the cast route when a display goes offline. The route is the
    operator's intent and must outlive the panel.

2. Honest health. Reachability must answer "is Hydra Signage up and showing
something", not "is a TV port open". Per display, report:

  • app running (the inspector answers)
  • video advancing (the playhead moved since the last poll)
  • cast connected, with the frame count
  • screen asleep (8001 accepts and never answers, 8002 closed, playhead frozen)

3. One state line per display on the signage page, so a host reads it without
a shell.

What FTI taught us, with the evidence

  • There is no keepalive. PlayIntro at handlers_signage.go:147 is the only
    caller of the launch path. After each of three power cycles on 2026-11-05, every
    panel sat with no app until somebody pressed the button.
  • The health check lies. It probes TCP 26101 and 8001 only. A panel with no
    app reads "online", and tv-riseof read "reachable" while its 26101 refuses
    outright.
  • A sleeping screen is invisible to every check. tv-box-intro ran the app for
    2 h 52 m with its playhead at 0.051 s. Port 8001 accepted connections without
    answering and 8002 was closed, where a lit panel answers both. No remote power
    lever exists: MDC on 1515 is open but silent, Wake on LAN does nothing, and
    sdb shell is refused. The service cannot fix this, so it has to name it.
  • Frames are not a picture. Draw the video into a small canvas and read the
    mean luma. On Tizen the local intro always reads 0 because it decodes on a
    hardware overlay, so only the cast layer can be measured this way.
  • Cast routes were lost. After the reboot routes.json held two empty routes,
    so neither VR screen had a source until it was set again by hand.
  • The sdb source address must be pinned. A panel accepts sdb only from its own
    developerIP. The host routes that force that source were kernel only and died
    on every boot. They are now saved on the experiencenet NetworkManager profile
    for all eight panels, which closes this part.
  • A code holder had no door. Fixed already, /enter shipped in v0.59.0.

Done when

A kit power cycle brings every configured screen back with nobody involved, and the
signage page names any screen it cannot fix, with the reason.

Session Context

Venue
mobile-kit

Comments (2)

claude-user-71 9 Nov 2026 12:13

Receiver-side learnings from the other hydracast window (Codex session, hydra:@95), which worked the 2026-10-21 casting incident:

  • The extension's "casting" is not proof of video. It derives that status from track state, playback state and readiness, never from advancing decoded frames, so a frozen stream still reports casting. The reconcile loop needs frame freshness on the receiver side as well as on the display.
  • A polling error inside the extension closes the relay peer connection and reports offline, while Meta's original media tracks keep running. Any recovery must preserve those tracks and the persistent login profiles, or it turns a recoverable stall into a re-login at the kit.
  • The stale casting page is still only a hypothesis. Refreshing the Meta page was never confirmed to have fixed that incident, so the reconcile loop must not treat page age as a cause.
  • video.loop === false is normal. The intro package manages its own looping, so looping flags say nothing. Judge advancing frames, and separate an asleep display from an app that needs a relaunch.

Agreed division: no second issue. This one carries both sides.

claude-user-71 9 Nov 2026 12:14

How to tell a dead cast from a dim one, same source. This decides what the loop is allowed to act on.

Three different failures, each with its own signature:

  • The headset stops casting. Watch Meta's own video element, inbound bytesReceived and framesDecoded where reachable, and track mute and ended events. A track can stay live while frames stop, so the ordering of these needs measuring rather than assuming.
  • The relay fails. Meta's video keeps advancing while the relay peer disconnects or fails, or outbound framesEncoded and bytesSent stop rising. Preserve Meta's tracks and the login profile through any recovery.
  • The scene is simply dark or static. Frames and timestamps keep advancing even though the pixels barely change.

Two rules that follow, and the second one corrects the description above:

  1. Brightness must never trigger recovery. Measuring mean luma is a diagnostic for a person reading a report, not an input to the loop. A dark game scene is indistinguishable from a dark headset by pixels alone.
  2. A connected peer must block destructive recovery, but does not count as verified playback. So the loop may refuse to act on a connected display, and must still report it as unverified until frames advance.

What to build, then: timestamped frame-progress on both sides, receiver and panel, next to the track and peer events. That locates where progress stopped without anybody touching the headset.