Commit Graph
423 Commits
  • 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.
  • 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(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.
  • fix(android): account for forced frames in the drop schedule
    WebRTC FrameDropper advances once per fresh input, including a forced frame that must be encoded. Android previously short-circuited that accounting and could drop the next ordinary frame. A deterministic production FrameDropper control reproduces the difference and matches the existing desktop behavior after correction. Android ARM64 capture-enabled Rust checks pass; physical encoder timing remains separate.
  • fix(rtc): check readiness at each connection deadline
    A bounded report for one pair can suspend the Driver while another control channel opens. Recheck the affected connection or control-channel fact before applying its deadline instead of keeping an expiry snapshot across awaits. The production Driver regression fails before this change and passes with it; the existing endpoint control also passes. Timeout values and preparation policy are unchanged, and the reported field video replacement remains unconfirmed.
  • feat(profiles): represent unnamed members across room surfaces
    Use an empty stored name for unnamed members and one localized formatter for guest labels and same-list duplicates. Full member IDs retain authority; archived empty names remain distinct from unknown live profiles. Reuse the profile editor for an owner-controlled optional nickname prompt and remember dismissal per site and member. The current private Domain 55 phase carries the setting; existing stored headers default it off. Core, Browser, SDK and archive controls passed, including an actual two-browser hosted-room skip and reentry check.
  • feat(rooms): clear hosted media without removing conversation
    The selected host clears its owned image renditions and managed local file cache while retaining text, members, policy, metadata and saved downloads. Writer commits publish a signed cutoff so delayed pages cannot restore cleared thumbnails; newer messages and selected original files survive. Native hosts also cover dormant local databases and report post-commit compaction separately. Reuse the existing More menu, dialog and inline confirmation. Private Domain protocol 55 includes the new record. SQLite, IndexedDB, Native dormant-room and live dual-browser checks passed; physical-device acceptance is separate.
  • refactor(input): register stop shortcuts as one required group
    Reuse Win32 RegisterHotKey for the selected Ctrl+Alt function key and its Shift and Win combinations. A partial registration is unavailable and releases its registrations, leaving the previous binding intact. Remove the global keyboard hook and its mirrored activation state; keep the behavioral isolated-desktop check. Native integration and focused conflict checks passed; actual OS delivery of this replacement still requires the existing isolated Windows gate.
  • test(input): exercise the stop chord on an isolated Windows desktop
    The explicitly gated ignored test sends real modifier chords only on the hosted CI desktop, verifies consent revocation and held-key release, and releases injected keys on exit. It includes Shift, Win and both, plus listener reuse. Local compilation passed without running the hook or desktop input; actual CI execution follows. The existing Windows job owns its finite runtime.
  • fix(input): keep the stop chord usable with held modifiers
    Keep the registered exact shortcut and add a limited binding-owned Windows observer for Ctrl+Alt+Fn with extra modifiers. It records no keys and queues work through the existing executor wakeup. Supplemental intent is admitted at the key event, so release before consumption cannot discard Stop and an idle voice chord cannot revoke a later grant. The callback never locks the input executor. Independent review and 25 synthetic input controls pass; actual desktop key delivery remains an isolated platform check.
  • fix(input): validate escaped text against the actual command budget
    The editor could clear 2048 quote characters although escaping exceeded the Native 4096-byte command budget. Measure the complete command before sending and retain oversized text. Core, Native and Browser use the 8192-byte UTF-8 carrier bound; independent queue budgets keep their own names. Static Browser values are compared with compiled Core, with no new WASM hot-path dependency. Real WebCrypto boundary probes, Native compilation and all 2521 Web tests pass.
  • fix(copy): report password setup and storage contention accurately
    Current typed producers distinguish invalid password settings, hashing failure, denied admission and SQLite contention. Match those codes instead of treating any password sentence as a wrong password. RoomStorageInUse stays typed and serializes its code without a redundant room ID. The four Native hosted-room tests and the full 2521-test Web suite pass.