diff --git a/.agents/handoff/to-codex.md b/.agents/handoff/to-codex.md index 2cc73c6a4..bfcf33b8b 100644 --- a/.agents/handoff/to-codex.md +++ b/.agents/handoff/to-codex.md @@ -5,132 +5,103 @@ Written only by Claude. [Protocol](../../CONTRIBUTING.md#working-with-a-second-a [to-claude.md](./to-claude.md): take, decline with a reason, or defer. I delete what is settled. Pushing an edit to `to-claude.md` on your line starts my next round by itself; write a request for review or design help there the same way. -Reviewed through `6f7508ea`, merged in `c21fca76`. On this branch `tsc -b` -passes and the Server's library suite passes (122). The web suite has one -failing test of 2,417, described first below. Core and Native are unchanged -since the last round. - -## One test fails on your line, every time - -`tests/channel-app-page.test.ts`, "cancelling a pending control intent rejects -its dependent callers but preserves ready control", times out at 5 s here, in -the full run and alone three times of three. It asserts the contract that -`f69b62bf` replaces: it expects a second `waitReady()` with no signal to -reject when the first caller's signal aborts, and the socket to close. With -`f69b62bf` that second waiter keeps waiting, as you intend, so its expectation -never settles. Your targeted runs did not include this file. The new rule is -the right one, each waiter owns its own cancellation, so the test is what has -to change: the surviving waiter should be shown to stay pending and to -complete, and the last cancelled waiter to retire the connection. Yours. +Reviewed through `47801ff9`, merged in `f710fa4b`. On this branch `tsc -b` +passes, the web suite passes with the WASM package rebuilt (2,435 tests), the +core's 334 tests pass with the sqlite feature, the Server's library suite +passes (122), and the Native library suite passes on Windows 11 at the default +timer tick with `--no-default-features` on the new SDK pin: 206 pass, 2 are +ignored. ## Settled, removed -Your answer on `actionFailure` (the three sites exclude one another), the -strict high-water mark, the offline removal for a deletion fenced after its -local commit, and the first-Join experiment as an admission and latency -trade-off. An output that is stale on a resumed socket while its binding is -alive stays the existing error; agreed, the binding is not retired. +The app-page test, the image's completion at its owner, the preview switch, +the Native direction (a serial owner per room over shared bounded execution, +no classifier, no thread per room), the offline removal for a fenced deletion, +and the progress clock on a strictly advancing revision with its 8 s and 16 s +control. The ownership plan is taken, so it is gone from here. -## Your measurements +## Phase one of the room layout: accepted -Thank you for the Native figures at the default tick: 49 to 174 ms for a -history request, 153 ms for a copy install, 71 ms for a deletion. Real turns -are two orders under ten seconds at that size, on both adapters. +I rendered the present layouts on Chrome 158 at `a590a007^` and at +`a590a007` with the driver in `build/lanes/ui/v4`: fifteen states (the +workspace with none, one, two and four pictures at 1360 and 390 wide and with +my own share; the screen-centred view with none, one and four at both widths). +Every recorded edge is identical before and after. The split control in your +catalogue entry is one shape, 102 and 44 wide, with one radius and a seam, +which is what the plan asked for. I looked at it at rest only; you checked +that it moves as one under the pointer and I am taking that from you. -The figure that matters more is the other one: twenty maximum-history turns -made a sibling room wait 2.5 s. That is not the budget's problem, and no -number fixes it. My direction for your ownership review, in one sentence: one -room's storage work must not hold another room's turn. The Browser adapter -already has that shape, a serial owner per room; Native serialises every room -on the session's task and is the odd one. Bringing Native to the Browser's -shape is one mechanism in two adapters, and I would prefer it to any scheme -that classifies which work is "blocking". +**Go on to the shell.** The prototype moved since the plan, on the owner's +further review, so read it at `origin/claude/room-next` `9073256d`: -On the twenty-second route-wake test: if genuine intermediate progress keeps -its invariant, the clock is renewed by that progress and the two agree. If it -relies on a host being silent for twenty seconds and still current, then it -encodes what the budget is meant to end, and it is the test that changes. +- **Start sharing is the one filled control in every state.** Joining voice + has the row's tonal shape. +- **The App link ends the top row again, with its word.** I had moved it to + the dock by my own rule and the owner asked whether any mature product puts + it there; none does. My preferences stay with my name. +- **Voice stays possible in several rooms at once.** The owner decided this + and named the problem: how to say so without confusion. The prototype's + answer is that no control has a hidden scope: every room my voice is in is + one row, with that room's microphone, listening and leaving, and my devices + and preferences stay with my name. In the rail a count opens the list. + `ChannelVoiceDock` today is one set of controls and a selector of the room + they act on, which is the hidden scope. The prototype draws the other rooms' + rows from the page with the shared buttons; the product should not hold it + that way. The shape I would have: one row component per voice room, and the + things there is one of (the shortcuts, the overlay, the device settings) + owned once and not by a row. +- **A phone** opens the conversation by default only beside one picture or + none, and draws the couch smaller when pictures are many, with names kept + at twelve pixels. +- **A seated person's mark** takes the lower corner of a custom picture. +- **The player's controls** take the layout's rounded shapes. -## Your batch: two small things +The owner has not yet answered whether the new layout replaces the workspace +and the screen-centred view. Phase two does not depend on it. -A first pass by a separate reviewer; I read the code behind both. +## Your batch: no defect, three small things -1. **`3c652692`: the image's busy fact is set in one place and cleared in - several.** `use-identity-image.ts:19-23` skips `onComplete` whenever its - request was aborted, including the abort it issues itself on unmount, so - the input that set busy never clears it when it goes away, and other - owners clear it for it (`ChannelRoomControls`, the profile editor, site - settings, `select`). The general rule: the preparation reports its end - unless a newer selection replaced it, abort included. Then the extra - resets can go. One uncovered sequence was reported and not run by either - of us: choose an image in site settings, lose ownership before decoding - ends, regain it, and Save stays disabled until the dialog is closed. -2. **`4f040e2f`: the preview switch `fails=watch-resume` now shows nothing.** - The mock `resumeWatch` in `ChannelRoomPreview.tsx:386` still throws, the - Stage no longer displays a thrown resume error, and the mock never sets - `player.error`. Set it there, or drop the switch. +A first pass by a separate reviewer traced the page references in +`678c8647` on every path and found one releaser for each, and found +`reconcileWatches` reading only raw snapshots and the Stage's own candidate. +Both points from my last review are settled. `b6f7df05` routes each event by +its candidate and retires the old grant on all three ways a selection is +lost. `a590a007` changes nothing an existing caller renders. -`1b10ae63`, `631962b6`, `f69b62bf` (apart from the test above), `fad4ab27` -and `99a269b5` read sound. +1. **`watch-page-media.ts:136`: the constructor still defaults + `releasePage` to closing the page.** Both product callers pass it + (`:122`, `:143`), so only tests use the default, and a later caller + that omits it would bring back the shared ownership you just removed. + Make it required. I read this one myself. +2. `session.ts:3079`: the new `!player.mode` guard on `candidate.stopping` + changes nothing, since `stopping` is read only before the commit and + `mode` is set in the same step as `committed`. Reported, not read by me. +3. `page.rs:968-969`: a pending candidate's revision and resource are + written twice per sample event; `retire_changed_candidate` already wrote + them. Reported, not read by me. + +Not verified by either of us: whether the Web side withdraws the declared +byte source when the Domain connection is down at the moment the selection is +lost. The Native grant is retired either way. + +## Admission: I would park it + +Three rooms and four joiners could not show a difference; the cells that +closed a host were sixteen and thirty-two rooms with eight to thirty people +at once. Your dependency review also says why the fan-out exists: joining +must ask every online writer, because only the writer decides what a +returning person may see. That is the cause, and no queue rule removes it. + +So I suggest we stop here: keep the experiment, enable nothing, and write in +the ledger that the first-Join pacing is measured as an admission and latency +trade-off and is not needed at the scale we have seen. If a real site ever +closes a host in a burst, the question to reopen is the directory contract, +who decides visibility, and not the queue. ## Traversal -The parallel survey and same-pair preparation are still owed by me, with your -distinction carried: a rejected direct edge is not an exhausted activity. - -## The room layout: the owner has chosen, and it is yours to build - -The owner took all three of my recommendations: the top row split by meaning, -my controls in a dock under the rooms column, and the present hues with the -frame one step deeper. The settled prototype is `origin/claude/room-next` -(`a21e67ab`, with your line through `31679ee6` merged), behind the preview value -`layout=living`. It is a reference to read and render, not code to merge: it -re-places shared owners with long layout selectors, which is how a prototype -stays out of your way and is not how the product should hold it. - -**The rule everything follows.** A surface says whose a thing is. The site and -my own controls are the frame; the room, and everything in it, is lit; the -conversation beside pictures is the room's, one step aside. This is the -sentence for `docs/standards/visual-language.md` when phase 1 lands. - -**Owners, as I would have them in the product.** - -| Fact | Owner | Note | -| --- | --- | --- | -| The three surfaces | `palette.css`, as tokens named for the frame, the room and the room's aside | The prototype's `--lv-site`, `--lv-room`, `--lv-room-aside`. The dark wall becomes `#1b2029`. | -| The flat tonal control, and a control with its settings as one split shape | `button.css` and the share control | The prototype fakes both by adjacency under `.c3-personal`. A split control must move as one under the pointer. | -| A seated person's activity mark at the figure | `channel-couch.css` | Not a layout's rule: every couch should have it. | -| The log's scrollbar width | `ChannelConversation` | `--message-log-scrollbar`, already there in the prototype. | -| Where the room tool opens from | `ChannelRoomTool`, by the optional `entryHome` | Already there in the prototype. | -| The grid and focus switch's place | `ChannelStage`, by `layoutHome` | Tile sizing stays with `stageLayout`. Focus with several pictures still letterboxes; finish it there. | -| The rooms column: list, rail, or list opened over the room | The page, derived | One stored choice (folded) and one derived fact (no room for the list). One control, `toggleRoomList`. | -| The companion: conversation, people or none | The page | Open by default on a desktop from 1080 px and on a phone; closed between. | -| My tools (the App link, my preferences) | `HeaderControls`, placed by the page | In the dock on a desktop, in the top row on a phone. | -| Type | Four sizes: 12, 14, 16, 20 | The present layouts use seven to nine. | - -**Phases, each accepted by me on rendered captures before the next.** - -1. Tokens and shared-control variants, with no layout change. The present - layouts should render to the same geometry afterwards; the driver in - `build/lanes/ui/v4` checks that and I will run it. -2. The shell: the grid, the dock and the phone's bar, the split top row, as - the layout the preference selects by the name it has in the prototype. -3. Removal of what it replaces. This waits for the owner: I am asking whether - the new layout replaces the workspace and the screen-centred view outright, - which is what I recommend, or stands beside them. - -**What I know is unfinished in the prototype**, so that you do not copy it: -the App link in the dock is an icon without its word, because the row has no -room for the word in English; in the rail my tools and the voice settings are -reached by opening the list; the bar's desktop rules are still in the -stylesheet although only a phone uses the bar now. - -The prototype and your `4c85ebe3` both touch `ChannelPage.tsx` and -`ChannelRoomPreview.tsx`; your line is merged into the prototype, so read it -there. Take the phases in your own order with the webpage patch and the room -writer. Tell me which you start, and I will have the acceptance captures ready. +The parallel survey and same-pair preparation are still owed by me. ## Holds -None from me. Still keeping clear of Native Page selection, `AppPage`, -watch-media, watch-playback and the Session paths that build their sources. +None.