Notes Float port (ship the new Notes layout) #1088

Open
opened 2026-11-12 05:34:54 +00:00 by kayg · 15 comments
Owner

kayg 11-12 ~11:00 IST: "let's just focus on shipping the new notes layout now."

Source of truth: the mockup on review/calendar-2 (apps/mockup) and its checklist docs/plans/float-port-checklist.md. Target: apps/web, packages/ui, packages/editor, by stacked PRs into dev.

Plan (decided items only): docs/plans/notes-float-port.md on branch port/notes-float-shell.

Slices: 1a window shell for Notes, 1b dock + wrapping switcher + persistent window, 2 top-right toolbar, 3 flat lists (+3b Notes sidebar tree), 4 Style sheet and themes, 5 split cards, 6 ⌘K preview, 7 adaptive contrast, 8 phone parity.

Evidence (shots, frames, bundle numbers, gate tables) is posted below as comments.

kayg 11-12 ~11:00 IST: "let's just focus on shipping the new notes layout now." Source of truth: the mockup on `review/calendar-2` (apps/mockup) and its checklist `docs/plans/float-port-checklist.md`. Target: apps/web, packages/ui, packages/editor, by stacked PRs into dev. Plan (decided items only): `docs/plans/notes-float-port.md` on branch `port/notes-float-shell`. Slices: 1a window shell for Notes, 1b dock + wrapping switcher + persistent window, 2 top-right toolbar, 3 flat lists (+3b Notes sidebar tree), 4 Style sheet and themes, 5 split cards, 6 ⌘K preview, 7 adaptive contrast, 8 phone parity. Evidence (shots, frames, bundle numbers, gate tables) is posted below as comments.
Author
Owner

Plan pushed: docs/plans/notes-float-port.md on port/notes-float-shell (commit 0875656, then slice 0 added). Finding: 41 of 165 e2e files and ~20 source files are bound to the old Shell's class names and --cl, so a new slice 0 (stable data-* hooks, no visual change) goes first, then 1a window shell, 1b dock/switcher/persistent window. No product code is changed yet; no gates have been run.

Plan pushed: `docs/plans/notes-float-port.md` on `port/notes-float-shell` (commit 0875656, then slice 0 added). Finding: 41 of 165 e2e files and ~20 source files are bound to the old Shell's class names and `--cl`, so a new slice 0 (stable `data-*` hooks, no visual change) goes first, then 1a window shell, 1b dock/switcher/persistent window. No product code is changed yet; no gates have been run.
Author
Owner

