Commit Graph
483 Commits
  • refactor(app): one request and reply to the room host
    Nineteen places made a oneshot, sent a HostCommand that carries its
    sender, awaited the answer and mapped a host that had gone away to
    hosting_unavailable, each by hand. session::request, beside
    HostCommand, does it once. It takes the queue slot the caller reserved
    and sends at once, then returns the wait for the answer, so what
    differs between callers stays visible where they call: reserve or
    try_reserve, a deadline around the answer only, an abort around the
    whole, a handoff made under the hub's lock.
    
    Kept at their sites, as they were: hosted creation and a copy reserve
    without waiting and treat a full queue as busy or unavailable; a
    creation or a restore whose answer is lost after the handoff is
    unconfirmed, not unavailable; the relay capacity deadline starts after
    the handoff and the connection metrics deadline covers the wait for
    the queue too; a capture's video settings are read before waiting for
    the queue.
    
    Three sites change, in one way: RelayCapacity, ConnectionMetrics and
    RegisterWatchReader reported the channel library's own "channel
    closed" when the host dropped their answer, and report
    hosting_unavailable now, the code each already used when the queue
    was closed before the handoff.
    
    Tests: the helper before and after the handoff; the relay and metrics
    replies on the control connection; a reader registration whose answer
    is lost, which is refused as hosting_unavailable, revoked, and can be
    prepared again.
  • fix(watch): choose usable tracks and retain writer backpressure
    Use existing player duration and browser codec support for automatic indexed-track previews, and retain explicit webpage selection. Give source-window notices their intrinsic height. Carry writer delivery separately from ordinary Core effects so expiry does not bypass its queue.
  • refactor(core): centralize state changes and persistence outcomes
    Keep channel time explicit, room binding transitions owned by their records, and shared limits checked against Core. Persist the actual changes before delivery, preserving expiry and the original requester on failure. Include the verified receiving-route, cache-clear, tooltip and native appearance corrections from this integration phase.
  • fix(diagnostics): a sample is the report's state, and the history keeps what happened
    Corrections from review of the always-on history.
    
    A repeated measurement, and what a live owner says of itself for a report,
    is recorded through debugSample: it is the state of the report being made
    and does not enter the history, and outside a report it is kept only under
    the developer's probes. The raw statistics sample, the playback, channel
    and audio snapshots and the encoding pool's sample go that way. A track's
    state beside each statistics sample was recorded as an event twice per
    producer on every poll, with its settings; it is a sample now, and a
    track's own events stay events. Making a report no longer adds to the
    history it reads.
    
    A candidate error keeps the server that refused and the code; the local
    address and port are kept only for a developer.
    
    The App's history starts where its service starts, which the desktop
    binary and the Android runtime both enter; the Android entry never reached
    the installation in the desktop binary.
    
    A pair's facts are kept in the order their stages last happened, so a pair
    that disconnected and connected again ends on connected.
  • fix(core): projection work between inputs keeps the channel's clock
    Taking the time of a turn as an argument removed the room host's stored
    clock, and with it the one thing that field was: the channel's clock as of
    the authority's last input. Route deadlines are set in that clock. A peer
    turn does not come through the authority, so finish_peer was given the
    writer's own time, and a writer whose clock runs ahead could expire a live
    preparation when a deleted message's attachment reconciled the projection.
    
    The room host keeps that clock again, named for what it is, written by
    dispatch alone. finish and finish_peer read it and take no time from their
    caller, so a caller can no longer supply a different one; the WASM binding,
    the stored room host and the tests follow. Channel's entries still take the
    turn's time as an argument.
  • refactor(core): each Core limit has one writer and TypeScript reads one checked copy
    The Core wrote several limits as bare literals, some of them twice: the voice
    bitrate default and send range, the relay capacity default, member, room and
    title name lengths, short keys, IDs, attachment names, message and reply text,
    watch URLs and rate, signal SDP and candidates, and room passwords. Each is now
    one named const in the Core module that validates it, and the production Rust
    copies, Native's screen source title among them, refer to it. Boundary tests
    keep their own literals.
    
    TypeScript held its copies in protocol.ts, shared/protocol.ts,
    relay-capacity.ts, room-interactions.ts and remote-control/protocol.ts. They
    move to src/shared/core-limits.ts and the callers import from there.
    channel_wire_limits now emits every limit under its TypeScript name, so the
    parity test compares the whole module with the compiled Core. protocol.ts and
    relay-capacity.ts re-export only the names that session.ts and
    ChannelShareControl.tsx still import, because those files are held elsewhere.
    No value changes.
  • feat(diagnostics): history is always recorded, and only active probes wait for a developer
    A person had to turn recording on before a problem for its report to say
    what led up to it, and nobody does that before a problem. Recording is
    now passive and always on: the page and the App keep a bounded history in
    memory (8,192 events or 8 MiB), and a report is exported on demand. There
    is no recording switch for a person any more.
    
    The page's diagnostic control is one button that downloads the report, and
    the App launcher's is one button that downloads the App report. The
    launcher state no longer carries a debug field, the route that enabled App
    recording is gone, and the App no longer adds a debug flag to the pages it
    opens. The App installs its recorder at its start, before anything can
    log; the Server binary does not, so it is unchanged. Every guard that kept
    an event from being recorded is removed, and audio capture and capture
    frame counters always count.
    
    What stays off by default is the work that costs something of its own:
    the page's per-frame gap loop and console echo, which `?debug=1` starts,
    and the App's window-loop lateness probe and shutdown progress lines,
    which `PIIK_DIAGNOSTIC_PROBES=1` starts. Reports say whether probes ran
    instead of whether recording was on. The copy describes the report in all
    five languages, and keys and the visual kind that lost their last user are
    removed.
    
    Tests now assert that history is recorded with nothing switched on, that
    the probes run only with the developer's flag, and keep every assertion on
    bounds, secret filtering and report contents.
  • feat(diagnostics): the App's report can always be made, and holds how each connection stands
    The App refused a report unless recording had been switched on before
    the problem, in every new process. So the one report that would say
    which path a connection took, and how its preparation ended, was the
    one nobody had.
    
    The recorder now keeps, for each pair this process has known, the last
    fact of each stage: whether a preparation ran, what the two mappings
    were read as, how it ended, its check counts, which path was selected,
    how the pair closed. These are the reviewed values the history already
    used, with no address, port or identifier; the newest 256 pairs are
    kept and nothing is formatted or hashed until a report is made. A
    report writes them as `connections.json`, each pair under the alias
    both sides share, beside the build and the history.
    
    The export answers whether or not history is recorded, from the
    launcher and from the terminal. The launcher shows the report and the
    switch side by side. Recording the history stays the person's choice.
  • refactor(core): an authority turn returns its typed outcome
    Authority::handle now returns Handled: the effects to deliver and an Outcome
    that each branch writes from its own result. A rejection carries its code and
    room. A committed turn names the durable record it changed (the acting user,
    the header, or a summary a host committed), the hosted room creation or
    deletion its storage owner must finish, and whether its last event is a
    request for the room writer. Admission reports a new user or renewed owner
    credential, the channel reports profile and domain changes, and the host
    branches report directory changes. For a change that is undone when it cannot
    be saved, the Core hands back the authority from before the turn.
    
    The Server hub saves, undoes or keeps what the outcome tells it, so
    changes_metadata, the hub's command matching, the inference from the last
    event and the stripping of deferred replies are gone, along with
    Event::Deferred. A completion without a request ID now exists only for a
    failure. In hosted mode the Core leaves the creation or pending deletion
    answer to the hosting owner instead of emitting a reply for the hub to remove.
    Hosted room creation decides whether to keep a reservation from a typed
    OpenRoomError::MayExist instead of matching error strings, with the codes sent
    to clients unchanged.
    
    Tests that asserted the removed prediction or the internal deferred event now
    assert the same behaviour through the outcome or through a reply with a
    request ID.
  • refactor(core): the time of a turn is an argument, not stored state
    Channel and RoomAuthority each kept a stored clock: Channel.now was written
    by some Authority entries and read later by reconciliation, host input,
    forwarding and host sync, and RoomAuthority.now kept the last dispatch's
    time for the later finish and finish_peer calls. Entries that did not write
    it judged repair and admission deadlines against an older turn's clock, and
    nothing in the types showed which ones.
    
    Both fields are gone. Channel::reconcile, reconcile_transports, host_input,
    forward_room, sync_hosts, register_host, stop_host, accept_host,
    unsupported_host_input and remove_room take now, and every Authority entry
    that reaches them passes its own, including set_service_endpoint and
    failed_room_delete, which now take it explicitly. RoomHost::finish and
    finish_peer take now: StoredRoomHost passes the dispatched input's time and
    its peer turn's time, the Browser binding and its room host pass the same,
    and the Server passes its own clock. Tests that assigned the stored clock
    pass the argument instead. RequestContext.now, HostInput.now and the wire
    are unchanged.
  • feat(diagnostics): measure the native window loop after debug starts
    Renderer frame timing cannot see WebView2 work that blocks the host window thread. Send at most one timing probe through the existing Tao event loop and aggregate its queue delay there into the opt-in App report. The sampler shares the existing service lifetime and adds no window or network data.
    
    Summaries include the actual observation window, sample count, maximum delay and counts at 16, 50 and 100 ms. Existing Windows App compilation and deterministic threshold checks pass; independent review confirms bounded admission and cancellation ownership. Actual native-window delay injection and shutdown remain runtime acceptance, not established by the pure test.
  • feat(diagnostics): record the first transport failure cause
    UU playback reports retained capture progress but lacked the event before flow retirement. Record the existing Engine failure branch in the opt-in RTC log before Driver retirement. Causes state only what the transport knows; unavailable send consent is not labeled as expiration.
    
    Independent callsite and privacy review plus the existing in-memory diagnostics ZIP fixture pass on Windows Rust 1.91. Repeated failure remains bounded by the existing Engine terminal state. No routing or recovery policy changes; the historical field cause remains unconfirmed.
  • fix(nat): keep STUN results when one destination rejects sends
    A configured destination can reject a UDP send while the same socket still reaches other destinations. Retire only that STUN transaction and preserve completed observations and pending destinations. Existing socket errors, cancellation and survey deadlines retain their owner.
    
    A Windows kernel-rejected send reproduces the old failure; the repaired survey retains the other real Binding response and its original socket. A separate local unicast control confirms send failure need not invalidate the socket. All 22 Native preparation tests pass, including all-target rejection. This is controlled local evidence, not regional reachability or field success-rate evidence.
  • fix(ice): ignore unsupported hints without retiring the connection
    Preserve bounded origin labels through their assigned Domain pair. Browser
    and Native discard a hint they do not support before it can enter the pre-SDP
    queue or ordinary ICE. Native admission stays in Driver; Transport receives
    only ordinary candidate strings. Other coalesced signaling fields continue.
    
    The actual Domain and Native decoder/Driver controls pass, including continued
    bidirectional traffic on the original RTC. Browser's socket control preserves
    ordinary candidates, a coalesced offer and a pending request. Stale unassigned
    pairs retain their existing silent-disposal behavior. Combined Core and Web
    verification passed with the rebuilt shared WASM.
  • fix(rtc): nominate an available alternate without keepalive delay
    Advance the existing str0m patch stack to e8d043a0, retaining its consent and
    delay-controller repairs. The upstream nomination correction clears a cached
    check deadline when nomination changes the pair's state. Original authorship
    and the regression test are retained in the fork.
    
    All 120 ICE library tests pass. The actual Windows Native loss comparison
    changes nomination dispatch from 354 ms later to the same SDK tick, retaining
    both original SCTP channels and send consent. Total loopback recovery remains
    dominated by failure detection; this is not a WAN success-rate claim.
    
    With the Git pin, 31 focused Windows and 28 Linux Native checks pass. Seven
    Native/Server/Android metadata contexts resolve all four SDK crates solely
    from the same revision with unchanged feature sets. No package is relabeled.
  • fix(protocol): preserve extended screen source descriptions
    Represent a capture-origin kind as a bounded symbolic key and preserve its
    spelling through the room writer, Domain, Native state reader and Browser.
    Screen and voice remain the baseline RTP classes that own their permissions,
    subscriptions and forwarding budgets. The origin is descriptive metadata.
    
    Reuse the ScreenSource type in presentation and stage props. Existing titles,
    names, generic labels and exact-screen content hints keep their behavior.
    
    The private-room control proves publish/update, unauthorized rejection,
    subscribed route continuity and removal while voice survives. Core SQLite
    passes 353 tests; the revised exact StateImageDecoder case also passes.
    Both Web TypeScript projects, 822 focused integration tests and 31 fresh-WASM
    consumer checks pass. Windows Server capture-feature checking covers Native
    and Core. Public mixed-version acceptance remains in the existing freeze.
  • fix(native): select linear predictions from usable IPv4 observations
    Reuse ordinary discovery observations per real IPv4 base. The first complete
    qualifying cohort emits the single bounded batch; a stable or silent first
    interface no longer hides another interface's sequence. Remove early
    default-interface selection and preserve registered SDK candidate templates.
    
    The current RTC generation, connection state and initial five-second window
    still gate emission. Existing binding limits bound all cohort state; no
    socket, probe or expiry task is added.
    
    An actual two-base STUN/RTC regression changes from zero to 16 predictions.
    Silent-first and two-qualifying-base controls retain one unmixed batch, and
    the duplicate-mapping regression stays green. Combined Native verification
    passes 28 focused tests on each of Windows and Linux.
  • fix(native): start UDP observations as DNS results arrive
    Keep resolved STUN destinations usable while another lookup is pending.
    Resolve and observe through the existing pair task and survey socket, with
    the same three-destination, 1.5-second observation and five-second overall
    limits. Transaction source checks and first-send ordering remain owned by
    the existing STUN client and observation loop.
    
    The old resolver with one or two ready results timed out before sending any
    Binding. Real loopback UDP controls now reach peer signaling with those
    results. A third DNS reply after the observation window can yield partial
    Irregular instead of the old buffered schedule's Sequential classification;
    the controlled test preserves this tradeoff.
    
    The combined Native change passes 28 focused tests on Windows and Linux,
    including ordinary ICE and original-RTC socket adoption. Public network
    success rates have not been measured by these controls.
  • fix(native): select the source for the configured STUN route
    Resolve the survey destinations before asking the OS for a source address.
    Use numeric UDP connect and local_addr instead of netdev's fixed private
    destination lookup. Keep one survey source and the existing preparation
    deadline, and remove the unused direct netdev dependency.
    
    A controlled split-route comparison reproduces three unanswered Binding
    requests and a 1.50-second timeout with the old source. Destination-based
    selection gets the first reply and sends the peer check on the same socket;
    cancellation releases its port. This does not measure public reachability.
    
    Windows and Linux each pass 21 focused Native tests. Seven locked Cargo
    metadata contexts verify Native, Server and Android dependency features.
    The local Windows proxy remains enabled and the earlier public-STUN replies
    are not evidence of regional direct access. Beta.64 packages are unchanged.
  • fix(native): contain unsupported UDP preparation signals
    Decode unfamiliar preparation tags as receive-only values. Validate the
    current pair and endpoint role before relaying Unavailable, so an optional
    extension cannot retire the ordinary RTC connection. Known malformed
    messages retain their validation failures.
    
    Pending owns its terminal diagnostic, including cancellation while a Driver
    turn is being discarded. Reuse the existing outcome instead of maintaining
    a separate refusal flag.
    
    Based on actual Domain and StateImageDecoder regressions and the Driver's
    cancellation lifecycle. Core SQLite passes 348 tests; Windows and Linux each
    pass 19 preparation tests and original-RTC socket adoption. The frozen Web
    consumers pass with the rebuilt WASM. Public mixed-version acceptance remains
    open; existing beta.64 packages are unchanged.
  • fix(nat): use measured endpoints with partial mapping evidence
    A socket mapped to two different ports can use the existing pool against a peer with a measured endpoint. Equal partial replies stay unclassified; that peer can search from its retained socket without declaring a stable NAT. Sequential prediction still needs three replies and keeps its bounded alternate. The shared Core/Native configuration gate now admits two distinct STUN authorities.
    
    Uses current-destination observations in the scope described by RFC 5780 and the existing authenticated, bounded preparation model. The original two-response role experiment delivered SCTP and decoded VP8 in 8/8 controlled kernel-NAT trials versus 0/8 baseline trials. The final measured-endpoint plan passed actual two-response and single-response media controls, an exhausted-budget negative control with all UDP ports released, and the sequential alternate control. Windows and Linux preparation checks, 348 SQLite Core tests, both Web type checks and focused WASM/Session consumers pass.
    
    Existing socket, packet, concurrency and time budgets remain. An unknown endpoint can consume its bounded attempt without succeeding, and an irregular/sequential pairing no longer makes the earlier measured-target attempt. Ordinary ICE is retained. This is topology-specific evidence, not a public-network success rate; beta.63 stays frozen before this change.
  • fix(nat): emit predictions when STUN mappings are deduplicated
    Keep the SDK-registered candidate template within the current single-base discovery cohort so a duplicate final srflx does not suppress the complete prediction batch. Release the templates when that cohort completes or fails and retain the existing generation and one-batch limits. Hypotheses remain signaling-only.
    
    The actual Native discovery/RTC regression with four loopback STUN responders previously emitted zero of sixteen computed hypotheses. It now emits sixteen while the local SDP retains three real mappings. Native discovery/linear controls pass on Windows and Linux, and Browser hypothesis controls pass. This restores the App-to-Browser prediction opportunity; it is not an Internet success-rate measurement.
  • fix(nat): retain usable observations when a STUN destination fails
    Keep the preparation socket and one measured endpoint after a partial STUN survey without claiming a mapping pattern. Only three complete observations can supply a sequential hypothesis; partial observations do not enable random search. Completed partial DNS resolution can continue, and isolated UDP rejection uses the existing datagram-error owner. Ordinary ICE, authorization and the existing budgets remain unchanged.
    
    A matched isolated kernel-NAT control with one filtered STUN response changed from no SCTP or video within 20 seconds to authenticated same-RTC direct delivery and verified VP8 first frames in two runs. Healthy ordinary ICE retained its path; the harder two-sided sequential case remained unreachable. The final combination passed 348 SQLite Core tests, 17 preparation tests on Windows and Linux, real socket adoption, two Web type checks and all 2600 Web tests with the rebuilt WASM.
    
    This adds an observation kind to the private 3.0 signal. Authority and participating Native endpoints must use matching updated builds; no published compatibility or persistent data changes.
  • fix(native): keep completed UDP preparation through socket handoff
    The preparation budget bounds mutual connectivity checks. A result that completes within that budget can wait in the driver or transport queue without losing its verified socket. Existing pair and RTC generation checks continue to own adoption.
    
    Based on the current connection-owner contract and a reproduced late-adoption failure. All 16 Native preparation tests pass, including authenticated loopback completion, late completion rejection, wrong-pair socket release and cancellation diagnostics.
  • feat(diagnostics): summarize actual preparation progress
    Record one opt-in pair summary of opened/primed pool sockets, sent targets and checks, Ready send/receive and authenticated replies. The existing event retains terminal reasons; cancellation still exports the counts reached without endpoint identifiers. Serializer, successful pool/search and cancel-to-ZIP controls pass with concurrent observation. Document actual report and preview entries.
  • test(native): build capture fixtures from session version types
    Two capture fixtures still constructed sessions without the major/minor fields. Use the existing SessionInfo and PRODUCT_VERSION so the tests follow the actual producer. The exact room-admission and late-publication retirement regressions pass.
  • fix(nat): await STUN observations on one shared socket
    Three sequential remote transactions could exceed the existing observation deadline after ordinary latency and one lost request. Send the same transactions in configuration order and dispatch replies by source to the SDK-owned transaction, preserving sample order and retry rules. In the same loopback delay/drop control serial observation timed out at 1.51 seconds while the candidate completed at 905 ms on Windows and 902 ms on Linux. Wrong-source/transaction rejection, mapping classes and silent-timeout socket release pass.
  • fix(native): discover IPv4 interfaces during ICE startup
    Desktop candidate refresh only watched the IPv6 socket, so an IPv4 VPN address arriving after initial gathering could not reach the pending pair. Reuse the interface watcher for both bound families and return shared IPv4 bases to the runtime gateway owner. Preserve candidate limits, instance fencing and retirement at nomination. Verified late candidate publication, same-socket loopback output, nomination retirement and one injected gateway publisher serving two Available pairs.
  • fix(nat): randomize port offsets within bounded search strata
    A rotated bit-reversed prefix stays in one residue class modulo 32 and systematically misses regular mapped-port pools. Independent uniform draws within evenly visited strata remove that blind spot without changing the target, socket or time budgets. Verified the sampling bounds, four owned-loopback mapping controls with original RTC adoption and cleanup, and Windows capture-enabled compilation.
  • feat(protocol)!: distinguish peer requests from terminal replies
    File and Watch controls carry request, reply and notice roles on their existing
    business address. Authorized unknown requests receive unsupported without a
    source read. Unknown replies end only the matching supplier/key/request; a
    notification cannot finish it. File coalescing preserves other ranges, and
    Watch relays preserve these terminal outcomes to the caller.
    
    Basis: the accepted interface extension rule and the existing delivery owners.
    Keep authorization, binary chunk validation and real source-failure retirement
    at those owners. This replaces an unpublished control-frame shape.
    
    Validated 347 Core SQLite tests, the new real-WASM Promise regression within
    2583 Web tests, Windows Native DataChannel/range/cancellation controls and
    Android ARM64/x64 compilation. No new waiting table or service was added.
  • feat(protocol)!: use product versions for Domain and App admission
    Declare major and minor once at admission and preserve each session's numbers
    beside its signing key. Equal majors admit different minors; incompatible
    majors reject before consuming launch authority and identify the older side.
    App discovery, Native readiness and Web diagnostics keep that direction.
    
    Resolve build identity before compilation. Browser values and displayed version
    share the same build input; the Node SDK reads its actual WASM version. Remove
    the two private wire identifiers without aliases for obsolete internal builds.
    
    Basis: the accepted compatibility rule in Versioning and ADR-0017. Validated
    Core, Web/WASM, Windows reader and App discovery controls. Real packaged SDK
    3.0 and 3.1 each completed signed conversation and private-room history against
    the other Linux Server minor. Browser/App mixed-artifact acceptance remains open.
  • fix(protocol): accept additive fields at every live reader
    Use the same extension rule for Domain, signed-room and peer control objects.
    Known types, bounds and authorization still apply. Preserve signed payload bytes
    through relays and reject unrecognized durable content at the storage reader.
    
    Basis: the accepted interface extension contract and actual reader/writer paths.
    A new nested video description previously closed the Domain connection; an
    extra field in a valid signed reaction prevented its confirmation. Matched
    controls now preserve both operations without adding capability flags.
    
    Verified 346 Core SQLite tests, current WASM plus 2577 Web tests, both TypeScript
    checks and eight capture-enabled Windows Native controls. Store validation,
    input authorization and opaque signed forwarding retained their existing owners.
  • feat(protocol)!: separate App creation inputs and extensible readers
    Create room policies at the authenticated writer from allocated IDs and user
    settings. Confirm typed opened results; cancel reservations only on a definite
    settings rejection. Ignore harmless App extensions without retiring unrelated
    requests, while keeping stored rows strict at their consuming boundary.
    
    Let text participants select a conversation snapshot at Join, and repair an
    unsupported host turn through the existing synchronization owner. This replaces
    the private App open request and result shape; matching internal artifacts are
    required until the first public contract is frozen.
    
    Basis: ADR-0017 and the interface extension contract; same-connection App,
    SQLite/WASM, signed history and standalone Server controls. Combined Web tests,
    focused Native tests, and TypeScript checks passed after correcting obsolete
    fixtures. The affected App storage-collision integration cases were not rerun.
  • feat(protocol): unify Domain outcomes and selected history parts
    All Domain terminal results use one correlated reply carrier; observer notifications cannot settle waiters. Hosted storage keeps its internal completion until commit, and unknown registration outcomes do not cancel possibly committed rooms. History requests select inline images before page budgeting and replies report actual coverage, so text-only consumers save transfer without erasing cached images. The exact staged tree passed complete Core SQLite checks (341 plus one release-only ignore), fresh-WASM Web checks (2567 tests), Windows Native and Server builds and 17 runtime controls. Chrome IndexedDB controls separately verified selective paging and clearing. Private aliases and extra capability flags were not retained.
  • feat(protocol): distinguish signed outcomes from observer notices
    Read authenticated address and request/record/notice role before concrete kind. Unknown commands return unsupported; unknown requester records settle only their own operation as unconfirmed; notices never settle a waiter. Keep original signed payload forwarding and current writer/binding/read-floor authority. Independent review corrected body-object validation and unknown-outcome presentation. The exact staged tree passed fresh-WASM Web checks (2563 tests), complete Core SQLite tests (339 plus one intentionally ignored), capture-enabled Native/Server compilation and five signed runtime controls. This replaces the private room-carriage shape without an old-reader adapter.
  • perf(nat): spread bounded search targets across the port range
    Reuse the tested bit-reversal order from research cac7c7fa with a fresh random start, replacing duplicate rejection and its HashSet only in Stable/Irregular preparation. Socket count, packet budget, deadline, authentication, ordinary ICE and Sequential behavior remain at their existing owners. Ten preparation tests plus actual mutual-Ready/RTC/DataChannel loopback controls passed. Static continuous-pool coverage is not a public NAT success estimate.
  • refactor(capture): route pause through the existing edit owner
    Pause uses the same capture lease and producer checks as title and direct-limit edits. Remove the separate PauseCapture message, bridge and duplicated Native validation. The real App control socket and Native retained-video replacement control passed with synthetic source I/O, including stale-lease rejection and the original room reply.
  • refactor(capture): carry one request value to the native driver
    App constructs CaptureOptions once after decoding. Session and peer mailbox forward it unchanged; the driver still checks scope and replacement ownership before resolving AudioScope. Existing no-capture, capture-enabled Native and App WebSocket paths passed 71 tests with two physical-audio cases left ignored. No wire, store or runtime quality policy changes.
  • refactor(native): return SDP at its generation boundary
    Remove Engine.local and its asynchronous getter; Pair remains the owner of immutable signaling replay. The generated description returns with offer or answer and WHIP validates that actual result. Eighteen focused tests passed for unchanged and pending offers, collision replay, ICE recovery, local input and external capture lifetimes. Integrated files match the validated source byte for byte.
  • fix(whip): preserve input across empty RTP payloads
    An empty packet on another negotiated H264 payload type could terminate an established WHIP input as a codec change. Match the ordinary media reader: validate codec compatibility on media-bearing packets and still pass empty sequence positions to the assembler. The real WHIP/DTLS/SRTP regression fails before the repair and delivers the following dependent frame afterward; all eight external-input controls pass, including unsupported SPS rejection. This does not identify the cause of an untraced OBS report.