HydraIssues

One experience, one platform: the catalog shows the same game twice and the cluster can route a head to a body that cannot run it
open bug Project: experiencenet Reporter: 14 Nov 2026 16:38

Description

An experience record serves exactly ONE operating system, so the same game needs one record per platform. A visitor sees two tiles for one game, and the cluster can send a head to a body that cannot run the tile it picked.

What is in place today

hydrabody compiles a different gate per platform, and each drops the other platform's path:

// pkg/provider/experience_paths_other.go
func experiencePathSupported(path string) bool { return filepath.IsAbs(path) }
// pkg/provider/experience_paths_windows.go
func experiencePathSupported(path string) bool { return !strings.HasPrefix(path, "/") }

There is a single exe_path on the record, so a Windows path is skipped on a Linux body and a POSIX path is skipped on a Windows body. This is deliberate and it is documented in hydrabody docs-linux-body.md. It is also the cause of #805, where a Linux run.sh reached a Windows body.

To put WoW: Forever on a Linux body on 2026-11-14 I therefore had to create world-of-warcraft-linux beside the existing world-of-warcraft. Same game, same build, two records, two tiles.

Why this is not only cosmetic

End users do not know or care what operating system a render body runs. They should not have to, and they cannot: the cluster holds the lane on the first body with room (hydracluster docs/design/body-allocation-and-pairing.md, #663/#711), and a head is correctly forbidden from choosing a body.

So nothing links the tile a visitor taps to the platform of the body they will be assigned. Pick the Windows tile and land on a Linux body and hydrabody drops the app. Sunshine has nothing registered, and the failure is silent: no tile-side error, no launch, a stream that never starts. Today this is masked only because almost every body is Windows.

The duplicate-tile problem grows with every Linux body, and the mis-route problem grows with every mixed-platform venue.

Proposed shape

One experience, many platform paths. Concretely:

  1. Replace the single exe_path with a per-platform map on the record, for example exe_paths: {windows: "C:\\...\\Wow.exe", linux: "/opt/hydra/experiences/wow-forever/run.sh"}. Keep exe_path working as the windows key so nothing breaks on the way.
  2. hydrabody selects the entry for its own GOOS and keeps the existing os.Stat check (sunshine.go:340) for whether the build is actually installed. The platform gate then means "this experience does not support my OS" instead of "this path looks foreign".
  3. The catalog shows ONE tile per game. A head is offered the experience if ANY body in its venue can run it.
  4. Body discovery filters on the platforms the chosen experience declares, so the cluster never hands a head a body that will silently drop the app. This is the part that makes it a correctness fix rather than a tidy-up, and it needs the experience to be known at allocation time.

Secondary, same area, cheaper to fix

An experience installed by an EXTERNAL installer rather than our build pipeline (Battle.net here, Steam elsewhere) has no build and never will, but handleLiveExperiences drops any non-local experience with production_build == 0, so it never reaches a catalog. The existing world-of-warcraft works around this by carrying production_build: 1, a sentinel for a build that does not exist, and I had to copy that to get the Linux record served.

#833 already fixed exactly this reasoning for stream_mode: local, with a comment saying production_build 0 is "correct and final rather than a build is owed". The same is true for body-side external installs. Either extend that exemption to records that carry an exe_path and no build, or make the sentinel an explicit field so it is honest.

Evidence

  • world-of-warcraft production_build 1, exe_path C:\Program Files (x86)\World of Warcraft\_forever_\Wow.exe, served live.
  • world-of-warcraft-linux created 2026-11-14, exe_path /opt/hydra/experiences/wow-forever/run.sh, scoped to district bxl1-test-2 venue mobile-kit, needed production_build 1 before GET /api/v1/experiences/live would return it.
  • Linux body omarchy-body (node-879e0eec), Omarchy on a GCP L4, hydrabody v2.1.5.
  • Head cranky-toaster-86 (node-5e0ea2c8), hydraheadflatscreen v2.8.0.

Session Context

Venue
mobile-kit