Each head on a multi-slot body hears the same mixed audio of every running experience instead of its own. Interim position shipped in hydrabody v2.0.79: an extra slot streams SILENCE rather than the wrong mix. Slot 0 is untouched, so every single-head venue is unaffected.
Sunshine v2025.924.154138, verified by reading the source, not inferred:
Measured consequence: with three instances each given its own audio_sink, all three raced to set one machine-wide setting and every change made the others return capture_e::reinit. hydrabody v2.0.75 therefore stopped writing audio_sink for extra slots.
So fixing only the capture side is not enough. FMixerDevice::InitializeHardware hardcodes OutputDeviceIndex = AUDIO_MIXER_DEFAULT_DEVICE_INDEX with the comment "TODO: Support overriding which audio device user wants to open", verbatim from 4.18 through 5.7. GetDefaultDeviceName() returns an empty FString in both the XAudio2 and WASAPI backends. No -AudioDevice or -AudioMixerDevice switch exists in engine source in any version, and -ExecCmds / -DPCVars / -ini: are compiled out of Shipping builds. A scan of the shipped 185 MB Mercator binary found only -AudioCallbackBufferFrameSize, -AudioNumBuffersToEnqueue and -AudioCaptureProtocol.
UAudioMixerBlueprintLibrary::SwapAudioOutputDevice IS compiled into the Mercator exe, so a project-side change could route per instance. See #511, whose premise is corrected in a comment there.
Sunshine calls GetDefaultAudioEndpoint, and Windows honours a per-application device preference, so this looked cheap. Rejected on two measured grounds:
Worth recording from that work: the processes run as tvl-body-one\tvl-experiencenet in session 1, NOT as SYSTEM. hydrabody is SYSTEM only because WTSQueryUserToken needs SE_TCB_PRIVILEGE; session_windows.go:145-205 passes the console user's token to CreateProcessAsUserW. The interactive user's PropertyStore already holds entries keyed by the Mercator and Rupelmonde exe paths, and the SYSTEM hive has one for hydravoice-player.exe.
ActivateAudioInterfaceAsync on VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK with AUDIOCLIENT_ACTIVATION_TYPE_PROCESS_LOOPBACK and PROCESS_LOOPBACK_MODE_INCLUDE_TARGET_PROCESS_TREE. Documented, header audioclientactivationparams.h, minimum Windows build 20348; cosmic runs 26200. OBS ships this exact call as Application Audio Capture (plugins/win-wasapi/win-wasapi.cpp) and GStreamer wasapi2src ships it too.
It is per-instance by construction because the target PID is a runtime argument, so neither per-app blocker applies. It also removes the VB-Audio cable budget, which is exactly full: hydravoice owns CABLE, CABLE-A and CABLE-B for the microphone direction, leaving Realtek, CABLE-C and CABLE-D for three slots and nothing for a fourth head.
Sunshine already knows which PID to capture. /launch stores the child in proc::proc._process with its job object (src/process.cpp:249) and audio capture only starts later at src/stream.cpp:1971, so no hydrabody change is needed. Expose the PIDs with QueryInformationJobObject(JobObjectBasicProcessIdList), reusing the realloc loop already in request_process_group_exit (misc.cpp:1276-1300). Prepend _process.id() only if _process.running(), because the UE bootstrap shim can exit while the Shipping exe lives.
Fork off the INSTALLED tag v2025.924.154138, not master. The same fork is wanted for an ownership check on /resume (#816, #663, under #796).
This is the part worth reading before anyone repeats it. Four hypotheses, all wrong. ActivateAudioInterfaceAsync resolves from mmdevapi.dll and returns 0x8000000E E_ILLEGAL_METHOD_CALL every time:
THE CONTROL IS THE KEY DATUM. Activating the PLAIN DEFAULT DEVICE through the same API fails with the same 0x8000000E, while CoCreateInstance(MMDeviceEnumerator) and GetDefaultAudioEndpoint both return hr=0. COM and Core Audio are healthy, so the fault is in HOW the call is made, not in the loopback parameters and not in the environment.
Remaining suspect, untested: mingw-w64 ships NO audioclientactivationparams.h, so every struct is hand-declared and the function is reached via GetProcAddress. With -fno-rtti, __uuidof may not yield the right IID, and a wrong REFIID would plausibly produce exactly this error. OBS and GStreamer call it with real headers and mmdevapi.lib linkage, which is the one condition never tested.
So the probe proved the hand-rolled call does not work. It did NOT prove the API is unusable in Sunshine's context.
MSYS2 is installed at C:\msys64 on chunky-turnip-23 with ucrt64 g++ 16.2.0. C:\msys64\ucrt64\bin MUST be prepended to PATH or g++ fails to start with no stderr at all. The hand-declared SDK block does compile clean, with two mingw traps: DUMMYUNIONNAME expands to nothing so the union must be anonymous, and KSDATAFORMAT_SUBTYPE_IEEE_FLOAT is in no linked library and must be defined locally as {00000003-0000-0010-8000-00AA00389B71}.
Cluster exec carries about 12,000 characters of output and 9,000 of input intact, which is enough to move a binary in chunks with no file server. A long-running command through exec wedges the node channel (#794); it recovered by itself after roughly 20 minutes. The WebSocket shell at /api/v1/shell/{id} connects and shows a prompt but its PTY accepted no input on a healthy node either, so it is not a workaround. Use a scheduled task for anything slow.
Note the ordering hazard in option 2: enabling external_audio before the project-side swap lands gives three SILENT heads, which on a venue body is worse than today.
Taken over by the Codex session at the user's request. Status: implementing; not yet deployed.
The old probe's E_ILLEGAL_METHOD_CALL is resolved. Its completion handler aggregated IMarshal but did not answer QueryInterface(IAgileObject). Adding that interface made activation and initialization succeed on chunky using the existing MinGW toolchain. Neither different SDK linkage nor a replacement compiler was needed. Microsoft reference: https://learn.microsoft.com/en-us/windows/win32/api/mmdeviceapi/nf-mmdeviceapi-activateaudiointerfaceasync .
The actual new production activation helper was compiled with warnings treated as errors and tested in the interactive session with two independent processes playing 440 Hz and 880 Hz simultaneously. Capturing the first gave amplitudes 0.08562890 / 0.00000846; capturing the second gave 0.00001870 / 0.08562831. An unrelated process captured exactly zero for both. Assertions required the wanted tone above 0.01 and unwanted/wanted below 0.001. This verifies isolation, not merely nonzero audio. Capturing the tones' common parent in an earlier run included both, verifying descendant inclusion.
GetDevicePeriod returns E_NOTIMPL on process loopback, so the fork supplies a bounded event-wait fallback. Process mode skips endpoint change notifications and default-device switching; failures do not fall back to the shared mix. Each stream retains a duplicate of its launch's job handle and pins member process handles against PID reuse. A surviving single job root can replace an exited Unreal bootstrap at capture startup or reinitialization. Desktop/detached/ambiguous multiple-root jobs fail closed.
Work is in /home/claude-user/work/issue-844/Sunshine (fork/process-loopback-audio), based on upstream 86188d47a7463b0f73b35de18a628353adeaa20e; companion hydrabody worktree is /home/claude-user/work/issue-844/hydrabody (fix/844-process-audio). Hardware test sources, logs, and bounded cluster-transfer helpers are in /home/claude-user/work/issue-844. The complete Sunshine build and live Mercator validation are still pending. Do not treat this issue as fixed until integration validation passes.
The probe question is now answered. The original E_ILLEGAL_METHOD_CALL was caused by the completion handler not advertising IAgileObject; exposing only the aggregated free-threaded marshaler was insufficient on these machines. The corrected production helper works with the existing MinGW toolchain. Process loopback's GetDevicePeriod returns E_NOTIMPL and now has a bounded 20 ms fallback.
Code and review:
Implementation: opt-in audio_capture_mode=process; capture follows the launched Windows job's surviving process tree, retaining job/process handles across capture and reconnect. Missing/ambiguous targets fail closed. Process mode does not switch the system default output. HydraBody enables extra-slot stream_audio only when the primary conf explicitly selects process mode; stock/default configs retain extra-slot silence.
Passed checks:
Historical pre-deployment status (superseded by the production rollout section below): PRs and release were drafts at the time of these initial tests. Install the fork on every slot before enabling process mode; stock Sunshine ignores the new option and would otherwise re-enable shared audio. Remove the option and regenerate disabled extra-slot audio before rollback to stock. Changes must be applied while slots are idle. Three simultaneous real Mercator/iPad streams still need venue acceptance; the separate microphone/voice route is not changed by this implementation. Cosmic's active streams were not interrupted.
Work/evidence: /home/claude-user/work/issue-844; build workspace retained on chunky at C:\hydra-844. Temporary test processes, tasks and firewall rules were removed; only the original two stock Sunshine processes remain on chunky. Mac Mini remains in its original bxl1-test-2/mobile-kit venue.
Releases: https://github.com/cederikdotcom/hydrabody/releases/tag/v2.0.81 ; https://github.com/cederikdotcom/hydra-sunshine/releases/tag/v2025.924.154138-hydra.844.1
CI: https://github.com/cederikdotcom/hydrabody/actions/runs/39248063709
Sunshine PR1 and hydrabody PR3 are merged. HydraBody v2.0.81 CI passed and published production artifacts. The released Sunshine fork v2025.924.154138-hydra.844.1 is installed on cosmic, boom-pickle and chunky, in that order; each has the verified executable SHA256 e223a1cd8930af457aeb5af122bc68e22d57db88cefd75a8182973f4b69f10cf and process mode / stream audio enabled on every slot. Chunky's staging override was cleared and its old local cache invalidated; fresh cluster config selects production. All three bodies remain in bxl1-test-2 with their original venues.
Peppy moved to bxl1-test-2 at the user's instruction; venue rupelmonde retained. Its running kiosk now uses the new district. Cheeky remains bxl1-test-2/mobile-kit. Tests used portable Moonlight clients on these two Mac heads, with decoded 48 kHz stereo float audio captured through SDL's disk driver. Cosmic used three simultaneous streams (cheeky slots 0/2, peppy slot 1); boom-pickle used two (cheeky slot 0, peppy slot 1).
For each measurement, Start was pressed in one real Mercator process while every receiving stream was recorded. Values below are RMS over 12 seconds of decoded audio. Silence threshold was 1e-6, wanted-audio threshold 1e-4.
| Body | Slot started | Own stream RMS | Largest other-stream RMS |
|---|---|---|---|
| cosmic | 0 | 0.01559538 | 2.03e-34 |
| cosmic | 1 | 0.01027709 | 2.03e-34 |
| cosmic | 2 | 0.00672214 | 2.03e-34 |
| boom-pickle | 0 | 0.00517801 | 2.03e-34 |
| boom-pickle | 1 | 0.00725692 | 2.03e-34 |
| chunky | 0 | 0.01601555 | 2.03e-34 |
| chunky | 1 | 0.00511872 | 2.03e-34 |
Cosmic passed all three directions; boom-pickle passed both. Boom-pickle primary's Start button was below its landscape display during an ACTIVE stream; the test temporarily moved that window to the portrait display to trigger Start, then restored its original position. That audio PASS does not certify the primary display layout. Follow-up #847 tracks this observation. Idle post-disconnect display modes do not establish that cosmic's active streams were cropped; all three cosmic Start buttons were reached during this test without moving windows.
Chunky passed both audio isolation directions after recovering its management path and fixing the test click coordinates. Both real Mercator instances and both receiving streams were active during each measurement. HydraBrain remained running throughout: the same llama-server PID 7132 and hydranode PID 31048 were retained. No brain configuration, model or service disable was required. The earlier user question about prioritizing workloads is superseded by these successful checks; no response is needed for this audio rollout.
The initial chunky attempt was inconclusive: both clients disconnected around 50 seconds, Windows CIM/scheduled-task queries stalled, and four Sunshine processes appeared for two slots. The idle body manager and duplicate Sunshine processes were restarted. A WMI restart was attempted but Stop-Service reported failure; do not describe it as a successful WMI restart. Its two previously running HP dependents were started again (HotKeyServiceDSU running; HP Services Scan subsequently exited with code 0 and retains automatic startup). CIM queries recovered; exactly two Sunshine processes and both slot APIs were verified. The retried streams were started sequentially. Early click measurements were still silent because the test input needed DPI awareness and physical cursor coordinates; after correcting the harness, foreground handle and cursor coordinates were verified and both audio measurements passed. These were harness/host recovery steps, not additional Sunshine code changes.
Chunky remains heavily loaded: total GPU allocation was around 24,392 / 24,564 MiB with HydraBrain and two Mercator instances, and around 16,310 MiB after the test games stopped. This is total GPU memory, not a per-process brain allocation. No performance, long-duration stability, or local-brain/UE capacity certification is implied by the audio PASS.
All explicit test clients stopped. No Mercator processes remain on boom-pickle or chunky after cleanup. Cosmic gained a new external Mercator root after our test clients stopped; it was left alone. Rollback backups remain at C:\hydra-844\production\backup-Sunshine on each body; preserve these and the local config cache snapshot on chunky. Remove process-mode opt-in and regenerate disabled extra-slot audio before any rollback to stock Sunshine. An explicit cluster Sunshine reprovision can install stock and must not be done with process mode still enabled.
No physical three-iPad listening acceptance or microphone/dialogue acceptance was performed. No video performance improvement is claimed. Tmux 3mercator was coordinated with throughout; it mistakenly stopped our boom primary test client, acknowledged the error, and the interrupted test was restarted before counting measurements. The subsequent explicit user instruction superseded that handoff: the #844 session retains body management and visual validation ownership. See the visual follow-up below.
Visual validation — 2026-10-19 — RESULT: NOT ACCEPTED — performance investigation remains open
Owner: this #844 session retains body management and visual validation ownership at the user's explicit instruction. The previous handoff to tmux 3mercator is superseded. Cheeky was withdrawn from testing by the user; its owned visual client and sampling/OCR workers were stopped. Further testing uses peppy only.
Cosmic, two physical Mac heads (cheeky slot 0, peppy slot 1), client 6.1.41, 1080x1920 HEVC, requested 60 FPS, 15500 Kbit/s per stream, VSync on. The production audio fork remains installed. Cosmic HydraBrain remained disabled as found; no brain configuration was changed. Exactly three Sunshine providers and two Mercator instances were verified during this run.
24 overlay screenshots per head over approximately two minutes (starting 13:27:12/13 UTC): cheeky rendered FPS 47.48–53.60, sample mean 50.984; peppy 47.92–53.79, sample mean 51.211. These are sampled overlay readings, not frame-weighted whole-session averages. Incoming/decoded/rendered rates agree in the inspected samples; network and jitter drop counters report 0.00% in the sampled overlays. Some OCR was inadvertently run during part of the recording, so the whole interval is not an uncontaminated performance benchmark. Clear below-60 screenshots existed before that OCR work as well.
The run includes menus and active scenes. Both heads were verified simultaneously in-scene at 13:27:38–44 UTC: cheeky rendered 51.46 then 51.04 FPS; peppy 53.40 then 48.97 FPS. This fails a steady-60 criterion but is not a sustained two-minute dual-scene acceptance. The UI explicitly displayed an inactivity countdown before returning to Start, approximately 30 seconds after entering the scene. Do not characterize this as an established timeout defect or infer scene activity from GPU utilization alone.
Peppy's cleanly ended ~12-minute session recorded global incoming/decoded/rendered 50.76 FPS, network/jitter drops 0.00%. Cheeky's longer session recorded 50.21 FPS and 1.35% network drops including an unexpected disconnect after peppy's session ended. Thus 'zero drops' applies to the sampled period / peppy run, not every instant of both sessions. The attempted cheeky single-stream control was invalid because its stream disconnected; no single-stream causal conclusion comes from it.
Evidence: cosmic-two-cheeky.jsonl, cosmic-two-peppy.jsonl, cosmic-two-peppy-final.log, cheeky-stopped-final-record.txt. Source screenshots and timestamps remain in /tmp/hydra-844-visual/cosmic-two on the respective heads. User has since forbidden further tests on cheeky; do not restart anything there.
Status: steady 60 FPS is NOT validated. No video performance fix has been made or claimed. Audio isolation results remain separate. No iPad or microphone/dialogue acceptance is implied. The cause of the FPS shortfall is not established by these measurements. Fresh single-stream control on peppy completed: 12 samples, ten around 59.95–60.43 FPS and two in-scene dips to 52.65 and 56.74 FPS. This is materially better than the dual-head run but does not by itself isolate host/network/client causes; dual-client testing on peppy must be labeled two logical clients on one physical head.
Peppy-only follow-up: the valid fresh single-client run is saved in cosmic-single-peppy.jsonl (12 screenshots at five-second intervals, around one minute, menu and active-scene states identified). Capture/OCR ran sequentially in this control, so OCR did not load the head while recording. A subsequent attempt to run two windowed clients on peppy was not accepted as a measurement: slot 0 had not completed pairing, and macOS displayed a Terminal screen-recording approval dialog. Screenshot collection was stopped without granting/changing OS permissions; the failed attempt contributes no performance result. All owned visual test clients, pairing clients, and screenshot/OCR workers were stopped after collecting the valid evidence. No further tests were run on cheeky after the user withdrew it. Body management ownership is retained; no handoff to 3mercator occurred.
Conclusion: audio rollout remains validated separately. Cosmic has NOT passed two-head steady-60-FPS visual acceptance. The cause remains unresolved; the single-stream improvement is a useful control, not proof of a specific bottleneck. Boom-pickle and chunky have not received this visual performance acceptance. Future screenshot-based validation on peppy may require the operator to resolve macOS's screen-recording prompt; logs can still be used without granting that permission.
Final cleanup verification: all owned peppy clients are stopped; cosmic has zero Mercator processes. A bare default Sunshine PID 29984 had reappeared alongside three configured providers (all parent 3140), a recurrence of the known fail-open issue. Only that verified bare process was removed. All three slot APIs then reported SUNSHINE_SERVER_FREE/currentgame=0 and exactly three Sunshine processes remained. Provider PIDs had changed since the earlier test, so later pairing failures must not be interpreted as FPS evidence. The recurrence was reported to tmux 3mercator; ownership remains here.
User reports: one iPad on cosmic was smooth; starting a second lowered FPS; stopping the second did not restore the untouched first. User subsequently interacted with the first; exact action and whether smoothness recovered are still being clarified.
Read-only evidence: at 16:04–16:05 local (14:04–14:05 UTC), both Mercator process trees remained alive: slot0 root11092 / Shipping8468; slot1 root33856 / Shipping31888. Both were launched around15:44 local. GPU allocation was11,076MiB; point-in-time utilization varied13% then2%, which does not establish active-scene rendering load. Exactly three configured Sunshine processes were present, with no bare fourth process.
Sunshine logs show the earlier dual-client overlap: slot0 connected15:44:06; slot1 connected15:44:36; slot1 disconnected15:45:11, while slot0 remained connected until15:46:14. Subsequent last disconnects were slot0 at15:59:42 and slot1 at16:03:08, each followed by completed encoder teardown. At16:05 hydrabody still reported count2/state active for both sessions, one without a PID and the other pointing to root11092; both game trees persisted. Sunshine serverinfo BUSY/currentgame identifies a running application, not a connected client (confirmed in nvhttp.cpp); it must not be used to infer stream occupancy.
Relevant code: hydrabody currently builds stream-start/end hooks as Sunshine app prep-cmd Do/Undo. App lifecycle therefore does not establish network-client lifecycle. This explains why disconnect is not sufficient evidence that the second game workload ended, but it does NOT yet prove the cause of the lingering FPS degradation. No body/head mutation, restart, app termination, or test stream was performed during this inspection. The existing state is preserved pending the user's clarification and a controlled comparison.
Evidence files: cosmic-ipad-persistence-snapshot.txt, cosmic-ipad-after-touch-snapshot.txt, cosmic-ipad-connection-timeline.txt. This session retains ownership. Cheeky remains excluded from tests.
Mercator microphone investigation — 2026-10-19
The earlier #844 isolation tests validated game/output audio, not an iPad
microphone conversation. The user's failed one-iPad Mercator test exposed a
separate incoming-audio failure on cosmic.
Confirmed mechanism:
Live repair:
Limits / follow-up:
Ownership remains with the #844 session. Cheeky was not used; no head test
clients were launched during this repair. Synthetic probes used silence.
Final repair check: at 17:18:22 cosmic local time the same receiver/decoder/player PIDs remained alive for 3m33s, with 22,195 packets received and forwarded, zero drops/errors. An explicit redundant Start-ScheduledTask preserved all three PIDs. The completed 150-second WMI watch contained no taskkill or audio-helper start/exit events. All ten owned Hydra844-Voice probe tasks were removed; no probe processes were left running.
User reported lag after opening map-39 and asked about cosmic orphans.
At 17:43:13 cosmic local time (UTC+02), three Mercator process trees were still running, GPU utilization 34%, VRAM 16,520 MiB. Body registry had three active records: one without a PID and two both pointing to PID 33772. This registry did not correctly represent process ownership.
Confirmed stale instances:
At 17:44:45, rechecked slot 0's latest client event was DISCONNECTED and root identity unchanged, then called ONLY slot 0 POST https://localhost:47990/api/apps/close. The request returned no response within the five-second curl limit. During this close, body watchdog recorded sunshine-api kills at 17:44:48/49 for all three session records, restarted all three Sunshine providers, and the active slot 1 Mercator also disappeared. No global force-stop or direct kill of slot 1 was issued. This collateral reset was reported candidly to the user. Per-slot close/watchdog isolation needs investigation; do not claim active stream preservation.
At 17:45:01: zero Mercator processes, body session count 0, three new Sunshine providers (31344/34432/27332), GPU 0%, VRAM 658 MiB. Voice receiver remained alive for 30m11s, same decoder PID 23716, zero reported RTP drops/errors. This is a clean idle state, NOT a 60-FPS acceptance result. User needs to reopen map-39 for a fresh trial.
Evidence: work/issue-844/cosmic-map39-orphan-cleanup-final.txt, cosmic-map39-lag-heads.json, cosmic-map39-cluster-sessions.json. Body ownership remains with this session. No cheeky/peppy test clients were launched. Permanent automatic cleanup and per-slot watchdog isolation remain open.
User explicitly reported missing audio OUT after the fresh launch. This is separate from the repaired HydraVoice microphone-decoder shutdown.
Observed two fresh Mercator roots: slot 0 root 34668 / Shipping 29208 started 17:51:07 local, slot 1 root 26360 / Shipping 12372 started 17:51:38. Sunshine logged successful process capture of the corresponding roots and Opus initialization. Map-39 was streaming to cosmic at 17:56; slot 0 had reconnected at 17:53:06, while slot 1's last client event was DISCONNECTED at 17:51:50. No provider or game restarts were performed in this investigation.
SoundVolumeView: both Unreal render sessions active, unmuted, 100%; default output is CABLE-C Input (VB-Audio Cable C), 48 kHz stereo. No audio routing, mute, or volume settings were changed. No evidence established a HydraBrain dependency; its task remains disabled.
Measurements (interactive Windows user, existing process-loopback probe, no speech recording):
Conclusion: the tested Mercator output was already silent on cosmic while an independent process-loopback control worked. The audio failure is NOT fixed and no iPad audible-output pass is claimed. This does not establish whether an opening speech was expected, whether the user had pressed Start/speak, or whether a later spoken interaction would generate output. Asked the user whether silence followed a language/Start tap or only launch; response pending. Further investigation should test the actual speaking trigger and inspect app behavior without inferring dependencies from an incomplete source depot.
Temporary checks used the existing probe and a bounded synthetic tone; no head test client was launched and cheeky was not used. Four owned Hydra844-AudioOut scheduled tasks were removed after completion. The game was left in its conversation view after the diagnostic Start click. Production audio configuration and the live iPad stream were preserved.
Evidence: work/issue-844/cosmic-audio-out-measurements.txt, cosmic-audio-out-start-result.txt, cosmic-audio-out-screen.jpg, cosmic-audio-out-after-start.jpg, cosmic-audio-out-probe-cleanup.json.
HydraVoice history and audio regression investigation — 2026-10-19
Scope: independently researched after the user closed the other Claude session. No further tmux consultation. Peppy is the only test head used. No production binaries, audio defaults, volumes, or mute settings were changed during this comparison. Temporary interactive diagnostics and synthetic questions were used on Cosmic.
Historical path, verified from source and production backup:
Separate scheduler fault already repaired earlier today:
HydraVoice's recurring scheduled task used StopExisting. Restarted instances ran global orphan cleanup and killed live decoders. Cosmic and Chunky now use IgnoreNew; Boom already did. This explains the measured minute-boundary decoder deaths; it is not proof of the iPad outgoing-audio fault.
Controlled question evidence on Cosmic, current isolated output unchanged:
Game root8796 / Shipping14904, Sunshine24956, peppy primary stream1080x1920@60. Synthetic Windows System.Speech question: 'Who are you?'. No human microphone recording retained.
Additional client-side finding, not yet tied to the reported incident:
MicrophoneRelay.swift:111 unconditionally overrideOutputAudioPort(.speaker), despite its comment claiming external devices are respected. Moonlight Connection.m ArInit instead detects external output and selects .none for it. Apple documents that .speaker overrides input and output to built-in mic/speaker; these two initializers can conflict. The Swift line dates to May20, predating today's isolation fork. No iPad release was changed. The user's actual audio route is not known.
Apple primary reference: https://developer.apple.com/documentation/avfaudio/avaudiosession/portoverride/speaker
Acceptance remains open: visibly speaking Mercator with silent map-39 has not been reproduced with instrumented iPad playback; multihead microphone identity and deterministic game-input binding are incomplete; steady dual-head60fps is not established. Body ownership remains here. HydraBrain remains disabled; actual ElevenLabs traffic is evidence against assuming a missing HydraBrain service is required.
Final RTP control / cleanup:
English full-RTP control18:32:36–18:33:11 also forwarded331 packets through the localhost/plain-cable route, but game capture remained inactive and the35s game probe remained silent. The immediate post-Start screenshot DOES show the English conversation screen. Therefore the English run did enter conversation, but our held-button sequence did not establish active microphone recording; the control remains inconclusive, not a demonstrated HydraVoice/output failure. A click-versus-hold UI gesture difference is an untested explanation. No further injection after map-35 reported an assigned Cosmic stream at16:33UTC.
No real iPad was controlled or asked to change settings. The synthetic tests do not certify iPad playback. Our Peppy client was stopped and the six owned temporary diagnostic task definitions were removed; production voice/body/Sunshine services and game sessions were left intact because a real iPad reported streaming.
Recommended implementation direction established by this research:
User authorized restoring Cosmic's Mercator stability, then moving Cosmic and the Mercator iPads into Brussels Test 3. Cosmic (node-4c2be4b0), map-35 (node-fe6e7808), map-37 (node-e0528a7e), and map-39 (node-a57ee1a7) now have district bxl1-test-3; venue cloud-seven is preserved. All three eligible-body responses now show Cosmic with stream_count=0 and free_slots=1. Peppy alone was used for testing; Cheeky was not used.
Recovery baseline on Cosmic: one Sunshine slot, original Realtek whole-system output capture, one plain VB-Cable microphone route. This temporarily removes multihead operation on Cosmic. Configs and task XML are backed up in C:\hydra-844\production\stable-baseline-backup. The Sunshine fork binary remains, with process capture mode disabled. Both HydraBody and HydraVoice scheduled tasks use IgnoreNew. HydraBrain remains disabled.
Additional measured faults and fixes:
Final production acceptance on v2.0.84, game root36996 / Shipping31252, Sunshine19268:
Evidence saved under /home/claude-user/work/issue-844/: district-test-3-move.json, stability-2084-two-exchanges.txt, stability-2084-peppy-audio.txt, stability-2084-peppy-video.txt, stability-2084-close.txt, stability-final-cleanup.txt, stability-final-eligible.json, and stability-work-record.txt.
Issue remains implementing: physical iPad speaker/headphone playback was not instrumented in these tests; multihead microphone identity through NAT, deterministic game-input binding, and dual-head60fps acceptance remain open. Do not treat this single-head recovery as completion of #844 or proof that the original per-process loopback API was unusable. Body ownership remains with this session.
User explicitly requested moving Cosmic, Chunky and Boom into the Mercator iPads' district and applying the fixes. All three now have district bxl1-test-3. Cosmic remains cloud-seven. Chunky was additionally moved from mobile-kit to cloud-seven because its different owner otherwise excluded it from iPad discovery. Boom retains rupelmonde; same-owner visibility permits it. Final eligible-body queries for map-35, map-37 and map-39 each return all three bodies. Boom and Chunky each advertise one free slot; Cosmic retains its existing game/session and was not restarted.
Cosmic was read-only verified: one slot, system-mix Realtek output, plain VB-Cable capture, Body2.0.84, live Voice0.4.14, IgnoreNew tasks. Existing Body28168/Sunshine19268/Voice35276 were preserved.
Boom and Chunky now use the same single-head recovery baseline: slots:1, primary stream_audio enabled with process-capture option removed, extra-slot audio disabled, one plain VB-Cable microphone route, IgnoreNew on Body/Voice tasks. Each has one Sunshine process. Body2.0.84 was already installed; both managers were cleanly restarted after configuration. Boom reported installed Voice0.4.14 but its live API was still0.4.13; the restart now verifies live0.4.14. Chunky upgraded from0.4.9 via the official production updater and now verifies live0.4.14. Backups of original configs and task XML are in C:\hydra-844\fleet-stability\backup on each changed body.
Chunky-specific output correction: Sunshine's default virtual sink selection automatically prefers Steam Streaming Speakers when host playback is disabled, even with audio_sink set to Realtek. Confirmed from src/audio.cpp and Windows sink_info, and from interactive SoundVolumeView during a stream. Set virtual_sink explicitly to Speakers (Realtek(R) Audio), alongside the matching audio_sink. Fresh stream verified Realtek remains the active default and Sunshine render endpoint; capture remains plain VB-Cable. This prevents the automatic switch to Steam. Other applications/services on Chunky were preserved, including its existing HydraBrain workload (idle GPU memory16501/24564MiB, GPU0%).
Acceptance used peppy only, sequentially, primary ports47989. Paired peppy to the primary instances; no Cheeky access. On each body, two consecutive synthetic spoken questions travelled RTP -> Voice -> cable -> Mercator, and both spoken replies were decoded by peppy:
A diagnostic file-copy race interrupted result archival on Boom after both exchanges and on an earlier Chunky attempt after its first exchange; it did not interrupt production audio. Boom's second capture log was retrieved after the meter finished. Chunky's final harness keeps one continuous meter and records exchange timestamps, avoiding concurrent file copies; both final exchanges completed successfully.
All temporary fleet diagnostic/update tasks were removed from Boom and Chunky. Peppy's test streams ended; its normal kiosk remains. Evidence is saved as fleet-*-conversation/results/audio/video/final files and fleet-final-verified.json under /home/claude-user/work/issue-844. The current state supports one head per machine, not multiple heads on one machine. #844 remains implementing for multihead microphone identity/routing, sound isolation and dual-head performance acceptance. Physical iPad audio on Boom/Chunky was not instrumented; Cosmic had user confirmation before this rollout.
All three iPads were self-service with no assigned body, but all three bodies still had an active Mercator session and free_slots=0. Closed the abandoned apps through authenticated Sunshine admin API. Sunshine PIDs stayed 19268 (Cosmic), 12104 (Boom), 11488 (Chunky). All Mercator processes exited, local session registries became idle/count=0, and the cluster subsequently advertised free_slots=1 on all three. Body live binaries remain v2.0.84; no forced Sunshine restart was needed.
Two concrete iPad defects found: AppState.showError discarded the stream identity without notifying the cluster; HydraStreamSession sent /cancel with a custom NSURLSession that omitted the paired TLS client certificate. A no-client-certificate request against Chunky was aborted with no HTTP response. Replaced cancellation with existing Moonlight HttpManager (paired client identity and server-cert pinning), serialized duplicate exit/error callbacks, and delay UI termination until the bounded cancellation completes. Swift terminal paths now share body release and log notification failures. Merged https://github.com/cederikdotcom/hydra-moonlight-ios/pull/1 and https://github.com/cederikdotcom/hydraheadipad/pull/1 . Physical iPad exit/reconnect validation is still required.
Chunky microphone: user confirmed the iPad counter rose; however the old counter counted attempted sends without transport completion. Receiver and Windows packet counters saw no iPad ingress. A single UDP probe from Peppy reached Chunky (source 10.10.100.13, receiver count 993→994); its temporary cable route was subsequently evicted and heads_active returned to zero. No new audio configuration changes were made. Map-37 native WG source is 10.10.200.5; hub routes and same-interface forwarding are present. No microphone traffic was observed during a bounded hub header-only capture while the iPads remained idle. This does not validate the iPad path. New iPad diagnostics report microphone destination, connection state/errors and successful Network.framework submissions via head heartbeat. UDP submission is explicitly not a delivery acknowledgement.
Release v0.2.170 was queued on the offline cederikmini runner and cancelled before running. Peppy has no Xcode. PR https://github.com/cederikdotcom/hydraheadipad/pull/2 switches release builds to GitHub macos-15; v0.2.171 carries the same app fix plus that runner change. Build/distribution and real iPad validation pending. Cheeky was not used. #844 stays implementing; this session retains body management ownership.
User retried all three and confirmed Boom works as expected; Cosmic and Chunky did not. All three did reconnect after the abandoned sessions were cleared. After the user exited again, all heads were self-service and the abandoned apps were closed again; Sunshine PIDs remained unchanged. The final availability query showed all three bodies free_slots=1.
Header-only live capture found 10.10.200.5 sending sustained UDP to Cosmic:47995 while the cluster associated map-37 with Chunky; map-35's 10.10.200.3 sent to Boom correctly. Chunky received no iPad microphone packets (count stayed 994, including the single Peppy probe). Source identity is attributed using the cluster-provisioned WireGuard address; the device's cached tunnel config was not read. New app destination telemetry will independently validate the routing inference.
A concrete additional client bug was fixed: MicrophoneRelay.stop ignored pending permission requests because isRunning was still false; an old startup could therefore resume after stop. A new requested body was also ignored if an old relay was already running. Each new stream now tears down its predecessor and receives an attempt identity; permission, engine and watchdog callbacks reject stale attempts. Regression cases cover late permission after stop, out-of-order starts, changing bodies and reconnecting to the same body. PR https://github.com/cederikdotcom/hydraheadipad/pull/3 merged.
v0.2.172 (build 204) includes both the authenticated teardown/error release fix and the microphone startup fix. Lifecycle regression tests and the full iOS archive passed; TestFlight upload and ad hoc export/MDM upload succeeded. CI https://github.com/cederikdotcom/hydraheadipad/actions/runs/39331012116 . v0.2.171's complete CI had already passed, but it lacked the later microphone lifecycle fix.
MDM rollout request https://github.com/cederikdotcom/hydraheadipad/actions/runs/39331530284 succeeded. Device 2373883 has an update request; 2373770 and 2373882 again required management requests before update. All three live head heartbeats STILL reported v0.2.169 at the final check. Existing MDM history includes iOS error 1407 ('The user is already being prompted') from earlier today; latest commands are not yet acknowledged as installed. Asked the user to return to Home, accept any management/update prompt, and reopen Hydra. Do not claim v0.2.172 is running on the iPads yet, or that Cosmic/Chunky have passed end-to-end validation.
No Cheeky use. No temporary capture jobs remain. No body audio settings changed during this follow-up. Current owner remains this session; #844 stays implementing pending updated-device microphone and exit/reconnect validation.
User confirms Chunky worked; Boom was previously confirmed working. Cosmic has not yet been validated by the user; do not classify this update as a Cosmic failure. Read-only inspection: Cosmic body is idle, session count 0; HydraVoice v0.4.14 has no active sources and no forward errors. No production processes were restarted or stopped. Live iPad diagnostics confirm map-37 and map-39 now run v0.2.172; map-35 still reports v0.2.171. All three are self-service. The complete v0.2.172 release workflow succeeded: https://github.com/cederikdotcom/hydraheadipad/actions/runs/39331012116 . Cosmic end-to-end user validation remains outstanding; ownership retained.
All three iPads reported no bodies. Cosmic, Boom and Chunky each held an abandoned Mercator session from approximately 07:16–07:33 UTC, with terminate_pending=true but free_slots=0. Confirmed heads at menu/error, then closed abandoned apps through the authenticated Sunshine API; all three became idle/free. Later disconnected sessions were explicitly cleared via local HydraBody /api/v1/stream/stop. No Sunshine/Body/Voice service restarts or audio-setting changes were made on the bodies during this turn.
Root cause found in cluster watchdog compatibility: legacy iPad discovery does not acquire a durable slot lease, while watchdog stops required one. Additionally, the deployed Sunshine build omits SUNSHINE_CLIENT_UUID; cluster learns identity from the iPad heartbeat, but body status reports may omit it. Added a watchdog-only compatibility fence for a current, running, single-slot legacy iPad body with a known session/head/client, no occupying durable lease, no owned-slot capability or pinned head, and no competing streaming head. Recheck session generation and stale head timestamp at delivery; retain occupancy until actual body-idle acknowledgement. Android/owned-slot lease requirements remain. The existing production Zappy work was preserved by branching from deployed source commit 4556e50.
Production cluster now v2.0.135-zappy.3, source beb2c05 on fix/844-ipad-watchdog (https://github.com/cederikdotcom/hydracluster/commit/beb2c05). Binary SHA256 b6990349a580c6ee404c13d0deb094a70352946db69958fa1b89c738da9385db. API dependency remains unchanged zappy-api 8601837. Backup: /usr/local/bin/hydracluster.before-ipad-watchdog-20261020. Regression tests exercise real body-status handler with present/absent client UUID, stop delivery and body-idle convergence, resumed and replacement sessions, other clients, competing heads, leases and multi-slot/pinned topology. Full go test ./... PASS. Race run unavailable: local environment has no gcc/clang. No live timeout test of a new iPad session has yet been observed; startup sessions with no observed head identity still do not qualify for this compatibility cleanup.
User subsequently confirmed Boom and Chunky work; Cosmic alone remains reported as not working. Asked which Cosmic symptom (microphone, speaker, or connection/lag); no answer yet. Cosmic received map-39 UDP microphone packets, Voice forwarded them with zero errors. Windows audio defaults/per-app routes were correct (Realtek render, plain VB-Cable capture, unmuted). An apparent display offset mismatch was ruled out: Sunshine's 1920 offset is relative to a desktop beginning at -1920, so capture and Mercator correctly align at absolute 0,0. No display changes made.
Cosmic local validation: two consecutive spoken questions in the same Mercator root5220/Shipping31872 passed. Capture peak .447704; replies 1271 and1335 nonzero 10ms buffers, peak RMS .099460 and .062450. Earlier first attempt invalid: app had timed out to Start before recording, explicitly not counted. A further question with Peppy connected produced1506 nonzero buffers (peak RMS .060510); Peppy decoded speech for15 consecutive seconds104–118, RMS .006972–.066172, peak .775904. This proves local microphone-to-Mercator-response and Sunshine-to-Peppy output, not the user's physical iPad speaker or touch behavior. Cheeky never used. Peppy diagnostic stream70365 terminated; diagnostic scheduled tasks removed; Cosmic returned to idle.
User required identical versions on Cosmic/Boom/Chunky. Verified running paths and identical SHA256 hashes for all four relevant binaries on all three: HydraBodyv2.0.84 (5813E8C03A622B8DA5946B9E6F1DC648E59B60992E20D46CA90D5C1FD424A070), HydraVoicev0.4.14 (56790A5D8C6648FF7AF1181DCFC8C4BA83EDE52040D7051A89AE3A57483F5932), Sunshine2025.924.154138-hydra.844 (E223A1CD8930AF457AEB5AF122BC68E22D57DB88CEFD75A8182973F4B69F10CF), MercatorV0.9 Shipping (7141D89CA23CD41E823784C7C291E01D958530DA29454C7562EC2CCEEAFD5A61). No reinstall needed. iPad map-35 itself still reportsv0.2.171; map-37/map-39v0.2.172; that is distinct from body build parity.
Evidence: work/issue-844/fleet-version-audit-20261020.json, no-bodies-20261020-cleared.json, availability-20261020-final.json, cosmic-20261020-*.jpg/txt. Ownership retained; issue not closed; Cosmic physical iPad validation outstanding.
Final readback 2026-10-20 09:33 UTC: cluster sessions=[]; every one of the three iPad eligibility queries shows all three bodies stream_count=0/free_slots=1. Peppy stream and its bounded cleanup timer removed. Peppy measured incoming/decoded/rendered59.68FPS, network/jitter drops0%, mean hostprocessing2.0ms (max213.7ms), network18ms±2; this is single-head evidence, not sustained dual-head60FPS.
Confirmed restart bug: Boom (10.10.100.7) HydraBody restarted at 10:26:01 UTC while Sunshine PID 12104 and Mercator survived. It initialized an empty registry and reported idle; a subsequent Sunshine resume did not run the app start hook. This exposed occupied capacity and permitted idle lifecycle operations. The reported black screen cannot be conclusively attributed to this alone.
Released HydraBody v2.0.85: https://github.com/cederikdotcom/hydrabody/pull/7 ; CI https://github.com/cederikdotcom/hydrabody/actions/runs/39410116875 succeeded. Startup reads Sunshine serverinfo/currentgame and authenticated catalog, restores the surviving app/PID before the first report, defers catalog/orphan/kiosk decisions while unresolved. Unknown IDs, custom-image catalogs and API failures fail closed and retry. Source 59e49f8, release merge 55fbdc3. Full Go tests and vet passed locally; release tests/builds passed.
Deployed identical official v2.0.85 to Boom, Cosmic, Chunky. All Windows SHA256: 2647496768E2E65036E9B19DC22B8FC268F6872691C0D5EE5B57984BC8BA26D5. Other component versions unchanged from prior fleet audit. Live update validation: Cosmic Sunshine 33420, Mercator launcher 23312 and Shipping 37552 survived unchanged; Chunky Sunshine 11488, launcher 36816 and Shipping 21624 survived unchanged. Both recovered the session and reported streaming as their FIRST status, rather than idle. This tests recovery on real active sessions; it does not certify uninterrupted visual/audio output at the iPads.
Cluster companion deployed v2.0.135-zappy.4, source b9a7bde, SHA256 fff9af9dbdd6b664899fe1db9382dd7cb223e4c66cde36bc901c501b5860275e. Explicit body startup unknown is occupied in both flat and XR discovery. Full Go suite passed. Preserves deployed Zappy features. Previous v3 backup /usr/local/bin/hydracluster.before-startup-recovery-20261020.
Peppy-only Boom diagnostic 10:38:54–10:43:53 UTC: 1080x1920 60fps stream, client reports 59.97 FPS decoded/rendered, 0% network/jitter drops, host average 1.7ms/max17.7ms. Fresh body capture showed Mercator start screen plus a transient console; capture tasks themselves create consoles, so this is not proof of the user's black screen cause. The earlier boom-black-before.jpg was stale from Oct19 and is explicitly excluded. This diagnostic disconnected without authenticated app cancel, leaving the unassociated test app occupied; I closed it using the local body stop API at 10:46:13. Idle reached cluster at 10:46:44; subsequent map39 eligibility showed Boom free_slots=1, Cosmic/Chunky occupied. This test occupation contributed to the user's latest no-bodies report; do not attribute that interval solely to the original bug. All owned Peppy streaming processes have exited and capture tasks removed.
Reporting check: map35 streams on Chunky but v0.2.171 diagnostics still say microphone destination Cosmic 10.10.100.12. map37 streams Cosmic on v0.2.172. map39 v0.2.172 reports error and mic NWError57/socket-not-connected. Heartbeats arrive, but all report latency '?' and routing 'unknown', no FPS. MDM confirms device2373883 (ipad-head-3-FQ70X0JHF6) still171, managed, update172/build204 requested via https://github.com/cederikdotcom/hydraheadipad/actions/runs/39410447917. Other two are172. No install success claimed yet.
Central hydrastreamingmonitor verified running on pi-node-004-nvme (node-50ab5309) Incus container, v0.5.0, matches latest published release; health checks fresh. Old documented server78.47.174.83 no longer hosts it. Service health alone does not validate picture/audio/FPS. Monitor also reports webstream timeout and neckwebrtc certificate error; these are separate from native iPad→Sunshine path.
Remaining: obtain fresh map39 connection/visual confirmation, confirm map35 update and correct microphone destination; iPad FPS telemetry is still absent. No new dual-head promise. Single head per body maintained. Startup recovery with no observed head identity still cannot safely authorize cluster stale-session termination; native172 cancel addresses normal app exits. Keep ownership and issue implementing until physical acceptance.
The v85 initial recovery was insufficient: at 10:49:44 UTC the existing orphan scanner killed Cosmic and Chunky Mercator launcher/game families. It protected only the recorded PID when selecting candidates, then tickOrphanScan discarded those PIDs and used a broad experience-name kill. Both sessions consequently ended. Their later idle state must NOT be described as voluntary user disconnects or successful sustained validation. A second fix is in progress: guard all same-app process cleanup while any session record remains (active or reconnect grace), then use only selected PIDs once sessions retire. Full tests, vet and Windows cross-build pass. Production v86 release/deployment and sustained restart validation pending.
v2.0.86 is identical on all three: SHA256 00807A8FA34F3138D6A1457C4A11CE7D1BCFF86AF81DB04DB59E0379471E1E82. PR8 corrects orphan execution and protects live Unreal families. Release CI39411079220 succeeded after one transient private-module download failure/retry. Actual merged release tests/vet/Windows build also passed locally. Boom test launched10:58:15, body restarted10:59:11. Sunshine12104, Mercator launcher2524, Shipping1908 survived until explicit cleanup11:01:35; recovered session remained active2m20 after restart, with no orphan cleanup.
However picture validation FAILED: fresh primary screenshot showed Mercator before restart; screenshot at11:00:47 showed black after restart. Root cause now identified in cmd/kioskoverlay/main.go: startup minimizeAllWindows actually calls SW_HIDE for nearly every visible window, across all monitors, hiding the surviving Mercator while Sunshine continues streaming. PR9 restricts that cleanup to ConsoleWindowClass. v87 release/deployment/live picture validation pending. This explains why process/FPS health is not visual success. v86 Peppy whole-run FPS53.15, zero network/jitter drops, includes hidden-window black interval and is NOT a60fps pass. Owned test stream explicitly stopped and body session closed.
Source note: released master also includes pre-existing PID retry/slot reaping changes absent from the original v84 branch; these are visible in merged release source. v86 exact merged tree tests passed. PID retry explains why v85 also reproduced the orphan kill on ordinary new launches, even without body restart.
The reproduced failure chain is now addressed in production v2.0.88:
PRs: https://github.com/cederikdotcom/hydrabody/pull/7 , /pull/8 , /pull/9 , /pull/10 . Final release source5473dd0. CI https://github.com/cederikdotcom/hydrabody/actions/runs/39413127285 succeeded, full tests and all release builds. Local full tests/vet/Windows builds passed. The extra extraction regression test covers different same-size executables.
All three bodies verified identical v2.0.88, SHA256 24CA3374AF784E5EBAD4907E485ACD38087B8DA8DB23B4B96AD41729CC10740A. Extracted kiosk executable is ALSO identical: SHA256 56BE1F81FAC354821460C91055226F4253C00DF6E75D2455F24A7C5A6A5C9D73, contains the new console-only marker and no old hide-all marker. On Boom before v88 the extracted file was still dated May30, SHA23494DA1211CF797657F32F5EB7666312CE25C0E3C9AE748C12686D840F74920, proving the v87 agent version alone did not establish overlay deployment.
Final Boom/Peppy test: fresh launch11:15:03, body restart11:15:14, same Sunshine12104, Mercator launcher8268 and Shipping16256 throughout. First recovered status streaming. Fresh GUI capture11:15:29 shows full Mercator after restart. At explicit test cleanup11:16:56 session had remained active1m41 after restart, no orphan cleanup, same processes. Client whole-run1m53 incoming/decoded/rendered59.93FPS, network/jitter drops0%, host average1.7ms/max17.5ms, network34±4ms. This is single-head validation, not a dual-head promise, not physical-iPad audio acceptance. The test was ended when user reported .7 unavailable; it was occupied by our test, not a new failure. Test client/timers stopped and local body stop explicitly closed its app. No further Peppy streams should be started during user acceptance.
Cosmic and Chunky live sessions survived updates with Mercator PIDs26260 and39564 retained. Fresh captures after v88 show Mercator on both. Their images include an endpoint-security notification: our temporary window-restoration helper was quarantined. Its scheduled tasks were removed and it was not retried or excluded from antivirus. GUI screenshot helper remained usable. The permanent production solution does not depend on this helper. Diagnostic capture tasks removed at completion.
All three iPads now heartbeat v0.2.172 (map35 update completed). Central hydrastreamingmonitor v0.5.0 is current and checks are fresh. Reporting is still incomplete: iPads send no FPS, latency is '?', routing unknown, and map35/map37 both recently reported Chunky mic destination despite only one cluster-owned head association. Do not infer unique healthy video/audio from these heartbeats alone. Native physical acceptance remains required; ownership retained and issue remains implementing.
After releasing the Peppy reservation, read-only Chunky logs exposed a separate quick-relaunch defect: old session ended11:15:43, new launch11:15:51 reused the grace-period record before its process existed, leaving previous PID39564 and its crash timer attached. At11:16:32 the process-alive watchdog incorrectly relaunched, retired the registry entry, and later orphan cleanup removed those untracked processes. This was not an orphan scan killing a currently owned session.
PR https://github.com/cederikdotcom/hydrabody/pull/11 clears prior PID/executable/dead_since when a start hook reuses grace. Regression reproduces same-session-ID reuse with no new process, confirms no stale watchdog action, then confirms retry claims new PID99. Full tests/vet/Windows build passed. Release https://github.com/cederikdotcom/hydrabody/actions/runs/39414387886 succeeded; source8ca9082. No further test stream was started; preserving user access to Boom was prioritized.
All three verified v2.0.89 with identical HydraBody SHA256 61D6E5E2A6E5778066AC86D1C3C8394E8E77104841D163FF103E7869C8A5FDEB and extracted overlay SHA256 0B456D0C3A76AD52788D642373BC518CA502CC3D4C348699940C633068947F2F. All overlay binaries contain console-only marker and omit old hide-all marker. Cosmic retained Mercator root26260, Shipping11444 and Sunshine33420 during update. Boom Sunshine12104 and Chunky11488 retained, both idle with no Mercator processes at final verification. Updaters returned0 and owned diagnostic/update tasks were removed. Temporary restore helper/build script removed where present; antivirus quarantine was never bypassed.
Final cluster availability: Boom10.10.100.7 free_slots1, Chunky10.10.100.16 free_slots1, Cosmic10.10.100.12 occupied by map39. Peppy has no owned stream or timer left. All iPads v0.2.172, central monitorv0.5.0 current, but FPS/latency telemetry remains incomplete. The live picture/59.93FPS/restart result belongs to v88; v89 only changes reconnect PID bookkeeping, tested by regression and deployment checks. Physical iPad acceptance and broader reconnect soak remain unclaimed. Ownership retained.
Handoff: the two things most likely to save a day
1. The probe failed on MY OWN CALL, not on the API and not on the environment.
The control case is the proof. Activating the PLAIN DEFAULT DEVICE through the same ActivateAudioInterfaceAsync fails with the identical 0x8000000E, while CoCreateInstance(MMDeviceEnumerator) and GetDefaultAudioEndpoint both return hr=0. COM and Core Audio are healthy on that body. So do NOT spend time on apartment state, on session 0 versus session 1, on the identity the process runs as, or on whether Windows 26200 supports process loopback. Four hypotheses were tested and all four were wrong: wrong apartment (verified MTA via CoGetApartmentType), managed interop (a C# version fails identically), missing runtime DLLs (rebuilt -static, only system DLLs remain), and a non-agile completion handler (aggregated a free-threaded marshaler, no change).
2. The ONE condition never tested is proper SDK linkage.
mingw-w64 ships no audioclientactivationparams.h, so every struct in the probe is hand-declared and the function is reached through GetProcAddress. With -fno-rtti, __uuidof may not yield the right IID, and a wrong REFIID would plausibly produce exactly this HRESULT. OBS (plugins/win-wasapi/win-wasapi.cpp) and GStreamer wasapi2src both make this call successfully with real headers and mmdevapi.lib. A Sunshine fork compiles against the real SDK, so the fork is the condition the probe could not create. That is the argument for building it rather than probing further.
Toolchain, already standing
MSYS2 with ucrt64 g++ 16.2.0 is installed on chunky-turnip-23 at C:\msys64.
C:\msys64\ucrt64\binMUST be prepended to PATH or g++ fails to start with no stderr at all, which looks like a hung command rather than an error.Two mingw traps, both already hit and solved:
DUMMYUNIONNAMEexpands to NOTHING, so the union in AUDIOCLIENT_ACTIVATION_PARAMS must be anonymous.KSDATAFORMAT_SUBTYPE_IEEE_FLOATis in no linked library; define it locally as {00000003-0000-0010-8000-00AA00389B71}.The ~45 hand-declared SDK lines DO compile clean under that toolchain, so the declarations themselves are not the blocker; how they are reached may be.
Operational notes that cost real time
DELETE /heads/{id}/streamstops the head but leaves Sunshine's app RUNNING, so the experience never re-reads its config. Any config test must force a fresh process first or it measures the old one.Automated validation, no human at an iPad
POSTandDELETE /api/v1/heads/{id}/streamdrive hydraheadflatscreen over exec on Mac and Linux heads. cheeky-cactus-86 is the TVL Mac Mini and was used as the test head throughout. Note it has since been returned to bxl1-test-2 / mobile-kit, and venue is a HARD visibility filter, so a head must share a venue with the body it is to see.State left on cosmic
Extra slots carry
stream_audio = disabledsince hydrabody v2.0.79, so an extra slot is SILENT rather than carrying the wrong mix. That is the interim position, not the fix, and it is what the owner said they do not want. HydraBrain is Disabled on cosmic and holds about 13.7 GB of VRAM when running, which is the headroom three Mercator slots need.