The pool and the search slept until one interval after each send. A tokio
timer on Windows wakes on the 15.6 ms system tick, so 2 ms became about 15 ms:
priming 256 sockets took about three to four seconds and 512 probes about
eight, inside a preparation that has five seconds in all. Every recorded trial
of the random method ran on Linux, where the timer is fine.
The next send is now due one interval after the previous due time. A late wake
sends what is due and the mean rate holds, which is how tokio's own Interval
behaves by default. The schedule restarts when the probe loop starts, so the
search does not count its wait for Ready as time to catch up on.
The pool test now bounds priming at three times its nominal time. With the old
assignment it fails on Windows at 2.9 s; with the new one the twelve
preparation tests finish in 1.3 s.
Current pending requests already reject unknown terminal outcomes before dispatcher resolution, including a public updateRoom regression. Correct the ADR context and label the design-review table by its original revision; public baseline decisions remain proposed.
Keep current-socket disconnect observations separate from confirmed pairs. Existing room operations prepare and commit an authorized confirmed alternate, recheck every leg, preserve independent candidates through ancestor retirement, and reject late proof after recovery or a personal zero limit. Native reads SDK-owned send consent and retains established media; expiry uses the existing retirement boundary, including ICE Checking. Remote input releases on lost notifications and rechecks permission at the final write. Pin the existing SDK fork query at 5f1f6346 and move the private Domain wire to50, without changing stored formats or App26.
Core, Native, Server, rebuilt WASM, protocol and 2389 Web checks pass, with Windows capture compilation. Matching frozen Browser/Native/Server controls verify actual decode, same-pair recovery, exact candidate adoption, late-proof cancellation, zero capacity and Native expiry. The final Checking-state regression and valid ICE restart control pass. No field NAT-success rate, cold three-hop discovery, Native GUI or physical-capture claim is made.
Replace obsolete always-visible roster and old menu selectors with actual chat, room and people controls, retaining focus, draft, session and player assertions. The full five-Browser gate passes on Chrome156. Record the version-scoped Chromium152 reproduction and the passing current-engine controls; no media workaround or browser allowlist is added.
Four real RTC/Netem arms distinguish unrequested, admitted and capacity-limited optional flow demand while retaining the selected minimum and its received payload. Keep native Driver and decoded-quality acceptance open; no application probe policy or bitrate threshold changes.
Actual Chrome controls show deafen retains RTP receipt and two-output relay forwarding while an unplayed leaf stops decoded-sample counters. Keep decode assertions for actual listeners. Record the separately reproduced relay-unwatch video stall as unresolved, rejected candidate fixes and pinned SDK consent-window evidence; request independent Claude review.
Take Claude C2 at 53bea0a6 and the reviewed private contract batch. Viewer audience owns failure; invitation payloads use correlated replies; Core owns fixed observation limits; HostInput requires hosting mode; invitation digest derives from its retained key. Domain wire49, room SQLite11, IndexedDB9 and room archive4 refuse old private formats without mutation; unrelated formats retain their generations. Core/Native/Server, rebuilt WASM, five live protocol cases and 2388 Web tests pass; actual Browser storage checks pass. Broader media acceptance found a separate relay-unwatch decode stall and remains blocked; no runtime workaround or release is included.
Trace current readers before removing a 2.x camera copy and two unreferenced synthetic data files. Keep the archived camera source pinned for existing pairing references. Correct the 3.0 control guide to match actual share controls rather than preview-only couch accessories. Current media and runtime research with active readers remains.
Reply to b4c96a79 with reviewed queue outcomes, exact integration evidence and scoped lab limits. Keep late reader selection and selective persistence rollback, record remaining documentation ownership work, and open C2 preparation without independent generation bumps.
Take Claude b4c96a79 after independent semantic and engineering reviews. Preserve current remote-control, playback, language and media rules while removing duplicate 2.x copies. Actual VitePress build exposed missing Chinese deployment and unpublished-reference routes; repair both and verify generated links plus publication tests. Browser preview startup was rejected by automatic review, so this does not claim rendered documentation acceptance.
Take a56dc68d. Keep the established latest-tag and major-version rules. Reconcile primary-source corrections and distinguish pulling an image from replacing its running service; keep candidate-surface implementation held by Claude.
Integrate Claude review 6af0a84f. Primary image entrypoints and operator reports support explicit pins and recognized-state refusal; they do not establish universal outcomes or incident frequency. Preserve the existing release policy for the next coordination pass.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Merge Claude's queue through 0e018ae7 with the reviewed guide, trust and 2.x/3.0 scope corrections. ADR-0018 and ADR-0019 remain proposals. Topology comparison keeps per-kind budgets, manual limits, generation fencing and measured failure detection.
Complete the consecutive-source viewing fix by retaining the pending predecessor in the room surface, covered by the same 616 tests and real-browser controls. Track the separate local-launch credential and restored-attribution questions before public release.
Keep a durable history lineage at each room writer. Ordinary rebinding preserves it; a full restore installs a fresh lineage in the same storage transaction. Scope reader positions to that lineage and keep passive queued projections from replacing another tab's saved reading progress.
Private Domain protocol 47, SQLite 10 and Browser room IDB 8 replace the prior internal formats. Room archives and App wire are unchanged. Validated with the Rust/Web-WASM/protocol gate, real Browser writer restore and cross-tab read-marker controls. Local reading hints remain best-effort when a lagging tab is actively read across successive restores.
The implementer's measurements and a reading of the tree change the proposal. A report every second is not free: every reported state change sends a full snapshot to every session, the room authority would hold private path facts, and Native lacks several counters. Frame counts are not comparable across layers or re-encoding. Stage 0 is therefore offline replay on exported diagnostics, a move is decided by comparing a candidate with the incumbent, observations open a comparison without deciding it, and capacity grows only on unmet demand with sibling proof. The wait after a silent parent death stays an open measurement.
The canon asks for a topology that keeps improving by itself without disturbing what works, and that nobody tunes. ADR-0018 proposes how: records and a shadow planner first, direct voice, capacity learned from what a node carried, placement by proved facts, and one proved move at a time for repair and promotion, with each later stage justified by the records of the first.
It rests on two surveys of primary sources and on three designers who worked from the requirements, the canon and the verified evidence without reading the repository; the evidence note records where they agree, where they differ and which measurements are still missing. The three earlier rules stay: no weighted score, no media probe of an idle pair, no periodic re-solve.
Integrate the revised canon and proposed ADR-0017 from the cross-review queue. Preserve current instruction authority and limit a design hold to its dependent change. Correct the research scope for UDP collision probabilities and distinguish existing revocation from a proposed heartbeat lease.
The public-contract ADR remains proposed. Implemented strict room commits and terminal-result validation have their own code commits and verification. Continuous topology improvement remains design work, supported by the existing stay/switch, idle-pair and voice controls.
ADR-0017 took the implementer's nine outcomes after the disputed facts were checked against the code. Five contracts are settled before the first public release, each with the reason it is costly to change later, and four wait for a consumer. The blanket claim that none could be corrected after release is gone.
The design review corrects its description of the tree: the routing shape, the fanout range, the existing control-plane tests, the room writer written twice with no reachable difference, and the scope of the three NAT measurements. A full history page is 101 signed replies, which conversation.rs asserts.
The instruction file keeps the implementer's corrected precedence and gives the canon its place in the first layer. Below that layer a standard governs what it owns, so a principle that seems to contradict one is a reason to propose a change and not to set the standard aside.
State the existing direct-source sharing scope at selection: authorized room members receive the video link, and App delivery uses the sharer upload. The source website controls the lifetime of that link. This clarifies the accepted source model without changing media grants or forwarding policy.
The owner asked for one place that holds the core design ideas, extracted from the existing records and stated generally, so that a founding idea is not read with the same weight as a default or a dated decision beside it.
docs/canon.md states them, as extracted from every ADR, standard and 3.0 design document and corrected by the owner statement by statement. AGENTS.md puts the canon in the first layer beside the invariants and links it from Product in place of the sentences it repeated. The design review's dated list of decisions becomes a pointer to the canon. TODO gains the two pieces of work this leaves: a design for quiet topology improvement, and separating the canon from derived design in the documents.
The design review left four questions with the owner. All are answered: the
tunnel stays and IPv6 and port mapping are used alongside it; a Browser may
relay by re-encoding under the present pool design, only when needed, by the
same rule as every node; the room link is not end-to-end encrypted now,
because the signed opaque payload lets it be added later behind a
capability; and the desktop shell uses the system web view where it has
WebRTC and the system browser otherwise, as the tree already does.
Also record what the exchange established: P2P-first and keeping load off a
single machine are founding decisions, and a change at that level is
confirmed with the owner before anything else changes.
The owner stated the purpose behind P2P-first: Piik is meant to be
decentralized and usable by anyone, and no single machine should have to
carry a room. AGENTS.md now says so in its product section, so that a relay
is read as the fallback and effort on difficult NATs as part of the product.
The review said all three clean-room designs rejected port prediction and
left the decision open. Reading the designs again, none argued that
prediction is unreliable. Each relied on a forwarder always being reachable,
and the brief they were given allowed the site to forward without stating
the decentralization goal. The review now says that, gives the measurements
for the cases the techniques target (carrier-grade NAT port allocation from
Richter et al., prediction success from Guha and Francis, search odds from
Tailscale's analysis), and records the owner's decision. What it keeps from
the designs is the shape: a found address is a candidate for the one ICE
agent.
3.0 is unpublished, so a wire or storage shape can still be replaced without
aliases or migrations. Two defects contradict what versioning promises and
cannot be corrected once an App or a room store is in the field: Join
requires one exact protocol number while readers reject unknown fields, and
a room store opens only at one exact schema version with no upgrade path.
ADR-0017 proposes nine decisions: a compatibility rule of matching major
plus additions behind capabilities with tolerant readers, one schema source
with generated declarations, one reply shape that tells a rejection from an
unknown outcome, a state revision, commands addressed by scope with one
activity envelope, storage versions with forward migrations, a room store's
epoch and change sequence, one set of history rules with a durable Browser
commit, and one encoding for bytes. It leaves the serialization format,
SQLite in the Browser and the client engine's place to later decisions.
The evidence is recorded as research: three designs written from the
requirements alone, none of which saw the repository, set beside three
audits of the tree. The review also records where the tree knows more than
the designs, chiefly how a home-run site behind carrier-grade NAT is
reached, and four product decisions that stay with the owner.
WebView can retain document focus after another Windows application becomes
foreground. Project each Piik window's actual activation into its document
and share that fact across message feedback, read markers, shortcut ownership
and remote-input reset. Keep media visibility and room grants independent.
The same real foreground-window transition reproduces silence and premature
read advancement on beta.53, then triggers cues and preserves unread position
on the candidate. Returning to Piik advances the cursor. Audio output was
muted in the experiment; oscillator execution and completion were measured.
All 2315 Web tests, TypeScript and the Windows capture-enabled App check pass.
The current Native kernel-NAT run confirms distinct targets on the wire,
completion of the original pair and socket release on withdrawal. Preserve
the earlier 256-target evidence and the distinction between controlled
mechanism checks and a population connection-success rate.
Adopt the shared Rust core decision as the existing 3.0 architecture record,
separating domain rules from its optional SQLite implementation and keeping
user/accepted design authority above implementation evidence. Scope the replaced
Go-backend decision to 3.0; public 2.x remains separately accepted.
Answer every third-round item and request a failure snapshot from the machine
that reproduces RTP lease reuse. Clarify that the earlier shared-future checks
were local mechanism experiments rather than retained App integration tests.
Keep unfinished package and field validation in the existing TODO.
The room retains the original source and current successor for its subscribed
viewers. Ordinary snapshots project that typed predecessor, including when a
viewer misses more than one replacement. Local playback and receiving-method
choices remain with the Browser.
Remove one-shot channel event decoration. Joining, leaving, access loss and
session expiry retire the room record. A leave for an already-retired screen
is routed only through that viewer's authorized pending handoff.
Core regressions exercise both cross-kind chains, session recovery, revocation,
fresh sessions and independent viewer exits. Shared Web schemas and Native
constructors use the same pending Domain 46 contract. The existing network
design owns the lifecycle; no persisted-data format changes.