[probe] U10 candidates from Moonshine: empty control bodies as defaults; run book P3/P4

Moonshine f184d5e (BSD-2, CLEAN_ROOM S-21) reads no body from START_B, PERIODIC_PING or the IDR request, ignores
LOSS_STATS and FRAME_STATS, does not know START_A (skipped inside the encrypted frame, fatal outside it), and stops a
stream after 60 s without a ping. No GPL-provenance value taken.

- Probe defaults: START_A and START_B empty, PERIODIC_PING empty every 500 ms, an empty IDR request on frame loss;
  every body stays overridable by hex or `none`.
- Tests: the candidates' plaintext headers, their sealed frame layout and Moonshine's client-to-host IV, and the
  INVALIDATE_REF_FRAMES field offsets Moonshine reads.
- PROTOCOL.md 3.3 and the U10 row narrowed with the [M] facts.
- LIVE-INTEROP.md: P3 decided (dev-only `sunshine-api` in arena-host behind a never-shipped feature, credentials from
  Custos), P4 done, table V rewritten without guessed bodies, first launch 90 s to outlast a 60 s ping deadline, the
  black-box list pointed at PLAY-REMOTELY's handover, §8 and §15 (§17 is the installer spec).
This commit is contained in:
2026-11-30 11:01:41 +01:00
parent 07ccff4241
commit 3e09dbc09a
5 changed files with 101 additions and 29 deletions
+20 -13
View File
@@ -4,7 +4,9 @@ Status: **prepared 2026-11-30, not run.** The probe (`tools/gs-probe`) is built
to a host: no Sunshine existed when it was written.
This sitting settles the open UNKNOWNs of [PROTOCOL.md](PROTOCOL.md) §8 live, in one go, and answers the black-box
checks of Arena `docs/PLAY-REMOTELY.md` §8 and §17 that a GameStream client can answer. The host is the pinned Sunshine
checks a GameStream client can answer from Arena `docs/PLAY-REMOTELY.md`. That list lives in its handover ("Next on
RESUME", item 3), §8 (the `pairing_id` call, the clients list) and §15 (the test-PC checks); §17 is the installer
spec and is not part of this sitting. The host is the pinned Sunshine
`v2026.914.233613`, installed by arena-host at Turn on to `E:\Apps\Sunshine` and bound to `192.168.100.140`. The
client is our probe, which runs DomiStream `stream-v0.1.0`'s state machines over real sockets from this PC. No
Moonlight, no TV and no other machine take part.
@@ -44,7 +46,7 @@ Moonlight, no TV and no other machine take part.
- **Arena Domi's own first-stream toast** (PLAY-REMOTELY §7.4). It can appear if the Arena window is running when
Sunshine's prep-cmd hook reports the probe's stream. Mark dismisses it.
- **Mark's part:** be present, agree on the game for `launch` beforehand (a light one from the `apps` list), and keep
hands off mouse and keyboard while the stream runs (about 30 s per launch).
hands off mouse and keyboard while the stream runs (90 s for the first launch, about 30 s for any variant).
## 2. Before the sitting (without Mark)
@@ -52,8 +54,8 @@ Moonlight, no TV and no other machine take part.
| :-- | :-- | :-- |
| P1 | Probe built | `cd tools\gs-probe`, `CARGO_BUILD_BUILD_DIR=F:\build\play-remotely\cargo-build-probe`, `TEMP`/`TMP=F:\build\play-remotely\tmp\protocol`, load gate (CPU and RAM < 90 %, D: and F: < 95 %), then `cargo test --offline -j 2` and `cargo build --offline --release -j 2`. Binary: `tools\gs-probe\target\release\probe.exe`. |
| P2 | Sunshine as arena-host left it (read-only) | `Get-NetTCPConnection -State Listen \| ? LocalPort -in 47984,47989,47990,48010` shows each on `192.168.100.140` only: nothing on `0.0.0.0` or loopback on Day 1 (PLAY-REMOTELY §4). `Get-NetUDPEndpoint \| ? LocalPort -in 47998,47999,48000` is empty while idle (PLAY-REMOTELY §9). |
| P3 | **Open: a way to call Sunshine's API without seeing the credentials** | Needed for the PIN (step S2) and checks B1–B3. Agents never type passwords, and Mark should see nothing, so the build lead picks before the sitting: **(a, recommended)** a dev-only arena-host entry point `sunshine-api <GET\|POST> <path> [json]` that takes the credentials from Custos, calls `https://192.168.100.140:47990` with arena-host's pinned client (§3, §4) and prints the answer with secrets redacted (its first call also answers §15's "does `pc` cover a self-connection to .140"); **(b)** Sunshine's own web UI in our browser pane, logged in by Mark (he would see it); **(c)** none, and the sitting ends after S1. This file writes the calls as `sunshine-api …`. |
| P4 | U10 bodies | Read Moonshine's control handler (BSD-2, allowed, [M]) for what a host reads from START_A, START_B and PERIODIC_PING. Write the candidate bodies into table V (section 3) **before** the sitting. If Moonshine ignores the bodies, empty bodies (the probe's default) are the first try. Never from GPL sources. |
| P3 | Sunshine's API without seeing the credentials (**decided: a**, build lead 2026-11-30) | Needed for the PIN (step S2) and checks B1–B3. The host engineer writes a dev-only `sunshine-api <GET\|POST> <path> [json]` command in arena-host (Play remotely's own crate), behind a cargo feature that never ships. It takes the credentials from Custos (never typed, printed or logged), calls `https://192.168.100.140:47990` with arena-host's pinned client (§3, §4) and prints the answer with secrets redacted. Its first call also answers §15's "does `pc` cover a self-connection to .140". It must be built and checked before the sitting; this file writes the calls as `sunshine-api …`. |
| P4 | U10 bodies (**done** 2026-11-30, CLEAN_ROOM S-21) | Moonshine (BSD-2) reads **no body** from START_B, PERIODIC_PING or the IDR request, ignores LOSS_STATS and FRAME_STATS, and does not know START_A. Inside the encrypted frame, an unknown type is skipped, not fatal. Each PERIODIC_PING pushes its stop deadline out (60 s by default). Nothing taken has GPL provenance. The probe's defaults follow: START_A and START_B empty, PERIODIC_PING empty every 500 ms, an empty IDR request on frame loss. Table V holds what to try if Sunshine differs. |
| P5 | Game | Agree the `launch` game with Mark (a light one) and note its app id after S4. |
Shell variables used below (PowerShell):
@@ -121,7 +123,10 @@ Each step names the command, the UNKNOWNs it settles and what to look for. "Log"
- **Settles:** nothing new. It confirms HTTPS with the pinned certificate (U24 again).
- **Look for:** the agreed game's id (P5); `Desktop`, if listed, is the fallback.
### S4. `& $P launch <id> --host $H --out $O --seconds 30 --nudge-mouse`
### S4. `& $P launch <id> --host $H --out $O --seconds 90 --nudge-mouse`
90 s outlasts Moonshine's 60 s no-ping deadline. A stream that lives to the end shows Sunshine accepts the default
empty PERIODIC_PING, or does not need one within 90 s; `sunshine.log` tells which (U10). Variants use `--seconds 30`.
- **Mark sees** the game start.
- **Settles:**
@@ -147,7 +152,8 @@ Each step names the command, the UNKNOWNs it settles and what to look for. "Log"
| `rtsp.announce` | U6 | 200 means our 19 attributes are accepted as they are |
| `ping` + `video.first` / `audio.first` | U8 | Payload `PING`; `pings_before` and the source port of the first packet |
| `control.datagram` (first 64 each way) | U9 | Decoded ENet: our connect, the host's verify connect (channel count, MTU, window, flags), anything stock 1.3 lacks (`unparsed: …` or `parse_error`) |
| `control.start_a`, `control.start_b` | U10 | What we sent. Video then flowing means the host accepted it |
| `control.start_a`, `control.start_b` | U10 | What we sent (empty bodies by default). Video then flowing means the host accepted it |
| `control.periodic_ping` (first 3), `launch.summary` `control.ended` | U10 | The empty ping every 500 ms; `ended` null after 90 s means the pings kept the session alive |
| `control.host` | U10, U11, U23 | Every decrypted host message: type, sequence, body |
| `video.frame` (first 16) | U13 | `header_raw`: Wolf's constant `0137636861727373` or Moonshine's fields |
| `launch.summary` | U14 | `u14_*`: whole-packet parity matches (5.3 confirmed), or payload-only, or neither |
@@ -178,10 +184,11 @@ most 6 launches in the sitting, and the same variant is never tried twice.
| Symptom (log) | Variant |
| :-- | :-- |
| ANNOUNCE not 200 (U6) | `--encryption 1`, then `--codec hevc`, then `--packet-size 1392`. Attribute values beyond the CLI need a code change: stop and report |
| No verify connect, ENet `timed_out` (U9) | `--enet-channels 48`, then `--enet-connect-data <value from P4>` |
| Connected but no video within 5 s of START_B (U10) | The bodies from P4 (`--start-a`/`--start-b <hex>`), one pair per launch |
| Video stops after N s, host disconnects (U10) | `--periodic-ping <body from P4> --periodic-ping-ms 100` |
| Frames lost and never recovered (U10) | `--rfi`, if DESCRIBE has `refPicInvalidation`; else `--idr <body from P4>` |
| No verify connect, ENet `timed_out` (U9) | `--enet-channels 48`. Nothing else is known about the connect fields: stop and report |
| Connected, but the host ends the session right after START_A, or `sunshine.log` names an unknown control message (U10) | `--start-a none` (Moonshine has no START_A) |
| Connected but no video within 5 s of START_B (U10) | Read `sunshine.log` for what it says about START_B. If it names a body or a length, give that body with `--start-b <hex>` (one try). Otherwise stop and report: P4 found no body, and none is guessed |
| Video stops after N s, host disconnects (U10) | `--periodic-ping-ms 100`; if it still stops, `--periodic-ping none` (to see whether the empty ping is what the host refuses), then stop and report |
| Frames lost and never recovered (U10) | `--rfi`, if DESCRIBE has `refPicInvalidation`; else `--idr none`, to compare with the default empty request |
| Surround (U26), only if time allows | `--audio 5.1` |
### S5. U28, a refused pairing (optional, 2 min)
@@ -261,8 +268,8 @@ One JSON object per line, flushed as written:
gate first).
5. **Re-run the probe** against Sunshine with the patched crate: `launch` with **no** variant flags must give
`decode_ready_frames > 0`, audio packets, and no `stop`. Then release `stream-v0.1.1` (HANDOVER).
6. **Arena:** B1–B5 answers go to Arena `docs/PLAY-REMOTELY.md` §8/§15/§17, through the Arena build lead (Arena's
files are theirs).
6. **Arena:** B1–B5 answers go to Arena `docs/PLAY-REMOTELY.md` (handover, §8, §15). That file and arena-host are Play
remotely's own, so we write them; the seam files stay the Arena build lead's.
**Not settled by the probe:**
- U20, U21, U22: no keyboard, touch or gamepad input beyond the one mouse nudge.
@@ -311,7 +318,7 @@ Then wait.
| :-- | :-- | :-- |
| 0:00 | S0, S1: read-only checks, `serverinfo` | nothing |
| 0:02 | S2: the probe pairs (we submit the PIN through Sunshine's API). Sunshine may show a notification | nothing |
| 0:05 | S3, S4: the agreed game starts on his PC and streams to the probe for 30 s; then we close it | hands off mouse and keyboard while it runs |
| 0:05 | S3, S4: the agreed game starts on his PC and streams to the probe for 90 s; then we close it | hands off mouse and keyboard while it runs |
| 0:07-0:15 | Variants, only if needed (up to 6 launches, each about 1 min) | same |
| 0:15 | S5 (optional), clean-up | nothing |
| later | Analysis offline; the game frames are deleted | nothing |