Commit Graph

12 Commits

Author SHA1 Message Date
mnovak 3e09dbc09a [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).
2026-11-30 11:01:41 +01:00
mnovak 07ccff4241 [probe] gs-probe: desktop GameStream probe client and the live interop run book
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.
2026-11-30 10:57:07 +01:00
mnovak 8125949db2 [domistream] Tests: mutation pass, 24 of 24 caught
docs/MUTATION.md: each mandatory area's bug put back into src and caught by
its tests (parser caps off by one or removed for XML, RTSP, ENet, input,
video, audio; lying lengths; the ENet 0xFFFF wrap; the control replay
check; the nonce direction byte; ignored GCM tags, control and video; a
video parity index off by one; a rebuilt video shard's header trusted;
audio parity keyed by RTP sequence; a skipped pairing step; unchecked host
signatures; Instant::now and getrandom in src). No mutation survived, so no
test was added.

tools/mutation/mutate.py: the exact edits, so the pass can be rerun
through the resource gate.

Also: pairing_session fuzzed 10 min, 574 761 runs, no crash.
2026-11-26 03:59:58 +01:00
mnovak 0f2edc66c9 [repo] Merge feature/lab: lab capture plan, relay tool, approved sources, U9/U14 from ENet and fec-rs 2026-11-25 13:16:40 +01:00
mnovak 6c68a25b77 [repo] Lab capture: lab-install.ps1 (pinned MSI, loopback bind, one elevation) and lab-api.ps1 (pinned TLS, DPAPI credentials) 2026-11-25 13:08:46 +01:00
mnovak fd1c141ca8 [repo] Lab relay: compile fixes after the first build (clippy, fmt); 28 unit tests pass 2026-11-25 13:08:46 +01:00
mnovak ab5404b0cf [repo] Lab capture: lab root on E:\build\play-remotely\lab (approved), build rule with TEMP/TMP on E: 2026-11-25 13:03:10 +01:00
mnovak 7326767f37 [domistream] Tests: vector generator and shared test helpers
tools/vectors/gen_vectors.py makes the crypto vectors with tools independent of
RustCrypto: Python hashlib (SHA-256), the OpenSSL 3.5 CLI (RSA-2048 test-only
keys, X.509 certs, PKCS#1 v1.5 SHA-256 signatures, AES-128-ECB -nopad,
AES-128-CBC) and .NET 10 AesGcm (gcm_vectors.cs). Output goes to
crates/domistream/tests/fixtures (text only); not generated in this commit.

tests/common: seeded and scripted RandomSource, fixture reader, an independent
GF(2^8)/0x11D reference with Cauchy matrices, and test hosts that packetize
video (PROTOCOL.md 5.2-5.3) and audio (6.2-6.4).

Dev-dependencies: proptest (std only, no fork/timeout) and peak_alloc (MIT,
counting allocator for the allocation-cap test).
2026-11-25 12:51:00 +01:00
mnovak a2b834ed87 [repo] Lab relay: recorder, redacting dump, TCP/TLS-terminating/UDP relays, CLI (never compiled yet) 2026-11-25 12:36:56 +01:00
mnovak fbb8833f3d [repo] Lab capture: lab root back on F:\Akce\DomiStream-lab (move to E: cancelled) 2026-11-25 12:34:46 +01:00
mnovak 8b968be489 [repo] Lab capture: lab root moves to E:\build\play-remotely\lab (F: is full); build rule and TLS fallback noted 2026-11-25 12:32:11 +01:00
mnovak 26ce712e82 [repo] Lab relay: record file format, loopback-only config, streaming rewriter, with unit tests (not yet compiled) 2026-11-25 12:31:06 +01:00