Extend the existing route scenario with a bounded seeded sequence, pair
failure and session expiry. Assert matching upstream/downstream projections,
source reachability and an acyclic business tree while permitting the
underlying connection graph to contain cycles. Use the current Core runner.
Both existing storage test runners consume one fixture for author checks,
deleted-message retry identity, removed references and history seeking.
The implementations keep their own transactions and indexes. SQLite and the
actual Browser/WASM storage run pass the shared scenario.
Use request barriers to select the updater provider instead of millisecond
sleep races. Allocate the integration test's UDP port through UDP rather than
assuming the OS accepts the separately allocated TCP port.
Refresh RTP baselines at the actual warm switch and compare modular progress.
Keep media reuse deadlines and add failing phase/cycle context. This improves
test causality without claiming the reported intermittent capture failure fixed.
Both stop and HTTP-return paths await the same cleanup future, preserving
dependency order and preventing cancellation of partially completed shutdown.
Controlled Tokio checks cover cleanup before start, during work and after
completion; the normal Server shutdown tests retain their existing contract.
A real WebSocket control verifies that a dead Driver on resumed admission
releases the old session and that a fresh Driver can reuse the fixed sockets.
Keep the transport test lease helper confined to capture-enabled tests.
Opening or installing one room must not retire independently hosted siblings.
Handle that failure at the existing room operation, retain global directory
and identity failures as host failures, and report the failed CLI room ID.
Session and real Server tests cover a locked room, creation installation
failure, healthy sibling chat/history, recovery after unlocking and a second
process that cannot steal an existing binding. Invalid global layout still
ends the HTTP service and leaves the data unchanged.
Linux and Windows hardware use the shared 3000-frame WebRTC interval. Linux
caps GOP to the plugin's advertised maximum, keeping unrelated numeric
properties strict. Windows preserves a usable driver when the optional GOP
property is unsupported.
Android follows libwebrtc's 3600-second MediaCodec interval, which avoids the
negative-value initialization failures described in upstream 419344264cfc.
Existing explicit keyframe requests remain unchanged.
Validation includes real x264 force-key-unit output, a synthetic NVIDIA MFT
comparison, Linux capture compilation and Android API 29 links on both ABIs.
Physical Android and other hardware drivers remain in TODO.
Sources: https://webrtc.googlesource.com/src/+/refs/heads/main/api/video_codecs/video_encoder.cchttps://webrtc.googlesource.com/src/+/419344264cfc7445af3e82024bd285303e17b3d6%5E!/
The room retains the original source and current successor for its subscribed
viewers. Ordinary snapshots project that typed predecessor, including when a
viewer misses more than one replacement. Local playback and receiving-method
choices remain with the Browser.
Remove one-shot channel event decoration. Joining, leaving, access loss and
session expiry retire the room record. A leave for an already-retired screen
is routed only through that viewer's authorized pending handoff.
Core regressions exercise both cross-kind chains, session recovery, revocation,
fresh sessions and independent viewer exits. Shared Web schemas and Native
constructors use the same pending Domain 46 contract. The existing network
design owns the lifecycle; no persisted-data format changes.
Accept the shared byte-distribution owner, supervised transport retirement,
distinct random-port probes, software keyframe interval and lazy-load retry.
Preserve the review branch's commits and authorship.
Use the one-writer cross-review mailboxes. Narrow the proposed lifetime rules
to demonstrated ownership problems rather than requiring a universal interface
or a restructure after every repeated fix. ADR-0015 remains proposed.
Use the active prototype as its explicitly scoped pre-cutover base and invoke
the vcpkg bootstrap by a fixed relative path. Independent trace reviews and
the queue's recorded controls support these choices; combined checks follow
with the concrete mailbox fixes on the same development branch.
Keep a borrowed page and its active media reader alive while the host inspects
another player. Commit the candidate only after the room accepts it, then retire
the previous reader through the page owner. The native caption reopens the same
source chooser without navigating the logged-in page.
Validation: 2298 Web tests, TypeScript, Windows same-page A/B cancellation and
commit controls, 41 current Windows page tests, Linux page tests and both Android
ABIs. Two cancellation assertions were updated to expect the released empty slot.
The ownership and source-selection contract is in channel-network-design.md.
The Windows software H.264 and VP8 encoders were configured with a
keyframe interval of twice the frame rate. A static screen was therefore
re-encoded as a full picture every two seconds, which spends bitrate on
content that did not change and, under CBR, replaces a converged picture
with a coarser one each time. The new test shows the real Media Foundation
encoder emitting that keyframe at frame 20 of a 10 fps static sequence.
Stock WebRTC does not send keyframes on a timer: libwebrtc sets
keyFrameInterval to 3,000 frames for VP8 and H.264 and passes it to libvpx
as kf_max_dist, and Chromium's Media Foundation encoder uses
kDefaultGOPLength = 3000. Recovery and late joiners already use the
existing force-keyframe path. Use the same 3,000 frames here, from one
constant.
Not changed, because they cannot be built or run on this host: Linux
(key-int-max / gop-size, same two seconds) and Android (i-frame-interval
2). Windows hardware H.264 and macOS set no interval and keep their
encoder default.
Sources:
https://webrtc.googlesource.com/src/+/refs/heads/main/api/video_codecs/video_encoder.cchttps://webrtc.googlesource.com/src/+/refs/heads/main/modules/video_coding/codecs/vp8/libvpx_vp8_encoder.cchttps://chromium.googlesource.com/chromium/src/+/main/media/gpu/windows/media_foundation_video_encode_accelerator_win.cc
The searching side of a random-port preparation sent 512 requests but
cycled twice over the same 256 ports. Coverage, not the number of requests,
sets the chance that a probe reaches one of the peer's 256 mappings: with M
mappings and N distinct targets in a pool of R ports the idealized hit
probability is 1 - exp(-M*N/R), as docs/research/nat-traversal.md records.
For M = 256 and R = 64,512 that is 63% at N = 256 and 87% at N = 512, for
the same packets, pacing and deadline.
A second pass over one set only protects against a lost request, and it
loses to distinct targets at any loss rate: at 30% loss the repeated set
covers about 233 ports and the distinct set about 358. The peer signals
Ready after its mappings exist, so a first probe is not early.
The request budget stays 520 and the pool side is unchanged. Lab evidence
in nat-traversal.md was taken with 256 targets and is not re-measured here.
Reference: https://tailscale.com/blog/how-nat-traversal-works (birthday
search against a hard NAT).
room.rs conflicted where the active line added Watch.replace_id beside the
parents and refused fields that the queue moved into ByteTree. Both are
kept: Watch carries replace_id and one ByteTree.
The transport pump's lifetime had no owner beyond its happy path. The
ServerUdp lease was a bare flag reset only after the pump loop ended
normally, so a panicked or aborted pump left the fixed sockets leased
forever and every later Runtime on that service returned at once, failing
each call with "transport closed". Nothing above noticed: the Driver only
saw per-call errors, failed pairs one by one, and replanned into the same
failure. Runtime had no Drop either, and its engines hold command senders,
so a Runtime dropped by a panicking Driver kept its pump, sockets and
readers alive.
The lease is now an RAII guard owned by the pump task, so return, panic
and abort all release it, and the flag is private to server_udp.rs.
Runtime aborts its task on Drop, and each socket reader is aborted with
the Socket that owns it, so an idle reader no longer holds its port after
an aborted pump. Runtime::stopped resolves when the command receiver,
owned only by the pump task, is dropped; the Driver's main select ends
the Driver with an error on it. Retirement still runs once through
Driver::close on every exit, and a clean close stops the runtime only
after the loop, so it is not reported as a failure.
File (file_room.rs) and Watch (room.rs) each kept the same source, parents
and refused state and each reimplemented refusal validation, refusal
retention, forwarding_available, failed-pair retirement, waiting detection,
frontier collection and per-session plan projection. A change to byte
refusal therefore had to be repeated at about eight sites in room.rs.
routes::ByteTree now owns that state next to activity_parents and
byte_frontiers, which it wraps. FileRoom keeps one per file and still
chooses among holders; Watch embeds one and RoomRuntime supplies the
receiver set, the refusal-retention predicate and the announced source.
Each family keeps its existing predicates: files retain refusals for
admitted sessions or the service, watches for routable sessions, and the
watch-only source and self-refusal checks stay in room.rs.
watch_receivers now borrows only the activity map, so the routing loop
uses it instead of an inline copy.
No wire, storage or public API change.
Read the negotiated codec separately from active allocation so pausing a sender does not permanently disable shared encoding. Refresh native page placement when pixel density changes and refresh selected-source labels when their title attributes change.
Use the existing gateway mapping when renewing its nonce and selecting its protocol after probe expiry. Align Native, Server and Android to the tested fork revision and associate its crate notices with the complete upstream license text.
Retire quoted content after explicit access revocation without dropping drafts during a room writer restart. Bind a pending file picker to its original conversation, keep room record actions independent, and clarify narrow terminal help and local-network troubleshooting.
Keep room deletion failures with their initiating surface and retain room identity after that surface closes. Recover local autoplay guidance when the owner pauses, preserve narrow playback focus, and remove duplicate SDK shutdown cleanup. Declare the software encoder output color from its configured SDR contract.
Present the Android confirmation entry only after its capture is registered, and keep late intents scoped to that capture. Rejected desktop preparations no longer cancel another pending OBS source.
BREAKING CHANGE: Internal Web and App builds must use App Control protocol 24. Domain protocol and saved-data formats are unchanged.
Native peers can use configured TURN over TCP or TLS and share ordinary IPv4 sockets within their endpoint runtime. Retire the last socket and gateway owner without interrupting sibling paths. Preserve explicit viewer playback errors, bound desktop decoder inputs, and stop copying cancelled retained files.
Room planners describe authorized missing connections, and channel admission tries alternatives when a preferred peer is full. Retain completed pairs until payload grants take over, bound discovery advice by the existing frame limit, and detach retained file bytes before temporary cleanup.
BREAKING CHANGE: Internal participants must use Domain protocol 44.
Keep chat history and scroll position across reconnects, bind App operations to the active control connection, and release background shortcuts while text or remote input owns the keyboard. Assemble H.264 pictures with their referenced parameter sets without transcoding.
Use patched URL and SQLite releases, restore str0m to its verified registry release, and update the Vite patch lines used by app and documentation builds. Preserve existing wire and stored formats. Render unavailable document links through the shared error surface while keeping resource requests at 404, and clarify hosting ownership in the guides.
Cancel unsent chunks on the first failed response without affecting healthy siblings, and report each response failure once. Keep an acknowledged native save receipt independent of later download cancellation while its optional IndexedDB write completes.
Apply confirmed paused positions exactly and retire media permission requests with their documents. Keep reaction menus and connection hints tied to visible anchors and proven metrics. Narrow text reaction receipts to messages, avoid copying image data for history sizing, and align the shared guides and previews with their controls.
Keep the established launch query contract for separately updated Apps and sites. Handle same-document room and invitation navigation inside the verified Windows workspace while preserving full navigation for real path, query and origin changes. This keeps active sharing and the selected App together without a second URL or compatibility parser.
Keep remote-control approval and password actions visible through the shared playback owner. Centre avatars through Pawn geometry, reuse shared App controls and show loading only on the owning action. Acquire Windows audio event ownership before fallible registration and derive IPv6 presence from accepted ICE candidates.
Keep launch metadata in the room fragment so same-site invitations retain the document and active sharing. Preserve confirmed microphone state during capture permission, acknowledge confirmed empty history, and retire local watch intent through writer recovery. Consolidate actionable App guidance and distinguish local and invitation addresses. Move signed payloads without copying and import only the semver functions used.
Start the existing NAT64 lookup when initial ICE gains its first usable IPv6 address, and retire it at nomination. Distinguish unsupported OBS offers from observed SPS limits. Keep invitations bound to their room and preserve usable playback controls in short windows.
Retain image previews up to 1280 pixels within the existing message budget, supplied by the shared Core limit. Require Domain 43 for new image writes while preserving App Control 23 and existing storage and backup formats. Hold the channel directory lock with its last writer and remove redundant storage locking. Align compact header branding and reuse the shared native drag region.
Release unsent file frames by request without disrupting sibling traffic. Build route-repair views only when needed and retain only capture scope and acknowledgements after commands are sent. Keep pane navigation and keyboard focus coordinated, and guide incompatible saved data back to its owning version.