The owner wants bots, API clients, plugins, new activities and providers to be the same kind of thing underneath, with built-in features on the same points, and the scaffolding designed now. ADR-0020 proposes it from the primary documents of the harness the owner named and of seven older designs, and from three designers who worked from the requirements alone: one vocabulary of points, contributions, scopes, kinds and static compositions; four places where code runs, with authority that never comes from being an extension; a kind with a fallback as the only thing that crosses machines; and a proof on one built-in feature before any point is promised.
From the owner: the core does a few things well, and what it leaves out is added through an API, bots and plugins that use the same actions and authority as a person. It is the reason a Server keeps no file originals, and it settles later questions of whether a feature belongs in the core.
The guide said a removed person needs a new grant to return. The invitation link and the password still admit them. The owner keeps removal and the invitation as separate responsibilities, so the guide now says what removal does and how to keep someone out.
3.0 rooms keep history, so how a message is edited, deleted and found has to be decided, with the fewest rules that are still correct. ADR-0019 proposes them from a map of the present model and from how Matrix, XMPP and two chat services define the same things: edit by the author with no earlier version kept, delete as today, one revision per message, and search at the writer as a plain match. It names the five points of the stored format to settle before it is first published.
The owner found the statement too tight: connections come mostly from the activity that needs one, and building and checking some in idle time is also good. The runtime's standby connections now agree with the canon.
Seven records carried founding ideas or 2.x mechanisms without saying which still holds for 3.0. Each gains a scope line. The naming standard records the two words that changed meaning between the generations: a room's host, and a relay as distinct from server forwarding.
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 room guide said a site owner needs access to read a private room. That describes what the product shows, and leaves out that the site carries chat in a form its operator can read and that a Server-hosted room keeps its records on the operator's machine. The canon asks that Piik say plainly what each party can see.
The tile for a watched source that left the room said the sharer ended the share. The same tile appears when the sharer's connection drops or the room's host goes offline, and the client cannot tell these apart. The canon asks that the interface show only what current evidence supports, so the message now states that the share has ended.
Answer the canon and batch queue, correct the history-page baseline to 101 signed replies, and supply matched stay/switch, idle-pair, direct/relay voice, silence and encoded-frame controls. Give each ADR-0018 item a bounded design outcome, preserving the continuous-improvement goal without uncalibrated live policy.
The integrated current source passed npm run check, including 2327 Web tests. SDK packaging and both production bulk-byte consumers have separate exact-boundary evidence. No topology proposal is enabled by this reply.
The owner prefers the present voice shape and wants nothing built for voice alone. Voice follows the same planner, pool and learned capacity as a screen; being light, it proves capacity quickly and reaches more listeners directly without a rule of its own.
The owner recalled that the manual limit was added because two downstream peers was too conservative on strong uplinks, and prefers the present voice shape until it is measured. Capacity is automatic by default and a person can still set a limit. Voice first uses every connection that already exists, without the fanout limit; connecting every pair in a room with voice becomes the last stage and waits for measurements.
The old App could retry while the modal helper still held the prior workspace open. Report replacement failure before restarting the initiating App, then let the existing helper finish and record its outcome. Preserve the original failure chain and any restart failure, without a new result consumer or retry state.
Validation: the old product helper reproduced access denied on production workspace retirement with its message still open. The revised signed-helper control restarted after dismissal and retired the workspace successfully. Twelve update tests and the capture App build passed; all owned fixture processes exited.
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.
Return FileDelivery and WatchDelivery effects in their existing order with owned Uint8Array payloads. Serialize only metadata through the original JSON path, retaining its integer semantics. Switch all attachment and watch consumers together, including failures and projection; no Cargo dependency or wire-format change.
Validation: matched release-WASM controls measured 64 KiB Watch at 2.60 to 1.13 ms and 1 MiB File at 27.73 to 3.90 ms median local CPU. Actual Chrome production consumers verified OPFS/Watch hashes and a terminal outcome for a range beyond JS safe integers. The integrated 700 consumer tests and TypeScript passed. Compressed WASM grew 4146 bytes; no remote-throughput claim.
Use the set_profile command as the parameter type for Browser actions, the Session, Node participant, profile editor and guide preview. Remove five copies of the same optional name and nullable avatar fields with no new generation dependency or change to runtime validation.
Validation: both TypeScript projects compile; existing avatar set/clear and profile response controls passed.
A matching room reply must carry the outcome expected by the original operation. Browser and Node reject unknown results locally while ignoring observers and wrong-room IDs. Preserve invitation payload events followed by done, and distinguish joining Watch from leaving it. Core dispatch explicitly matches its current result variants.
Validation: corrected three old Watch mocks that returned watch_ready to a leave operation; all 617 Browser/Node tests passed independently. The integrated delivery and interaction consumer run passed 700 tests and both TypeScript projects compiled. No new wire field or enum generator is added.
Request strict IndexedDB durability for room creation, binding, policy/history mutation and final archive installation. Keep temporary archive staging, reads and participant file caches on their existing policy. Confirmation still follows transaction completion.
Actual Chrome/WASM tests observed strict transactions, completion before confirmation, and abort without confirmation followed by same-nonce retry. Thirty-two interleaved messages per mode measured 1.75 ms strict versus 0.90 ms relaxed end-to-end medians on this machine. Durability is a browser hint; no physical power-loss claim or persistence-permission flow is added.
Box only the connected phase after a successful WebSocket handshake. The same drive future still owns cancellation, recovery and cleanup. This keeps the large inner state machine from being carried inline through each outer caller without spawning another task.
Measured Windows Rust 1.91 run_host future size drops from 33208 to 17904 bytes without capture and 33544 to 17904 with capture. The current and prior-wrapper candidates passed the same real two-process admission/resume/restart test. Current baseline already passed; this is a bounded frame-size improvement, not a claim about measured peak stack headroom.
The owner confirmed four wording points raised in review (quality before savings as a priority, no registration, entry by the room's own policy, never disturbing what works) and asked that the canon stay a statement of principle and not an analysis of cases. Every statement is tightened and none is added.
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.
Give each ADR-0017 proposal a scoped outcome from actual reader, storage, routing and WASM measurements. Preserve the shared-load and direct-path product goals while distinguishing them from an unproved mechanism. Track restored-history lineage, browser commit durability and unknown terminal results at the existing TODO owner.
The concrete current batch passed the full corrected npm check with 2324 Web tests. Architecture proposals in the other branch remain proposed until the reply and factual corrections converge.
From the owner: light data is handled by the authority of the channel or room and heavy data by the activity that originates it; activities share a connection pool and an encoding pool that serve from what exists and improve slowly; and the levels are subsets from the channel down but are built from demand upward.
The design for quiet topology improvement has to settle how dense the pool's standby connections are and what shape voice takes, because both decide which candidates the planner can improve with.
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.
Pass the current retirement set straight to the state owner instead of retaining a full Snapshot in an additional awaiting wrapper. The redundant layer overflowed the Windows Native main-thread stack during the real competing-process room admission check.
Validation: the original integration executable and corrected Native CLI passed all 12 real-session tests; 20 capture-enabled Native session tests also passed. No larger thread stack, heap wrapper or retry was added.
The owner clarified the statement: WebRTC and other mature implementations carry as much as they can, because their tuning was hard won and rebuilding it costs more and is harder to debug. Building a part ourselves is the exception, judged case by case.
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.
Judge the complete review queue, record the identical fresh-model calibration outcomes and the scoped authority/recovery wording, and return the accepted interaction, storage and update corrections. Keep current private schema checks distinct from the first public compatibility decision. Remove only the completed interaction outcome from TODO.
Add a double-click CMD wrapper for the existing beta reset script. Reuse the running-App check, explicit RESET confirmation and directory backup, and clarify the difference between a full beta profile reset and room attachment cleanup.
Validation: actual Windows CMD controls on owned synthetic data cover running-App rejection, cancellation, backup preservation and paths containing spaces, non-ASCII characters and exclamation marks. No actual user profile was reset. The desktop entry is separately bound to the current test profile.
A Windows App holds a read-only directory lease while it may load bundled resources. Replacement cannot move that installation out from under another profile. On failure the helper requests the old App restart and records the result before showing the existing dialog, without killing other instances.
Validation: the capture App built and 12 update checks passed. Isolated signed product-helper controls preserved old resources and both profiles while a second App ran, then updated after it exited. The actual owned failure dialog appeared after result.json was written; restart readiness may follow it. Protection applies to instances that include this lease, not previously released executables.
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.
Memoize the existing member panel and reuse its return-to-room callback. Layout-only changes no longer rerender a hidden directory whose inputs have not changed.
Validation: four chat-panel toggles removed 72 development StrictMode directory-row calls. Member name changes still rendered; video and MediaStream identity remained stable. This does not attribute the reported native performance issue to these calls.
Strip unknown descriptive fields on the watch activity envelope, matching the ordinary state readers and shared Core. Keep playback field validation and source-kind/source-field checks strict; no command or wire version changes.
Validation: the new display-label control failed before the change and all 12 image/wire checks passed after it. The combined client check passed 640 tests and TypeScript.
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.
Integrate the reviewed interaction follow-up with exact subscription correlation. Unknown and late replies cannot close or activate another owner. Delivery failures preserve the logical reaction request and nonce, including retries, while a signed writer rejection retains its distinct meaning.
Accept the instruction layering with scoped corrections: current user authorization remains authoritative within system/developer bounds, failure recovery is distinct from feature state, and Core extraction must reduce ownership cost. Fresh old/new policy evaluations chose the same six outcomes; this supports clarity, not a claim that the prior rules caused over-handling.
Validation: two new counterexamples failed on the incoming interaction commit; the corrected client suites and wire metadata control passed 640 tests and TypeScript. Policy and documentation checks run through the repository hook.
Replace the open question in the mailbox with the owner's decision that direct paths through difficult NATs are part of the product, and name what remains: the shape and a local measurement.
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.