Commit Graph
753 Commits
  • refactor(server): remove the limits route nothing calls
    The Browser reads attachment limits from the core through WASM, and no client,
    script or test in the repository requests this path. The Server's 116 library
    tests pass.
  • refactor(core): a route wake no longer expires publications a second time
    Every dispatch reconciles each publication before it matches the action, and
    reconciling expires first, so the wake's own call found nothing due. The wake
    and its guard stay: an idle room still needs a dispatch to advance its
    deadlines. The helper is now used by unit tests only and is compiled for
    them. The core's 327 tests pass with the sqlite feature.
  • fix(hosting): complete room creation by its owning session
    Confirmed creation failures now broadcast reservation removal, including after the requester resumes on another connection. A lost writer reply retains the reservation because the SQLite room may already be committed. Cancellation uses the captured session identity and the shared Core effect owner. Regressions reproduced the stale snapshot and resumed-connection leak; actual-commit lost replies and subsequent creation pass. Explicit Native admission errors retain their existing meaning.
  • fix(backup): bound operator room restores through installation
    The authenticated site-owner route now acquires the same room restore slot and upload budget as the per-room route. RestoreRoom retains the permit through installation, independently of archive shape. The original handler consumed the body under an occupied slot and returned 400; the corrected handler returns 409 before polling it. Full integration and backup tests passed.
  • fix(app): preserve focus when pinning voice overlays
    Owned-window traces reproduced a pinned transparent overlay retaining foreground after creation. Carry the opener foreground intent into Tao and Wry creation, avoid initial caption focus, and return focus on pin only when the popup owns it. Native controls verified initial pin, adjustment, Escape, background opening, pointer passthrough, title-bar dragging and room return while voice stayed joined. The current Windows capture-enabled app check passes; no new window mode or IPC is introduced.
  • perf(browser): return only forwarding fields used by the client
    The only JavaScript consumer already declares and reads pairs, files and watchBytes plus commands and capacity. Seven paired emitted-WASM runs over 200 updates and 20 identities reduced active return bytes by 88.0 percent and idle bytes by 98.9 percent; consumed outputs match across forwarding-limit transitions. Real WASM compilation, focused Core checks, TypeScript and 701 client tests pass. This measurement is serialization cost, not end-to-end media throughput.
  • merge(review): adopt route and local failure presentation
    Integrate Claude queue through 374a92e5. The changes derive route, room-open and operation feedback from existing owners. Independent Chromium review covered real components and IndexedDB version rejection; integrated type checking and all 2409 Web tests pass with the reviewed corrections that follow.
  • refactor(storage): persist domain identities as individual rows
    Keep Identity as the authority, while a Domain SQLite transaction writes the admitted user and conditionally updates the small domain header. Normal startup hydrates the same model without rewriting it. This removes full-history profile rewrites and preserves recovery of a previously uncommitted room directory without a dirty-state mechanism.
    
    The private Domain physical format is 1; Room SQLite remains 10 and portable archives and wire versions are unchanged. Unsupported old private databases remain untouched. A matching old build can export the existing domain archive for import into a fresh directory.
    
    Paired local Release controls at 2000 retained identities measured join 17.78 to 4.17 ms and rename 7.75 to 4.02 ms. Full Rust, Native, WASM, protocol and 2394 Web checks pass. Actual old-Linux-export/new-Windows-import preserves credentials and records; real Browser hosting verifies storage scope and byte-bounded signed history across five pages. Correct obsolete fixture assumptions about standby pairs and private room admission.
  • fix(room-host): report a newer stored version as unsupported
    IndexedDB rejects opening the room store at a lower version than the one
    already saved with a VersionError. The store passed that DOMException on
    as is, so a database saved by a newer build reached the page as a raw
    browser message and fell through to the generic "could not complete the
    action". The store already names an older schema
    unsupported_storage_version, which the interface explains with the
    existing saved-data version message and help entry. A newer schema is the
    same fact seen from the other side and now carries the same code.
    
    Verified: tsc -p prototype/channel-browser/tsconfig.json passes. The
    Browser room check gains a case that opens a store at a newer version;
    running it locally failed before the page loaded because Chrome could not
    start in this environment, so that case is not yet observed.
  • fix(backup): reject history data the importer cannot preserve
    Close archive-only live row and reaction decoding without tightening the ordinary message wire. Supported room backup and copy writers remain unchanged. Unknown durable fields now fail before installation instead of disappearing on export.
    
    Both native staging and real WASM importers reproduce the old loss and reject seven unknown-field positions with the fix. Legal attachment, reply, mention, image and tombstone controls pass; all twelve stored-room tests remain green.
  • refactor(audio): use the upstream WASAPI capture reader
    wasapi 0.27 correctly handles SILENT packets and exposes frame flags and QPC timestamps. Replace local GetBuffer/ReleaseBuffer pointer ownership with its slice reader and one reusable packet buffer, preserving the existing Float32 stereo clock and capture scopes.
    
    The Microsoft GetNextPacketSize shared-mode contract guarantees the buffer size used by the next read. Five Windows synthetic and initialization checks pass, plus integrated Rust compilation. Actual device capture and the reported field silence remain separate acceptance.
  • merge(review): integrate voice ownership and scoped Server forwarding
    Take the reviewed voice owner and interface lanes, preserving room-local media lifetimes. Server forwarding is offered per kind by its operator, remains off by default, and fills participant routing gaps without sacrificing reachable receivers. Validate the registered service identity even in public rooms and advance private Domain protocol to 48 for the typed offer.
    
    Correct quick-sharing reuse, pending picker ownership and local bootstrap retirement. Keep record-extension and recovery proposals separate from production mechanisms. Full Rust, Native, Browser-WASM and protocol checks plus 2350 Web tests pass; follow-up focused controls pass 672 tests. Actual Domain-48 loopback controls verify master-off, voice-only hosted and files-only Browser-hosted traffic with unchanged room authority.
  • feat(forwarding): make Server forwarding an operator-controlled fallback
    The owner decided how a Server forwards. Forwarding spends the operator's
    bandwidth, so the operator offers it and it is off by default. Once offered,
    rooms use it without a second switch, a room manager can decline it, and the
    service ranks after participant paths (canon: P2P first, load is shared, the
    same rule for every node, automatic).
    
    a. Operator switches. PIIK_CHANNEL_SERVICE_TRANSIT is the master switch, off
    by default. PIIK_CHANNEL_SERVICE_TRANSIT_SCREEN, _VOICE and _FILES default to
    true and each turns one kind off. Files include original video forwarded for
    watching together. With the master switch off nothing is offered. The offer
    reaches room hosts with the service socket. The room removes the service from
    the relays of a kind it does not offer, and the channel rejects a projection
    that gives the service such a kind as site transit. A service that offers no
    kind reads as unavailable.
    
    b. A new room allows the service. Creation paths apply only an explicit
    choice, so Browser, App and Server-hosted rooms and room copies take the
    default, and a stored false stays false. The setting reads as declining a
    default, and its note says the site forwards only the kinds its operator
    offers, in all five locales.
    
    c. The planner names the service as the fallback. When a route is assigned it
    first extends the tree with participant relays only, then lets the service
    reach the receivers still waiting. It keeps that tree unless the joint tree,
    where the service may take a scarce output, serves more receivers, so ties go
    to participants. A strict participant-first pass could spend the source's
    outputs on direct listeners and leave those reachable only through the
    service unserved; a test reproduces that. The ranking among participants is
    unchanged.
    
    The rule applies when a route is assigned. A receiver already served through
    the service keeps that route until it fails or demand ends, even if a
    participant path appears later. A screen viewer can still make the usual move
    to a direct path from the person sharing.
    
    Left open: in a public room the service's session has ordinary read access,
    so a modified room host can list it as a plain participant relay, without the
    transit view that carries the room's choice and the operator's kinds, even
    when forwarding is off. Closing it needs the channel to recognise the
    Server's own session by identity in rooms that session does not host.
    
    Tests added in channel-core: a participant wins over the service; the service
    serves only receivers no participant path reaches; the service takes a scarce
    source output when that serves more receivers; a moved child takes a ready
    participant before the service; the service carries only the kinds its
    operator offers; a service that offers no kind reads as unavailable; a new
    room uses the offered service until its manager declines. Expectations
    changed for the new default in host_review, service_transit, stored_room and
    the first test of tests/service-transit-wasm.test.ts.
    
    Verified on the lane: cargo test for piik-channel-core with and without
    sqlite, cargo check for channel-server and channel-browser, the
    room_creation_policy test, a rebuilt WASM package, tsc -b, the whole vitest
    suite and the docs check. The channel-native suites were not run.
  • fix(app): exchange one-use tickets for local owner entry
    Chrome retained the original fragment URL in its persistent History database even after replaceState. App-owned navigation now issues a short-lived single-use ticket; the existing local Join consumes it under the domain lock. Ready, launcher links and terminal reopening no longer carry the durable bootstrap seed. Personal credentials keep their current reconnect and storage behavior.
    
    The ticket follows the short-lived, single-use bearer principle described in RFC 6749 section 4.1.2; this is an internal local bootstrap, not a new OAuth implementation. No public Join field or saved-data format changes. Full Rust, real Native session, Browser/WASM and protocol checks plus 2342 Web tests pass. Matching Windows WebView package acceptance remains in TODO.
  • fix(files): retire attachments by their content identity
    Match retained reads, saved results and in-flight downloads by size and SHA-256. Conditional IndexedDB deletion keeps an old tab from removing newer bytes or receipts at the same room attachment address. Explicit room and message cleanup retain their existing scope.
    
    The real Browser room restore and dual-tab FileStore controls reproduced stale content and cache removal before the change. Focused attachment, save-result and conditional-delete regressions pass.
  • fix(history): bind reading positions to restored history
    Keep a durable history lineage at each room writer. Ordinary rebinding preserves it; a full restore installs a fresh lineage in the same storage transaction. Scope reader positions to that lineage and keep passive queued projections from replacing another tab's saved reading progress.
    
    Private Domain protocol 47, SQLite 10 and Browser room IDB 8 replace the prior internal formats. Room archives and App wire are unchanged. Validated with the Rust/Web-WASM/protocol gate, real Browser writer restore and cross-tab read-marker controls. Local reading hints remain best-effort when a lagging tab is actively read across successive restores.
  • fix(update): dismiss the helper message before reopening the App
    The old App could retry while the modal helper still held the prior workspace open. Report replacement failure before restarting the initiating App, then let the existing helper finish and record its outcome. Preserve the original failure chain and any restart failure, without a new result consumer or retry state.
    
    Validation: the old product helper reproduced access denied on production workspace retirement with its message still open. The revised signed-helper control restarted after dismissal and retired the workspace successfully. Twelve update tests and the capture App build passed; all owned fixture processes exited.
  • perf(wasm): transfer delivery bytes without JSON expansion
    Return FileDelivery and WatchDelivery effects in their existing order with owned Uint8Array payloads. Serialize only metadata through the original JSON path, retaining its integer semantics. Switch all attachment and watch consumers together, including failures and projection; no Cargo dependency or wire-format change.
    
    Validation: matched release-WASM controls measured 64 KiB Watch at 2.60 to 1.13 ms and 1 MiB File at 27.73 to 3.90 ms median local CPU. Actual Chrome production consumers verified OPFS/Watch hashes and a terminal outcome for a range beyond JS safe integers. The integrated 700 consumer tests and TypeScript passed. Compressed WASM grew 4146 bytes; no remote-throughput claim.
  • refactor(profile): derive updates from the shared command type
    Use the set_profile command as the parameter type for Browser actions, the Session, Node participant, profile editor and guide preview. Remove five copies of the same optional name and nullable avatar fields with no new generation dependency or change to runtime validation.
    
    Validation: both TypeScript projects compile; existing avatar set/clear and profile response controls passed.
  • fix(protocol): validate terminal results at their waiting operation
    A matching room reply must carry the outcome expected by the original operation. Browser and Node reject unknown results locally while ignoring observers and wrong-room IDs. Preserve invitation payload events followed by done, and distinguish joining Watch from leaving it. Core dispatch explicitly matches its current result variants.
    
    Validation: corrected three old Watch mocks that returned watch_ready to a leave operation; all 617 Browser/Node tests passed independently. The integrated delivery and interaction consumer run passed 700 tests and both TypeScript projects compiled. No new wire field or enum generator is added.
  • fix(storage): request durable commits for browser room writes
    Request strict IndexedDB durability for room creation, binding, policy/history mutation and final archive installation. Keep temporary archive staging, reads and participant file caches on their existing policy. Confirmation still follows transaction completion.
    
    Actual Chrome/WASM tests observed strict transactions, completion before confirmation, and abort without confirmation followed by same-nonce retry. Thirty-two interleaved messages per mode measured 1.75 ms strict versus 0.90 ms relaxed end-to-end medians on this machine. Durability is a browser hint; no physical power-loss claim or persistence-permission flow is added.
  • perf(native): keep the connection future at its lifecycle boundary
    Box only the connected phase after a successful WebSocket handshake. The same drive future still owns cancellation, recovery and cleanup. This keeps the large inner state machine from being carried inline through each outer caller without spawning another task.
    
    Measured Windows Rust 1.91 run_host future size drops from 33208 to 17904 bytes without capture and 33544 to 17904 with capture. The current and prior-wrapper candidates passed the same real two-process admission/resume/restart test. Current baseline already passed; this is a bounded frame-size improvement, not a claim about measured peak stack headroom.
  • fix(native): process state through one async frame
    Pass the current retirement set straight to the state owner instead of retaining a full Snapshot in an additional awaiting wrapper. The redundant layer overflowed the Windows Native main-thread stack during the real competing-process room admission check.
    
    Validation: the original integration executable and corrected Native CLI passed all 12 real-session tests; 20 capture-enabled Native session tests also passed. No larger thread stack, heap wrapper or retry was added.
  • fix(update): retain the installation while another App uses it
    A Windows App holds a read-only directory lease while it may load bundled resources. Replacement cannot move that installation out from under another profile. On failure the helper requests the old App restart and records the result before showing the existing dialog, without killing other instances.
    
    Validation: the capture App built and 12 update checks passed. Isolated signed product-helper controls preserved old resources and both profiles while a second App ran, then updated after it exited. The actual owned failure dialog appeared after result.json was written; restart readiness may follow it. Protection applies to instances that include this lease, not previously released executables.
  • fix(storage): isolate rooms with ambiguous local records
    Discover managed SQLite rooms by their durable identity and refuse an ambiguous target before offline deletion or restore installation. Healthy rooms and new room creation survive unrelated file failures. A resumed writer retires its known binding even when the operator cannot read that room; Core accepts retirement from the current authenticated owning session while still rejecting stale outputs.
    
    Validation: 20 Windows Native and four Server checks cover actual SQLite locks, duplicate/repaired stores, offline restore and hidden rooms. Sixteen Core room-access and seven service-transit controls verify resumed HostStop without accepting the stale socket, another session, wrong binding or unregistered HostOutput. All six source files match the validated v4 candidate. Public directory deletion retains its existing independent authority.
  • fix(conversation): return refused replies to their waiting reader
    After validating the current writer, signed scope and visible recipient, deliver permission-gate refusals through the existing room-scoped reply. Use room_busy while the read floor is pending and preserve room_access_required for confirmed denial. Existing client request owners ignore observer copies and cross-room IDs; the Node pending request records its room scope.
    
    The deterministic SQLite control previously left a committed chat retry waiting while the refusal went only to the writer. Core SQLite passed 316 checks with one separate release-capacity check ignored; 612 Browser/Node checks and Node type checking passed. Browser explicit same-draft retry retained its nonce. This adds no wire field or authority queue; the independent Browser interaction handshake remains open.
  • test(browser): run Windows servers from an owned build copy
    Snapshot a Cargo Server before starting Windows acceptance so later relinking cannot collide with its executable lock. The build caller explicitly identifies custom Cargo output with --built-server, and the second domain reuses that snapshot. Packaged input stays at its supplied path.
    
    Validation: five protocol checks passed. An isolated Windows control reproduced EBUSY on direct execution and successful rebuild with an unchanged snapshot hash. The actual runner timeout path retired both Servers and removed its directory; no additional wait or retry was needed.
  • fix(watch): retire obsolete webpage selection grants
    Retire a prepared reader when its candidate resource changes or disappears, using the existing projection lifetime. Ignore replies to requests whose receiver has already closed before any selection side effects. A failed or expired replacement retains the active source; page event limits share their existing named owner.
    
    Validation: independent lifecycle review and 23 Windows capture-enabled checks, including deterministic closed-receiver selection and owned HTTP range/redirect credential controls. The boundary-constant consolidation compiled and its two focused regressions passed. No change to the accepted direct-URL fallback.
  • fix(session): keep draining peer events while retiring a reader
    Route watch-reader revocation through the existing await_peer owner, as registration and the other awaited Driver operations already do. The Session must continue consuming peer output while its bounded command send is pending.
    
    A controlled dispatch gate observed zero events on the old handler and one on the corrected handler. The 35 Native Session checks include the existing saturated Driver regression and reader retirement. This does not claim a field reproduction of both queues filling during revocation.
  • refactor(capture): give each pending source an explicit phase
    Replace separate commit, lease and candidate fields with preparation, external readiness, prepared lease and submitted commit phases. Derive a prepared candidate ID from its lease while the submitted phase retains the ID owned by the pending host result. Room acknowledgement and active source ownership remain in their existing handlers.
    
    Validation: independent lifecycle review, 35 capture-enabled Native Session tests, 13 Server library checks and a control-WebSocket preparation-failure/cancellation check; the Windows capture App built. Update the three existing WHIP fixtures to the same phase representation. Physical source switching was not part of this check.
  • fix(native): admit video from the representations a receiver can use
    Integrate Claude 151f6601 with independent allocator and supply corrections. Reserve each optional flow minimum and its audio before distributing surplus; preserve standalone voice. Compute admission rates and forwarding from the same receiver-compatible supply, including reversed RID costs and H264 profile constraints.
    
    Evidence: the observed 187043/121722/53370 budget case and four reproduced failures in simultaneous optional admission, zero video budget, inverted RID costs and High-only forwarding. Corrected Windows capture checks passed 32; no-capture Native passed 195 with two hotkey checks skipped; all 125 Server checks passed. The original full capture run had two readiness timeouts that passed the same-binary serialized control. No physical-network or capture-device claim.
  • fix(native): give video admission one owner
    The allocator admitted an optional trial with a positive grant below every
    representation of its source, and the video Input then deactivated it
    silently. The flow was neither waiting nor rejected, so the route owner saw an
    admitted trial that sent audio and never video. The same split disabled a
    selected flow on a relay that cannot re-encode once the estimate fell below its
    only representation.
    
    The supply now reports a deliverable floor: the cheapest full or temporal
    representation, unknown before a complete observation and zero while idle. An
    output that the producer's encoder can serve in an accepted format has a zero
    floor, because any positive grant is usable. The allocator owns admission: an
    optional trial whose known floor exceeds its budget waits or is rejected,
    including when no selected incumbent is present. Established selected video
    keeps its floor when the estimate falls below it, which is charged before
    optional work, so floors beyond the estimate admit no optional load. Startup
    without feedback and unknown floors keep the existing bootstrap. This follows
    the shape of libwebrtc's allocator, which gives an enforced-minimum stream its
    minimum when the total is too low and pauses the others explicitly:
    https://webrtc.googlesource.com/src/+/refs/heads/main/call/bitrate_allocator.cc
    
    The Input keeps layer selection and keyframe readiness only. A positive grant
    that no longer fits after planning carries the cheapest representation until
    the next plan; Paused and a zero grant still deactivate it.
    
    Allocator tests cover the observed 187,043/121,722/53,370 bps case, exact and
    below-floor trials, unknown and idle sources, startup, the branch without an
    incumbent and selected floors above the estimate. Fixture tests whose subject
    is RTP identity or source lifetime now hold their second flow as selected media
    or give it a fixed estimate instead of relying on optional admission against
    the loopback estimate.
  • fix(app): commit site ownership with the accepted navigation
    Keep the current local-room origin while another site is only pending.
    Commit its local/site origin together when the matching document begins loading,
    so a failed navigation does not prematurely strip the existing overlay owner.
    
    The Windows capture-enabled product tests cover pending and accepted navigation,
    site verification and bookmark authority separation. Full WebView failed-load
    interaction remains a distinct runtime check; no bookmark or permission role changes.
  • fix(sdk): retire failed connections before returning to callers
    Handshake and initial room selection share one acquisition boundary. On failure,
    terminate the owned WebSocket and await its existing close cleanup before
    returning the original error. The participant keeps its signer for a retry;
    stop remains its terminal owner.
    
    Real loopback WebSocket controls confirm immediate retry after both rejection
    points. Existing stop and SDK tests pass; no parallel request teardown is added.
  • fix(app): use native window activity for attended actions
    WebView can retain document focus after another Windows application becomes
    foreground. Project each Piik window's actual activation into its document
    and share that fact across message feedback, read markers, shortcut ownership
    and remote-input reset. Keep media visibility and room grants independent.
    
    The same real foreground-window transition reproduces silence and premature
    read advancement on beta.53, then triggers cues and preserves unread position
    on the candidate. Returning to Piik advances the cursor. Audio output was
    muted in the experiment; oscillator execution and completion were measured.
    All 2315 Web tests, TypeScript and the Windows capture-enabled App check pass.
  • test(server): allocate UDP independently in both browser harnesses
    Use the same OS UDP allocation helper for the primary and additional test
    Server, with the value scoped to each child's environment. Avoid reusing a TCP
    port that can be reserved for UDP on Windows. Actual protocol checks pass.
  • fix(native): retire a failed reader through its source owner
    A reader panic must deliver the same terminal SourceEnded event as a normal
    return. Keep the existing reader identity and source cleanup so healthy voice
    on the same pair survives, rather than retiring the entire transport.
    
    The full transport module passes 31 tests on Windows, including an actual
    injected video-reader panic with continued sibling RTP. Native without capture
    also compiles. Parent cancellation retains its existing abort-and-join path.
  • test(server): allocate the check Server's UDP port through UDP
    run-browser-check.mjs reserved a free TCP port and let the Server bind UDP
    on the same number. Windows reserves port ranges per protocol, so a free TCP
    port can sit inside a UDP reservation. On a machine where
    `netsh int ipv4 show excludedportrange protocol=udp` lists 52359-52458 and
    the TCP list leaves 52360-52395 free, three protocol checks in a row ended
    with "Bind Server UDP 0.0.0.0:52363 ... os error 10013".
    
    Give the Server its own UDP port, as 3713fc4c did for room_creation_policy.
    Only that child receives it, so the second Server that
    browser-native-acceptance.mjs starts from the inherited environment does not
    try to bind the same port.
  • test(native): capture RTP ownership when stream reuse fails
    The cross-review machine reports fresh-SSRC failures while fixture input keeps
    advancing. On that failure, print both ends' MID/SSRC/track mappings, counters
    and bounded observation histories. Preserve the original error if diagnostic
    queries fail or their bounded collection expires.
    
    The instrumented test compiles and passes once locally without capture. This
    does not explain or dismiss the independently reproduced intermittent failure.
  • test(storage): extend shared history moderation coverage
    Replay moderator deletion, partial clearing, live nonce retries and per-message
    attachment references through the existing SQLite and IndexedDB scenario.
    Both runners verify original identity and content survive a live retry.
    SQLite and actual Browser/WASM checks pass without a new test framework.
  • test(core): require delivery for reachable byte receivers
    Strengthen the bounded demand-sequence scenario so empty plans cannot satisfy
    its assertions. Use distinct high generator bits and the fixture's confirmed
    links and remaining capacity. A deliberately empty projection fails; the full
    SQLite route suite passes with the existing planner.
  • refactor(protocol): share room creation commands with the text SDK
    Browser and Node participants use the same room-settings conversion. Keep
    hosted versus device-owned fields explicit and retain SDK return contracts.
    Existing participant/session tests and TypeScript checks pass.
  • fix(native): drain peer events while checking ended captures
    An actor blocked on its full event output cannot answer the consumer's capture
    query. Share a non-recursive event pump between the session loop and await_peer;
    query-time notifications join the next bounded set of owned publications.
    
    Real Session and Driver tests exercise the saturated 64-slot queue and retain
    active replacement video and audio-only captures. Capture ownership remains in
    the Driver; no duplicate capture snapshot or unbounded queue is added.
  • refactor(audio): normalize capture scope at its authority boundary
    Validate the existing request once after cancelled audio cleanup and capture
    lease checks. Downstream producers consume Off, Source, ExcludeProcessTree or
    RenderEndpoint instead of reinterpreting independent optional fields.
    
    Preserve the current wire shape, required explicit selections and ordinary
    capture warnings. Windows, Linux capture and Android API 29 checks pass;
    a regression preserves capture_not_owned before invalid endpoint errors.
  • test(core): check byte-tree invariants through demand changes
    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.
  • test(storage): share moderation scenarios across SQLite and IndexedDB
    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.
  • test(runtime): coordinate races and allocate UDP independently
    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.
  • fix(app): finish shutdown when the HTTP service ends first
    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.
  • test(native): cover transport failure during session resume
    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.
  • fix(native): isolate individual room storage failures
    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.