Commit Graph
1306 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.
  • 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(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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • docs(adr): say that ADR-0014 is in force for 3.0
    Every other record from before the shared core carries a scope line. This one
    had none, although the Browser relay path depends on it.
  • docs(guide): say who keeps a room's history
    A security review reproduced that a room's creator can restore a backup that names another member as the author of a message. The owner decided to build nothing against it: whoever hosts a room holds its history and can change its own store with or without a restore, so a check or a marker would add a special case that protects nothing. The guide says plainly who keeps the history and what a restore does.
  • fix(ops): validate the channel runtime and expected deployment
    The Rust health endpoint returns a fixed text marker, so the operator check must not decode the former JSON response. Carry the accepted optional full-revision comparison from maintenance and exclude the operator updater script from automatic product-release planning.
    
    Eleven local CLI cases exercise real HTTP with an SSH substitute, including healthy stale releases. Eight release-planning cases pass. First-public cutover still requires resolving the Rust CI and coordinating public guides/downloads; no live service or workflow setting was changed.
  • feat(stage): tell a viewer that no route to a picture is available yet
    A watched screen whose viewer has no selected incoming flow showed
    "Waiting for a video route" with no action and no outcome. The core never
    records a failure for a viewer it cannot place, and a measured viewer
    decoded as soon as a source output freed, so this state is a wait with no
    deadline, not a failure.
    
    The client already separates the three states from facts it holds: no
    selected incoming flow for the publication (awaitingRoute, from the pair
    bindings), a selected flow without a stream (connecting), and the
    publication in failedSubscriptions (failed). The no-route line now says
    that no route is available yet and that watching starts by itself, in all
    five locales. The tile offers the existing picture help for this state;
    its dialog explains that nothing needs to be done, shows no retry and no
    route-failed comic. Retry stays hidden here, because it withdraws and
    resubscribes and cannot place the viewer sooner. Stopping stays in the
    tile's footer. The connecting and failed states are unchanged. The
    troubleshooting guide quotes the new line.
    
    Verified with npx tsc -b, the diagnosis and stage tests (new cases for
    the no-route diagnosis and the tile's actions), and the full vitest run.
  • merge(review): add microphone modes and preserve playback intent
    Integrate the Browser push-to-talk and activation modes, local operation feedback and shared content-hint mapping. A held action owns its release across fast key events, rebinding and focus changes; capture applies the current press before publication. Voice readiness follows actual local playback events. Screen intent comes from the publication source through probe, ordinary sender, shared encoder and rollback.
    
    Keep scoped flow/link debug events. Defer whole HostInput recording and periodic sampling that cannot establish a replay or quality comparison; retain the existing opt-in exporter. Omit the picture-specific Server-help claim until the relevant offered kind is available to that surface. Preserve committed quick-room reuse and recorded pending picker fixes.
    
    TypeScript and all 2393 Web tests pass. Real Chrome AudioWorklet/WebRTC/PiP controls verify decoded PCM release and activation without a physical microphone. Production voice settings pass narrow/wide bilingual theme and keyboard controls. Recovery timing remains an explicitly isolated experiment, not a production routing change.
  • docs(review): return Domain 48 integration and bounded recovery evidence
    Report outcomes for the queue through 151cd1c9, actual per-kind Server forwarding, corrected UI/identity ownership and archive import. Record the next four lanes as under review, and keep the one-use Server entry and remaining experimental choices in their existing work owners.
  • 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.
  • 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.
  • docs(adr): take one outer form for every room record
    The owner asked that the record form be decided by what mature projects do. Every system in which others define stored record types has one outer form from its first release, and those that added extension later carry two models for good. Uniform means a shared outer form with content still checked by schema, so core types keep a short reserved name and need no fallback, and deletion strips content and keeps a skeleton as Matrix and XMPP do. The cost a string type name adds to every record is recorded as the counter-evidence.
  • fix(media): probe the automatic codec with the share's mapped hint
    Display capture stopped setting "motion", so the automatic codec
    preflight's clone inherited an empty hint. Chromium then keeps the
    desktop source's screencast flag, and every default probe encoded as
    screen content while a Balanced or Fluency share encodes with "motion".
    The H.264 decision was made on a configuration the share does not use.
    
    preferredVideoCodecForTrack now takes the sender's hint and sets it on
    its clone. startScreen passes screenContentHint for the stored
    preference and the track's display surface, the same mapping
    configureVideoSender applies. The relay probe in media.ts passes none
    and is unchanged: it probes a received track, as before. The
    media-quality standard names the preflight among the hint's readers.
    
    Verified: npx tsc -b --pretty false; npx vitest run (159 files, 2360
    tests), including new tests that the probe clone carries the given hint
    without touching the source, and that startScreen passes "detail" only
    for Clarity on a display surface.
  • fix(media): map the picture preference to a screen share's content hint
    Every Browser screen share was hinted "motion", which turns off Chromium's
    screen-content encoding, so text could be downscaled to keep motion even
    when the person chose Clarity. The stored picture preference already
    states that intent, so one pure function, screenContentHint, now maps it:
    Clarity gives "detail" on a display surface; Balanced, Fluency, cameras
    and received tracks keep "motion". Balanced stays "motion" because
    Chromium turns an explicit "balanced" into maintain-resolution under
    "detail", which would collapse three choices into two.
    
    The function is the single owner of the hint. Display capture no longer
    sets one. cloneSenderVideoTrack takes the hint instead of falling back to
    "motion" and still copies it to the frame-forwarding track, so the first
    configure need not rebuild the codec. configureVideoSender sets the hint
    from the profile whenever no carrier is active, so a live edit and its
    rollback restore it; the pool carrier keeps its own transport hint. The
    pool producer clones with the mapped hint. Start-up protection becomes a
    configureVideoSender flag that overrides only the sender's degradation
    preference, replacing startupVideoProfile, so it cannot reach the hint.
    No setting, default or per-choice degradation preference changes. The
    media-quality standard now states the mapping.
    
    Tests whose expectation changed: quality "bounds initial capture to the
    selected profile" (capture leaves the video hint empty), "holds resolution
    only while a scaling preference starts" and "leaves picture cadence with
    the producer..." (startupVideoProfile removed; the latter uses the flag).
    The sender-video-track clone helper passes a hint for the new signature.
    New tests cover the mapping, a clone, a live edit, a rollback, start-up
    and a camera at the quality, clone, producer and transport boundaries.
    
    Verified: npx tsc -b --pretty false; npx vitest run (159 files, 2355
    tests). Encoder behaviour under each hint still needs a lab measurement.
  • docs(adr): revise the extension record to what survived review
    The implementer traced the proposal against the present consumers, authority, layouts and record formats. The vocabulary and the four places stay. Built-in records keep their compiled forms and a generic record for a community kind waits for the first extension, because wrapping every record was measured to cost bytes and to conflict with deletion. Owners undo their own registrations without ending one another, the full place and simple sharing are two views of one session, and a paired experiment decides whether a part interface earns its place.
  • 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.
  • merge(review): assess extension proposal against current owners
    Keep ADR-0020 proposed and return nine scoped outcomes from architecture, client-lifetime, authority and wire/storage reviews. Require a paired experiment against the same plain-owner extraction before adding a generic part interface or record envelope. Runtime layouts, shared leases, deletion and copy semantics remain the accepted contracts.
    
    Record matching Windows and Linux package acceptance, Android static compatibility, original-page readiness controls and the later output-recovery repair. No plugin framework or new public wire contract is introduced.
  • docs(adr): revise the life of a message to the reviewed outcomes
    The quote policy and a marker for a deleted reply target wait for their features, the rule that merges a change of text with a change of reactions is set when editing is built, search is a stated literal match over a bounded scan, and stored fields come with the capability that uses them. What stays before publication is that a backup must not drop a row's data without notice.
  • fix(playback): retain output recovery after the first video frame
    A cached or presented frame does not repair a failed selected audio device. Keep the existing output chooser visible until that output recovers, independently of picture waiting. The regression fails before this change; TypeScript and 33 related output/playback tests pass. Physical device and audible background-alert acceptance remain explicit TODO items.
  • merge(review): return integrated repairs and measured recovery boundaries
    Take the small-core canon and synchronize the reviewer mailbox through ca407420. Record per-item decisions, the tested history and bootstrap changes, and current file ownership for the next voice/interface/Server-forwarding lanes. Keep proposed message and topology mechanisms separate from implemented contracts.
    
    Record the protocol-47 relay-exit measurement: the first RTC failure report triggered branch retirement; healthy paths still survive signaling loss. Complete TODO entries for lineage, persistence and ADR scope, and retain specific platform, archive-attribution and public-contract acceptance.