Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

docs(status): record the route convergence release

AAA8e3639e6055b
diff --git a/docs/deployment.md b/docs/deployment.md
index faa7bf89..de2ec3ce 100644
--- a/docs/deployment.md
+++ b/docs/deployment.md
@@ -3,7 +3,7 @@
Last verified against upstream documentation: 2026-08-24.
This page records production running exact deployed application/runtime revision
-`3e2ee0a0e7afc083d0fac483ad223a2cfc869ee0`, release `3e2ee0a`, and the single
+`d8307a36b69a11a9264657363966c175d6d36c0d`, release `d8307a3`, and the single
Browser `screener-v12` contract. Product direction and pending work are owned by
[project memory](./project-memory.md) and [the TODO ledger](./todo.md).
@@ -25,16 +25,16 @@ ICE/UDP only. Ordinary peer ICE remains STUN-only and production coturn uses the
tracked STUN-only configuration with TCP/TLS disabled. The source and production
configure no TURN, ICE/TCP, media TCP, or TLS-relayed media.
-Production runs exact `3e2ee0a0e7afc083d0fac483ad223a2cfc869ee0`, release
-`3e2ee0a`, from `/opt/screener/releases/3e2ee0a`. The immutable runtime tar
+Production runs exact `d8307a36b69a11a9264657363966c175d6d36c0d`, release
+`d8307a3`, from `/opt/screener/releases/d8307a3`. The immutable runtime tar
SHA-256 is
-`b6fb95a045b219287bd9bfebdf0223b4983e9505f64950ea0f0a3e1515550ae6`.
+`dd9f3e919663c71294976a18b8bbd2f02f15c999849ba168564bcf52d6de0eef`.
Its 39-file path/size/hash manifest SHA-256 is
-`34dd608d33e686bd1062299b2d4cc9c2bb2ceec0fe1727fb4a14afd47a044405`.
+`f20005e50376e5cd8caea79acfba0c7e2733fa52e9fa5324c450efa4cf3a4592`.
Local and public `/healthz` return 200; Screener, LiveKit, coturn, and nginx are
active with `NRestarts=0`. The public main Browser asset is
-`assets/index-yh0dZOhf.js` with SHA-256
-`c05cd17564b47f65b93bca439f13d88a695f0d6fdb18ade22d248dba1d1c3a14`.
+`assets/index-rzD5Vq8B.js` with SHA-256
+`5a2beb0ef73abfd0dae15903532e47723bc401f2a58a75f33317240f9a0f6a07`.
The release deploys the single Browser `screener-v12` wire, fixed VP8 for Browser
direct, browser-relay, and SFU video, pinned LiveKit default screen-share
@@ -51,8 +51,9 @@ stale `screener-v11` rejection with
`INVALID_MESSAGE` and WebSocket close 1008 before room authority. The service unit
has no writable room StateDirectory; all room authority is process-memory-only.
LiveKit is dedicated, has `room.auto_create: false` and
-`max_participants: 21`, and is admitted to one global publication ingress plus
-twenty subscription egress handles. Coturn listens only on UDP 3478 for STUN;
+`max_participants: 21`, and the application derives deployment admission as
+9,000 publication ingress plus `9000 * MAX_VIEWERS_PER_ROOM` subscription
+egress handles. Coturn listens only on UDP 3478 for STUN;
LiveKit media listens on UDP 7882. The stable application firewall table
`inet bonfire_filter` has SHA-256
`afaf9d066e9f292d8bd19032b38c0978ccf60dd01c2fe7f210968ff751f90534`,
@@ -280,7 +281,7 @@ lifetime. An actively connected Host prevents expiry; explicit stop or Host
disconnect starts the lease, and only the exact Host token renews it before
expiry. Viewer activity never renews ownership. `ROOM_DATABASE_PATH` and
`ROOM_TTL_SECONDS` fail startup even when blank.
-Production `3e2ee0a` accepts 1 through 20 and explicitly selects 20. This is an
+Production `d8307a3` accepts 1 through 20 and explicitly selects 20. This is an
admission limit, not evidence that every publisher, network, or quality profile
can sustain that many streams.
`ENDPOINT_MEDIA_COPY_CAPACITY` defaults to 2 and accepts only 1, 2, or 3. It is
@@ -293,7 +294,7 @@ must fail or wait before a fourth endpoint copy is issued.
Supplying the removed `MAX_PEER_RELAY_DOWNSTREAM_EDGES`, even blank, fails
startup.
-Production release `3e2ee0a` runs the deployed server and Browser assets
+Production release `d8307a3` runs the deployed server and Browser assets
atomically on `screener-v12`; every stale Browser or executable-sender wire fails
before room authority. Native senders and helpers are outside this release.
diff --git a/docs/project-memory.md b/docs/project-memory.md
index 0bc4557a..1dc3ab38 100644
--- a/docs/project-memory.md
+++ b/docs/project-memory.md
@@ -1,6 +1,6 @@
# Project Memory
-Last updated: 2026-08-25
+Last updated: 2026-08-26
## Current Product Truth
@@ -12,7 +12,9 @@ Last updated: 2026-08-25
- Rooms are bounded process memory: random free `1000..9999` code, default
24-hour dormant lease, active sharing never expires, exact Host token resume,
Viewer activity does not renew, and process restart loses every room and
- credential. There is no database or migration path.
+ credential. A Host may request its last locally remembered active code when
+ creating a new room; the server uses it only while free and always creates a
+ new room incarnation. There is no database or migration path.
- Every room has one 128-bit/22-character Viewer grant bound to that exact room
incarnation and independent `open | private` code entry. Private without a
password is invitation-only; adding a password also permits matching code
@@ -38,16 +40,18 @@ Last updated: 2026-08-25
- One room controller owns one committed acyclic source-reachable graph, one
event-driven reconciliation loop, and at most one room-serial child operation.
The operation owns one deterministic candidate list/cursor, one current
- candidate and reservations, one fact version, and one total direct-then-SFU
- deadline.
+ candidate and reservations, one fact version, and one total deadline.
- Candidate filtering enforces current authority, reachability, acyclicity,
capacity, transition slots, and server admission. Eligible P2P parents are
- ordered by resulting depth, remaining capacity, stable join order, and peer
- identity before SFU.
+ ordered by resulting depth, remaining capacity, a stable child-parent hash,
+ join order, and peer identity.
- A candidate commits only after the exact child decodes its first new video
- frame. Failure releases resources, broadcasts a strictly newer rollback
- revision, advances the cursor without resetting the deadline, and preserves
- unaffected healthy branches. A relay with bad ingress reparents itself while
+ frame. Exact direct transport-connected progress may retain the candidate
+ through the total deadline but cannot commit. Failure releases resources,
+ broadcasts a strictly newer rollback revision, advances the cursor without
+ resetting the deadline, and preserves unaffected healthy branches. SFU-backed
+ Viewers keep working media while finite direct candidates converge in
+ background round-robin. A relay with bad ingress reparents itself while
retaining its subtree.
- Healthy decoded routes remain sticky. There is no periodic rebalancing,
quality score, all-pairs probing, parent blacklist, NAT classification, port
@@ -77,8 +81,8 @@ Last updated: 2026-08-25
layers. Pinned LiveKit defaults own representations, Dynacast owns aggregate
demand, and server send-side BWE owns subscriber forwarding. AdaptiveStream
stays disabled because any Viewer may relay its received track.
-- Screen audio requests capture by default and offers live 96/128/192 kbps
- sender ceilings with 96 default. Peer answers request Opus stereo with a
+- Screen audio requests capture by default and offers live 64/128/192 kbps
+ sender ceilings with 128 default. Peer answers request Opus stereo with a
192 kbps receive maximum. SFU publication uses stereo, DTX off, and RED off;
disabling RED accepts reduced burst-loss resilience in exchange for bounded
publisher traffic.
@@ -103,8 +107,9 @@ Last updated: 2026-08-25
- Production and the matching canonical application/runtime tree use strict
`screener-v12`; exact identity is indexed by [status](./status.md).
- Production uses random memory rooms, 20-Viewer admission, endpoint cap `2`,
- dedicated LiveKit admission `1` ingress / `20` egress, STUN UDP 3478, LiveKit
- media UDP 7882, and Web TCP 80/443. Node 8787 and LiveKit 7880 remain private.
+ fixed 9,000-publication ingress and `9000 * 20` subscription egress admission,
+ STUN UDP 3478, LiveKit media UDP 7882, and Web TCP 80/443. Node 8787 and
+ LiveKit 7880 remain private.
- Exact artifact and service state are owned by [deployment](./deployment.md)
and indexed by [status](./status.md). Physical evidence boundaries are owned
by [verification status](./verification-status.md).
diff --git a/docs/status.md b/docs/status.md
index 44b531bf..9358e7d0 100644
--- a/docs/status.md
+++ b/docs/status.md
@@ -1,6 +1,6 @@
# Current Status
-Last updated: 2026-08-25
+Last updated: 2026-08-26
This is the current execution index. Git history owns completed timelines;
[verification status](./verification-status.md) owns evidence boundaries.
@@ -8,15 +8,15 @@ This is the current execution index. Git history owns completed timelines;
## Production
- `https://share.bonfire.icu` runs exact application/runtime revision
- `3e2ee0a0e7afc083d0fac483ad223a2cfc869ee0`, release `3e2ee0a`, wire
- `screener-v12`, from `/opt/screener/releases/3e2ee0a`. The immutable runtime
+ `d8307a36b69a11a9264657363966c175d6d36c0d`, release `d8307a3`, wire
+ `screener-v12`, from `/opt/screener/releases/d8307a3`. The immutable runtime
tar SHA-256 is
- `b6fb95a045b219287bd9bfebdf0223b4983e9505f64950ea0f0a3e1515550ae6`;
+ `dd9f3e919663c71294976a18b8bbd2f02f15c999849ba168564bcf52d6de0eef`;
its 39-file manifest SHA-256 is
- `34dd608d33e686bd1062299b2d4cc9c2bb2ceec0fe1727fb4a14afd47a044405`.
-- The served Browser entry references `assets/index-yh0dZOhf.js`; the public
- asset is 485754 bytes with SHA-256
- `c05cd17564b47f65b93bca439f13d88a695f0d6fdb18ade22d248dba1d1c3a14`.
+ `f20005e50376e5cd8caea79acfba0c7e2733fa52e9fa5324c450efa4cf3a4592`.
+- The served Browser entry references `assets/index-rzD5Vq8B.js`; the public
+ asset is 492366 bytes with SHA-256
+ `5a2beb0ef73abfd0dae15903532e47723bc401f2a58a75f33317240f9a0f6a07`.
Public `/healthz` returns 200. The release postflight found Screener, LiveKit,
coturn, and nginx active with zero restarts.
- Production uses process-memory four-digit rooms, a 24-hour dormant lease,
@@ -30,19 +30,21 @@ This is the current execution index. Git history owns completed timelines;
The SFU publisher leaves representation construction to pinned LiveKit,
enables Dynacast, uses server send-side BWE, keeps AdaptiveStream disabled,
and configures no external ICE servers on Browser SFU PCs.
-- Screen audio provides live 96/128/192 kbps ceilings with 96 default. SFU
+- Screen audio provides live 64/128/192 kbps ceilings with 128 default. SFU
publication uses stereo, DTX off, and RED off. Early autoplay presentation is
gated by current media connection state.
## Current Source
- Canonical root `main` is clean and its application/runtime tree matches exact
- production revision `3e2ee0a`. Auxiliary branches and worktrees do not
+ production revision `d8307a3`. Auxiliary branches and worktrees do not
supersede it.
- One event-driven controller owns the committed graph and one room-serial child
- operation. It uses exact candidate identity, first-decoded-frame commit,
- strict rollback revisions, direct-then-SFU total deadline, and typed endpoint
- plus SFU resource accounting. Healthy decoded edges remain sticky.
+ operation. Initial direct acquisition uses a five-second foreground window;
+ exact transport-connected progress may retain that candidate through the
+ total deadline, while first decoded frame remains the only commit proof. SFU
+ provides working media before finite background direct convergence. Healthy
+ decoded edges remain sticky.
- WebRTC/LiveKit own media adaptation. Screener has no custom SFU layer list,
quality score, layer selector, periodic rebalancing, or quality-driven parent
change. P2P and SFU recover their current route before actual failure enters
diff --git a/docs/todo.md b/docs/todo.md
index 82e76a4a..3c9b6a1b 100644
--- a/docs/todo.md
+++ b/docs/todo.md
@@ -7,38 +7,23 @@ later topic is not implementation authority by itself.
## Now
-1. **Restore bounded direct-parent selection.** Diagnose the `2244`/`7723`
- production traces and replace the class-stage deadline that can let one
- silent P2P candidate skip every remaining direct parent. Preserve exact
- candidate failure, direct-before-SFU order, and bounded latency at 20
- Viewers without linear exhaustive waiting or all-pairs probing.
-2. **Converge Viewer route presentation.** Current decoded media must clear a
- stale no-route/reconnecting overlay. Manual media reconnect must refresh the
- current route facts and presentation state without requiring a page reload.
-3. **Verify multi-room SFU admission.** Replace production's single-publication
- limit with the fixed 9,000-room ingress and
- `9000 * MAX_VIEWERS_PER_ROOM` subscription egress derived from product
- admission, then verify two rooms can use independent SFU publications.
-4. **Preferred room reacquisition.** While sharing, keep the last assigned code
- as an unexpired local preference; normal stop starts the configured room
- lease countdown. A new room may request that code, but the server uses it
- only while free and always creates a new room incarnation and credentials.
-5. **Browser VP8 hardware evidence.** Measure supported Chrome/Edge platforms
+1. **Browser VP8 hardware evidence.** Measure supported Chrome/Edge platforms
under real game load using actual codec, encoder implementation, encode time,
frame rate, and CPU/GPU attribution. Do not add another codec, custom encoder,
GPU selector, or Native helper without a new decision.
-6. **Mobile Viewer lifecycle.** Run Android Chrome and iOS Safari matrices for
+2. **Mobile Viewer lifecycle.** Run Android Chrome and iOS Safari matrices for
autoplay gesture, foreground/background audio, foreground video recovery,
lock/page reclamation, rotation, Wi-Fi/cellular migration, and assigned-relay
survival or controller recovery. Web does not promise background video or
relay execution after OS suspension.
-7. **Finish real-network route and media acceptance.** Exercise direct peer,
+3. **Finish real-network route and media acceptance.** Exercise direct peer,
Browser relay, SFU, relay-ingress recovery with subtree retention,
disconnect/capacity drain, Pause/Resume, source replacement, screen-audio
continuity, and real-game A/V sync across representative IPv4/IPv6,
- Wi-Fi/cellular, and Host/Viewer TUN/VPN cases. Include an all-UDP-blocked case
- and weak-network audio after SFU RED was disabled. Every exhausted path must
- end in bounded wait/failure without TURN, TCP probing, NAT classification,
+ Wi-Fi/cellular, and Host/Viewer TUN/VPN cases. Verify two simultaneous rooms
+ can own independent SFU publications. Include an all-UDP-blocked case and
+ weak-network audio after SFU RED was disabled. Every exhausted path must end
+ in bounded wait/failure without TURN, TCP probing, NAT classification,
guessed candidates, or another watchdog.
## Accepted Later Roadmap
diff --git a/docs/verification-status.md b/docs/verification-status.md
index 823c7feb..e5b63210 100644
--- a/docs/verification-status.md
+++ b/docs/verification-status.md
@@ -1,6 +1,6 @@
# Verification Status
-Last updated: 2026-08-25
+Last updated: 2026-08-26
This ledger records evidence that still changes how current source or production
may be interpreted. Git and pull requests own routine completed checks.
@@ -8,14 +8,14 @@ may be interpreted. Git and pull requests own routine completed checks.
## Current Production Identity
- Production runs exact application/runtime revision
- `3e2ee0a0e7afc083d0fac483ad223a2cfc869ee0`, release `3e2ee0a`, wire
- `screener-v12`, from `/opt/screener/releases/3e2ee0a`.
+ `d8307a36b69a11a9264657363966c175d6d36c0d`, release `d8307a3`, wire
+ `screener-v12`, from `/opt/screener/releases/d8307a3`.
- Runtime tar SHA-256:
- `b6fb95a045b219287bd9bfebdf0223b4983e9505f64950ea0f0a3e1515550ae6`.
+ `dd9f3e919663c71294976a18b8bbd2f02f15c999849ba168564bcf52d6de0eef`.
The 39-file manifest SHA-256 is
- `34dd608d33e686bd1062299b2d4cc9c2bb2ceec0fe1727fb4a14afd47a044405`.
-- Public Browser asset `assets/index-yh0dZOhf.js` is 485754 bytes with SHA-256
- `c05cd17564b47f65b93bca439f13d88a695f0d6fdb18ade22d248dba1d1c3a14`.
+ `f20005e50376e5cd8caea79acfba0c7e2733fa52e9fa5324c450efa4cf3a4592`.
+- Public Browser asset `assets/index-rzD5Vq8B.js` is 492366 bytes with SHA-256
+ `5a2beb0ef73abfd0dae15903532e47723bc401f2a58a75f33317240f9a0f6a07`.
Public `/healthz` returns 200. Release postflight found Screener, LiveKit,
coturn, and nginx active with zero restarts.
@@ -28,9 +28,9 @@ may be interpreted. Git and pull requests own routine completed checks.
source and production gates.
- Endpoint capacity `1/2/3`, default `2`, one active upstream, acyclicity,
source reachability, deterministic parent order, exact candidate identity,
- first-decoded-frame commit, strictly newer rollback, bounded-gap resource
- accounting, SFU admission, and delete-plus-absence release have focused unit
- and controller coverage.
+ transport-connected wake extension, first-decoded-frame commit, strictly newer
+ rollback, bounded resource accounting, SFU admission, and delete-plus-absence
+ release have focused unit and controller coverage.
- Controlled Chrome routing proved direct prepare failure, rollback, SFU
prepare, exact first-frame ready, SFU commit, and continuing UDP media without
external ICE servers on Browser LiveKit PCs. This does not replace public
@@ -49,7 +49,7 @@ may be interpreted. Git and pull requests own routine completed checks.
## Current Source Evidence
-- Current `3e2ee0a` uses Browser VP8 with `contentHint = "motion"`, reapplies the
+- Current `d8307a3` uses Browser VP8 with `contentHint = "motion"`, reapplies the
selected video profile after answer negotiation, leaves SFU representation
construction to pinned LiveKit, keeps Dynacast/send-side BWE, disables
AdaptiveStream, and disables SFU audio RED.