Commit Graph
171 Commits
  • feat(diagnostics): summarize actual preparation progress
    Record one opt-in pair summary of opened/primed pool sockets, sent targets and checks, Ready send/receive and authenticated replies. The existing event retains terminal reasons; cancellation still exports the counts reached without endpoint identifiers. Serializer, successful pool/search and cancel-to-ZIP controls pass with concurrent observation. Document actual report and preview entries.
  • feat(protocol)!: use product versions for Domain and App admission
    Declare major and minor once at admission and preserve each session's numbers
    beside its signing key. Equal majors admit different minors; incompatible
    majors reject before consuming launch authority and identify the older side.
    App discovery, Native readiness and Web diagnostics keep that direction.
    
    Resolve build identity before compilation. Browser values and displayed version
    share the same build input; the Node SDK reads its actual WASM version. Remove
    the two private wire identifiers without aliases for obsolete internal builds.
    
    Basis: the accepted compatibility rule in Versioning and ADR-0017. Validated
    Core, Web/WASM, Windows reader and App discovery controls. Real packaged SDK
    3.0 and 3.1 each completed signed conversation and private-room history against
    the other Linux Server minor. Browser/App mixed-artifact acceptance remains open.
  • 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(ui): keep room controls usable through layout changes
    The shared room sweep fixes narrow stage sizing, caption overlap, covered chat reads, phone history, focus restoration, settings error placement and row alignment at their existing owners. Room and Network settings share one draft and save action. The two shell stylesheets are consolidated; hidden current-room links and obsolete grid rules are removed. The handbook, matching guides and four generated room screenshots follow the shared components.
    
    Chrome 156 interaction checks covered both themes, 320px phones, short windows, classic scrollbars, native-caption simulation, eight retained players, nested Back/Escape and room-tool popout. Full Web validation passed 2485 cases and exposed one assertion on removed hidden local-preview text; the preview identity now lives in the player accessible label and all 15 affected playback/layout checks pass. TypeScript and Browser SDK types pass. Actual WebView caption dragging and physical mobile capture are outside this browser check.
  • refactor(ui): replace the old layouts with one living room shell
    Full and minimal are two forms of the same room, with shared players, conversation and voice lifetimes. The room list now discloses room membership; the couch owns current-room interaction and the people panel keeps the site-wide directory. Retire the old workspace and quick branches and their private preference values without aliases.
    
    Keep remote-input state mounted when its picture is hidden and expose requests directly on narrow cards. Preserve the common menu in the rail, relocate the voice-name style to its surviving owner, and regenerate guide screenshots from the production room view. Real room voice/draft controls, responsive media-node checks, types and the full Rust/Web/protocol gate pass. Existing Git-heavy Web fixtures pass when rerun serially after parallel timeout.
  • refactor(app): let the Domain initialize its own authority
    Generate the local owner key only when creating the Domain checkpoint. App settings keep their permission namespace and stop creating a duplicate secret. Existing and restored Domain keys remain authoritative; explicit Server seed configuration is unchanged. Focused startup, consent, restore and ticket controls and the full Rust/Server/protocol gate pass.
  • refactor(web): use the canonical channel entry
    Remove the duplicate channel-preview route and move its launcher, owner-link, acceptance and documentation callers to the existing root URL. Query and invitation fragments retain their meaning. App launcher and component preview routes stay separate. Route, session and built-server protocol checks pass.
  • docs(review): distinguish relay evidence by the tested runtime
    The same reduced and complete product sequences pass on current Chrome156 while Chromium152 reproduces the rVFC-related stall. Keep product behavior unchanged and record the actual engine. Coordinate the remaining UI acceptance and G50 runtime controls with Claude.
  • feat(server): issue owner links through a local operator command
    Reuse the existing short-lived single-use launch ticket behind OS-scoped local IPC. Bind the operator endpoint before readiness and retire it with the Server; no network administration route or new identity is introduced. Windows and Alpine package controls pass for issuance, replay, credential reload, expiry, shutdown and cancellation. Linux denies another UID; Windows ACL was reviewed but an alternate-user run was unavailable. Native pipe cancellation and the six integrated binary tests pass; Android locked metadata remains valid.
  • 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.
  • 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(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.
  • 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.
  • feat(transport): reuse native sockets and support TURN streams
    Native peers can use configured TURN over TCP or TLS and share ordinary IPv4 sockets within their endpoint runtime. Retire the last socket and gateway owner without interrupting sibling paths. Preserve explicit viewer playback errors, bound desktop decoder inputs, and stop copying cancelled retained files.
  • fix(app): preserve runtime affinity across same-site invitations
    Keep the established launch query contract for separately updated Apps and sites. Handle same-document room and invitation navigation inside the verified Windows workspace while preserving full navigation for real path, query and origin changes. This keeps active sharing and the selected App together without a second URL or compatibility parser.
  • fix(app): preserve room navigation and reconcile local activity state
    Keep launch metadata in the room fragment so same-site invitations retain the document and active sharing. Preserve confirmed microphone state during capture permission, acknowledge confirmed empty history, and retire local watch intent through writer recovery. Consolidate actionable App guidance and distinguish local and invitation addresses. Move signed payloads without copying and import only the semver functions used.
  • feat(channel)!: improve retained previews and enforce one data owner
    Retain image previews up to 1280 pixels within the existing message budget, supplied by the shared Core limit. Require Domain 43 for new image writes while preserving App Control 23 and existing storage and backup formats. Hold the channel directory lock with its last writer and remove redundant storage locking. Align compact header branding and reuse the shared native drag region.
  • refactor(conversation): verify scoped replies in one core operation
    Return authenticated typed replies from the Core receive boundary and remove repeated adapter signature verification. Preserve current host, binding, recipient and room checks. Keep the latest same-room invitation after an earlier request completes, and clarify hosted versus lightweight deployment guidance.
  • feat(app): add voice shortcuts and scoped recovery controls
    Share selected video URLs for independent browser playback while retaining explicit byte forwarding. Bring original-page sharing into the player list, verify workspace destinations, and keep local startup independent of external site checks.
    
    Reuse voice actions for page and Windows background shortcuts, derive troubleshooting from current operation facts, and keep floating tools below the native caption.
  • feat(channel): pool connections and isolate activity lifetimes
    Reuse bounded channel connections for independently authorized room activities and retire the shared room-tree bootstrap. Keep current physical proof separate from recovery history and activity delivery proof.
    
    Preserve operation ownership across room replacement, source selection, microphone changes and native window retirement. Bound data sends before the channel is installed and recheck room grants at the final write.
  • feat(channel): host rooms and reuse verified relay connections
    Apply channel creation and moderation rules at the room and directory owners. Reuse confirmed connections across sources, admit forwarding per payload, and preserve a working subscription when a relay leaves.
    
    Private builds use channel protocol 31, App control protocol 21 and the versioned room history format.
  • fix(app): restore approved connections and refine shared playback
    Preserve explicit App approval, expose playback and transfer progress, and keep shared identity and native window presentation coherent. Retain terminal fallback, cancel external input safely, and reject withdrawn UDP preparation before adoption.
    
    Reuse exact Web artifacts across matched targets and extend the existing text participant with typed history, replies and reactions. Verified Rust/WASM/protocol checks, 1614 Web tests, Windows capture compilation and five external input lifecycle tests.
  • refactor(app): consolidate site navigation and preferences
    Keep independent site management in the shared App interface and limit native captions to window controls. Prepare portable video sources in the main player, and maintain new interface copy in Chinese and English with optional translation fallback.
  • fix(watch): keep source selection feedback in its dialog
    Preserve global feedback for operations without a dialog. Clarify the Rust Server deployment entry and remove repeated historical encoder notes while retaining evidence and references.
  • fix(app): remember device grants and clarify access
    Use the system WebView permission store for explicit microphone and camera approval, retain shared prompt styling, and identify webpage source origins. Clarify trusted-site access and route 3.0 deployments to their actual configuration.
  • feat(watch): forward original media over room peer paths
    Let sharers explicitly provide selected file and HLS resources through the existing reliable room routes. Keep direct viewing independent of peer demand, retain one playback authority, and cancel scoped reads when viewers, sources or routes retire. Domain/App private protocols advance to 20/11; stored room data is unchanged.
  • fix(diagnostics): retain UDP failure context in App reports
    Summarize failed sends on the existing RTC observation cycle and include them in the bounded opt-in recorder. Distinguish the last observed selected tuple from other candidates without retaining endpoint addresses or changing recovery policy.
  • feat(watch): control webpage players through the desktop App
    Keep webpage playback in an isolated Windows WebView profile and bind its lifetime to the approved App connection. Browser viewers use an available media URL directly; other viewers explicitly open the original webpage through their App. Advance private domain/App protocols to 19/10 without storage changes.