Commit Graph
819 Commits
  • test(app): exercise conditional ranges through the actual router
    Use the existing headless App HTTP fixture to verify complete responses for stale If-Range, ordinary partial ranges, and unaffected discovery and authorized launcher routes. The foreign-origin launcher request remains forbidden and the test joins service shutdown. No product-only observation hooks are added.
  • fix(sdk): complete conversation work from its writer outcome
    Apply the existing signed conversation boundary to the Node participant: transport acknowledgements and live observer records do not finish pending writer work, and a contradictory signed terminal fails that request without emitting a false confirmation. Reuse the existing pending expectation rather than another operation registry.
    
    The public deletion control reproduces the prior room_reply rejection on a real loopback WebSocket with Core WASM. All nineteen SDK and lifecycle tests pass and source types remain valid.
  • fix(native): settle retired room registrations at their original owner
    Move the matched registration replies into the old room query when Ack arrives, using LocalAnswer for skipped or retired work. Derive hosting readiness after current events and completions so removing a failed reservation can finish admission. The new non-serialized interleavings cover same-ID replacement, a late failing reservation and fresh-session open failure.
    
    Welcome discovers files on an owned blocking task and reuses identities from still-open room owners instead of reopening their locked SQLite files. Unknown paths keep existing identity and duplicate checks. Document the signaling budget as session-wide across carriers, without a new ready state or recovery timer.
    
    The final Windows candidate passes 40 capture Session checks and 214 full no-capture Native checks with two existing manual tests ignored. A controlled exclusive SQLite transaction reproduces the old recovery wait; the candidate returns before the lock is released. Integrated Server library checks pass all 123 cases.
  • fix(media): validate the VP8 keyframe header before forwarding
    A frame-type bit alone cannot establish the first decodable input. Check the RFC 6386 uncompressed keyframe header, sync code, dimensions and first-partition bounds before ending keyframe wait. Malformed replacement keyframes re-enter the existing recovery path; no decoder or adaptation policy is added.
    
    Six targeted VP8 controls pass with real encoded samples, delta and reorder recovery, metadata and VP8-to-H264 switching. The queue control keeps a three-byte frame from producing SourceReady or Forwardable. Header validity is not reported as a decoder result.
  • fix(server): print the running build identity at startup
    Fulfill the versioning contract using the same compile-time version and revision already read by the update checker. Print synchronously before any optional network notice, including development builds. The Server library checks compile and pass with the shared reader.
  • fix(watch): publish popup candidates while the opener is blank
    Retain the validated requested address for catalog display when the current selected view has no navigable address. Continue updating captions and the candidate catalog, including its final empty result; each candidate pageURL still exclusively decides original-page availability. App 27 and source authorization do not change.
    
    The Windows page module and AppPage/bridge controls cover a blank opener, a surviving HTTPS popup, opaque candidates and final removal. Interactive GUI execution remains outside this validation.
  • fix(updates): share cancellation completion through worker ownership
    A disconnected HTTP cancel caller must not consume the only completion receiver. Reuse the cancellation sender closed signal, which waits for the download worker to drop its sole receiver after settlement, and remove the extra optional oneshot. Repeated cancellation uses the existing operation identity and remains pending until the worker retires.
    
    The normal Owner request regression fails before the change and passes through the standard Cargo entry after it. Integrated Server library checks pass; distribution signing and publication policy remain held.
  • fix(app): keep page cancellation failures on their own request
    Return the candidate-stop dispatcher result through control_reply instead of propagating it out of the physical App socket. A closed page or timeout ends that operation while sibling readers and requests keep their connection.
    
    The real WebSocket regression receives EOF on the baseline and the matching page_player_closed reply with the fix, then successfully reads the original registered sibling. Integrated Server library checks pass.
  • fix(transport): own connectivity tasks through pump retirement
    Keep STUN discovery and TURN setup in the Engine JoinSet instead of detached-on-drop handles. Normal close waits for both and an aborted pump cancels their pending socket work. Pair and connectivity policy are unchanged.
    
    A real loopback TLS handshake remains open on the frozen baseline after aborting the pump, and reaches EOF with the fix. The new control and five existing retirement tests pass in the rebuilt Windows no-capture target.
  • refactor(native): serialize each room independently of the connection
    Keep each HostedRoom and file lock in one FIFO task, sharing bounded blocking execution and reusing existing byte and local-request admission. Session owns registration results and the wire; management and directory work no longer wait for an unrelated room. Binding, restore cancellation and same-room retirement stay ordered at the resource owner.
    
    A real WebSocket control proves B can commit while A is blocked in SQLite. Shutdown retains its first error, drains all producers and joins before returning, even after cancellation. This follows the spawn_blocking and channel lifetimes documented by Tokio: https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.html and https://docs.rs/tokio/latest/tokio/sync/mpsc/struct.UnboundedReceiver.html.
    
    The final Windows release candidate passed 209 Native library checks and 37 capture Session checks. A retained regression runs without the warehouse SQLite hook and proves sibling cleanup after an error and canceled release. Integrated Server library checks pass all 122 cases. Other OS runtime acceptance remains in the existing platform ledger; no wire format, migration or new room deadline is introduced.
  • fix(windows): retire webpage views when their renderer exits
    Observe WebView2 browser and main-renderer process exit through the view instance, then reuse the selected/last-window retirement policy. Keep recoverable GPU, utility and child-frame failures outside that scope, and remove the callback before dropping the view. Microsoft WebView2 process-event semantics define the terminal cases.
    
    Windows debug/capture compiles and the process-kind control plus eight existing candidate controls pass. Actual COM process-exit delivery and GUI behavior remain unverified.
  • fix(web): serve complete assets for conditional range requests
    The pinned ServeDir handles Range but does not evaluate If-Range. Strip Range at the static service boundary when a resume validator is supplied, returning the complete current representation instead of unsafe partial bytes. Ordinary ranges and API endpoints retain their existing behavior, as permitted by RFC 9110 section 13.1.5.
    
    The frozen beta55 Server reproduced partial responses for stale validators. The focused Rust HTTP controls and matching 2.x checks pass. No evidence links this condition to the reported virtual-LAN timeouts.
  • refactor(watch): keep page release and candidate mutation explicit
    Both production PageSuppliedMedia callers already supply a release callback. Require it, remove the redundant pre-commit mode guard, and leave candidate revision writes to the Sample owner while grant retirement only reads the previous resource. These are the three traced simplifications from review f26ac673.
    
    The eight Native candidate controls and the integrated Web ownership family pass; wire and saved formats are unchanged.
  • perf(history): restrict reply cleanup to the possible suffix
    Confirmed messages and both import paths require a reply to target an earlier sequence. After deleting a range, only later rows can quote it. Add that bound to the existing SQLite update so the room sequence index can skip the prefix without adding an index or changing stored data.
    
    Five deletion/clear controls preserve row results, restore/copy reject self and forward references, and the integrated moderated-history plus twelve stored-room checks pass. No native latency improvement is claimed from the query-plan result.
  • fix(rtc): adopt the upstream bandwidth-estimate deadline repair
    Backport str0m #1181 on the existing 0.26.0 fork and pin all three Native consumers to 9cd8827d. The SDK ignores unrelated early timeout wakes while fresh probe feedback can still update the estimate. No Piik quality policy or network timer changes.
    
    The upstream deadline regression and two recovery simulations pass. Seven Native transport/consent controls pass against the candidate sources, and the integrated published pin passes the selected-original bandwidth lifecycle control. The fixed-layer recovery measured 8.5 seconds, matching upstream's corrected nine-second assertion. Other lockfile selections remain unchanged.
  • fix(watch): preserve viewing across webpage source changes
    Keep the original-page group and watching intent when its selected player disappears; retire that candidate's grants and pending work, freeze the existing playback clock, and replace the next explicit source through the existing handoff. Native candidate identity owns the containing-page address and sample events, so a popup or prepared player cannot inherit another player's URL or buffering state.
    
    Separate an optional navigable website locator from the existing byte-source capability. Opaque indexed and MPD media remain forwardable without exposing a private manifest or inventing a root URL. Original-page entry and recovery use the actual locator. Private Domain 52 and App 27 change together; persisted room data and backup formats do not change.
    
    Independent red/green controls cover popup identity, opaque forwarding and candidate event isolation. The integrated Web suite passes 2433 checks and the complete Rust/WASM/protocol gate passes. The final retained-viewer recovery has 67 focused presentation checks and two producer-to-view controls. Native Page checks pass with the existing GUI test ignored; actual member websites and window interaction remain package acceptance work.
    
    The existing App cancellation test now checks its actual sole-waiter scope; the separate multi-reader Session regression proves that canceling one borrower preserves the others. No timeout was enlarged or failing assertion suppressed.
  • fix(app): keep readiness notification separate from terminal input
    An embedded host's readiness subscriber does not request an interactive console. Remove ready.is_some() from terminal eligibility while preserving the existing browser-mode, page-player, environment and TTY checks.
    
    Reviewed the desktop, WebView fallback, Android and HTTP-fixture entry paths against the existing guard. This one-condition correction adds no state or new configuration; no App GUI launch is claimed.
  • fix(sdk): commit room selection when its receipt is accepted
    Node ws can dispatch Browse success and the first signed message in one network read. Commit the selected room and ready event in the existing correlated request completion so the valid message has its room scope. Reuse the pending request resolver; no delayed-message branch or global WebSocket scheduling change.
    
    Real WebSocket before/after controls and nineteen SDK lifecycle checks pass, including rejection, late timeout replies, both close/receipt orders and replacement bindings. Integrated frontend and SDK type checks pass.
  • fix(storage): reject unsupported App settings before schema writes
    Make the existing SQLite format zero an explicit local owner and refuse other versions before DDL. Current approval scopes, namespaces, startup and bookmarks are unchanged; actual writer/reopen controls and byte-preserving newer-format rejection pass. The proposed public baseline now includes App settings and Browser identities alongside room/domain stores.
  • refactor(app): let the Domain initialize its own authority
    Generate the local owner key only when creating the Domain checkpoint. App settings keep their permission namespace and stop creating a duplicate secret. Existing and restored Domain keys remain authoritative; explicit Server seed configuration is unchanged. Focused startup, consent, restore and ticket controls and the full Rust/Server/protocol gate pass.
  • fix(conversation): return signed command decoding failures to their caller
    Retain the verified request address before decoding its typed action. Invalid SDK parameters now use the existing signed error reply instead of waiting for a timeout; bad signatures and stale bindings still fail before work. Core, Node/WASM and matched Server protocol checks pass without a new wire shape or client schema.
  • perf(routing): prefer a shallower confirmed parent at equal priority
    Take the ordinal candidate ranking from Claude proposal797092a1: preserve confirmed/pending/retry priority, then prefer the shorter authorized prefix before endpoint identity. Replace probabilistic regression with deterministic candidate ordering. The bounded independent replay shortens aggregate trees but has mixed tail waits, so narrow the evidence claim. Full Core SQLite and discovery checks pass; no extra probe budget or live route replacement is added.
  • chore(diagnostics): name the pending App host shutdown
    When existing debug diagnostics are enabled, print entry and completion around the owned host-task join. Keep waiting and retain the existing shutdown owner; add no timeout, abort or recurring logger. Capture-feature compilation passes.
  • fix(build): resolve Windows resources from the current source root
    A reused build-script executable retained an obsolete archive path through env! and could no longer find the App icon. Read the Cargo manifest directory when the build script runs, as documented by Cargo. The same cached executable now compiles resources from both the checkout and a frozen archive; Windows capture-feature checks pass without clearing the cache.
  • test(network): keep the kernel fixture aligned with discovery
    Use three distinct isolated STUN addresses, as the production survey requires, and collect namespace process diagnostics with portable ps columns. The actual kernel preparation and media comparisons executed these fixture corrections; no host networking changes are retained.
  • perf(nat): extend the bounded random port search
    Raise the search from 512 to 1024 distinct targets with the same 256 sockets, five-second lifetime, schedule and concurrency limit. Matched kernel controls added eight successful checks across 64 cases; actual Rust ICE and decoded-media controls passed, including a real hit beyond target 512. No-hit traffic stays bounded at 120 KiB per pair and deadline cleanup is unchanged. This is mechanism evidence, not a field success-rate claim.
  • merge(review): let socket replies progress during room registration
    Take the independent writer task from bb6eaf64 and yield after each buffered reader turn. A real single-worker server then acknowledges all 32 room registrations instead of closing after 16. Writer stop and panic cleanup, slow-writer liveness and private-room restart checks pass. The private-room fixture now retains an already received ready state rather than expecting a duplicate.
  • perf(core): omit unchanged public room projections
    Every host input, revision, reply, private input grant and route reconciliation still runs. Compare owned projection and transport values only for an otherwise unchanged output, then avoid repeating its public State fanout. The controlled twenty-endpoint case drops79to19States without a persistent cache. Independent field/consumer review, full Core/Server/protocol and Web checks pass.
  • merge(review): wait for Native deadlines with platform timers
    Take the reviewed Windows RTC timing correction and place its owner at the Native platform boundary. Use one persistent high-resolution waitable timer plus a stop event instead of millisecond polling; same-machine controls reduced worker CPU from187.5to62.5ms over ten seconds while preserving deadline replacement and real Native media recovery. Core, Native, Server, WASM, protocol and2394Web tests pass in the integrated tree.
  • fix(server): give a connection's writer its own task so a burst of requests cannot starve its replies
    One task read and wrote a connection through a select. The reading branch
    dispatches a request and reads the next without yielding while frames are
    buffered, so the writing branch did not run until the burst ended. A room
    host that reconnects registers every room back to back, and each registration
    puts four events on its own queue of 64. Measured on a real Server with its
    own Native host: at 32 rooms the seventeenth registration found the queue
    full with about one event drained, the host was closed, and it reconnected
    into the same burst 57 times in a minute without one room coming back. At 16
    rooms the queue peaked at exactly 64.
    
    The writer is now a task of its own, owned by the session through an
    abort-on-drop handle, which is how a WebSocket with an outbound queue is
    usually arranged. Nothing else about the session changes: the same queue,
    the same close signal, the same drain at close.
  • refactor(capture): share Windows frame admission
    Both Windows encoder workers consume the same latest-frame and keyframe-request state. Move their identical admission rule to that existing owner while preserving short-circuit cadence and force semantics. Both encoders compile and focused cadence/software controls pass; other platform policies stay with their adapters.
  • refactor(native): make the precise deadline the crate's platform clock
    The module sat under peer/, beside connection logic. What it knows is a fact
    about the platform and the runtime: a tokio timer on Windows has the precision
    of the system tick. That fact belongs to the Native crate beside windows_job,
    with one owner, and callers state an instant without assuming how fine a timer
    is. It moves to the crate's top level and its header says so.
    
    wait takes exclusive access, so a second waiter on one deadline does not
    compile, where before it was only a convention.
    
    The thread's cost is now measured: sleeping in one-millisecond slices for ten
    seconds on this machine takes about 570 wake-ups a second and 0.16% of one
    core. All 206 Native tests pass.
  • fix(native): meet the SDK's deadlines on Windows without waiting for the system tick
    The engine pump slept until the SDK's next deadline with a tokio timer. On
    Windows that timer fires on the system tick, 15.6 ms unless a process has
    raised it, and Windows 11 does not keep a raised period for a process that is
    neither visible nor audible. Measured here: a 2 ms tokio sleep returns about
    14 ms late, std::thread::sleep about 0.5 ms late.
    
    The pacer and the bandwidth probes need those deadlines. With the default tick
    a Native sender's estimate stayed between 200 and 300 kbit/s for twenty
    seconds on loopback, so the allocator rejected the optional flow of the
    recovery fixture and its test failed on every run on this machine. With the
    deadlines met the same fixture reaches 11.7 Mbit/s in two seconds.
    
    One thread per pump now sleeps on its behalf: an interruptible wait while the
    instant is far, then slices of a millisecond on the high-resolution timer that
    std::thread::sleep uses since Windows 10 1803. Other platforms keep the tokio
    timer. The thread's CPU cost during a session is not measured; it wakes at
    most once a millisecond while a deadline is within 32 ms.
    
    All 206 Native tests pass here with the default tick, the recovery test
    included.
  • refactor(web): use the canonical channel entry
    Remove the duplicate channel-preview route and move its launcher, owner-link, acceptance and documentation callers to the existing root URL. Query and invitation fragments retain their meaning. App launcher and component preview routes stay separate. Route, session and built-server protocol checks pass.
  • fix(server): await shutdown when the owner link ends
    Signal and await the existing service shutdown instead of dropping its future when owner IPC fails. Preserve the primary IPC failure and ordinary signal shutdown. Server lifecycle checks and matching protocol acceptance pass.
  • refactor(routing): share prepared input validation
    Name and reuse the existing candidate-input predicate after reconcile and ancestor failure. Keep derived placement separate from branch identities and capacity, and retain the current switch contract. Core recovery, branch proof and forwarding-capacity checks pass.
  • fix(windows): retire the tunnel with its parent process
    Reuse the encoder child Job for the tunnel, with a standard OwnedHandle. An owned helper demonstrated that kill_on_drop alone leaves a child after abrupt parent exit; the existing kill-on-close Job ends it. Actual tunnel-owner controls and Windows capture-feature compilation pass. No global scratch purge is introduced.
  • fix(app): keep registry reads available during restore
    Retain one exclusive host-creation fence through retirement and atomic Domain replacement while releasing the registry for launcher and approval reads. Successful and rejected HTTP restore controls preserve authority and block new host creation until completion. The existing cancellation, backup and complete Server checks pass.
  • fix(server): exclude writer work from socket idle time
    Keep ordered dispatch and the existing twenty-second read timeout. A real local WebSocket control answered five Pings during a delayed writer turn but was incorrectly closed; timing only the next read preserves the connection and command order. The complete Server suite passes.
  • refactor(app): use one control reply envelope
    Completed operations retain their authorization, cancellation and cleanup owners and pass results to the existing reply helper. Remove repeated envelope writers. Existing App lifecycle controls, complete Server checks and Windows capture-feature compilation pass.
  • refactor(conversation): deliver one signed history page
    The writer already produces a bounded complete page and readers publish it atomically. Remove the per-message/reaction envelopes and Browser/Node reassembly, retaining request, binding, transaction and live-change owners. The mixed-page component control cuts serialized bytes by 47.4% and signatures from 101 to 1. Advance private Domain wire to 51; stored formats are unchanged. Core, actual IndexedDB, Server, Node and protocol checks pass.
  • merge(review): preserve preparation pacing and explicit transport retirement
    Take 26c407fc and the explicit Closed transition in 0cdfe8bd. The redundant post-disconnect drain was independently removed in 63b2d446; keep that deletion because the pinned SDK is inert after disconnect. Independent Windows timing reproduced cumulative relative-sleep drift, while its exact tick varied from the review machine. Packet budgets and preparation lifetime remain unchanged.
  • fix(native): preserve orderly retirement and measure actual consent renewal
    The pinned SDK is inert after disconnect, so remove the redundant drain that misclassified a normal local input close as failure. The recovery fixture waits for successful consent responses before measuring the next outage. Five focused close checks and the complete no-capture Native suite pass; prior failure outcomes remain intact.
  • fix(native): close a transport before its last drain reads consent
    Since the recovery change the drain fails an established transport that has no
    send consent. close() disconnects the SDK and then drains, and a disconnected
    SDK has no consent, so every orderly close of an established transport emitted
    Failed first. A local input then ended with local_input_failed instead of Ok,
    and two local-input tests failed.
    
    The transport is now marked Closed before it disconnects the SDK. The state
    says what it is, fail() returns by its own guard and no event is emitted.
  • fix(native): pace the random preparation by schedule so a coarse timer keeps its rate
    The pool and the search slept until one interval after each send. A tokio
    timer on Windows wakes on the 15.6 ms system tick, so 2 ms became about 15 ms:
    priming 256 sockets took about three to four seconds and 512 probes about
    eight, inside a preparation that has five seconds in all. Every recorded trial
    of the random method ran on Linux, where the timer is fine.
    
    The next send is now due one interval after the previous due time. A late wake
    sends what is due and the mean rate holds, which is how tokio's own Interval
    behaves by default. The schedule restarts when the probe loop starts, so the
    search does not count its wait for Ready as time to catch up on.
    
    The pool test now bounds priming at three times its nominal time. With the old
    assignment it fails on Windows at 2.9 s; with the new one the twelve
    preparation tests finish in 1.3 s.
  • refactor(core): state the path-down predicate once and drop the unobserved flow entry
    Plan::path_down now states once whether a reported (child, parent) pair lies on
    a receiver's path to the source. The alternate-parent filter in reconcile, the
    switch commit check and the reduction readiness check in flow_state each walked
    that path by hand; they now call the method and keep their own starting point
    and the terms they combine with it.
    
    RoomRuntime::flow_state, which passed an empty observation set, had no
    production caller and is removed. Its tests pass an explicit empty set instead.
    With no unobserved variant left, Publication::reconcile_observed becomes
    reconcile and the flow_state_observed methods on Publication and RoomRuntime
    become flow_state. The redundant parentheses around the three viewing
    comparisons are removed.
    
    The room's disconnected_pairs field is kept: RoomHost::finish and
    RoomHost::finish_peer reconcile after a dispatch and read the set it stored, so
    removing the field needs that set carried with the dispatch's other remembered
    inputs first.
    
    Behaviour is unchanged. cargo test --features sqlite still reports 331 passed
    and 1 ignored, and cargo test without the feature reports 172 passed.
  • test(native): exercise optional media admission through the real driver
    Use the existing feedback observation seam with real UDP/SDP/SRTP to prove selected picture and audio continue while a second flow waits, is admitted together and retires. Source demand and output decisions come from the production Driver. The integrated control passes; injected capacity is not a physical-link estimate or decoded-quality measurement.
  • fix(routing): preserve recoverable paths and adopt proved spare branches
    Keep current-socket disconnect observations separate from confirmed pairs. Existing room operations prepare and commit an authorized confirmed alternate, recheck every leg, preserve independent candidates through ancestor retirement, and reject late proof after recovery or a personal zero limit. Native reads SDK-owned send consent and retains established media; expiry uses the existing retirement boundary, including ICE Checking. Remote input releases on lost notifications and rechecks permission at the final write. Pin the existing SDK fork query at 5f1f6346 and move the private Domain wire to50, without changing stored formats or App26.
    
    Core, Native, Server, rebuilt WASM, protocol and 2389 Web checks pass, with Windows capture compilation. Matching frozen Browser/Native/Server controls verify actual decode, same-pair recovery, exact candidate adoption, late-proof cancellation, zero capacity and Native expiry. The final Checking-state regression and valid ICE restart control pass. No field NAT-success rate, cold three-hop discovery, Native GUI or physical-capture claim is made.
  • test(browser): verify current drawers and media on the selected engine
    Replace obsolete always-visible roster and old menu selectors with actual chat, room and people controls, retaining focus, draft, session and player assertions. The full five-Browser gate passes on Chrome156. Record the version-scoped Chromium152 reproduction and the passing current-engine controls; no media workaround or browser allowlist is added.
  • docs(review): distinguish relay evidence by the tested runtime
    The same reduced and complete product sequences pass on current Chrome156 while Chromium152 reproduces the rVFC-related stall. Keep product behavior unchanged and record the actual engine. Coordinate the remaining UI acceptance and G50 runtime controls with Claude.