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.
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.
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.
The project said when to handle an edge case in about seven places: two
bullets in AGENTS.md, several implementation rules here, and Ponytail and
Stop That Shit. None gave a test. AGENTS.md required agreement before adding
a mechanism for a speculative race, then exempted "reachable defects", so
anything that could be shown to happen in principle counted as required.
A sample of 105 commits from the active line whose subjects named keeping,
preserving, recovering or racing shows where the weight comes from. 77 were
already the smallest correct response, and 36 of those were a currency
check, an ordering fix or a deleted limit with a median of one or two lines
and no later repair. Every repair chain found, ten of them, began at a
commit that introduced new state, a timer or a fallback. Four of the 105
cite an observation; the reasoned-only ones were the largest.
So the rule sorts by mechanism, not by "edge case". A condition with a
specified outcome is behaviour. One without stops where it is detected and
its owner recovers by the path it has. Cheap responses need no reason. New
state, a timer, a retry, a fallback, a queue or a second copy of a rule
needs one of five named reasons, and reachability is not one of them. It
rests on Armstrong's thesis (handle an error where it can be corrected, do
not program defensively), the end-to-end argument (one layer owns
recovery) and fail fast.
Removes the bullet "When a transition fails again", which the new section
covers, and points Ponytail at the section instead of restating it.
Reply to the latest Claude queue, retire completed admission and picture-in-picture work, and keep Native probe behavior and reply correlation as separate measured design questions. Correct the current parameterless-command reader description from actual Core parsing.
Evidence includes the new Native/Server regressions, Windows WebView controls, shared storage samples, Browser content-hint and SDK probe controls. Unverified business delivery through the prepared-socket experiment remains open; no public compatibility or release claim changes.
8261f7e7 moved a room's confirmed history window, paging facts, removal
markers and pages under assembly into RoomHistory. The source index still
named message-history.ts as the Browser history window. Link room-history.ts
as the owner and keep message-history.ts as the window rules it applies.
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.
Record take, decline or defer for every queue item, finding and proposal, with
the owning code, tests and decisions. Keep deferred work in TODO and ADR-0015
proposed until the first RoomReader slice is agreed. Preserve local playback
intent, legitimate file/watch differences and current protocol defaults.
Merge the reviewer's clarification that a pushed reply triggers the next round.
The one-writer mailbox is the response channel; no agent writes to the other's
branch. Source changes are independently committed and the combined checks pass.
Accept the shared byte-distribution owner, supervised transport retirement,
distinct random-port probes, software keyframe interval and lazy-load retry.
Preserve the review branch's commits and authorship.
Use the one-writer cross-review mailboxes. Narrow the proposed lifetime rules
to demonstrated ownership problems rather than requiring a universal interface
or a restructure after every repeated fix. ADR-0015 remains proposed.
Use the active prototype as its explicitly scoped pre-cutover base and invoke
the vcpkg bootstrap by a fixed relative path. Independent trace reviews and
the queue's recorded controls support these choices; combined checks follow
with the concrete mailbox fixes on the same development branch.
A second agent now reviews the 3.0 line. CONTRIBUTING gains the protocol:
the reviewer keeps refactor/claude-review as a patch queue on top of the
active line, one behaviour per commit, and neither agent commits to the
other's branch. Each agent writes one mailbox addressed to the other, so
synchronizing cannot conflict, and a mailbox holds only what its reader
still has to take or decide; commits own what changed and why, standards
own lessons and Git owns history.
Mailboxes are named for their reader (to-codex.md, to-claude.md). A file
named claude.md is loaded as an instruction file by Claude Code on
case-insensitive filesystems.
CLAUDE.md imports AGENTS.md, which Claude Code does not read by itself.
The first to-codex.md carries the notes for this queue, ten verified
findings that are not fixed here, and the open questions.
The lifecycle rule had grown into one 28-line bullet. Four lines stated the
invariant and the rest were clauses added by individual fixes, which the
document's own rule against incident-specific exceptions forbids. It also
told the reader what to re-check after every await without naming a
structure that makes the check unnecessary, so a type could satisfy it at
each call site and still hold a dozen lifetimes in sibling fields.
Regroup the same content under the structure that makes it hold: one owner
per lifetime with one cancellation signal and one retirement path. Add the
two rules the audit found missing: a parent observes its children's exit by
any cause, and a second repair of the same transition means the owner is
restructured rather than guarded again. New clauses now need an invariant
that holds beyond the case; the case itself stays as a regression test.
Ponytail gains the matching check to run before adding a flag or option.
Keep applied Browser quality in the media owner and submit each Native domain view to the RTC driver once. Propagate shared signaling failures to carrier recovery, bound Node history by the Core page contract, and reuse unchanged voice-level samples. Clarify room-writer and version-specific presentation responsibilities.
Reuse the native room-tool window for a compact voice overlay. Preserve selected webpage players through unambiguous DOM replacements, keep activity presence through signaling recovery, and improve narrow playback controls and hybrid touch input. Reduce route capacity scans, tolerate added format diagnostics, and record bounded source-list outcomes.
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.
Scope file failures to their requests, preserve accurate route failures and validate Server settings before initialization. Repair source capability and observation lifetimes, restart failed WASM loading, and align playback, input and read-marker state with the owning operation.
Reuse the published help navigation and theme while preserving 3.0 workflows. Record matched webpage retry and OBS restart acceptance at their existing evidence owners.
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.
Expose current file senders and receivers to authorized participants. Show their active voice, screen, viewing and file roles together across endpoints. Preserve directory pagination for the same identity across reconnects.
Private channel wire 28 replaces realtimeSessionIds with fileActivity. Deploy matching 3.0 App, Server and Web builds.
Remove the generic twenty-second readiness deadline and follow actual media errors, source withdrawal and cancellation. Retire App links once and remove unused private input projection fields.
Require policy values and existing architecture to justify their present purpose. Rust/WASM/protocol checks, 1632 Web tests and Windows capture compilation passed; a controlled cold route delivered media after 30.6 seconds while preserving sibling voice.
Keep More options as an ellipsis and expose bookmarks beside App status. Reuse verified management and theme state, remove the obsolete connection-management branch, and align language markers with their adjacent menu arrow.
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.
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.
Keep source negotiation and encoded-data reuse ahead of optional conversion. Record the existing module boundaries and require named policy values with explicit units.