tools: gs-probe and the live-interop run book #5

Closed
mnovak wants to merge 0 commits from feature/probe into main
Owner

A desktop GameStream probe client and the run book for the one live-interop sitting with Mark (Play remotely Day 1). It settles DomiStream's open UNKNOWNs against the pinned Sunshine. Merged under Mark's "Merge without me".

  • tools/gs-probe (its own workspace, NOT part of the published crate; it may use sockets and threads as a tool): serverinfo, pair (prints the PIN for the operator; a dev tool, not the product), apps, launch (RTSP, ENet control, video and audio for N seconds), quit, unpair, solve-audio-fec. It writes a structured log per run, mapped to each U, with every parser error and its bytes. Secrets (the stream key, pairing salts and secrets) are redacted, and every line is scanned for the session key before it is written. It counts video frames, FEC recoveries and losses, checks our FEC encoder against the host's parity (U14), and runs two audio receivers to settle U17.
  • Control-message defaults from Moonshine (BSD-2, allowed; CLEAN_ROOM S-21): empty START_A/START_B, a PERIODIC_PING every 500 ms, an IDR request on loss. Every body can be overridden.
  • docs/LIVE-INTEROP.md: hard limits, what Mark sees, preparation P1-P5 (P3 = a dev-only arena-host sunshine-api command with the credentials from Custos, P4 done), the sequence S0-S5, the bounded variants table (at most 6 launches), reading the log, from the log to the code (then stream-v0.1.1), stop-and-report, and clean-up.
  • PROTOCOL.md §3.3/§8 rows updated with the Moonshine facts, tagged [M].

Gate

  • 44 unit tests (argument parsing, the log format, secret redaction, the control-body encodings and layouts); clippy -D warnings and fmt clean; release build OK (built on F:).
  • Built only: never run against any host. No port opened beyond one loopback unit test.

Self-review

  • The crate itself is unchanged: encode_client_message still refuses those control types until Sunshine confirms the bodies live (run book §5).
  • --relay through tools/lab-relay won't work against .140 (lab-relay is loopback-only); the probe's own log covers what we need.
  • No secrets (the test-only identity lives in the run's out folder, never in git), no binaries, no AI attribution.
A desktop GameStream probe client and the run book for the one live-interop sitting with Mark (Play remotely Day 1). It settles DomiStream's open UNKNOWNs against the pinned Sunshine. Merged under Mark's "Merge without me". - `tools/gs-probe` (its own workspace, NOT part of the published crate; it may use sockets and threads as a tool): `serverinfo`, `pair` (prints the PIN for the operator; a dev tool, not the product), `apps`, `launch` (RTSP, ENet control, video and audio for N seconds), `quit`, `unpair`, `solve-audio-fec`. It writes a structured log per run, mapped to each U, with every parser error and its bytes. Secrets (the stream key, pairing salts and secrets) are redacted, and every line is scanned for the session key before it is written. It counts video frames, FEC recoveries and losses, checks our FEC encoder against the host's parity (U14), and runs two audio receivers to settle U17. - Control-message defaults from Moonshine (BSD-2, allowed; CLEAN_ROOM S-21): empty START_A/START_B, a PERIODIC_PING every 500 ms, an IDR request on loss. Every body can be overridden. - `docs/LIVE-INTEROP.md`: hard limits, what Mark sees, preparation P1-P5 (P3 = a dev-only arena-host `sunshine-api` command with the credentials from Custos, P4 done), the sequence S0-S5, the bounded variants table (at most 6 launches), reading the log, from the log to the code (then `stream-v0.1.1`), stop-and-report, and clean-up. - PROTOCOL.md §3.3/§8 rows updated with the Moonshine facts, tagged [M]. ## Gate - 44 unit tests (argument parsing, the log format, secret redaction, the control-body encodings and layouts); clippy `-D warnings` and fmt clean; release build OK (built on F:). - Built only: never run against any host. No port opened beyond one loopback unit test. ## Self-review - The crate itself is unchanged: `encode_client_message` still refuses those control types until Sunshine confirms the bodies live (run book §5). - `--relay` through `tools/lab-relay` won't work against .140 (lab-relay is loopback-only); the probe's own log covers what we need. - No secrets (the test-only identity lives in the run's out folder, never in git), no binaries, no AI attribution.
mnovak added 2 commits 2026-11-30 11:02:19 +01:00
tools/gs-probe (own workspace, never published): `probe serverinfo | pair | apps | launch <app-id> | quit | unpair`
against one host address, driving DomiStream's pairing, HTTP, RTSP, ENet, control, video and audio state machines
over real sockets. Structured JSONL log per run (requests, answers, timings, the U each record bears on, parser
errors with their bytes), secrets redacted (rikey, pairing values; PIN never logged; registered key hex scrubbed from
every line). Test-only client key and cert in --out. Video: frames, decode-ready frames, FEC recoveries, losses,
elementary-stream dump, live U14 parity check; audio: packets, losses, decrypting vs plain receivers (U17), packet
dump and offline U16 solver (`solve-audio-fec`). START_A/START_B/PERIODIC_PING/IDR bodies come from the command line
(U10).

docs/LIVE-INTEROP.md: the sitting's run book (preparation, sequence S0-S5 with the U each step settles, variants,
log reading, where each fact lands in PROTOCOL.md and the code, stop-and-report rule, clean-up, Mark's timeline).

Built and unit-tested only (41 tests, clippy -D warnings, fmt); never run against a host.
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).
Author
Owner

Merged by hand under Mark's 'Merge without me': main 89de321, pushed; HEAD == origin/main checked.

Merged by hand under Mark's 'Merge without me': main 89de321, pushed; HEAD == origin/main checked.
mnovak closed this pull request 2026-11-30 11:02:22 +01:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/DomiStream#5