Commit Graph
1021 Commits
  • 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.
  • test(backup): distinguish rejected and unconfirmed site restore replies
    Exercise the actual NativeDomainHosting adapter with definite pre-handoff rejection, committed response failure, lost reply and malformed success. This is the focused test accompanying the site-restore outcome correction, without restoring a real database.
  • fix(backup): preserve uncertainty after a lost site restore response
    Share the existing room-restore HTTP outcome classification with site restore. Lost or invalid responses retain the original credentials and expose the existing reconnect entry instead of treating a possibly committed operation as rejected. Pre-handoff unavailable responses are explicit conflicts; handed-off result loss remains unknown. Forty scoped adapter/session/presentation tests and TypeScript checks passed with mocked external I/O; no real database restore was performed.
  • refactor(watch): let each page player own its page lifetime
    PageSuppliedMedia directly reuses HTMLVideoMedia and acquires/releases its own page hold. Replacement no longer transfers ownership by hand; failed candidates release themselves while the incumbent remains playable. Existing same-page, readiness failure, retry and output recovery checks passed with the real owners and mocked external I/O; 1036 related tests and type checks passed.
  • fix(app): validate launcher addresses at the responding runtime
    Navigation and approval share the existing identity and exact loopback-port check. An incomplete or mismatched responder no longer steals approval from the later valid App. Navigation capability and per-site approval remain at their own call sites. The reproduced late-responder regression and 124 discovery, navigation and approval controls passed with mocked external I/O.
  • refactor(chat): confirm the complete stored message in one record
    The signed send receipt now carries the existing stored message and reaction revision. Remove its extra reaction snapshot record, preserve newer reactions when merging history and expose the same complete result to Node retries. The real WASM build, Core conversation/SQLite controls and 746 focused Web tests passed; Browser acceptance fixtures now inspect the current single history page shape. No historical private wire adapter is retained.
  • refactor(backup): select copy conversion while reading the archive
    Use CopyHistoryImport at the existing source archive reader instead of validating and serializing every row through a second importer in ChannelSession. Core source validation, destination staging and separate Native writer checks remain at their owners. Existing archive/copy session tests passed with real ZIP and WASM conversion. This commit does not claim the separately attempted Browser service acceptance; the integrated Web suite will use the verified Core artifact.
  • fix(input): reserve stop chords before voice shortcut registration
    The shared Browser and App validators reject the Ctrl+Alt F1-F11 family before OS registration. Restore invalid saved bindings per slot so valid siblings and explicit clearing survive. The selected stop key still owns only its existing platform variants. Browser recording/preferences checks passed 27 cases; the production App configure rejection passed without requesting an OS shortcut. Existing Windows four-variant CI evidence is unchanged.
  • refactor(signaling): leave Native preparation decoding to Native endpoints
    Browser endpoints never negotiate Native UDP preparation. After bounded envelope validation, discard UDP-only payloads instead of interpreting three Native schemas or ending an unrelated Browser session. Reject known RTC and UDP fields mixed together before stripping unknown descriptive fields. Session regressions preserve the same socket, later state and RTC delivery, and pending request confirmation; no wire number, capability or authority rule changed.
  • refactor(backup): skip unused Browser attachment inventory scans
    A normal room backup without candidate originals needs no preparatory history scan. Keep that scan for room-copy author remapping and actual file candidates; the archive writer still validates and writes every stored row. Real Chrome IndexedDB controls reduced post-snapshot row reads from 108 to 54 while preserving decoded archive contents, and focused export checks passed. No archive format or persistence change.
  • fix(hosting): query only the host and settings task being used
    A selected site-host cleanup waited for an unrelated App admission request. Restrict the internal lookup to the selected host while retaining alias checks for discovery and App selection. Room settings query backup availability and file limits only when their data tab opens. A pending-App controller regression and real Chrome task-switch control pass; dormant-host and authority semantics are retained without a new endpoint.
  • refactor(watch): prepare page media through one local operation
    Direct, MPD and indexed selections share the same page and caller lifetime. Accept their existing typed selections in one AppPage method, retaining format-specific request and response validation and the indexed envelope bound. Session no longer repeats the three-way dispatch. Candidate selection, commit and rollback remain with their existing owners; App 28 and all wire commands stay unchanged. Focused preparation, cancellation and handoff controls pass.
  • refactor(preferences): copy only the requested room setting
    The existing preference owner now accepts a selected field while retaining full reads and independent mutable nested values. Scalar consumers no longer copy custom sound clips; saving merges from the private cached owner. Actual Chrome localStorage controls with two filled sound slots measured lower clone work for scalar reads and room-session initialization despite one extra storage read. Existing preference and session tests pass; no storage schema or new store is introduced.
  • fix(protocol): match the Core room ID byte bound in Browser readers
    The Browser summary schema counted UTF-16 units while Core permits at most 128 UTF-8 bytes. Use the same byte boundary and reject ill-formed Unicode without changing the wire shape. Actual WASM and Browser schema controls agree at ASCII and multibyte boundaries. Valid backup installation already passes Core validation; this repairs the Browser receiving contract rather than claiming malformed IDs were persisted.
  • test(presentation): assert the shared picture receipt count
    The audience renderer now describes decoded picture receipt, but an older presentation test still expected watching wording. Keep the semantic assertion that preparing viewers contribute zero and read its current text from the shared catalogue. The full frozen Web run found this missed consumer; all 81 affected presentation tests pass after correction.
  • refactor(stage): read microphone edits from their operation owner
    Screen selection already owns conflicts with audio and quality edits. Read the source microphone operation there instead of consulting its projected pending UI state in Session. The existing Native commentary control confirms that an OBS start is rejected before issuing another App request. Focused tests and TypeScript pass; behavior and protocols stay the same.
  • fix(watch): refresh webpage readiness when its resource empties
    A paused Native webpage could empty its video without a waiting event, leaving the viewer showing the previous ready state until a later poll. Forward the actual emptied event and resample at the existing viewer owner. Keep it distinct from waiting, which has owner clock semantics. Advance private App control to 28 because older readers reject the new event. Chrome reproduces the stale state and observes immediate preparation and recovery after correction; related Web tests and Windows capture-enabled Rust checks pass. Packaged GUI and physical playback remain separate.
  • fix(app): validate replies before confirming local operations
    An unexpected success payload could mark capture active, and an invalid room summary could commit room creation. Validate the existing null acknowledgements at the App reader and reuse the room schema with the reserved room ID. Native success producers were checked individually. The regressions fail before the repair; related App and integrated Web checks pass. The protocol and authority model are retained.
  • fix(watch): bind source inspection to its active player
    Preparing candidate B while page A was shared leaked the picker candidate into A media-list requests. Resolve the picker or active player once and borrow that owner lifetime for inspection and discovery. Retiring A cancels its work without closing B. The command-boundary regression reproduces the wrong candidate before the repair; focused and integrated session tests pass with simulated Native replies.
  • 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.
  • fix(ui): keep picture rotation local and room copy accurate
    A device-wide rotation preference turned unrelated and future pictures. Each player now starts unrotated while picture fit remains a preference. Offline non-managers receive available-history copy, compact room counts describe room presence, and unused relay and bookmark translation keys are removed. Two actual Chrome pictures stayed at 90 and 0 degrees after rotating one, and both reset after reload; focused checks and type checking passed.
  • fix(media): restore Browser quality at its capture owner
    A sender failure followed by failed track restoration left Stage reporting the previous quality while capture had changed. ChannelMedia now owns track, sender and publication rollback as one operation; Stage retires only the affected capture when that restoration fails. The baseline regression failed; thirteen focused checks and the integrated session suite pass. Verification uses synthetic capture and sender failures.
  • fix(copy): use Chinese release guidance for Traditional Chinese
    Reuse the existing Chinese/English fallback for release headlines, the FRP help link and console language. Preserve the authored bilingual release body. Existing launcher/copy/update checks, five-locale rendered headline and destination controls, and TypeScript pass.
  • fix(access): space failed password retries per room member
    After a wrong password, the host waits two seconds before hashing another guess from that member. Other members, existing grants and valid invitations remain independent. Transient host memory survives command rollback but is not persisted; no configurable or permanent lockout is added. The complete Core suite, actual Native restore/admission, and Chrome WASM/IndexedDB 1999ms/2000ms boundary controls pass.
  • 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.
  • fix(sharing): retire capture when quality rollback fails
    If a Browser encoder accepts new settings but metadata is rejected and restoration fails, retire through the existing source-ended owner rather than leave divergent settings alive. Preserve the original and rollback errors. OBS transfer waits for the Browser quality transaction, while Native handoff retains capture fencing. Both regression controls fail on the baseline and pass with the integrated Session suite.
  • fix(backup): commit account replacement with room restoration
    Keep the prior account durable until the portable room installation commits; close the imported live session before restoring previous in-memory state on cancellation. Preserve the imported account for confirmed or explicitly unconfirmed native outcomes. Explain intentional account replacement, and report failed browser persistence while finishing the committed room registration. Baseline interruption/storage controls fail; integrated session tests and independent restore checks pass.
  • fix(channel): retire in-flight resume when recovery expires
    An already-sent Join could name the expired session and later re-admit phantom media after local cleanup. Retire that pending socket through the existing reconnect owner. The fresh Join retains the credential but omits the old session, and old callbacks remain fenced. The fake-clock public-action regression verifies a fresh screen can publish; normal recovery controls pass.
  • fix(channel): discard retired browser host commands before execution
    Carry the existing binding and socket predicate into the serialized BrowserRoomHost turn. Queued work from an old carrier no longer reaches Core or starts an IndexedDB transaction; already-started commits retain their existing lifecycle. Real Chrome/WASM/IndexedDB controls observe zero Core calls for retired queued work and successful current work. No password-rate policy is introduced.
  • fix(audio): bind commentary edits to the current capture
    During Native source replacement an old off request could supply requested volume and swallow a new microphone edit. The operation now retains its actual capture identity, requested settings and promise; stale completion cannot clear a successor. The public handoff regression is red on the baseline, and all 732 integrated Session/interaction tests pass. Actual microphone permission remains with the existing capture lease.
  • refactor(channel): let RoomReader consume its interaction protocol
    Complete the accepted ADR-0015 interaction boundary: the reader handles readiness, reactions, rejection and live interaction projection while Session keeps request correlation and history/profile/snapshot writers. clearInteraction names the reusable reset. Independent history reactions still arrive before interaction admission. All 732 Session and interaction tests and TypeScript pass, including real signing and terminal reply controls.
  • fix(backup): preserve names of reply-only authors in room copies
    A quote can outlive its original message. Collect the quoted author independently while retaining the existing bounded profile batches and archived snapshots. A real ZIP and Core WASM round trip fails before the fix and preserves a deliberately named Guest afterward. No format or unnamed-member behavior changes.
  • fix(history): scope cached reading to the admitted identity
    Restoring a portable room can switch user within the same site while another authorized room is offline. Retire its old reading data before publishing the verified Welcome identity, using the existing history projection. Ordinary state updates and same-user reconnects retain their reader lifecycle. The full Web run exposed a transient-projection regression; its correction and all 707 Session tests now pass.
  • fix(audio): preserve mute when changing bitrate after handoff
    A zero-gain App handoff can adopt a Browser track without a mixer. Compare requested effective gain with the applied value so bitrate-only edits remain independent, while unsupported gain changes fail. The existing handoff regression reproduces the baseline failure; 17 targeted cases and the integrated Session suite pass.
  • fix(input): retire displayed consent when capture is replaced
    The Native replacement is Off until its own input state arrives. The Browser formerly reused the old source mode for a simultaneous-control edit in that interval. Clear only the replacement display state and accept the new authoritative event. Public source-replacement, cancellation and retained-audio controls pass within the integrated Session suite.
  • refactor(channel): give Stage ownership of live quality edits
    ADR-0015 assigns screen workflow lifetime to the room Stage. It now owns requested quality, coalescing and pending projection while Session retains resource adapters and metadata correlation. Reserve the promise before synchronous observers and tie it to the actual capture, so a replacement can start a new edit before the old reply. Independent red/green controls and all 707 Session tests pass; Browser ACK, rollback and one error report are preserved.
  • fix(copy): distinguish sharers and public site addresses
    Remote input consent belongs to the selected sharer, voice policy to the room owner, and the launcher public address opens a site without granting room admission. Match existing catalogs, console and bilingual guides to those actual owners. Existing catalog/launcher controls pass, and the terminal assertions track the same labels. No authority or protocol changes.
  • fix(files): withdraw unreadable holders after a cancelled read
    The current file holder can become unreadable after its peer cancels a pending range. Core correctly emits no result for a retired request; holder retirement must not depend on that effect list. Reuse identity-checked source withdrawal independently of range results. Baseline fails the cancelled-read control, and 73 focused attachment/storage controls pass.
  • fix(channel): validate terminal replies against their requests
    Correlated profiles or room-created events could confirm an unrelated profile edit, and a bare ACK could confirm Watch without its room clock. Validate successful channel replies in one request boundary before applying profile data. Preserve signed writer authority, room matching and nonterminal invitation ACKs. Five public regressions and 718 Session/SDK controls pass; integrated TypeScript passes.
  • test(channel): retain the late signed subscription regression
    Use real ChannelConversation.send and WASM signing while the first subscription waits for its signer across two same-binding reconnects. Releasing it must not send to the replacement socket. Removing the pending-reader and binding check makes this regression fail; the integrated control passes.
  • fix(watch): show preparation during a paused YouTube seek
    YouTube IFrame API state 3 means buffering. Preserve pause intent while mapping that state to unproved current-picture readiness. The public player regression fails on the old adapter and passes after the change; 64 affected player controls pass. Room membership is unchanged.
  • fix(files): derive progress from the current live transport
    Confirmed through ChannelSession with pending OPFS writes: a closed control lane could be marked receiving by a late write, while a closed bulk lane retained waiting. Reuse actual room control and bulk readiness for snapshots, peer events and completed writes; preserve byte accounting. Focused public-action controls and 57 attachment checks pass.
  • refactor(session): own interaction subscriptions by room binding
    RoomReader owns the interaction object and its current admission request. Session keeps browse attempts, transport correlation, nonce allocation and feedback. Reconnecting the same binding retains the object while invalidating old ready requests; binding replacement and last-reader retirement close it. The existing signed-send boundary checks current pending identity and binding after awaiting its signer. All 700 Session and 25 interaction tests, TypeScript and independent public-action controls pass.
  • fix(watch): retain stop ownership beyond source selection
    Move the existing stop marker to the player shared by candidate and activity lifetimes. Remove the special page-close candidate parameter. Explicit stop after host signaling recovery now emits one request even when selection already retired. The baseline regression emits two; relevant WatchPlayer, Session and integrated Web checks pass.
  • fix(files): derive transfer state from the selected data connection
    The room plan names a candidate upstream, while the transport owns usable control and bulk channels. Read that existing readiness by peer and room instead of treating a plan change as a connection. Completed writes retain byte progress; only the current upstream proves receiving. The focused producer-to-consumer controls and integrated 2506-test Web suite pass.
  • fix(app): distinguish saved addresses from site access
    Do not offer new bookmarks for known Quick Tunnel origins. Keep existing entries readable, renameable and removable, and allow replacing them with stable addresses. Empty launchers prioritize opening an invitation and hosting; the star still opens site management, where saving and App approval remain independent. Match Web, native captions and guides across the supported copy catalog. Real HTTP API and Chrome desktop/phone controls pass, including legacy entries, exact provider matching and stable-address saves. Integrated types, build and relevant Web checks pass.