Read this whole issue, then the SEQUENCE comment below it, then the one issue the sequence tells you to start on. You do not need any other background.
Three masters stand between the fleet today and XR streaming that a venue can run unattended:
#544 is the deliverable. #781 makes XR streaming work at all. #663 makes it work when more than one headset is in the room.
A head is a device a person looks through or touches: a Quest headset, an iPad, a flatscreen kiosk. A body is a machine with a GPU that runs the actual experience and encodes video. hydracluster is the control plane: heads and bodies both talk to its HTTP API, and it decides which head gets which body. A head enrolls once by QR, then polls the cluster for its experience catalog, asks for a free body, and streams from it. Heads are outbound clients only, they run no listener and no hydranode. Bodies run hydrabody, an agent that polls the cluster, installs experiences, and starts and stops the streaming server.
Flat lane: ordinary 2D video. Sunshine runs on the body, Moonlight runs in the head. This is live in venues today and is not what this program is about.
XR lane: immersive 6DoF for a headset. This needs a VR driver. The three drivers are peers: alvr, wivrn, picobusinessstreaming. Sunshine and Moonlight are the flat lane and are not drivers. This distinction was ruled by the owner and the code follows it: a body advertises xr_drivers as a list, a head reports what clients it has installed, and the cluster matches on the intersection.
picobusinessstreaming is for Pico headsets. The owner has parked Pico. Do not start it.One asymmetry explains several issues: the ALVR body dials the client, the WiVRn client dials the body. That is why ALVR needs an xr_client_hostname configured on the head and WiVRn does not (#787), and why WiVRn needs a pairing PIN instead (#784).
PyroWave is an intra-only wavelet codec written in Vulkan compute shaders (upstream Themaister/pyrowave, MIT). It encodes and decodes in under 0.1 ms at 1080p and is built to actually spend a 200+ Mbit/s link, which H.264 and H.265 hardware encoders will not do. It codes 64x64 blocks independently, so packet loss degrades gracefully instead of smearing. We carry it in our WiVRn fork.
This already works. PyroWave streams end to end from an Omarchy Linux body to a Quest 2 at about 98.7 Mbit/s per eye. The validation experience is HelloHydra XR, our branded build of Khronos hello_xr. So the codec, the fork, the packaging and the cluster matching are all proven. What is missing is the automation around them, which is what this program is.
hydrabody's XR state machine does not exist on Linux. The engine is 953 lines in pkg/provider/alvr_windows.go behind //go:build windows, and pkg/provider/alvr_other.go stubs it out to no-ops on every other platform.
So today a Linux body truthfully advertises xr_drivers:["wivrn"], the cluster matches a head to it and writes a session directive, and the body never reads the directive. wivrnArm exists, compiles, and is reached by no code path. The head waits for the body to report armed until it times out.
That is #782, and it is why the sequence starts there.
| Repo | What | Language | Default branch |
|---|---|---|---|
hydrabody |
Body agent. Polls the cluster, manages experiences and the streaming server | Go | master |
hydracluster |
Control plane and HTTP API. The authority on allocation | Go | main |
hydraheadquest |
Quest head app | Kotlin + Java, NDK | master |
hydra-wivrn |
Our WiVRn fork, carries PyroWave | C++ + Vulkan | master, work on pyrowave |
hydrahelloxr |
HelloHydra XR, the validation experience | C++ | master |
Branch names differ per repo. Check before you push.
docker run and never deploy by hand.wivrn. A recipe installs it.GOOS=windows go build ./... and GOOS=linux go build ./....df -h / before a build. Never put build output or caches in /dev/shm.msi1060, an Omarchy machine in the mobile-kit venue. Test headset is a Quest 2 reachable over hydraadb.bxl1-test* districts only. Never on production bodies or production heads.nodes.yaml. Both cut the exec channel you are standing on.Mostly yes. Full detail and the ordering constraint are in the SEQUENCE comment. In short: three work fronts are genuinely independent, and there is exactly one collision, #788 extends the storage that #663 exists to delete. The ruling is to land #788 anyway because it is two fields and the head clients are blocked on it, then treat it as known rework inside #663.
#388 and #734 are historical roots. Everything live has moved out of them. #734 keeps the delivered phases #737 and #743 as the record of how the lane was built.
It was written before several owner rulings and now contradicts them. It needs a grooming pass: the title still says HMS-managed, which the no-Meta ruling killed (#739); #561 is a WiVRn spike that already landed as #388 and #734; #559 Pico is parked; #557 assumes unstarted picobusinessstreaming; #558 and #560 are ALVR-first and need reconciling with the WiVRn-first decision. Also #789, #790 and #791 are currently children of #781 but are #544 work.
#781 alone gets a demo: one head, one body, no contention.
#663 is what gates a venue. Four of its children are the same defect reported from four different venues: #308, #530, #660 and #182 are all two heads landing on one body. That is already true for the flat lane today, so WiVRn does not make it worse, but it does not fix it either.
Neither #711 (fenced slot leases) nor #753 (the stream as the unit) has been scored or adopted, so #663 has no agreed design yet. That decision is step 0 of the sequence and it is an owner call, not an engineering task.
Where to start, and what waits on what.
Rule on #663's design: #711 fenced slot leases vs #753 the stream as the unit. Neither has been scored or adopted, so the program's biggest master has no agreed shape. This costs no engineering time and it decides two things: how a venue with more than one head behaves, and whether #788's two fields are throwaway. Nothing below is blocked by it, which is exactly why it should be settled while the code work runs.
#782 lift the XR directive state machine out of the Windows build.
Chosen first because it blocks the entire WiVRn lane, it depends on nothing, it is self-contained in hydrabody pkg/provider, and the function-by-function split is already written on the issue. Until it lands, a matched WiVRn body ignores the cluster directive and no amount of head-side work can be tested.
Acceptance is a behaviour-preserving move: Linux gains the state machine, and a Windows ALVR body behaves byte for byte as it does today. Windows bodies are live in venues, so this one does not land unproven on both targets.
#783 client-connected detection, then #784 the pairing PIN, then #785 the config render.
#783 comes first of the three because without it there is no connect timeout and no doff grace, so an armed body is never freed and every later test leaves wreckage behind. #784 and #785 can swap order.
#788 cluster returns the driver and PIN, then #786 pass body host and PIN to the launch, then #787 drop the ALVR-only pre-flight.
#788 goes first because both head items read what it returns. See the collision note below.
#740 venue readiness, then #739 the signed com.experiencenet.hydraxr client. #739 is packaging: the side-loaded upstream client proves the lane without it.
#788 extends what #663 deletes. #788 adds driver and PIN to xrSessionResponse in hydracluster handlers_xr.go. #663 exists to rewrite that storage: the root defect is session_store.go:32, active map[string]*SessionRecord // keyed by body ID, and XR sessions hang off body.XRSession. Both #711 and #753 replace it.
Ruling: land #788 anyway. It is two fields, the head clients are blocked on it, and the rework is cheap. Treat it as known rework inside #663 and do not run #788 and the #663 rewrite in the same file in the same week.
Softer, a merge concern rather than a design conflict: #786, #787 and #789 all touch HydraState.kt in different functions. Sequence them within the repo instead of running two threads on that file.
#782 and #783 get a single head streaming XR from a body with no hand-holding. Steps 1 to 3 get a demo anyone can run. #663 is what makes it a venue: #308, #530, #660 and #182 are the same two-heads-one-body defect reported from four venues, already true on the flat lane today.
Parented #663, #781 and #544 here 2026-10-14.
#781 moved out from under #734, which now holds only the delivered phases #737 and #743 and stays as the historical root. Nothing is orphaned: #734's record is intact and all live work is reachable from here.