App-switch and open-note costs: findings for the port (from #1085, mockup, real Safari on the Mac VM)

For the port captain building Notes into apps/web: what a switch into Notes costs, what I measured, what did and did not help. Numbers are the median worst frame after a switch, 1440, same-session A/B (noise ±5 ms). Mockup head 2405dd402 on calendar-2.

Where the time goes

  • Arriving at Notes ≈ 80 ms vs Files ≈ 55 and Mail ≈ 60 in the same session; Notes has fewer DOM nodes (≈ 580) than Mail (≈ 1300), so the cost is work per node in Notes, not size.
  • Chrome profile of the Notes arrival (inclusive): NotesSide 13 ms (tree sections 9, rows 7, note thumbs 3), Editor 6, Composer 3.4, window dock / app switcher ≈ 4, the old app's teardown ≈ 2 of 50 (so deferring teardown is not worth it; I did not build it).

What helped (in this order of size)

  1. One persistent window (backdrops, blur layers, card chrome, sidebar frame mounted once; an app only swaps its content): ≈ 110 → ≈ 78 ms. Build the web shell this way from the start.
  2. No write-then-read on the document root during a switch: the old and new backdrop/layout each cleared and rewrote --edge-base, data-win, --toast-x, which cost four whole-document restyles per switch. A holder that clears only when the last owner goes (one microtask late) removed them.
  3. Keeping both main-card forms and the list/inspector cards mounted (class toggle, no spec changes): ≈ −10 ms on arrival at Notes only.

What did NOT help (do not spend time on it)

  • Moving layout reads (batching offsetLeft/scrollHeight/getBoundingClientRect into one read pass, replacing bind:clientHeight with a ResizeObserver, hoisting a getComputedStyle token read, limiting standClear's hit tests): each was measured and showed 0 ± noise. The first reader pays for the layout that the next reader would have paid, so a read only costs extra when it follows a write and repeats. None of the mockup's did.
  • Keeping the list/inspector cards mounted alone, staging a mount over frames (round 1 gained ≈ 45 % but delayed focus and typing: rejected), a keyed sidebar frame (the dock/switcher is ≈ 4 ms), a Selector read pass.

What will help: build these in from the start

  1. Notes sidebar rows built at idle: render the first screenful of the Library/tree rows (≈ 12) in the first frame, the rest two at a time on requestIdleCallback (Safari has none: use a ≈ 90 ms timer). Never an empty state: the list simply continues. Home's bento did this (−7 ms on Home); expected −8…−12 ms on Notes.
  2. The editor's first paint of a long note: mount the title and the blocks that fit the viewport first (+ a small overscan), the rest at idle; the caret and keys must work in frame 0 (the typing-right-after-switch spec in the mockup, tests/app-switch-shell.spec.ts, is the gate). Editor is 6 ms for a short note and grows with length.
  3. One persistent sidebar tab strip/Selector (its first placing is a forced layout ≈ 12 ms in Chrome when it mounts with the rest): keep the strip mounted across switches so only its selected value changes, and measure its options in one batch (dev already has selector/measure-batch).
  4. Gates to copy: Safari frame protocol (blank page ≈ 60 rAF/s first, 6 rounds, 8 cycles, ABAB within one session, never compare across sessions), the typing-right-after-switch spec, and a computed-value table for any frame component you touch.

Per-step results (mockup, same protocol)

step result
persistent window + edge/root holders ≈ 110 → ≈ 78 ms
read pass (fades), kept list/inspector cards, lazy Home tiles ≈ 78 → ≈ 75 (noise)
standClear band-first 0
ResizeObserver instead of bind:clientHeight (+ dead bindings removed), pane-gap token cached 0; computed values 391/391 unchanged
both main-card forms mounted −10 ms arriving at Notes, 0 elsewhere; p90 92 → 80 overall
deferred teardown of the old app not built: teardown ≈ 2 ms of 50 in the profile

Target was < 33 ms; the mockup ended at ≈ 60 ms median (Notes ≈ 76). The remaining cost is each app's own content, which is where the port should save it.

## App-switch and open-note costs: findings for the port (from #1085, mockup, real Safari on the Mac VM) For the port captain building Notes into `apps/web`: what a switch into Notes costs, what I measured, what did and did not help. Numbers are the median worst frame after a switch, 1440, same-session A/B (noise ±5 ms). Mockup head `2405dd402` on calendar-2. ### Where the time goes - Arriving at Notes ≈ 80 ms vs Files ≈ 55 and Mail ≈ 60 in the same session; Notes has fewer DOM nodes (≈ 580) than Mail (≈ 1300), so the cost is **work per node in Notes**, not size. - Chrome profile of the Notes arrival (inclusive): `NotesSide` 13 ms (tree sections 9, rows 7, note thumbs 3), `Editor` 6, `Composer` 3.4, window dock / app switcher ≈ 4, the old app's teardown ≈ 2 of 50 (so deferring teardown is not worth it; I did not build it). ### What helped (in this order of size) 1. **One persistent window** (backdrops, blur layers, card chrome, sidebar frame mounted once; an app only swaps its content): ≈ 110 → ≈ 78 ms. Build the web shell this way from the start. 2. **No write-then-read on the document root during a switch**: the old and new backdrop/layout each cleared and rewrote `--edge-base`, `data-win`, `--toast-x`, which cost four whole-document restyles per switch. A holder that clears only when the last owner goes (one microtask late) removed them. 3. **Keeping both main-card forms and the list/inspector cards mounted** (class toggle, no spec changes): ≈ −10 ms **on arrival at Notes only**. ### What did NOT help (do not spend time on it) - **Moving layout reads** (batching `offsetLeft`/`scrollHeight`/`getBoundingClientRect` into one read pass, replacing `bind:clientHeight` with a ResizeObserver, hoisting a `getComputedStyle` token read, limiting `standClear`'s hit tests): each was measured and showed 0 ± noise. The first reader pays for the layout that the next reader would have paid, so a read only costs extra when it follows a write and **repeats**. None of the mockup's did. - Keeping the list/inspector cards mounted alone, staging a mount over frames (round 1 gained ≈ 45 % but delayed focus and typing: rejected), a keyed sidebar frame (the dock/switcher is ≈ 4 ms), a Selector read pass. ### What will help: build these in from the start 1. **Notes sidebar rows built at idle**: render the first screenful of the Library/tree rows (≈ 12) in the first frame, the rest two at a time on `requestIdleCallback` (Safari has none: use a ≈ 90 ms timer). Never an empty state: the list simply continues. Home's bento did this (−7 ms on Home); expected **−8…−12 ms on Notes**. 2. **The editor's first paint of a long note**: mount the title and the blocks that fit the viewport first (+ a small overscan), the rest at idle; the caret and keys must work in frame 0 (the typing-right-after-switch spec in the mockup, `tests/app-switch-shell.spec.ts`, is the gate). `Editor` is 6 ms for a short note and grows with length. 3. **One persistent sidebar tab strip/`Selector`** (its first placing is a forced layout ≈ 12 ms in Chrome when it mounts with the rest): keep the strip mounted across switches so only its selected value changes, and measure its options in one batch (dev already has `selector/measure-batch`). 4. **Gates to copy**: Safari frame protocol (blank page ≈ 60 rAF/s first, 6 rounds, 8 cycles, ABAB within one session, never compare across sessions), the typing-right-after-switch spec, and a computed-value table for any frame component you touch. ### Per-step results (mockup, same protocol) | step | result | |---|---| | persistent window + edge/root holders | ≈ 110 → ≈ 78 ms | | read pass (fades), kept list/inspector cards, lazy Home tiles | ≈ 78 → ≈ 75 (noise) | | `standClear` band-first | 0 | | ResizeObserver instead of `bind:clientHeight` (+ dead bindings removed), pane-gap token cached | 0; computed values 391/391 unchanged | | both main-card forms mounted | −10 ms arriving at Notes, 0 elsewhere; p90 92 → 80 overall | | deferred teardown of the old app | not built: teardown ≈ 2 ms of 50 in the profile | Target was < 33 ms; the mockup ended at ≈ 60 ms median (Notes ≈ 76). The remaining cost is each app's own content, which is where the port should save it.
Author
Owner

Port finding: inert on switched cards loses keys (from #1085)

If the port keeps two forms of a card (or any card a route change turns on and off), do NOT mark the unused one inert/aria-hidden: use display: none (or visibility: hidden), which already removes it from focus order and the accessibility tree. In the mockup, inert flipped on such cards plus the glass map build's lift/restore of every [inert] node left the live card inert for a moment and keys typed right after a switch were lost or reordered in WebKit (≈ 10 % of runs). Keep inert only for panels that stay visible but must not take input (a sliding inspector, the AI area), and make anything that lifts and restores inert restore what the owner last asked (liftInert in behind-glass.ts does since f76538528). Root cause and evidence: #1085 (comment on 11-12). Gate: tests/app-switch-shell.spec.ts:49 (typing right after a switch) ×20 on WebKit and Chromium.

## Port finding: `inert` on switched cards loses keys (from #1085) If the port keeps two forms of a card (or any card a route change turns on and off), do NOT mark the unused one `inert`/`aria-hidden`: use `display: none` (or `visibility: hidden`), which already removes it from focus order and the accessibility tree. In the mockup, `inert` flipped on such cards plus the glass map build's lift/restore of every `[inert]` node left the live card inert for a moment and keys typed right after a switch were lost or reordered in WebKit (≈ 10 % of runs). Keep `inert` only for panels that stay visible but must not take input (a sliding inspector, the AI area), and make anything that lifts and restores `inert` restore what the owner last asked (`liftInert` in `behind-glass.ts` does since `f76538528`). Root cause and evidence: https://git.kayg.org/kayg/calternal/issues/1085 (comment on 11-12). Gate: `tests/app-switch-shell.spec.ts:49` (typing right after a switch) ×20 on WebKit and Chromium.
Author
Owner

Style sheet, product (PR #1100) vs mockup (calendar-2), Chromium, light/dark, 1440 and 390

Product: Nord theme, Dots separator, narrow, split cards. Mockup: the same choices on its own sample note. Real Safari / iPhone simulator shots follow in a separate comment.

page light 1440: product | mockup

page light 390: product | mockup

page dark 1440: product | mockup

page dark 390: product | mockup

background light 1440: product | mockup

background light 390: product | mockup

background dark 1440: product | mockup

background dark 390: product | mockup

gradient light 1440: product | mockup

gradient light 390: product | mockup

gradient dark 1440: product | mockup

gradient dark 390: product | mockup

## Style sheet, product (PR #1100) vs mockup (calendar-2), Chromium, light/dark, 1440 and 390 Product: Nord theme, Dots separator, narrow, split cards. Mockup: the same choices on its own sample note. Real Safari / iPhone simulator shots follow in a separate comment. **page light 1440**: product | mockup <img src="https://git.kayg.org/attachments/c88f103d-bebf-4947-8f70-82f0af63f4f5" width="420"> <img src="https://git.kayg.org/attachments/34dd4ac2-5f6a-4338-8edc-b4166a1e795c" width="420"> **page light 390**: product | mockup <img src="https://git.kayg.org/attachments/62f776d5-366b-43bb-b719-bc4d717c1ead" width="200"> <img src="https://git.kayg.org/attachments/b92f6b93-d3ed-46ab-bb3f-4ca0f620fb2e" width="200"> **page dark 1440**: product | mockup <img src="https://git.kayg.org/attachments/ebe83548-b35f-42ab-ab2a-0cafad2918e9" width="420"> <img src="https://git.kayg.org/attachments/776ca2ca-232c-4df3-96f1-a8ad76626e12" width="420"> **page dark 390**: product | mockup <img src="https://git.kayg.org/attachments/e2fb1240-46ca-4aa0-87d7-59bc29283be0" width="200"> <img src="https://git.kayg.org/attachments/6e21bda9-d148-40fd-b5e7-d352237a27b0" width="200"> **background light 1440**: product | mockup <img src="https://git.kayg.org/attachments/16804a29-e6c3-4a30-83f8-5ca418a4c3f5" width="420"> <img src="https://git.kayg.org/attachments/1c1decfd-fc48-4c83-82a8-6a3b561b82f5" width="420"> **background light 390**: product | mockup <img src="https://git.kayg.org/attachments/e701586e-fd0b-4cc7-951a-2e235b135c5b" width="200"> <img src="https://git.kayg.org/attachments/46fc4661-42a9-44ce-aff5-3d481349edb9" width="200"> **background dark 1440**: product | mockup <img src="https://git.kayg.org/attachments/cda02d3f-78ad-4bb9-a3ab-ba109d03efbf" width="420"> <img src="https://git.kayg.org/attachments/5a9c0f30-f662-46d9-a169-459ecd007cae" width="420"> **background dark 390**: product | mockup <img src="https://git.kayg.org/attachments/bf23f15e-f3a1-4d1f-922b-4cb751e2f2e1" width="200"> <img src="https://git.kayg.org/attachments/31b969ab-a5db-417f-8c08-7508d375d13c" width="200"> **gradient light 1440**: product | mockup <img src="https://git.kayg.org/attachments/948d40ec-b6ad-48c1-acc9-4c8a68889862" width="420"> <img src="https://git.kayg.org/attachments/790fd230-7c04-463f-bd6e-d08113440722" width="420"> **gradient light 390**: product | mockup <img src="https://git.kayg.org/attachments/9e6ef997-2f99-431a-853a-b14c07052c46" width="200"> <img src="https://git.kayg.org/attachments/c44845a4-166c-402c-8410-9348fcda2e90" width="200"> **gradient dark 1440**: product | mockup <img src="https://git.kayg.org/attachments/412e2f2e-0735-4da8-b960-dbf761e4371f" width="420"> <img src="https://git.kayg.org/attachments/fac2335d-a75d-4db5-a6da-a413ed5b4189" width="420"> **gradient dark 390**: product | mockup <img src="https://git.kayg.org/attachments/21fc2e8e-f1b2-477b-be4b-d8c1f9d1f29c" width="200"> <img src="https://git.kayg.org/attachments/1b8d691a-89f3-4b1e-b12b-db30a90e7672" width="200">
Author
Owner

Notes Float slices 6 (⌘K preview, PR #1096) and 7 (adaptive contrast, PR #1097): evidence pairs

Real Safari (macOS 26.5, Mac VM), 1440x900, the palette open over a long note with "slow travel" typed; product served from dev-01 through a forward. Build under test for these shots: base = port/notes-float-1a b9a319721; slice 6 = #1096 at cc57d1b9e; slice 7 = #1097 at ed7e190c3 (then dense/float alpha ceilings were 0.82/0.74; the branch now uses the mockup's 0.66/0.55, so today's palette is a little lighter than shown). A re-shoot on the final heads was attempted, but in that session Safari booted none of the apps (every build, old ones too: blank page, JS not run, while Chromium and WebKit boot them fine), so these are the shots I can stand behind. Mockup = calendar-2 preview slot. The two layouts differ (Notes sidebar tree etc. land in other slices); what is compared is the palette's glass and its pane.

Glass of the palette (computed in Safari)

case alpha blur --glass-busy
base light / dark 0.48 / 0.48 24 px none
slice 6 light / dark 0.48 / 0.48 (same tint, no second blur on the pane) 24 px none
slice 7 light, over the text 0.82 (old ceiling; now max 0.66) 44 px 1
slice 7 dark, over the text 0.82 (old ceiling; now max 0.66) 44 px 1
mockup light / dark 0.66 / 0.66 44 px 1
Calm (nothing busy behind) stays exactly the base values.

iPhone 18 Pro simulator (iOS 27, own sim on std, under the std lock), light and dark

Opened the app's phone screens for base / slice 6 / slice 7: the note screen's glass pills, bar and keyboard accessory are pixel-for-pixel the same between base and slice 7 (calm glass is unchanged); the palette on a phone has no preview pane (spec asserts it). I did not drive the phone palette itself (no tap automation set up for the product's phone search button): a gap.

Not done / open

  • The 65 ms gate for ⌘K in the plan is not met by either side on this VM (see the frame tables on #1096 / #1097): warm worst frame ≈ 70 ms with or without slice 6. The product's preview pane was already cheap (CodeMirror draws the viewport); the remaining cost is the open itself.
  • iPhone palette pass, per above.
  • Mockup per-paper --ink-2 table: no target in the product (no root Warm/Cool paper).

product-base-light-palette.png

product-base-light-palette.png

product-s6-light-palette.png

product-s6-light-palette.png

product-s7-light-palette.png

product-s7-light-palette.png

mockup-light-palette.png

mockup-light-palette.png

product-base-dark-palette.png

product-base-dark-palette.png

product-s6-dark-palette.png

product-s6-dark-palette.png

product-s7-dark-palette.png

product-s7-dark-palette.png

mockup-dark-palette.png

mockup-dark-palette.png

sim-base-light-list-all.png

sim-base-light-list-all.png

sim-s7-light-notes-frames-long.png

sim-s7-light-notes-frames-long.png

sim-base-dark-list-all.png

sim-base-dark-list-all.png

sim-s7-dark-list-all.png

sim-s7-dark-list-all.png

## Notes Float slices 6 (⌘K preview, PR #1096) and 7 (adaptive contrast, PR #1097): evidence pairs Real Safari (macOS 26.5, Mac VM), 1440x900, the palette open over a long note with "slow travel" typed; product served from dev-01 through a forward. **Build under test for these shots:** base = `port/notes-float-1a` b9a319721; slice 6 = #1096 at cc57d1b9e; slice 7 = #1097 at ed7e190c3 (then dense/float alpha ceilings were 0.82/0.74; the branch now uses the mockup's 0.66/0.55, so today's palette is a little lighter than shown). A re-shoot on the final heads was attempted, but in that session Safari booted none of the apps (every build, old ones too: blank page, JS not run, while Chromium and WebKit boot them fine), so these are the shots I can stand behind. Mockup = calendar-2 preview slot. The two layouts differ (Notes sidebar tree etc. land in other slices); what is compared is the palette's glass and its pane. ### Glass of the palette (computed in Safari) | case | alpha | blur | `--glass-busy` | |---|---|---|---| | base light / dark | 0.48 / 0.48 | 24 px | none | | slice 6 light / dark | 0.48 / 0.48 (same tint, no second blur on the pane) | 24 px | none | | slice 7 light, over the text | 0.82 (old ceiling; now max 0.66) | 44 px | 1 | | slice 7 dark, over the text | 0.82 (old ceiling; now max 0.66) | 44 px | 1 | | mockup light / dark | 0.66 / 0.66 | 44 px | 1 | Calm (nothing busy behind) stays exactly the base values. ### iPhone 18 Pro simulator (iOS 27, own sim on std, under the std lock), light and dark Opened the app's phone screens for base / slice 6 / slice 7: the note screen's glass pills, bar and keyboard accessory are pixel-for-pixel the same between base and slice 7 (calm glass is unchanged); the palette on a phone has no preview pane (spec asserts it). I did not drive the phone palette itself (no tap automation set up for the product's phone search button): a gap. ### Not done / open - The 65 ms gate for ⌘K in the plan is not met by either side on this VM (see the frame tables on #1096 / #1097): warm worst frame ≈ 70 ms with or without slice 6. The product's preview pane was already cheap (CodeMirror draws the viewport); the remaining cost is the open itself. - iPhone palette pass, per above. - Mockup per-paper `--ink-2` table: no target in the product (no root Warm/Cool paper). **product-base-light-palette.png** ![product-base-light-palette.png](https://git.kayg.org/attachments/ffa20307-ed73-4576-a77d-dfde8b9a7c77) **product-s6-light-palette.png** ![product-s6-light-palette.png](https://git.kayg.org/attachments/e818528d-75a2-4998-b355-c7c47e0f0c7a) **product-s7-light-palette.png** ![product-s7-light-palette.png](https://git.kayg.org/attachments/ab09a8c2-7261-41ec-bff2-bcc67e3f88f6) **mockup-light-palette.png** ![mockup-light-palette.png](https://git.kayg.org/attachments/e3a48600-0632-49a7-94df-14bfbded0097) **product-base-dark-palette.png** ![product-base-dark-palette.png](https://git.kayg.org/attachments/ca5e4d31-a559-4bd3-9f7c-76483b8a0b3c) **product-s6-dark-palette.png** ![product-s6-dark-palette.png](https://git.kayg.org/attachments/6fa0645e-b726-4399-83bc-5886c3b9843a) **product-s7-dark-palette.png** ![product-s7-dark-palette.png](https://git.kayg.org/attachments/30409b4b-81f9-45a9-ae2b-200c6fc01a69) **mockup-dark-palette.png** ![mockup-dark-palette.png](https://git.kayg.org/attachments/679402b5-353f-4bed-b62c-da954c6c7c33) **sim-base-light-list-all.png** ![sim-base-light-list-all.png](https://git.kayg.org/attachments/e096e6b1-b556-4cf4-a01e-d921bb449970) **sim-s7-light-notes-frames-long.png** ![sim-s7-light-notes-frames-long.png](https://git.kayg.org/attachments/fd239d9f-4828-4d92-8552-2941e66341c5) **sim-base-dark-list-all.png** ![sim-base-dark-list-all.png](https://git.kayg.org/attachments/56f40067-fecb-4a25-be07-572ad324ca60) **sim-s7-dark-list-all.png** ![sim-s7-dark-list-all.png](https://git.kayg.org/attachments/3dcf5653-ee23-415f-b833-f696c07f5466)
Author
Owner

Slice 4 Style sheet in the iPhone Simulator (real iOS 27 Safari on std), 390 wide, light and dark

Opened with sheet=style, then the Page and Background tabs TAPPED (the sheet's own sizing: about 45% of the screen, content scrolls). Dist built from PR #1100 head (2bccd20b2 code).

page-light

page-dark

background-light

background-dark

Finding (pre-existing, not from this slice): in iOS Safari, opening the Style sheet by address (?sheet=style&tab=page) shows the Text page's content under the Page tab (the pager's first scroll position does not hold); the same on the 1a base build. Tapping the tabs works, as above.

## Slice 4 Style sheet in the iPhone Simulator (real iOS 27 Safari on std), 390 wide, light and dark Opened with `sheet=style`, then the Page and Background tabs TAPPED (the sheet's own sizing: about 45% of the screen, content scrolls). Dist built from PR #1100 head (2bccd20b2 code). **page-light** <img src="https://git.kayg.org/attachments/b4fd8687-5334-43ac-af66-414eb23920a1" width="260"> **page-dark** <img src="https://git.kayg.org/attachments/45f7f1ac-0808-499a-9a24-f701dd2c5ca4" width="260"> **background-light** <img src="https://git.kayg.org/attachments/464a0b56-913c-4afc-a508-ef87537a1527" width="260"> **background-dark** <img src="https://git.kayg.org/attachments/0944f033-5014-47cc-b76d-1767553d25f0" width="260"> Finding (pre-existing, not from this slice): in iOS Safari, opening the Style sheet by address (`?sheet=style&tab=page`) shows the Text page's content under the Page tab (the pager's first scroll position does not hold); the same on the 1a base build. Tapping the tabs works, as above.
Author
Owner

Notes Float ports: last two gates (test lane, 11-13 ~00:30 IST)

PR #1100 (slice 4, Style sheet), head 9dcdcabb4, unchanged: real-Safari frames NOT taken. about:blank in a fresh safaridriver session on macos-01 gives 0.53 / 0.40 / 0.46 rAF/s (expected about 60) even with the orphan Safari gone, so I stopped as instructed (details in comment 94436 on #1100). Needs a Mac session that renders; scripts are ready. Everything else on #1100 was already in 94358.

PR #1101 (slice 5, split cards and dividers): the earlier +0.2 to +0.4 ms/key was real in the steadier metric, so I fixed it: new head bd7b63a5a (one commit, breaks.ts only: each break carries its line number and end, so no per-break lineAt per key; cm-caret-gap is set by the breaks plugin's own draw instead of a StateField). Typing CPU from Chromium's counters, perf-01, 16 rounds ABAB, 3 arms (base eb9d0552b, old c1600c887, new bd7b63a5a), 32 pairs: script+style+layout -0.55% ±0.46, all main-thread work -0.57% ±0.37, tight-loop edit path -0.40% ±0.70 (old head was +1.07% there); no aggregate's 95% upper bound above +0.4% (loop +1.0%). Layout alone is +1.1% ±0.65 (+0.016 ms/key), paid for by style -1.8%. Full tables and raw JSON on #1101 (comment 94472). Re-run on the new head: unit 575, svelte-check 0 errors, targeted e2e 0 failed in chromium/webkit at 1440 and 390 (same counts as before).

Not claimed: a statistically significant improvement. I can say nothing above the base is detectable at about ±0.5% resolution on the aggregates.

Heads are on eb9d0552b; port/notes-float has since moved to b6f2452bf, so the captain may need to update the branches before merging. Nothing merged by me.

## Notes Float ports: last two gates (test lane, 11-13 ~00:30 IST) **PR #1100 (slice 4, Style sheet), head 9dcdcabb4, unchanged:** real-Safari frames NOT taken. `about:blank` in a fresh safaridriver session on macos-01 gives 0.53 / 0.40 / 0.46 rAF/s (expected about 60) even with the orphan Safari gone, so I stopped as instructed (details in comment 94436 on #1100). Needs a Mac session that renders; scripts are ready. Everything else on #1100 was already in 94358. **PR #1101 (slice 5, split cards and dividers):** the earlier +0.2 to +0.4 ms/key was real in the steadier metric, so I fixed it: new head **bd7b63a5a** (one commit, `breaks.ts` only: each break carries its line number and end, so no per-break `lineAt` per key; `cm-caret-gap` is set by the breaks plugin's own draw instead of a StateField). Typing CPU from Chromium's counters, perf-01, 16 rounds ABAB, 3 arms (base `eb9d0552b`, old `c1600c887`, new `bd7b63a5a`), 32 pairs: script+style+layout **-0.55% ±0.46**, all main-thread work **-0.57% ±0.37**, tight-loop edit path **-0.40% ±0.70** (old head was +1.07% there); no aggregate's 95% upper bound above +0.4% (loop +1.0%). Layout alone is +1.1% ±0.65 (+0.016 ms/key), paid for by style -1.8%. Full tables and raw JSON on #1101 (comment 94472). Re-run on the new head: unit 575, svelte-check 0 errors, targeted e2e 0 failed in chromium/webkit at 1440 and 390 (same counts as before). Not claimed: a statistically significant improvement. I can say nothing above the base is detectable at about ±0.5% resolution on the aggregates. Heads are on `eb9d0552b`; `port/notes-float` has since moved to `b6f2452bf`, so the captain may need to update the branches before merging. Nothing merged by me.
Author
Owner

Zen (Focus) per frame: what dev does and what the window does, and what is measured (note before trying more variants)

What zen-out costs in real Safari (Mac VM, before it lost its display; ABAB in one session, 8 per build): dev worst frame about 30-45 ms, the window about 63-84 ms (zen-in reached dev's level in the best variant, zen-out never did). Six variants did not move zen-out: the list card hidden by fade, by opacity, by translate, by visibility; a 60 ms delayed return; the page's pills kept mounted, off the page, or inert.

What each implementation animates in the frames of the gesture (read from the code):

dev (Shell.svelte before the port) the window (WindowLayout)
sidebar and list .focus .pane: opacity 0 and translate -12px (compositor properties), then visibility hidden; they keep their boxes; the grid does not change the sidebar slides by translate (compositor), but the WINDOW's left edge moves with it: .wwin and .wshadow animate left, the sidebar's strip and the two left corner pieces of the global layer animate left and width
the page --clip (a registered property) springs on the frame's fill, rim, viewport and note layer the same --clip spring, plus the page area is a fixed-size sibling (unchanged)
what the browser has to redraw per frame only the elements named above; no box that carries a large paint (shadow, glass, image) moves the window's soft shadow (0 18px 40px) is on a box that MOVES (.wshadow left), the corner pieces and the sidebar strip are painted with a screen-sized background-attachment: fixed image and a tint, and they change box each frame
layout none (grid unchanged in zen) left/width changes on abs-positioned boxes: small, but every frame

So the structural difference is: in dev's zen nothing with an expensive paint changes geometry; in ours the shadow box and the pieces that paint the screen-sized picture do. The sidebar toggle (which also moves the window's edge) is at parity with dev because dev's toggle animates grid-template-columns and re-lays out the panes too, so both pay; zen is the one gesture where dev pays nothing and we pay for the edge.

Measured in Chromium (headless, no throttle; main-thread trace over the 1.4 s after the key, 8 runs per build, dev vs integration head e3bc2040c), ms of main-thread work:

stage dev in ours in dev out ours out
UpdateLayoutTree 11.9 10.8 7.8 9.0
Layout 0.5 0.7 0.5 0.8
PrePaint 1.4 1.6 1.3 1.7
Paint 0.9 1.5 3.6 3.9
Layerize 0.6 0.6 1.1 1.5
Commit 1.7 1.6 3.6 3.5
all tasks 27.0 27.7 25.5 29.0

Reading: on the main thread zen is the same on both (within a few ms), so the Safari gap is NOT style, layout or paint recording. It has to be what WebKit rasterises and composites (GPU work, off the main thread): a moving shadow box and pieces painting a screen-sized fixed image force re-raster of large areas each frame, where dev moves nothing heavy. I cannot see that from Linux; it needs the Mac (Web Inspector timeline / layer borders and repaint counts).

Ideas to test when the Mac renders again (not tried yet, in this order): (1) in zen only, do not animate the window's edge: fade the sidebar and the list as dev does and let the window grow in one step after (or before) the fade, so no heavy box changes geometry during the animation; (2) give the shadow and the pieces their own composited layers while the edge moves (will-change: transform for the gesture only) and move them by transform instead of left/width; (3) paint the pieces without background-attachment: fixed (an inner full-size picture clipped by the piece) so a moving piece does not repaint the screen-sized image.

## Zen (Focus) per frame: what dev does and what the window does, and what is measured (note before trying more variants) **What zen-out costs in real Safari (Mac VM, before it lost its display; ABAB in one session, 8 per build):** dev worst frame about 30-45 ms, the window about 63-84 ms (zen-in reached dev's level in the best variant, zen-out never did). Six variants did not move zen-out: the list card hidden by fade, by opacity, by translate, by visibility; a 60 ms delayed return; the page's pills kept mounted, off the page, or inert. **What each implementation animates in the frames of the gesture (read from the code):** | | dev (`Shell.svelte` before the port) | the window (`WindowLayout`) | |---|---|---| | sidebar and list | `.focus .pane`: `opacity` 0 and `translate -12px` (compositor properties), then `visibility` hidden; they keep their boxes; the grid does not change | the sidebar slides by `translate` (compositor), but the WINDOW's left edge moves with it: `.wwin` and `.wshadow` animate `left`, the sidebar's strip and the two left corner pieces of the global layer animate `left` and `width` | | the page | `--clip` (a registered property) springs on the frame's fill, rim, viewport and note layer | the same `--clip` spring, plus the page area is a fixed-size sibling (unchanged) | | what the browser has to redraw per frame | only the elements named above; no box that carries a large paint (shadow, glass, image) moves | the window's soft shadow (`0 18px 40px`) is on a box that MOVES (`.wshadow left`), the corner pieces and the sidebar strip are painted with a screen-sized `background-attachment: fixed` image and a tint, and they change box each frame | | layout | none (grid unchanged in zen) | `left`/`width` changes on abs-positioned boxes: small, but every frame | So the structural difference is: in dev's zen nothing with an expensive paint changes geometry; in ours the shadow box and the pieces that paint the screen-sized picture do. The sidebar toggle (which also moves the window's edge) is at parity with dev because dev's toggle animates `grid-template-columns` and re-lays out the panes too, so both pay; zen is the one gesture where dev pays nothing and we pay for the edge. **Measured in Chromium (headless, no throttle; main-thread trace over the 1.4 s after the key, 8 runs per build, dev vs integration head `e3bc2040c`), ms of main-thread work:** | stage | dev in | ours in | dev out | ours out | |---|---|---|---|---| | UpdateLayoutTree | 11.9 | 10.8 | 7.8 | 9.0 | | Layout | 0.5 | 0.7 | 0.5 | 0.8 | | PrePaint | 1.4 | 1.6 | 1.3 | 1.7 | | Paint | 0.9 | 1.5 | 3.6 | 3.9 | | Layerize | 0.6 | 0.6 | 1.1 | 1.5 | | Commit | 1.7 | 1.6 | 3.6 | 3.5 | | all tasks | 27.0 | 27.7 | 25.5 | 29.0 | **Reading:** on the main thread zen is the same on both (within a few ms), so the Safari gap is NOT style, layout or paint recording. It has to be what WebKit rasterises and composites (GPU work, off the main thread): a moving shadow box and pieces painting a screen-sized `fixed` image force re-raster of large areas each frame, where dev moves nothing heavy. I cannot see that from Linux; it needs the Mac (Web Inspector timeline / layer borders and repaint counts). **Ideas to test when the Mac renders again (not tried yet, in this order):** (1) in zen only, do not animate the window's edge: fade the sidebar and the list as dev does and let the window grow in one step after (or before) the fade, so no heavy box changes geometry during the animation; (2) give the shadow and the pieces their own composited layers while the edge moves (`will-change: transform` for the gesture only) and move them by `transform` instead of `left`/`width`; (3) paint the pieces without `background-attachment: fixed` (an inner full-size picture clipped by the piece) so a moving piece does not repaint the screen-sized image.
Author
Owner

Notes Float port captain, perf + Safari evidence (11-13, IST ~11:45–12:00). Integration port/notes-float e70cb2c0a (includes port/notes-float-promote 9d97fb0ce).

Cause of the shell's typing cost (Chromium, per typed key, stage split, 216 keys, 4× throttle): Layerize dev 2265 µs → window 3302 µs, layer+layout work +21 %. Removing .wside returns Layerize to dev; removing the list card recovers half. The two were squashed/re-checked against the page every key. Fix: will-change: transform on .wside and .wc-list while the editor has focus (class from focusin/focusout; :has() was tried and made list recalc +60 %). Layer+layout work after: +2.5 % over dev.

Three pooled ABAB sessions on 9d97fb0ce (perf-01, both locks, 8 per arm each, dev2 control in each, ratios per session), pooled vs dev, mean (95 % CI upper): typing CPU +0.81 % (+1.13 %; control +0.25 %), typing script +2.81 % (control +0.15 %), list CPU −2.69 % (−1.60 %), list script +4.35 % (+6.12 %; control −0.91 %), list layout +0.88 %, list recalc −1.34 %. Per session typing +0.7 / +0.6 / +1.1 %. Gate not met (typing, list script). Remaining typing cost is JS in CodeMirror's visiblePixelRange walking two extra clipping ancestors (.wl, .wc-main); list script is behind-glass + a few effects.

Real Safari (macos-01, 60 rAF/s blank, ABAB, several sessions): list scroll and idle at or below dev; zen with focus-only promotion 44.5 in / 46 out vs dev 43.5 / 54.5 (median worst frame, ms); sidebar hide/show at dev within the Mac's own session-to-session swing (dev show 42–54, hide 56–79). Outliers of 200–800 ms occur in every arm including dev; not attributable to promotion.

**Notes Float port captain, perf + Safari evidence (11-13, IST ~11:45–12:00).** Integration `port/notes-float` e70cb2c0a (includes `port/notes-float-promote` 9d97fb0ce). **Cause of the shell's typing cost (Chromium, per typed key, stage split, 216 keys, 4× throttle):** Layerize dev 2265 µs → window 3302 µs, layer+layout work +21 %. Removing `.wside` returns Layerize to dev; removing the list card recovers half. The two were squashed/re-checked against the page every key. Fix: `will-change: transform` on `.wside` and `.wc-list` **while the editor has focus** (class from focusin/focusout; `:has()` was tried and made list recalc +60 %). Layer+layout work after: +2.5 % over dev. **Three pooled ABAB sessions on 9d97fb0ce** (perf-01, both locks, 8 per arm each, dev2 control in each, ratios per session), pooled vs dev, mean (95 % CI upper): typing CPU +0.81 % (+1.13 %; control +0.25 %), typing script +2.81 % (control +0.15 %), list CPU −2.69 % (−1.60 %), list script +4.35 % (+6.12 %; control −0.91 %), list layout +0.88 %, list recalc −1.34 %. Per session typing +0.7 / +0.6 / +1.1 %. **Gate not met** (typing, list script). Remaining typing cost is JS in CodeMirror's `visiblePixelRange` walking two extra clipping ancestors (`.wl`, `.wc-main`); list script is behind-glass + a few effects. **Real Safari (macos-01, 60 rAF/s blank, ABAB, several sessions):** list scroll and idle at or below dev; zen with focus-only promotion 44.5 in / 46 out vs dev 43.5 / 54.5 (median worst frame, ms); sidebar hide/show at dev within the Mac's own session-to-session swing (dev show 42–54, hide 56–79). Outliers of 200–800 ms occur in every arm including dev; not attributable to promotion.
Author
Owner

Notes Float port captain: script-only residuals (11-13), for a later pass. Not blocking; kayg decides.

Integration head 0e0e19d19, three pooled sessions (perf-01, 8/arm, dev2 control), vs dev: typing CPU +0.72 % (control +0.66 %, so at dev), list CPU −3.08 %. Script-only: typing script +2.31 % (control +0.22 %), list script +4.38 % (control +1.00 %).

Findings for whoever picks it up:

  • Typing script: CodeMirror's visiblePixelRange and getClientRects per key (+60 / +125 µs at 4× throttle). The editor sits 14 elements deep against dev's 13 (.wl only; the page wrapper is gone). More ancestors = more getComputedStyle + scroll-size reads per measure.
  • List script: not rows (22 mounted in both), not behind-glass any more (~7 µs after the first-scroll box cache). The rest is spread across Svelte reactions in the list: set_attribute roughly doubled per scroll (23.7 → 46.7 µs) and the list's own template effect (set_class + aria-label + data-chrome-scroll) accounts for about +100 µs per run-equivalent. Idea: guard those attribute writes with equality checks so unchanged values are not written; check why the effect re-runs on scroll in the window layout.
**Notes Float port captain: script-only residuals (11-13), for a later pass. Not blocking; kayg decides.** Integration head 0e0e19d19, three pooled sessions (perf-01, 8/arm, dev2 control), vs dev: typing CPU +0.72 % (control +0.66 %, so at dev), list CPU −3.08 %. Script-only: typing script +2.31 % (control +0.22 %), list script +4.38 % (control +1.00 %). Findings for whoever picks it up: - Typing script: CodeMirror's `visiblePixelRange` and `getClientRects` per key (+60 / +125 µs at 4× throttle). The editor sits 14 elements deep against dev's 13 (`.wl` only; the page wrapper is gone). More ancestors = more `getComputedStyle` + scroll-size reads per measure. - List script: not rows (22 mounted in both), not behind-glass any more (~7 µs after the first-scroll box cache). The rest is spread across Svelte reactions in the list: `set_attribute` roughly doubled per scroll (23.7 → 46.7 µs) and the list's own template effect (`set_class` + `aria-label` + `data-chrome-scroll`) accounts for about +100 µs per run-equivalent. Idea: guard those attribute writes with equality checks so unchanged values are not written; check why the effect re-runs on scroll in the window layout.
Author
Owner

Notes Float port captain: HANDOVER (11-13, orchestration moving host)

1. Integration head

port/notes-float = 0e0e19d19 (--no-ff merges, in order): 1a shell (#1093, closed, merged by me) · slice 6 preview · slice 7 contrast/adaptive glass + #1102 (no-motion) · #1104 behind-glass scroll fix (closed, merged) · promote (9d97fb0ce: will-change: transform on .wside/.wc-list only while the editor has focus, a .typing class from focusin/focusout; NOT :has(), which made list recalc +60 %; plus behind-glass scroller-box cache) · flat (9f4fdfec5: page wrapper .wc-main removed from the DOM, the page root is the window's child; editor chain is 14 deep vs dev's 13, .wl only). Not merged into it: #1100 (slice 4), 1b.

2. Branches and PRs

item head state
port/notes-float (integration) 0e0e19d19 open, not in dev; ONE final PR into dev after the full suite
#1089 plan port/notes-float-shell 00aa99e78 open, WIP into dev (docs/plans/notes-float-port.md)
#1100 slice 4 Style sheet port/notes-float-s4-style 9dcdcabb4 open into port/notes-float; waits for its Safari frames (theme switch, Style sheet open)
1b dock/switcher WIP port/notes-float-1b 3d9fc2272 WIP branch, not merged, no PR; see §5
#1093 slice 1a, #1104 slice 7 fix c09ee1312, ee22cc673 closed (merged into the integration branch)
port/notes-float-promote, -flat 9d97fb0ce, 9f4fdfec5 merged; keep as history
measurement-only: port/notes-float-shell-only, port/nf-bis-m7/m6/m67, -1a, -perf, -bg-fix – disposable

3. Gate status (kayg: no regression of any size)

Chromium CPU, pooled ×3 sessions (perf-01, both perf locks, 8 per arm per session, dev2 = same-build control in each, ratios per session), head 0e0e19d19 equivalent (flat 9f4fdfec5), vs dev, mean (95 % CI upper):
typing CPU +0.72 % (+0.98 %) while the dev2 control reads +0.66 % → new − control ≈ +0.06 %, i.e. at dev · typing script +2.31 % (control +0.22 %) · list CPU −3.08 % (−1.49 %) · list script +4.38 % (+5.44 %; control +1.00 %) · list layout −0.87 % · list recalc −0.89 %.
Earlier shell-only head had typing +1.3–1.8 %; cause was the sidebar and list card not promoted (Layerize 2265 → 3302 µs per key on dev vs window; removing .wside returned it to dev); will-change while typing = layer+layout +2.5 % (was +21 %).
Real Safari (macos-01, blank 60 rAF/s, ABAB one session, median worst frame ms, dev | ours): idle 24 | 24; list scroll 30.5 | 24–25; zen-in 43.5 | 44.5, zen-out 54.5 | 46 (focus-only promotion; always-on promotion was worse); sidebar hide 56|79 (dev) vs 56|67.5 (ours), show 42|54 vs 53|53.5 → at dev within the Mac's session swing (dev show 42–54, hide 56–79); 200–800 ms outliers occur in EVERY arm including dev (not attributable). 1b switch frames (10 cycles): to-Contacts median worst 95.5 dev | 90.5 ours (over-50: 11 | 12), back to Notes 22.5 | 24.
Crisp text, Chromium: sidebar+list region promoted vs not: 0 px differ by >8/255 at 1x and 2x.
Verdict: typing CPU and list CPU gates MET; script-only residuals open (kayg to decide: typing script +2 %, list script +3.4 % net of control).

4. Open

  • Script-only residuals: typing = CodeMirror visiblePixelRange/getClientRects per key over the .wl ancestor; list script = spread across Svelte reactions (set_attribute ~2×, the list's template effect writes set_class/aria-label/data-chrome-scroll on scroll). Idea: guard attribute writes with equality; find why the effect re-runs on scroll in the window layout. Not rows (22 mounted in both), not behind-glass (~7 µs).
  • Zen-out Safari gap: closed by focus-only promotion in the latest Mac session (46 vs 54.5), but measure again on the final head.
  • #1100 Safari frames (theme switch, Style sheet open) NOT run. Safari crisp text 1x/2x NOT run (needs the Mac). iPhone-sim GPU check: moot, the window layout is desktop-only until the phone slice, a phone keeps the drawer and no promotion applies.
  • 1a flaky specs: window-layout.spec.ts:124 (list handle drag) and :165 (pieces follow window) and :73/:93; tasks-tick ×3, swipe-rows:226, journal-trash:25 fail on the integration head too (baseline run on 0e0e19d19: 6 failed / 83 passed on those files, chromium-1440).
  • Full suite on the integration branch not run (all projects, one run, before the final PR).
  • Slices: 1b WIP (below), 2 toolbar, 3/3b, 8 phone, 1c editor first paint: not started. Preview redeploys are the orchestrator's (notes-float slot).

5. 1b WIP (port/notes-float-1b 3d9fc2272, on top of port/notes-float 0e0e19d19)

Done: window/WindowDock.svelte (account · switcher · search) replaces the Notes sidebar footer (.me: avatar, Contacts, Settings), window/AppSwitch.svelte (3-icon scroll-snap loop, scroll browses, click switches, hover list button, All Apps menu), lib/app-list.ts (built apps from lib/apps), lib/all-apps.ts, App.svelte effect: a pointer switch to/from Tasks or Contacts fades the new screen in (swapTabs), keyboard instant; sidebar width range now 220–400 (SIDE in Shell, dock needs 220); specs app-switch.spec.ts (5 tests); five old specs that clicked the sidebar Settings button now go through Account → Settings, contacts-list uses the switcher icon, list-search scoped to the list; dock/hover use data-instant (keys-no-motion).
Not done: app-swipe (sidebar swipe between apps), progressive blur under the dock, the 390 phone check, notes-float-switch.spec.ts (frame-by-frame), Mac switch gate beyond the frames above, typing-right-after-switch spec.
Last full chromium runs on 63d320c66 (before the final 3 fixes): chromium-1440 607 passed / 19 failed, chromium-390 1037 passed / 16 failed; baseline on 0e0e19d19 for the same files: 1440 6 failed (pre-existing), 390 8 failed (pre-existing). Of the 1b-specific failures I fixed keys-no-motion ×4 (data-instant) and list-search:19; still failing on 3d9fc2272, to look at: app-switch.spec.ts:102 (root attribute data-ready is removed and rewritten during a Notes→Contacts switch: check whether dev does this too, then use the plan's holder pattern or relax the spec to the attributes 1b owns), tasks-card.spec.ts:93 (.tb strict mode: the kept-mounted Notes window's .tb plus the task card; probably timing of the Notes layer being built, baseline passes), vim.spec.ts:387 (extra title: Vim front matter; unverified if related), window-layout:124/165 (flaky, see above), 390: swipe-guard ×2, search-palette:47, opacity:126, missing-links:336, tint:313, tasks-tick:72, swipe-rows:627 (not in the 390 baseline list: re-run on 3d9fc2272 alone, then compare with baseline).

6. Exact next steps

  1. Decide with kayg: accept script-only residuals, or chase them (guard attribute writes, see §4).
  2. Finish 1b: re-run the failing specs above on 3d9fc2272 alone (not under load), fix or baseline each; do the data-ready question; then PR port/notes-float-1b → port/notes-float and run its gates (pooled ×3 typing/list unchanged expected; Mac switch frames done above: at dev).
  3. Run #1100's Safari frames; merge #1100 into port/notes-float (--no-ff) when they pass.
  4. Slices 2, 3/3b, 8, 1c as in the plan, each with the pooled ×3 gate.
  5. One full suite (all Playwright projects, split per project) on the integration branch, then ONE PR port/notes-float → dev.
  6. Zen-out and toggles: re-run the Mac frames on the final head.

7. Harness (copies in ~/Developer/Worktrees/nfa-harness/ on the control host: control-host/, dev-01/, perf-01/, mac/; /tmp originals vanish)

Hosts: build host claude@calternal-dev-01-compute02 (worktrees ~/Developer/Worktrees/nf-integ (detached, currently 3d9fc2272), nf-bis-m7, notes-float-1a; fixtures/dists in ~/nfa-perf); perf claude@calternal-perf-01-backup01 (~/nfa-perf: dist-*, fixture, calternal binary, run3.sh, typing-list-cpu.mjs) and -perf-02- (second lock only); Mac lume@calternal-macos-01-std (~/nfa-frames: dist-dev, dist-1a, nfa-frames7.sh/.py, seed.py, calternal-fix = Mac binary re-pointed at openssl-3.5.9 because nix GC removed 3.5.8). dev-02 (~/nfa-prof) was not reachable at the end under the names I know.
Run a pooled session: on control host ship3f.sh <name> (edit the branch in it): builds the branch on dev-01 into ~/nfa-perf/dist-<name>, relays (control-host relay dir, see /tmp/nfa-relay-dir) to perf-01, queues ~/bin/perf-turn with run3.sh (arms dev, dev2, new, 8 each, rotating), a watcher (nfa-second-lock.sh) takes perf-02's lock only when the driver asks, copies <name>1..3.json back; pool3.py <name> gives the pooled ratios with CI. Function profile: typing-profile5.mjs (dev-01, unminified dists dist-*-nm, SCROLL=1 for list), stage split: typing-trace-variants.mjs/toggle-trace.mjs/zen-trace.mjs, layers: layer-count.mjs. Mac frames: stage dist as ~/nfa-frames/dist-1a (+ dist-dev), run CYCLES=10 ./nfa-frames7.sh > run.log (takes /tmp/mac-bench.lock, aborts if the blank page gives <100 frames), summary in out/frames.json. Playwright on dev-01: CALTERNAL_BIN=$HOME/nfa-perf/calternal ~/bin/slot bunx playwright test --project=<p> --output=$HOME/pw-<x> inside nix develop of the worktree.

8. Cleaned up

No perf lock, Mac lock, slot, server, systemd unit, safaridriver or Safari of mine is left running (checked on dev-01, perf-01, perf-02, the Mac); a stale /tmp/nfa-second-release on perf-02 removed. Worktrees left in place.

# Notes Float port captain: HANDOVER (11-13, orchestration moving host) ## 1. Integration head `port/notes-float` = **0e0e19d19** (`--no-ff` merges, in order): 1a shell (#1093, closed, merged by me) · slice 6 preview · slice 7 contrast/adaptive glass + #1102 (no-motion) · #1104 behind-glass scroll fix (closed, merged) · **promote** (9d97fb0ce: `will-change: transform` on `.wside`/`.wc-list` only while the editor has focus, a `.typing` class from focusin/focusout; NOT `:has()`, which made list recalc +60 %; plus behind-glass scroller-box cache) · **flat** (9f4fdfec5: page wrapper `.wc-main` removed from the DOM, the page root is the window's child; editor chain is 14 deep vs dev's 13, `.wl` only). Not merged into it: #1100 (slice 4), 1b. ## 2. Branches and PRs | item | head | state | |---|---|---| | `port/notes-float` (integration) | 0e0e19d19 | open, not in dev; ONE final PR into dev after the full suite | | #1089 plan `port/notes-float-shell` | 00aa99e78 | open, WIP into dev (docs/plans/notes-float-port.md) | | #1100 slice 4 Style sheet `port/notes-float-s4-style` | 9dcdcabb4 | open into `port/notes-float`; waits for its Safari frames (theme switch, Style sheet open) | | 1b dock/switcher WIP `port/notes-float-1b` | 3d9fc2272 | WIP branch, **not merged**, no PR; see §5 | | #1093 slice 1a, #1104 slice 7 fix | c09ee1312, ee22cc673 | closed (merged into the integration branch) | | `port/notes-float-promote`, `-flat` | 9d97fb0ce, 9f4fdfec5 | merged; keep as history | | measurement-only: `port/notes-float-shell-only`, `port/nf-bis-m7/m6/m67`, `-1a`, `-perf`, `-bg-fix` | – | disposable | ## 3. Gate status (kayg: no regression of any size) **Chromium CPU, pooled ×3 sessions** (perf-01, both perf locks, 8 per arm per session, dev2 = same-build control in each, ratios per session), head 0e0e19d19 equivalent (flat 9f4fdfec5), vs dev, mean (95 % CI upper): typing CPU **+0.72 %** (+0.98 %) while the dev2 control reads +0.66 % → new − control ≈ +0.06 %, i.e. at dev · typing script **+2.31 %** (control +0.22 %) · list CPU **−3.08 %** (−1.49 %) · list script **+4.38 %** (+5.44 %; control +1.00 %) · list layout −0.87 % · list recalc −0.89 %. Earlier shell-only head had typing +1.3–1.8 %; cause was the sidebar and list card not promoted (Layerize 2265 → 3302 µs per key on dev vs window; removing `.wside` returned it to dev); `will-change` while typing = layer+layout +2.5 % (was +21 %). **Real Safari (macos-01, blank 60 rAF/s, ABAB one session, median worst frame ms, dev | ours):** idle 24 | 24; list scroll 30.5 | 24–25; zen-in 43.5 | 44.5, zen-out 54.5 | 46 (focus-only promotion; always-on promotion was worse); sidebar hide 56|79 (dev) vs 56|67.5 (ours), show 42|54 vs 53|53.5 → at dev within the Mac's session swing (dev show 42–54, hide 56–79); 200–800 ms outliers occur in EVERY arm including dev (not attributable). 1b switch frames (10 cycles): to-Contacts median worst 95.5 dev | 90.5 ours (over-50: 11 | 12), back to Notes 22.5 | 24. Crisp text, Chromium: sidebar+list region promoted vs not: 0 px differ by >8/255 at 1x and 2x. **Verdict:** typing CPU and list CPU gates MET; script-only residuals open (kayg to decide: typing script +2 %, list script +3.4 % net of control). ## 4. Open - Script-only residuals: typing = CodeMirror `visiblePixelRange`/`getClientRects` per key over the `.wl` ancestor; list script = spread across Svelte reactions (`set_attribute` ~2×, the list's template effect writes `set_class`/`aria-label`/`data-chrome-scroll` on scroll). Idea: guard attribute writes with equality; find why the effect re-runs on scroll in the window layout. Not rows (22 mounted in both), not behind-glass (~7 µs). - Zen-out Safari gap: closed by focus-only promotion in the latest Mac session (46 vs 54.5), but measure again on the final head. - #1100 Safari frames (theme switch, Style sheet open) NOT run. Safari crisp text 1x/2x NOT run (needs the Mac). iPhone-sim GPU check: moot, the window layout is desktop-only until the phone slice, a phone keeps the drawer and no promotion applies. - 1a flaky specs: `window-layout.spec.ts:124` (list handle drag) and `:165` (pieces follow window) and `:73`/`:93`; `tasks-tick` ×3, `swipe-rows:226`, `journal-trash:25` fail on the integration head too (baseline run on 0e0e19d19: 6 failed / 83 passed on those files, chromium-1440). - **Full suite on the integration branch not run** (all projects, one run, before the final PR). - Slices: 1b WIP (below), 2 toolbar, 3/3b, 8 phone, 1c editor first paint: not started. Preview redeploys are the orchestrator's (`notes-float` slot). ## 5. 1b WIP (`port/notes-float-1b` 3d9fc2272, on top of port/notes-float 0e0e19d19) Done: `window/WindowDock.svelte` (account · switcher · search) replaces the Notes sidebar footer (`.me`: avatar, Contacts, Settings), `window/AppSwitch.svelte` (3-icon scroll-snap loop, scroll browses, click switches, hover list button, All Apps menu), `lib/app-list.ts` (built apps from lib/apps), `lib/all-apps.ts`, `App.svelte` effect: a pointer switch to/from Tasks or Contacts fades the new screen in (`swapTabs`), keyboard instant; sidebar width range now 220–400 (`SIDE` in Shell, dock needs 220); specs `app-switch.spec.ts` (5 tests); five old specs that clicked the sidebar Settings button now go through Account → Settings, `contacts-list` uses the switcher icon, `list-search` scoped to the list; dock/hover use `data-instant` (keys-no-motion). Not done: `app-swipe` (sidebar swipe between apps), progressive blur under the dock, the 390 phone check, `notes-float-switch.spec.ts` (frame-by-frame), Mac switch gate beyond the frames above, typing-right-after-switch spec. Last full chromium runs on 63d320c66 (before the final 3 fixes): chromium-1440 607 passed / 19 failed, chromium-390 1037 passed / 16 failed; baseline on 0e0e19d19 for the same files: 1440 6 failed (pre-existing), 390 8 failed (pre-existing). Of the 1b-specific failures I fixed `keys-no-motion` ×4 (`data-instant`) and `list-search:19`; **still failing on 3d9fc2272, to look at:** `app-switch.spec.ts:102` (root attribute `data-ready` is removed and rewritten during a Notes→Contacts switch: check whether dev does this too, then use the plan's holder pattern or relax the spec to the attributes 1b owns), `tasks-card.spec.ts:93` (`.tb` strict mode: the kept-mounted Notes window's `.tb` plus the task card; probably timing of the Notes layer being built, baseline passes), `vim.spec.ts:387` (extra `title: Vim` front matter; unverified if related), `window-layout:124/165` (flaky, see above), 390: swipe-guard ×2, search-palette:47, opacity:126, missing-links:336, tint:313, tasks-tick:72, swipe-rows:627 (not in the 390 baseline list: re-run on 3d9fc2272 alone, then compare with baseline). ## 6. Exact next steps 1. Decide with kayg: accept script-only residuals, or chase them (guard attribute writes, see §4). 2. Finish 1b: re-run the failing specs above on 3d9fc2272 alone (not under load), fix or baseline each; do the `data-ready` question; then PR `port/notes-float-1b` → `port/notes-float` and run its gates (pooled ×3 typing/list unchanged expected; Mac switch frames done above: at dev). 3. Run #1100's Safari frames; merge #1100 into `port/notes-float` (`--no-ff`) when they pass. 4. Slices 2, 3/3b, 8, 1c as in the plan, each with the pooled ×3 gate. 5. One full suite (all Playwright projects, split per project) on the integration branch, then ONE PR `port/notes-float` → dev. 6. Zen-out and toggles: re-run the Mac frames on the final head. ## 7. Harness (copies in `~/Developer/Worktrees/nfa-harness/` on the control host: `control-host/`, `dev-01/`, `perf-01/`, `mac/`; /tmp originals vanish) Hosts: build host `claude@calternal-dev-01-compute02` (worktrees `~/Developer/Worktrees/nf-integ` (detached, currently 3d9fc2272), `nf-bis-m7`, `notes-float-1a`; fixtures/dists in `~/nfa-perf`); perf `claude@calternal-perf-01-backup01` (`~/nfa-perf`: `dist-*`, `fixture`, `calternal` binary, `run3.sh`, `typing-list-cpu.mjs`) and `-perf-02-` (second lock only); Mac `lume@calternal-macos-01-std` (`~/nfa-frames`: `dist-dev`, `dist-1a`, `nfa-frames7.sh/.py`, `seed.py`, `calternal-fix` = Mac binary re-pointed at openssl-3.5.9 because nix GC removed 3.5.8). dev-02 (`~/nfa-prof`) was not reachable at the end under the names I know. Run a pooled session: on control host `ship3f.sh <name>` (edit the branch in it): builds the branch on dev-01 into `~/nfa-perf/dist-<name>`, relays (control-host relay dir, see `/tmp/nfa-relay-dir`) to perf-01, queues `~/bin/perf-turn` with `run3.sh` (arms dev, dev2, new, 8 each, rotating), a watcher (`nfa-second-lock.sh`) takes perf-02's lock only when the driver asks, copies `<name>1..3.json` back; `pool3.py <name>` gives the pooled ratios with CI. Function profile: `typing-profile5.mjs` (dev-01, unminified dists `dist-*-nm`, `SCROLL=1` for list), stage split: `typing-trace-variants.mjs`/`toggle-trace.mjs`/`zen-trace.mjs`, layers: `layer-count.mjs`. Mac frames: stage dist as `~/nfa-frames/dist-1a` (+ `dist-dev`), run `CYCLES=10 ./nfa-frames7.sh > run.log` (takes `/tmp/mac-bench.lock`, aborts if the blank page gives <100 frames), summary in `out/frames.json`. Playwright on dev-01: `CALTERNAL_BIN=$HOME/nfa-perf/calternal ~/bin/slot bunx playwright test --project=<p> --output=$HOME/pw-<x>` inside `nix develop` of the worktree. ## 8. Cleaned up No perf lock, Mac lock, slot, server, systemd unit, safaridriver or Safari of mine is left running (checked on dev-01, perf-01, perf-02, the Mac); a stale `/tmp/nfa-second-release` on perf-02 removed. Worktrees left in place.
Author
Owner

Early full Playwright suite on port/notes-float @ 4f0b58327 (vs dev 796d80cba)

Result: 2 real failures on the branch. Both reproduce (10/10 and 20/20) and dev passes the same tests. Everything else is flaky, or the same on dev. Times are IST (the run went from about 04:00 to 07:00 IST, 14 Nov).

Setup

  • Worktrees ~/Developer/Worktrees/nf-full-4f0 (4f0b58327) and nf-full-dev (796d80cba) on dev-01 (x86) and dev-02 (aarch64). Both built through ~/bin/slot (cargo build -j4 --locked -p calternal + bun install --frozen-lockfile).
  • Each project ran through ~/bin/slot in its own systemd-run unit: CI=1 --retries=0 --workers=1, own --output. dev-01 ran chromium-, contrast and the others; dev-02 ran webkit-, admin, prefs, look, sidebar-band. Throttled ran last, alone.
  • Projects with dependencies ran in "nodeps" mode, using a throwaway ESM config outside the repo with dependencies: []. The first attempt failed on an ESM import error (0 tests); those projects were re-run after the fix.
  • Repeats: --repeat-each=10 --retries=0 --workers=1, through ~/bin/slot, branch then dev.

Per-project counts, first full run (JSON stats)

project host pass fail skip
chromium-1440 dev-01 622 0 663
chromium-390 dev-01 1049 4 results (3 tests) 232
contrast dev-01 10 0 0
chrome-contrast (nodeps) dev-01 16 0 0
flow / passkeys / prefs-chromium dev-01 1 / 1 / 7 0 0
admin-chromium-1440 / -390 dev-01 23 / 21 0 12 / 14
look-chromium-1440 (nodeps) dev-01 4 1 0
look-chromium-390 (nodeps) dev-01 5 0 0
sidebar-band-chromium (nodeps) dev-01 3 0 0
throttled-1440 / throttled-390 dev-01 3 / 4 0 / 1 2 / 0
webkit-1440 dev-02 617 0 668
webkit-390 dev-02 1045 1 239
admin-webkit-1440 / -390 dev-02 20 / 18 0 12 / 14
look-webkit-1440 (nodeps) dev-02 2 2 1
look-webkit-390 / prefs-webkit / sidebar-band-webkit (nodeps) dev-02 4 / 3 / 3 0 1 / 4 / 0

Failure table

test project first run repeat x10, branch 4f0b58327 repeat x10, dev 796d80cba verdict
sheet-geometry.spec.ts:202 "the sheet surface is the shared glass, with no paper laid over it" webkit-390 backdrop fill rgba(24, 22, 20, 0.66), expected 0.48 (line 217) 10/10 fail, same value 10/10 pass REAL (branch only)
backdrop-page.spec.ts:79 "the backdrop is frosted and dimmed by its rows" look-chromium-1440 .surface .backdrop matches 2 elements (a baked copy and the live one) 10/10 fail 10/10 pass REAL (branch only)
backdrop-page.spec.ts:79 and :145 "a drawn backdrop is the real backdrop…" look-webkit-1440 same strict-mode error on .surface .backdrop 20/20 fail (both specs, ×10) 20/20 pass REAL (branch only)
search-palette.spec.ts:47 "the list never shows an empty frame between two keys" chromium-390 expected 0 empty frames, got 3 10/10 pass 10/10 pass flaky, #1113
tint.spec.ts:292 "a swipe tints each block exactly" and :313 "swiping neighbours…" (light and dark) chromium-390 toHaveCount mismatch 120/120 pass 120/120 pass flaky, #1112
note-bars-motion.spec.ts:71 @throttled "rest to Attach menu, and back" throttled-390 main-thread task over the limit 20/20 pass 2/18 fail flaky, same on dev, #1115

The two REAL failures are the only ones that reproduce on the branch alone. They are not stability issues, so no stability issue is opened for them, and they need a fix before the final PR. My guess at the cause: the window layer keeps a second .backdrop in .surface during the baked frost swap, and the phone glass fill alpha changed. I did not dig further, because the brief said no code changes.

Commands

  • Build: ~/bin/slot nix develop -c bash -c 'cargo build -j4 --locked -p calternal && bun install --frozen-lockfile' in each worktree.
  • Project: CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test --project=<p> --retries=0 --workers=1 --reporter=line,json --output=<dir>, wrapped in ~/bin/slot. Nodeps adds -c ~/nf-full/nodeps-<wt>.mjs.
  • Repeat: same, plus --repeat-each=10 e2e/<spec>:<line>.

Cleanup

Worktrees (with target/), my nf-* units and the ~/nf-full scratch dir are removed on both VMs. I did not delete shared /tmp/nix-shell.* dirs, because other lanes' shells use them and I cannot tell mine apart safely.

## Early full Playwright suite on `port/notes-float` @ 4f0b58327 (vs dev 796d80cba) Result: **2 real failures on the branch**. Both reproduce (10/10 and 20/20) and dev passes the same tests. Everything else is flaky, or the same on dev. Times are IST (the run went from about 04:00 to 07:00 IST, 14 Nov). ### Setup - Worktrees `~/Developer/Worktrees/nf-full-4f0` (4f0b58327) and `nf-full-dev` (796d80cba) on dev-01 (x86) and dev-02 (aarch64). Both built through `~/bin/slot` (`cargo build -j4 --locked -p calternal` + `bun install --frozen-lockfile`). - Each project ran through `~/bin/slot` in its own systemd-run unit: `CI=1 --retries=0 --workers=1`, own `--output`. dev-01 ran chromium-*, contrast and the others; dev-02 ran webkit-*, admin, prefs, look, sidebar-band. Throttled ran last, alone. - Projects with dependencies ran in "nodeps" mode, using a throwaway ESM config outside the repo with `dependencies: []`. The first attempt failed on an ESM import error (0 tests); those projects were re-run after the fix. - Repeats: `--repeat-each=10 --retries=0 --workers=1`, through `~/bin/slot`, branch then dev. ### Per-project counts, first full run (JSON `stats`) | project | host | pass | fail | skip | |---|---|---|---|---| | chromium-1440 | dev-01 | 622 | 0 | 663 | | chromium-390 | dev-01 | 1049 | 4 results (3 tests) | 232 | | contrast | dev-01 | 10 | 0 | 0 | | chrome-contrast (nodeps) | dev-01 | 16 | 0 | 0 | | flow / passkeys / prefs-chromium | dev-01 | 1 / 1 / 7 | 0 | 0 | | admin-chromium-1440 / -390 | dev-01 | 23 / 21 | 0 | 12 / 14 | | look-chromium-1440 (nodeps) | dev-01 | 4 | 1 | 0 | | look-chromium-390 (nodeps) | dev-01 | 5 | 0 | 0 | | sidebar-band-chromium (nodeps) | dev-01 | 3 | 0 | 0 | | throttled-1440 / throttled-390 | dev-01 | 3 / 4 | 0 / 1 | 2 / 0 | | webkit-1440 | dev-02 | 617 | 0 | 668 | | webkit-390 | dev-02 | 1045 | 1 | 239 | | admin-webkit-1440 / -390 | dev-02 | 20 / 18 | 0 | 12 / 14 | | look-webkit-1440 (nodeps) | dev-02 | 2 | 2 | 1 | | look-webkit-390 / prefs-webkit / sidebar-band-webkit (nodeps) | dev-02 | 4 / 3 / 3 | 0 | 1 / 4 / 0 | ### Failure table | test | project | first run | repeat x10, branch 4f0b58327 | repeat x10, dev 796d80cba | verdict | |---|---|---|---|---|---| | `sheet-geometry.spec.ts:202` "the sheet surface is the shared glass, with no paper laid over it" | webkit-390 | backdrop fill `rgba(24, 22, 20, 0.66)`, expected `0.48` (line 217) | **10/10 fail**, same value | 10/10 pass | **REAL** (branch only) | | `backdrop-page.spec.ts:79` "the backdrop is frosted and dimmed by its rows" | look-chromium-1440 | `.surface .backdrop` matches 2 elements (a `baked` copy and the live one) | **10/10 fail** | 10/10 pass | **REAL** (branch only) | | `backdrop-page.spec.ts:79` and `:145` "a drawn backdrop is the real backdrop…" | look-webkit-1440 | same strict-mode error on `.surface .backdrop` | **20/20 fail** (both specs, ×10) | 20/20 pass | **REAL** (branch only) | | `search-palette.spec.ts:47` "the list never shows an empty frame between two keys" | chromium-390 | expected 0 empty frames, got 3 | 10/10 pass | 10/10 pass | flaky, #1113 | | `tint.spec.ts:292` "a swipe tints each block exactly" and `:313` "swiping neighbours…" (light and dark) | chromium-390 | `toHaveCount` mismatch | 120/120 pass | 120/120 pass | flaky, #1112 | | `note-bars-motion.spec.ts:71` @throttled "rest to Attach menu, and back" | throttled-390 | main-thread task over the limit | 20/20 pass | **2/18 fail** | flaky, same on dev, #1115 | The two REAL failures are the only ones that reproduce on the branch alone. They are not stability issues, so no stability issue is opened for them, and they need a fix before the final PR. My guess at the cause: the window layer keeps a second `.backdrop` in `.surface` during the baked frost swap, and the phone glass fill alpha changed. I did not dig further, because the brief said no code changes. ### Commands - Build: `~/bin/slot nix develop -c bash -c 'cargo build -j4 --locked -p calternal && bun install --frozen-lockfile'` in each worktree. - Project: `CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test --project=<p> --retries=0 --workers=1 --reporter=line,json --output=<dir>`, wrapped in `~/bin/slot`. Nodeps adds `-c ~/nf-full/nodeps-<wt>.mjs`. - Repeat: same, plus `--repeat-each=10 e2e/<spec>:<line>`. ### Cleanup Worktrees (with `target/`), my `nf-*` units and the `~/nf-full` scratch dir are removed on both VMs. I did not delete shared `/tmp/nix-shell.*` dirs, because other lanes' shells use them and I cannot tell mine apart safely.
Author
Owner

Full Playwright suite on port/notes-float @ 6a3ef2e83 (vs origin/dev 6c50dd99c)

Result: 4 branch-only failures reproduce on the branch and pass on dev (blockers). Two more failures are on dev as well, so they are pre-existing and go to #1087. The rest of the matrix is green.

Setup

  • Head: 6a3ef2e83 (merge #1122, slices 3/3b; contains dev 44fc0b7c4). Dev: origin/dev = 6c50dd99c.
  • Detached worktrees ~/Developer/Worktrees/nfull-6a3 and nfull-dev on dev-01 (x86) and dev-02 (aarch64). Both built through ~/bin/slot (cargo build -j4 --locked -p calternal && bun install --frozen-lockfile), rc 0 on both VMs.
  • Every project ran through ~/bin/slot in its own systemd-run unit: CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal, --retries=0 --workers=1 --reporter=line,json --output=<dir>. dev-01 ran chromium-, contrast, chrome-contrast, flow, passkeys, prefs-chromium, look-chromium-, sidebar-band-chromium, throttled-* (throttled last, alone). dev-02 ran webkit-, admin-webkit-, prefs-webkit, look-webkit-*, sidebar-band-webkit.
  • Projects with dependencies used a throwaway config outside the repo (<scratch>/nodeps.config.mjs, dependencies: []). Admin-* ran with the normal config, so admin-setup ran as its dependency.
  • Repeats: --repeat-each=10 --retries=0 --workers=1, through ~/bin/slot, on the branch and on origin/dev.
  • Times: dev-01 about 20:50 to 22:21 CET (01:20 to 02:51 IST, 15 Nov); dev-02 about 19:55 to 21:33 UTC (01:25 to 03:03 IST).

Per-project counts (first full run, Playwright totals)

project host passed failed skipped
chromium-1440 dev-01 697 2 668
chromium-390 dev-01 1112 2 253
contrast dev-01 8 2 0
chrome-contrast (nodeps) dev-01 16 0 0
flow / passkeys / prefs-chromium (nodeps) dev-01 1 / 1 / 7 0 0
admin-chromium-1440 dev-01 22 1 12
admin-chromium-390 dev-01 21 0 14
look-chromium-1440 / -390 (nodeps) dev-01 5 / 5 0 0
sidebar-band-chromium (nodeps) dev-01 3 0 0
throttled-1440 / -390 (nodeps) dev-01 3 / 5 0 2 / 0
webkit-1440 dev-02 694 0 673
webkit-390 dev-02 1106 1 260
admin-webkit-1440 dev-02 19 1 12
admin-webkit-390 dev-02 18 0 14
prefs-webkit (nodeps, rerun) dev-02 3 0 4
look-webkit-1440 / -390 (nodeps) dev-02 4 / 4 0 1 / 1
sidebar-band-webkit (nodeps) dev-02 3 0 0

Two harness notes. (a) prefs-webkit first failed with http://127.0.0.1:36675/ is already used before any test ran, and passed on rerun. (b) I briefly launched dev-02's chromium lanes by mistake and stopped them at once. Their partial logs are not counted.

Failure table

test project first run repeat x10, branch 6a3ef2e83 repeat x10, origin/dev 6c50dd99c verdict likely slice
admin-sharing.spec.ts:117 "sharing a note shows it to the other person, with a dot, as View only" admin-chromium-1440, admin-webkit-1440 getByRole('img', { name: 'New shares' }) not found (line 135) 10/10 fail (chromium), 10/10 fail (webkit) 11/11 pass (chromium), 11/11 pass (webkit) BLOCKER (branch only) 3b (sidebar tree: the shares dot)
vim-block.spec.ts:23 "the block covers the letter, light" and "…, dark" chromium-1440 expected mode "normal", got undefined 20/20 fail 20/20 pass BLOCKER (branch only) unclear; editor mode attribute missing. Check 1a (window shell) and #1131 (c5147c1c3, 2e326b222) first
contacts-list.spec.ts:83 "the Contacts tab opens the screen from Notes, and the Notes tab goes back" chromium-390, webkit-390 waits 120 s for tab 'Contacts' on the Notes phone screen 10/10 fail (chromium), 10/10 fail (webkit) 10/10 pass (chromium), 10/10 pass (webkit) BLOCKER (branch only) 8 (phone: the switcher replaces the Notes tabs, ae7e670c3)
contrast.spec.ts:66 "text and icons on the glass keep their contrast at every sky hour" contrast getByRole('navigation', { name: 'Places' }).locator('[aria-current="page"]') has 2 matches, expected 1 10/10 fail 10/10 pass BLOCKER (branch only) 3b (the Places nav has two current items)
contrast.spec.ts:268 "the bar's sheets keep their contrast over a photo and over a page of huge words, 1440 wide" contrast Insert sheet "Link to a note" at 1.69 / 2.03 / 1.16 (needs 4.5) 10/10 fail 20/20 pass BLOCKER (branch only) 7 (adaptive contrast) or the bar sheets; not sure, needs a look
pane-transition.spec.ts:431 "pop: the list's bar arrives after the card has mostly left…" chromium-390 "the bar does arrive" false 1/10 fail 9/10 fail pre-existing, flaky on dev, same test none (#1087)

Nothing else failed: no first-run failure that was not repeated. The earlier 4f0b58327 failures (sheet-geometry :202, backdrop-page :79/:145, search-palette, tint, note-bars-motion) did not show up in this run.

Commands

  • Build (each worktree, each VM): ~/bin/slot nix develop -c bash -c 'cargo build -j4 --locked -p calternal && bun install --frozen-lockfile'
  • Project: cd <wt>/apps/web && ~/bin/slot nix develop -c bash -c 'CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test --project=<p> --retries=0 --workers=1 --reporter=line,json --output=<dir>'. Projects with dependencies add -c <scratch>/nodeps.config.mjs.
  • Repeat: same, plus --repeat-each=10 e2e/<spec>:<line>, run on nfull-6a3 and on nfull-dev.

Blockers to look at first

  1. vim-block (chromium-1440, 20/20): mode attribute missing on the editor.
  2. contacts-list 83 (chromium-390 and webkit-390, 10/10): Contacts tab not on the phone Notes screen. Slice 8 appears to remove the tabs there.
  3. admin-sharing 117 (both browsers, 10/10): the "New shares" dot is missing. Slice 3b.
  4. contrast 66 (10/10): two aria-current items in the Places nav. Slice 3b.
  5. contrast 268 (10/10): Insert sheet "Link to a note" fails contrast over a photo and at dawn/night.

No code was changed.

Cleanup

Worktrees (with target/) and my nfull-* units and scratch dirs are removed on both VMs. I did not delete any /tmp/nix-shell.* dirs: the VMs hold many other lanes' shells (fsio, test, dist) and I could not attribute them to my runs without guessing (same call as the earlier run). Left for the orchestrator to sweep.

## Full Playwright suite on `port/notes-float` @ 6a3ef2e83 (vs origin/dev 6c50dd99c) Result: **4 branch-only failures reproduce on the branch and pass on dev** (blockers). Two more failures are on dev as well, so they are pre-existing and go to #1087. The rest of the matrix is green. ### Setup - Head: `6a3ef2e83` (merge #1122, slices 3/3b; contains dev `44fc0b7c4`). Dev: `origin/dev` = `6c50dd99c`. - Detached worktrees `~/Developer/Worktrees/nfull-6a3` and `nfull-dev` on dev-01 (x86) and dev-02 (aarch64). Both built through `~/bin/slot` (`cargo build -j4 --locked -p calternal && bun install --frozen-lockfile`), rc 0 on both VMs. - Every project ran through `~/bin/slot` in its own systemd-run unit: `CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal`, `--retries=0 --workers=1 --reporter=line,json --output=<dir>`. dev-01 ran chromium-*, contrast, chrome-contrast, flow, passkeys, prefs-chromium, look-chromium-*, sidebar-band-chromium, throttled-* (throttled last, alone). dev-02 ran webkit-*, admin-webkit-*, prefs-webkit, look-webkit-*, sidebar-band-webkit. - Projects with dependencies used a throwaway config outside the repo (`<scratch>/nodeps.config.mjs`, `dependencies: []`). Admin-* ran with the normal config, so admin-setup ran as its dependency. - Repeats: `--repeat-each=10 --retries=0 --workers=1`, through `~/bin/slot`, on the branch and on origin/dev. - Times: dev-01 about 20:50 to 22:21 CET (01:20 to 02:51 IST, 15 Nov); dev-02 about 19:55 to 21:33 UTC (01:25 to 03:03 IST). ### Per-project counts (first full run, Playwright totals) | project | host | passed | failed | skipped | |---|---|---|---|---| | chromium-1440 | dev-01 | 697 | 2 | 668 | | chromium-390 | dev-01 | 1112 | 2 | 253 | | contrast | dev-01 | 8 | 2 | 0 | | chrome-contrast (nodeps) | dev-01 | 16 | 0 | 0 | | flow / passkeys / prefs-chromium (nodeps) | dev-01 | 1 / 1 / 7 | 0 | 0 | | admin-chromium-1440 | dev-01 | 22 | 1 | 12 | | admin-chromium-390 | dev-01 | 21 | 0 | 14 | | look-chromium-1440 / -390 (nodeps) | dev-01 | 5 / 5 | 0 | 0 | | sidebar-band-chromium (nodeps) | dev-01 | 3 | 0 | 0 | | throttled-1440 / -390 (nodeps) | dev-01 | 3 / 5 | 0 | 2 / 0 | | webkit-1440 | dev-02 | 694 | 0 | 673 | | webkit-390 | dev-02 | 1106 | 1 | 260 | | admin-webkit-1440 | dev-02 | 19 | 1 | 12 | | admin-webkit-390 | dev-02 | 18 | 0 | 14 | | prefs-webkit (nodeps, rerun) | dev-02 | 3 | 0 | 4 | | look-webkit-1440 / -390 (nodeps) | dev-02 | 4 / 4 | 0 | 1 / 1 | | sidebar-band-webkit (nodeps) | dev-02 | 3 | 0 | 0 | Two harness notes. (a) `prefs-webkit` first failed with `http://127.0.0.1:36675/ is already used` before any test ran, and passed on rerun. (b) I briefly launched dev-02's chromium lanes by mistake and stopped them at once. Their partial logs are not counted. ### Failure table | test | project | first run | repeat x10, branch 6a3ef2e83 | repeat x10, origin/dev 6c50dd99c | verdict | likely slice | |---|---|---|---|---|---|---| | `admin-sharing.spec.ts:117` "sharing a note shows it to the other person, with a dot, as View only" | admin-chromium-1440, admin-webkit-1440 | `getByRole('img', { name: 'New shares' })` not found (line 135) | 10/10 fail (chromium), 10/10 fail (webkit) | 11/11 pass (chromium), 11/11 pass (webkit) | **BLOCKER** (branch only) | 3b (sidebar tree: the shares dot) | | `vim-block.spec.ts:23` "the block covers the letter, light" and "…, dark" | chromium-1440 | expected mode `"normal"`, got `undefined` | 20/20 fail | 20/20 pass | **BLOCKER** (branch only) | unclear; editor mode attribute missing. Check 1a (window shell) and #1131 (`c5147c1c3`, `2e326b222`) first | | `contacts-list.spec.ts:83` "the Contacts tab opens the screen from Notes, and the Notes tab goes back" | chromium-390, webkit-390 | waits 120 s for `tab 'Contacts'` on the Notes phone screen | 10/10 fail (chromium), 10/10 fail (webkit) | 10/10 pass (chromium), 10/10 pass (webkit) | **BLOCKER** (branch only) | 8 (phone: the switcher replaces the Notes tabs, `ae7e670c3`) | | `contrast.spec.ts:66` "text and icons on the glass keep their contrast at every sky hour" | contrast | `getByRole('navigation', { name: 'Places' }).locator('[aria-current="page"]')` has 2 matches, expected 1 | 10/10 fail | 10/10 pass | **BLOCKER** (branch only) | 3b (the Places nav has two current items) | | `contrast.spec.ts:268` "the bar's sheets keep their contrast over a photo and over a page of huge words, 1440 wide" | contrast | Insert sheet "Link to a note" at 1.69 / 2.03 / 1.16 (needs 4.5) | 10/10 fail | 20/20 pass | **BLOCKER** (branch only) | 7 (adaptive contrast) or the bar sheets; not sure, needs a look | | `pane-transition.spec.ts:431` "pop: the list's bar arrives after the card has mostly left…" | chromium-390 | "the bar does arrive" false | 1/10 fail | 9/10 fail | pre-existing, flaky on dev, same test | none (#1087) | Nothing else failed: no first-run failure that was not repeated. The earlier 4f0b58327 failures (`sheet-geometry` `:202`, `backdrop-page` `:79`/`:145`, `search-palette`, `tint`, `note-bars-motion`) did not show up in this run. ### Commands - Build (each worktree, each VM): `~/bin/slot nix develop -c bash -c 'cargo build -j4 --locked -p calternal && bun install --frozen-lockfile'` - Project: `cd <wt>/apps/web && ~/bin/slot nix develop -c bash -c 'CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test --project=<p> --retries=0 --workers=1 --reporter=line,json --output=<dir>'`. Projects with dependencies add `-c <scratch>/nodeps.config.mjs`. - Repeat: same, plus `--repeat-each=10 e2e/<spec>:<line>`, run on `nfull-6a3` and on `nfull-dev`. ### Blockers to look at first 1. `vim-block` (chromium-1440, 20/20): mode attribute missing on the editor. 2. `contacts-list` 83 (chromium-390 and webkit-390, 10/10): Contacts tab not on the phone Notes screen. Slice 8 appears to remove the tabs there. 3. `admin-sharing` 117 (both browsers, 10/10): the "New shares" dot is missing. Slice 3b. 4. `contrast` 66 (10/10): two `aria-current` items in the Places nav. Slice 3b. 5. `contrast` 268 (10/10): Insert sheet "Link to a note" fails contrast over a photo and at dawn/night. No code was changed. ### Cleanup Worktrees (with `target/`) and my `nfull-*` units and scratch dirs are removed on both VMs. I did not delete any `/tmp/nix-shell.*` dirs: the VMs hold many other lanes' shells (fsio, test, dist) and I could not attribute them to my runs without guessing (same call as the earlier run). Left for the orchestrator to sweep.
Author
Owner

Notes Float merged into dev at 02be2b2db (15 Nov). Release checks: full suite with the 5 blockers fixed (#1143, #1144); perf vs dev: typing CPU −3.5%, list CPU −17%, list script −2.95% over 4 sessions (#1150); phone first paint faster than before the trim (#1148); first-paint JS 231.96/240 KB. Next: the daily train on dev (after the guard/size fixes for #1152), then backup + prod deploy. Follow-ups: slice 3c (main-area list view), 1c (editor first paint).

**Notes Float merged into dev at `02be2b2db`** (15 Nov). Release checks: full suite with the 5 blockers fixed (#1143, #1144); perf vs dev: typing CPU −3.5%, list CPU −17%, list script −2.95% over 4 sessions (#1150); phone first paint faster than before the trim (#1148); first-paint JS 231.96/240 KB. Next: the daily train on dev (after the guard/size fixes for #1152), then backup + prod deploy. Follow-ups: slice 3c (main-area list view), 1c (editor first paint).
Author
Owner

Deployed ee50429e7 to prod (calternal.cloud) on 15 Nov, 11:51:39–11:52:01 IST: Notes Float, Tables, Attachments, Tasks write actions, CardDAV crates. Backup backup-pre-ee50429e7-20261115T062142517624889Z.tgz; HTTP 200, version 0.1.0, podman healthy. Tests + perf comparator passed in train #1155; #1156 (module splits + budget lines) re-gated statically.

**Deployed `ee50429e7` to prod** (calternal.cloud) on 15 Nov, 11:51:39–11:52:01 IST: Notes Float, Tables, Attachments, Tasks write actions, CardDAV crates. Backup `backup-pre-ee50429e7-20261115T062142517624889Z.tgz`; HTTP 200, version 0.1.0, podman healthy. Tests + perf comparator passed in train #1155; #1156 (module splits + budget lines) re-gated statically.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#1088
No description provided.