Commit Graph
2491 Commits
  • docs(standards): fold single-incident rules into the general rules they illustrate
    Several clauses in the engineering standard and the contribution guide
    recorded one incident each. Where the same file already states the general
    rule, the instance leaves: relayed content limits, serialized recovery, the
    per-item limit and late teardown are covered by the aggregate-bound, current
    intent, identity and operation-rejection rules. Where an instance carried a
    distinction the general rule lacked, that distinction now sits in the rule in
    one sentence: saved preferences as a separate fact, missing measurements and
    per-generation baselines, protocol rejection and satisfied teardown, a
    cancellable effect boundary, one shared normalizer for canonical forms, error
    facts localized at render, a healthy sibling in review, and partial
    restoration with shared endpoints in tests.
    
    In the contribution guide, source preparation and real-input platform checks
    each keep one general rule, the local cleanup inbox leaves while the
    rejected-cleanup rule stays, and the Cargo source-copy invalidation guidance
    stays because the native build still needs it. No heading changes.
  • docs(operations): replace the 2.x hosting guides with the 3.0 deployment guide
    The 2.x self-hosting and service-management guides, in English and Chinese,
    leave this tree; main keeps them. The documentation site now publishes
    docs/deployment.md in a Self-hosting group. It has no Chinese counterpart, so
    the Chinese sidebar links the English page in the same place and marks it as
    English, as the sidebar already did for English-only references; the 2.x
    configuration link leaves that group. The homepage points its server link at
    the deployment page, sends the 2.x media fallback sentence to the published
    2.x pages and drops the service-management item. README, frp, website and
    translation guide links that meant the 2.x guides now point to main, and the
    publication test uses another published page as its fixture.
  • docs(standards): remove the 2.x rooms, routing, lifecycle and configuration copies
    main is the one writer of the 2.x rules, so the four copies in this tree
    leave now that their 3.0 content has moved to 3.0 owners. Links that meant
    the 2.x rule point to the same file on main; the indexes and the documentation
    map replace the per-file 2.x rows with one link to the 2.x standards on main,
    and the 3.0 Server and App configuration row points to the Server README. The
    network laboratory and the engineering standard's deployment-configuration
    rule now cite their 3.0 owners. The size budgets and the hygiene path list no
    longer name the removed files.
  • docs(adr): remove decision records for the 2.x line and ended experiments
    ADR-0001, 0002, 0004, 0005, 0006, 0007, 0010, 0011 and 0012 describe published
    2.x or experiments that ended; their own scope lines hand 3.0 to ADR-0016, the
    canon and the 3.0 models. No living 3.0 document relied on them: the media
    standard's two ADR-0007 citations were obsolete, since the standard states the
    3.0 codec rules itself and the 3.0 preflight probes the real track rather than
    ADR-0007's synthetic one; it now points to the preflight code. Citations from
    the records that stay (ADR-0008, 0009, 0014, 0016) and from 2.x research now
    link the records on main, and the hygiene path list no longer requires
    ADR-0001 and ADR-0010. History stays in Git and on main.
  • docs(research): remove finished 2.x investigations identical to main
    Eleven research files are byte-identical to main and record finished 2.x
    investigations: advanced peer distribution, browser background capture,
    cross-restart room recovery, diagnostic feedback, low-server media routes,
    native client lifecycle, native sender, node-local adaptation, peer-assisted
    media, platform output and WebRTC P2P screen sharing. Their history stays in
    Git and on main. Links from the documents that remain now point to the copies
    on main, and the hygiene path list no longer requires the P2P research file.
  • docs(standards): keep media-quality as the 3.0 media standard
    The media standard now says it owns the 3.0 Browser and App media contract
    and links main for 2.x. The Pion and LiveKit adapter, the embedded SFU and its
    publication, ADR-0011 Browser-to-Native fanout, the native-edge Browser
    candidate from the local bridge, the allocation-deficiency category, the App
    preference store and older-client sentences leave; each was checked against
    the 3.0 code. The 1152-byte Opus bound becomes the constant-bitrate encoder the
    3.0 Native path uses, and the Native/SFU receive-limit rejection, which 3.0
    does not implement, leaves with the SFU publication settings.
    
    Main's orientation rule comes in as the shared Browser encoder implements it.
    The Viewer playback buffer target is already owned by the network model, so
    the standard links it instead of restating it. Research that describes 2.x
    media now links the standard on main, and the documentation map and indexes
    list media-quality as 3.0 with the larger standards budget.
  • docs(standards): give playback ownership and small 3.0 rules their owners
    Playback ownership moves from the 2.x presentation lifecycle copy into
    media-status.md beside its evidence boundary, restated as the 3.0 player
    behaves: one element per received input owns its frame proof, the displayed
    element owns playback, picture-in-picture and fullscreen, and a candidate keeps
    the local pause and volume when it takes over. Typed playback facts, the
    decoded-frame silence rule and local candidate addresses join the evidence
    boundary. Viewer listening gain joins media-quality Screen Audio, and the
    two-second idle delay joins the visual language.
    
    The remaining fragments go to their 3.0 owners: the room voice ceiling to
    media-quality, the rejected-candidate distinction to the network model's
    existing sentence, App discovery and consent and the Browser debug report to
    the Server README, and the preference-restore rule to the room-data model.
  • docs(standards): move interface languages to naming and copy
    The five 3.0 UI languages, system-language matching and launcher handoff
    leave the 2.x presentation lifecycle copy for a section in naming.md. The
    older-launcher sentence is restated as the 3.0 rule the copy store follows:
    an explicit launcher choice is saved, a launch default only fills an unset
    preference. The standards index, the documentation map and both translation
    guides now link the new section.
  • docs(standards): give Remote Control its own standard
    The 3.0 input grant, target and release contract moves out of the 2.x room
    access copy into docs/standards/remote-control.md. It keeps the pause release
    added for 3.0 and drops the older-client exclusivity sentence, the collaboration
    marker distribution that 3.0 does not implement, and the gamepad driver detail
    that the reader guide and interaction research already own. The documentation
    map, the standards index, the network model's input section and the interaction
    research now point to it.
  • docs(research): frame the container tag evidence by the rules that already hold
    The versioning standard already says a major is an incompatible contract,
    that latest moves when a version becomes the latest release, and that a break
    needs upgrade instructions and mismatches that fail clearly. The note read as
    if the matter were open. It now cites those rules and says what is left: an
    App crosses a major behind a notice and the person's own act, and a container
    that follows latest crosses it on a pull.
  • docs(review): align recovery evidence and the documentation handoff
    Accept BrowserHosting and the requested small corrections with independent and integrated checks. Keep recovery proof at the decoder and presentation at the renderer based on a real two-path control. Place the 3.0 documentation owners and separate first-install pins from the unresolved public latest-tag policy.
  • merge(review): isolate browser hosting and clarify routing evidence
    Integrate aea131e2 after independent lifecycle, route-wake and documentation review. BrowserHosting owns its room slots and cleanup chain; rejected closes and superseded opens cannot strand later work. Existing real-browser hosting acceptance, TypeScript and all 2385 Web tests passed. The deadline control and Server check passed. Scope the offline placement study to sampled searches, explicit edge sets and hypothetical transition costs.
  • docs(research): record how mature projects treat container tags at a breaking major
    Published 2.x deployments follow the latest image, and 3.0 cannot read their
    configuration or data. The owner will decide what that tag means when the
    release is prepared. The note holds the evidence: what the registry guidance
    says, what nine projects did and what it cost them, the guard rails, and the
    options. The cutover item in TODO now names the decision.
  • docs(agents): return to Decoded as the recovery proof and keep presentation local
    Codex's control shows that a background tab delays its frame callback, so
    gating recovery on presentation holds back a relay whose children are frozen.
    The room takes Decoded, as it does with no incumbent, and the stage keeps the
    outgoing layer until the incoming one composites. Names why the candidate's
    surface is unmounted today.
  • docs(review): close admission cleanup and report the remaining proof boundary
    Release the completed App and Native holds after independent and integrated checks. Keep the recovery evidence split experimental because actual background presentation can wait for visibility. Preserve the maintenance buffering control in its evidence owner.
  • refactor(native): remove unreachable room offer recovery
    The pinned SDK returns no change without an error; pending and retired room transports cannot satisfy the old stable-failure fallback. Remove that fallback and its duplicate state while preserving receive-only input checks, selected outputs and resource-release audio retry. Independent review, four direct transport controls, the Native suite and matching Server session integration passed.
  • refactor(app): separate control admission from ready operations
    Every valid operation now passes the shared Hello admission phase before dispatch. The ready loop owns a concrete host sender, while the outer connection cancellation and timed writer remain unchanged. Failed Hello can retry on the same socket. Independent producer review, 87 focused App tests, integrated Server tests, matching Native-session controls and the capture-enabled Windows build check passed.
  • docs(agents): take Codex's outcomes, deliver the requested corrections and answers
    Removes what its reply settled, reports the three corrections it asked for,
    names the ended records and the passages it asked about, takes the Presented
    report with four points to fix before it is wired, and keeps the later items
    it has not yet seen.
  • docs: name one owner for the 3.0 framework and mark current routing as current
    ADR-0016 records the framework, and the forwarding, hosting and room-data
    models own the behaviour built on it. Two documents said the forwarding model
    owned the architecture.
    
    The network implementation said to keep a working route rather than probe,
    which read as a rule against the canon's quiet improvement. It now says this
    is present behaviour and that the way to improve is undecided in ADR-0018. Its
    transition rules link the forwarding model, not a 2.x record that 3.0 does not
    use.
  • 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.
  • docs(review): answer the subtraction audit and define the next owners
    Record each queue and audit outcome against independent producer/consumer reviews and regressions. Keep the private contract, Native admission, encoder and documentation work in TODO. Propose an owned presentation fact for recovery while preserving quality-proof meaning and the confirmed-pair graph.
  • docs(research): record the offline placement study
    On synthetic sessions the planner already covers every viewer the attainable
    tree covers. It loses depth, more as the room grows, and a room of four is
    optimal. A leaf move over existing pairs recovers about a tenth of the loss;
    the same move allowed to try one pair recovers most of it. The harness is on
    the branch test/placement-study and models placement only.
  • 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.
  • merge(review): use room-owned handoffs and remove retired client code
    Integrate d32f2dc8 after independent reachability, session and rendered reviews. Keep HTTP-only preview identifiers and integer serialization guards, let Core own policy ranges, and wrap the share controls intrinsically on narrow layouts. The page now uses the shared document-title owner. Full Rust, WASM, protocol and 2382 Web tests passed; subsequent title checks and the final Core/Server suite passed.
  • fix(channel): a hosted room keeps one host and outlives a failed close
    With one owner for the slot, two gaps the session's many writers hid can be
    closed in one place. A host registered over another now closes the one it
    replaces, and a restore that finds the slot taken after its store opened
    closes its own and leaves the room to that writer. A reconnect during a
    history install could otherwise leave an open store that nothing closed.
    
    The cleanup chain waits for closing to finish whatever each close returned.
    One rejected close used to leave the chain rejected, so hosting was never
    restored again in that session.
  • refactor(channel): BrowserHosting owns hosted rooms and their cleanup
    Step 6 of ADR-0015. The rooms this Browser hosts lived in two private fields
    of ChannelSession, hostedRooms and hostCleanup, written from the host_bound
    and host_input handlers, applyState, releaseHosts, restoreHosts,
    registerBrowserHost, backupOwner, installRoomHistory and closeConnection, and
    five sites extended the cleanup chain by hand. BrowserHosting in
    browser-hosting.ts now holds each open host and its binding, the chain of
    closing hosts that the next restore awaits, and the reason each stored room
    could not open, which it publishes to view.roomOpenFailures as its only
    writer.
    
    The session no longer holds hostedRooms, hostCleanup, restoreHosts,
    registerBrowserHost, browserStorage or setRoomOpenFailure. It keeps the
    connection, the request correlator, the view and the App link, and gives the
    owner six operations: view, socket, request, write, report and failures. It
    calls eight in return: host, bound, input, update, restore, register, replace
    and release. Every check after an await survives inside the owner against the
    same map entry, binding, socket and session predicate, and each sequence keeps
    its order of effects. The one reordering is in releaseHosts, where the hosts
    start closing just before the App link closes instead of just after; the two
    share no state.
    
    Behaviour is unchanged. tests/channel-session.test.ts passes 638 of 638 with
    no test edited. A new owner test shows that hosts released by an ended
    session finish closing before the next session opens the same room.
  • docs(canon): link P2P first and Automatic to the 3.0 design
    The owner confirmed the change. Both statements linked records of the
    published 2.x line: a superseded baseline and a route controller that 3.0 does
    not use. They now link the forwarding design that follows from them. No
    statement changed.
  • docs(review): record native acceptance and recovery proof gaps
    Keep the verified native download and overlay boundaries in the verification owner. Send the measured private-WASM simplification and feedback lifetime correction to cross-review. Preserve confirmed-pair semantics and record the actual Browser proof blockers before any recovery integration.
  • 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.
  • docs(agents): review the storage change and the recovery contract, report the audit
    Answers Codex's outcomes, reviews the per-identity domain store and the
    early-recovery contract, reports the follow lane and the client removals, and
    lists the subtraction audit's findings for the core, the Native runtime, the
    Server and the documents.
  • fix(screen): retire feedback with its publication
    A React reproduction accumulated 16 failed picture actions after their publications disappeared. The keyed feedback owner now receives the full live publication set, prunes retired results and sends late errors back to the existing banner policy. Room-view changes preserve live feedback; reconnect resets it. Scope identity suffices without an abort controller because this helper does not cancel the operation. TypeScript and 79 focused tests pass.
  • merge: take Codex's line through 4c08b316
    Room settings take Codex's form of the storage diagnosis, which carries the
    help link. The follow correction on Codex's line and the stamp-following rule
    on this branch compose: an activity that is gone keeps its waiting entry and
    needs no decline, any other failed follow declines its successor. The
    regression test covers both.
  • refactor(channel): the room authority alone validates voice bitrate, relay limit and title length
    The session rejected a room voice bitrate outside 6,000 to 320,000 or from
    a non-manager, a direct relay limit outside 1 to 20, and a screen title
    longer than 64 UTF-16 units before sending them. The shared core rejects
    each with the same code (forbidden, invalid_audio_bitrate,
    invalid_relay_capacity, invalid_title), and every runtime runs that core.
    The App branch reaches it unchanged: the App forwards capture_direct_limit
    and capture_title as set_screen_direct_limit and set_title through its
    Native session and returns the room's error code. The controls already
    bound their input: the bitrate field is an integer kbps field between 6
    and 320 shown only to managers, the limit is a select from 1 to 20, and
    the title input has maxLength 64.
    
    Title trimming and the blank-to-null mapping stay in the client. JavaScript
    and Rust trim different whitespace sets, so the core does not normalise
    identically.
    
    The session tests now check that the room's rejection reaches the caller.
  • fix(watch): keep thumbnail playback controls reachable
    A thumbnail picture tap focuses the picture, so idle hiding prevented touch users from revealing its pause, mute and settings controls. Reuse the existing visibility owner to retain compact thumbnail controls. Chromium touch at 320 pixels and mouse at 390 verified play, mute, settings and picture promotion.
  • 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.
  • docs(review): answer the queue and narrow the recovery contract
    Record independently rendered queue acceptance, the reproduced source-follow correction, and the new atomic identity storage boundary. Keep Native diagnostics and early recovery at their demonstrated scope; update the pending field-input and upstream runtime facts.
  • refactor(client): session and media ids use randomUUID like their siblings
    The interaction subscription request id, the encoding pool member id, the
    encoding producer id and the preview's sample interaction ids used the hex
    helper while every neighbouring id uses crypto.randomUUID. Their form does
    not matter: the pool and producer ids are compared and logged, the request
    id is matched by equality and the core accepts any id of up to 128 bytes,
    and the session's own requests already require randomUUID wherever these
    run.
    
    RoomInteractionSession keeps the helper: its test runs it without
    randomUUID, to cover viewing over plain LAN HTTP.