Commit Graph

116 Commits

Author SHA1 Message Date
mnovak 4300b6b7fb [domistream] Control: START_B, PERIODIC_PING and the IDR request with empty bodies (PROTOCOL.md 3.3); START_A stays refused 2026-12-04 13:46:12 +01:00
mnovak 66679229db [domistream] Control: tests first, START_B, PERIODIC_PING and the IDR request with empty bodies (START_A stays refused) 2026-12-04 13:45:04 +01:00
mnovak 51db5a962b [repo] Merge: feature/host-session (session test, fixes, mutation, L1 measurement, 0.2.0, PR #14) stream-v0.2.0 2026-12-04 13:40:12 +01:00
mnovak a907f705f1 [repo] Docs: the L1 black-box measurement of Arena Domi Remote against lumen-host [L1]; handover evidence (422 tests, mutation 26/27 + 1 equivalent, host_pairing 601 s) 2026-12-04 13:40:02 +01:00
mnovak 1f95cc8db4 [repo] Release: version 0.2.0 (client and host); const assertions for the applist cap (clippy) 2026-12-04 13:31:17 +01:00
mnovak 1fca3abd49 [repo] Mutation: host rows M25-M51 (26 caught, 1 equivalent) 2026-12-04 13:28:50 +01:00
mnovak c2e3c28ed6 [domistream] ENet host: test that a ping before the verify ack is not acknowledged (kills mutant M36) 2026-12-04 13:28:50 +01:00
mnovak 110eed8c14 [repo] Docs: host side overview in PROTOCOL.md, README status and the stream-v0.2.0 handover (evidence filled in after the mutation pass) 2026-12-04 13:28:50 +01:00
mnovak a355532881 [repo] Mutation: host mutants M25-M51 (pairing, HTTP, RTSP, ANNOUNCE, DESCRIBE, ENet host and client session ids, control host, video and audio packetizers); a row may name several test binaries 2026-12-04 13:28:50 +01:00
mnovak 6207624cb8 [domistream] Session: a whole GameStream session between our client and our host, in memory
serverinfo over HTTP, pairing with the owner typing the phone's code, serverinfo over HTTPS (PairStatus 1), applist, launch (keys handed over), RTSP with one connection per request (the host's StreamConfig equals the client's ANNOUNCE), ENet + START_B, sealed video over a lossy link (exactly the parity budget lost per block, then a burst beyond it reported lost and answered with reference invalidation and an IDR request, then a recovery frame), sealed audio without parity (losses reported), typed input and a gamepad state, rumble, graceful termination, ENet disconnect and cancel. Also the Tessera-trusted path (no /pair, pinned host certificate) and an unpaired client refused over HTTPS. START_B, PERIODIC_PING and the IDR request go with empty bodies over the probe-style stack because ControlStream refuses them (U10).
2026-12-04 13:28:50 +01:00
mnovak fd6333620d [domistream] HTTP: MAX_APPS = 4095, derived from the XML element cap, on client and host alike
4096 apps of four elements each (App, AppTitle, ID, IsHdrSupported) plus the root need 16385 elements, one over MAX_XML_ELEMENTS, so the app cap could never be reached by a list as hosts write it and the host writer already stopped at 4095. Lowering the app cap to (MAX_XML_ELEMENTS - 1) / 4 = 4095 instead of raising the element cap keeps the XML parser's memory bound where it was and makes the two caps one number: the host's MAX_WRITTEN_APPS is now MAX_APPS, with a compile-time check that it fits.
2026-12-04 13:28:50 +01:00
mnovak fa08511804 [domistream] ENet: take VERIFY_CONNECT's session ids as stock ENet does (incoming = verify.incoming)
The client stored them the other way round (out_session from verify.incoming_session_id). Against a fresh stock slot both are 0, so it never showed; after a reconnect stock ENet answers with two different ids and the client would send with the host's outgoing id and drop every host datagram. Found by the ENet host engineer; facts from stock ENet v1.3.18 as logged in S-17/S-34 (PROTOCOL.md 3.1), no new source read.
2026-12-04 13:28:50 +01:00
mnovak 3dd7a8fe94 [domistream] HTTP: test that a full applist at MAX_APPS fits the XML element cap (fails: 4096 apps need 16385 elements)
Hosts write four elements per app; MAX_APPS of them plus the root must fit MAX_XML_ELEMENTS, so the app cap is reachable.
2026-12-04 13:28:50 +01:00
mnovak c06fec4be5 [domistream] ENet: test that the client takes the verify's session ids as stock ENet does (fails: they are swapped)
A host that answers VERIFY_CONNECT with different incoming and outgoing session ids (stock ENet after a reconnect, PROTOCOL.md 3.1) must see the client send with the verify's outgoing id and accept datagrams carrying the verify's incoming id.
2026-12-04 13:28:50 +01:00
mnovak 10f88e69cd [repo] Merge: fix/fuzz-manifest (fuzz manifest duplicated keys, PR #13) 2026-12-04 13:25:30 +01:00
mnovak a263ef0f9a [fuzz] Manifest: drop the duplicated keys left by a merge in the announce entry 2026-12-04 13:25:10 +01:00
mnovak 337f6a72c5 [repo] Merge: feature/host-pairing-http (host HTTP, XML answers and pairing, PR #12) 2026-12-04 12:49:58 +01:00
mnovak 80047c65df [fuzz] rustfmt of the host targets 2026-12-04 12:48:26 +01:00
mnovak 509e82d914 [fuzz] host_http_request and host_pairing targets (head cutter agrees with the parser, query round trip, never Paired without the client key, Failed is terminal) 2026-12-04 12:48:26 +01:00
mnovak 989defcc88 [domistream] Host pairing: the host's state machine (pending-PIN slot, proof and signature checks, deadlines from the caller, trusted clients without a PIN) 2026-12-04 12:48:25 +01:00
mnovak 3106f2cb46 [domistream] Host HTTP: strict request head and query parsing into typed routes, XML answers the client parsers accept (head-end test corrected: a 64 KiB buffer without the empty line is already over the cap) 2026-12-04 12:48:25 +01:00
mnovak bdd867c521 [domistream] Host pairing: tests first (client and host paired in memory, wrong PIN on both sides, order, timeouts, trusted clients) 2026-12-04 12:48:25 +01:00
mnovak 3aa3775de8 [domistream] Host HTTP: tests first (request head and query parsing, caps, XML answers read back by the client parsers); API stubs return Unimplemented 2026-12-04 12:48:25 +01:00
mnovak 7b9b1f4e9c [repo] Merge: feature/host-enet-control (ENet accepting side and control host, PR #11) 2026-12-04 12:48:07 +01:00
mnovak f0aac13f12 [fuzz] rustfmt the host targets 2026-12-04 12:46:47 +01:00
mnovak 95380a3b37 [repo] Docs: the accepting side of ENet and the control host (PROTOCOL.md 3.1, 3.3); S-34 stock ENet host-side functions 2026-12-04 12:46:47 +01:00
mnovak db56a5dbb1 [fuzz] enet_host and control_host targets
enet_host: accept on the first datagram or a canned connect (optionally acknowledged), then datagrams, some with our header; asserts outgoing datagrams parse within the MTU and deliveries stay under the cap. control_host: a connected ControlHost fed sealed arbitrary plaintexts, replayed sequence numbers, arbitrary frames in valid commands and raw datagrams; asserts parse_client_message invariants and that no message appears without a sealed frame. 60 s each, 0 crashes.
2026-12-04 12:46:39 +01:00
mnovak e082570a3f [domistream] Control host: ControlHost (client frames opened with replay refusal, typed client messages, host messages, stop deadline)
parse_client_message types START_B, PERIODIC_PING, INPUT_DATA (through input::parse_input), IDR, INVALIDATE_REF_FRAMES, LOSS_STATS and FRAME_STATS (raw bodies) and skips anything else as Unknown. encode_host_message sends rumble, trigger rumble, motion, RGB LED and the extended termination; the plain termination (U10) and HDR_MODE (GPL-provenance layout) stay Unsupported. StopDeadline ends a session without PERIODIC_PING (default 60 s).
2026-12-04 12:46:39 +01:00
mnovak f8bad73121 [domistream] ENet host: EnetHostPeer, the accepting side (verify connect, session ids, reliable channels, pings, timeouts, disconnect)
One peer per client address. CONNECT answered with a reliable VERIFY CONNECT as stock ENet 1.3 does it (session ids picked from the client's offer, MTU, window and channels clamped, throttle echoed); connected once the client acknowledges the verify; reliable, unreliable and unsequenced delivery with fragment reassembly under the existing caps; duplicate unsequenced groups dropped; pings when the client is quiet; retransmission and timeout as the client; disconnect both ways. Shares the client's channel, fragment and in-flight types.
2026-12-04 12:46:39 +01:00
mnovak 58910d00fa [domistream] Control host: tests first (ControlStream against ControlHost, replay, stop deadline), API stubs
Input arrives typed and byte-identical to what the client encoded; host rumble, trigger rumble, LED, motion and termination reach the client; replays, forgeries and malformed messages are dropped; the stop deadline ends a session without PERIODIC_PING. Alloc caps for the host parsers. They fail against the stubs.
2026-12-04 12:46:39 +01:00
mnovak e77c5fcd83 [domistream] ENet host: tests first (client against host over an in-memory lossy wire), API stubs
EnetHostPeer is the accepting side, one peer per client address. The tests drive our EnetClient against it with simulated time, loss, duplication and reordering, plus a scripted client for the stock ENet 1.3 facts (verify connect fields, session ids, what is acknowledged when). They fail against the stubs.
2026-12-04 12:46:39 +01:00
mnovak eae3b9e754 [repo] Merge: feature/host-rtsp-server (RTSP server, DESCRIBE and ANNOUNCE, PR #10) 2026-12-04 12:46:30 +01:00
mnovak fd4285aff0 [domistream] RTSP server: PROTOCOL.md 2.5 (host side, ANNOUNCE required/defaulted table), clean-room sources S-30 to S-32 2026-12-04 12:44:49 +01:00
mnovak a86a689b1f [domistream] RTSP server: session state machine, DESCRIBE writer, strict ANNOUNCE parser, response encoder and request framer; test fixes (escaped CRLF in alloc_caps, CSeq test state, clippy) 2026-12-04 12:44:49 +01:00
mnovak 27b7f2bf1d [fuzz] RTSP server: rtsp_server (session fed arbitrary requests after a valid prefix) and announce targets 2026-12-04 12:44:49 +01:00
mnovak 54bc9f5faf [domistream] RTSP server: tests first (in-memory client/server session, order, Session, ANNOUNCE parser, DESCRIBE writer, caps); API stubs return Unimplemented 2026-12-04 12:44:40 +01:00
mnovak 33b7b90b65 [repo] Merge: feature/host-packetizers (video and audio packetizers, PR #9) 2026-12-04 12:44:34 +01:00
mnovak 81ddf64bee [fuzz] video_packetizer_roundtrip: rustfmt 2026-12-04 12:28:25 +01:00
mnovak 7a6afed575 [fuzz] video_packetizer_roundtrip: arbitrary frames and parameters, packetize, lose up to m per block, depacketize equals input 2026-12-04 12:27:22 +01:00
mnovak 0d3a9a7917 [domistream] Audio packetizer: RTP datagram per Opus packet, AES-128-CBC (AudioCipher::encrypt), no parity until U16; first sequence must start a block 2026-12-04 12:24:45 +01:00
mnovak b62443ef28 [domistream] Video packetizer: frame header, FEC blocks with Cauchy parity over whole packets, sequence numbers, optional AES-GCM sealing (VideoCipher::encrypt) 2026-12-04 12:24:40 +01:00
mnovak e1abd7d060 [domistream] Audio packetizer: tests first (round trips through AudioDepacketizer, wrap-around, caps, fixed vectors), API stubs 2026-12-04 12:20:55 +01:00
mnovak 7983833ba6 [domistream] Video packetizer: tests first (round trips through VideoDepacketizer, loss up to and beyond m, fixed vectors), API stubs 2026-12-04 12:20:55 +01:00
mnovak 514565dbd7 [repo] Merge: docs/lumen-l0 (Lumen L0 results, PR #8) 2026-12-04 12:08:00 +01:00
mnovak 284bf7cc17 [repo] Docs: Lumen L0 results (licences, FP16 capture, NVENC API 12.0, timings); S-23 to S-25 2026-12-04 12:07:53 +01:00
mnovak e4fdca794b [repo] Merge: docs/lumen-decisions (Lumen decisions D1-D6 and the iOS phase, PR #7) 2026-12-04 11:55:55 +01:00
mnovak 73deb851ae [repo] Docs: Lumen decisions D1-D6 (Mark, 2026-12-04), iOS as a later client phase, OBS/FFmpeg forbidden for host work 2026-12-04 11:55:48 +01:00
mnovak 813a0ab8c4 [repo] Merge: docs/lumen-host-plan (Lumen host plan, PR #6) 2026-12-04 11:27:42 +01:00
mnovak 3794ed0e7f [repo] Docs: Lumen host plan (architecture, migration from Sunshine, milestones, risks, tests); S-22 Microsoft Learn sources 2026-12-04 11:27:20 +01:00
mnovak 89de3210be [repo] Merge: feature/probe (gs-probe and the live-interop run book, PR #5) 2026-11-30 11:02:20 +01:00