HydraIssues

hydrabody: render the WiVRn config from the assigned experience at arm time
open unclassified Priority: high Project: hydrabody Parent: #781 Reporter: 14 Oct 2026 20:47

Description

The WiVRn config at /var/lib/hydra/wivrn/config/config.json is written once, by step 3 of the wivrn-arch recipe in hydracluster. It is static.

This matters more here than it would for ALVR because WiVRn is the OpenXR runtime, not a driver for one. It launches the application itself, from that config. So the body runs whatever single experience the recipe happened to write, no matter which experience the head asked for. The directive's Experience field is ignored on this lane.

What to do

At arm time, render the config from the directive: the application to launch, resolved through the existing experience path machinery (experience_paths_unix.go, which already carries makeExecutable because Windows-built zips arrive with no Unix mode bit), plus the encoder settings and the PIN from the sibling children.

Keep the recipe writing a valid default so a body that has never been armed is still a working WiVRn install. The arm-time render overwrites it.

This is also why the ALVR lane's xrEnsureExperienceRunning (alvr_windows.go:455) has no counterpart here and should not get one: WiVRn owns the launch. The state machine child should not try to generalise that function.

Encoder settings

Fix the encoder key while here. It is encoder, singular, not encoders. The plural spelling is accepted silently and ignored, which streamed h265 for a full debugging session while every surface looked healthy. Worth a comment in the renderer so nobody loses that afternoon again.

Done when

Two different xr experiences assigned in sequence to the same body each launch their own application, with no hand-editing of config.json, and the encoder is observably pyrowave.

Session Context

Venue
mobile-kit