Notes Float slice 2: top-right toolbar with the ✦ slot kept ready #1110

Closed
kayg wants to merge 0 commits from port/notes-float-2-toolbar into port/notes-float
Owner

Notes Float port, slice 2: the top-right toolbar (plan docs/plans/notes-float-port.md, PR #1089).

What changed

  • chrome/PageToolbar.svelte (the one toolbar for the desk and the phone) now has the mockup's before snippet: the slot immediately left of ⋯ (⋯ last), for ✦ when the AI app lands. Nothing passes it, so ✦ is not drawn and the pill is exactly [Share ⋯]. The pill's width already grows by half of w per button, so adding ✦ later needs no layout change.
  • ⋯ keeps a fixed minimum width (36 desk / 46 phone), so a future button sits the same distance from the right edge everywhere.
  • From the mockup: press lights the whole pill (.hl), and hover paints a compositor-only opacity layer clipped to the button (no background-color repaint inside the glass; the "hover band").
  • Reuses Toolbar + Pill (no fork); DeskPills and TopPills still render it, data-desk-pills / data-chrome-pills / .pt / .gb hooks unchanged. Notes only; no ✦, no AI area.
  • New spec e2e/toolbar-slot.spec.ts: one pill, exactly Share + ⋯ (no ✦), buttons touch and fill the pill edge to edge, ⋯ last and not narrower than its minimum, 32/44 px high, full-round, one glass layer.

Evidence in the comments below. Not merged.

Notes Float port, slice 2: the top-right toolbar (plan `docs/plans/notes-float-port.md`, PR #1089). **What changed** - `chrome/PageToolbar.svelte` (the one toolbar for the desk and the phone) now has the mockup's `before` snippet: the slot immediately left of ⋯ (⋯ last), for ✦ when the AI app lands. Nothing passes it, so ✦ is not drawn and the pill is exactly [Share ⋯]. The pill's width already grows by half of `w` per button, so adding ✦ later needs no layout change. - ⋯ keeps a fixed minimum width (36 desk / 46 phone), so a future button sits the same distance from the right edge everywhere. - From the mockup: press lights the whole pill (`.hl`), and hover paints a compositor-only opacity layer clipped to the button (no `background-color` repaint inside the glass; the "hover band"). - Reuses `Toolbar` + `Pill` (no fork); `DeskPills` and `TopPills` still render it, `data-desk-pills` / `data-chrome-pills` / `.pt` / `.gb` hooks unchanged. Notes only; no ✦, no AI area. - New spec `e2e/toolbar-slot.spec.ts`: one pill, exactly Share + ⋯ (no ✦), buttons touch and fill the pill edge to edge, ⋯ last and not narrower than its minimum, 32/44 px high, full-round, one glass layer. Evidence in the comments below. Not merged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
toolbar slot spec: count only the toolbar's buttons, not the Done check
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
f85692c1a1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Screenshots (sample data only)

Real Safari on macos-01 at 1440x900 (product served from this branch's dist, mockup = preview.calternal.cloud/calendar-2), and the iPhone Simulator (own sim, iPhone 18 Pro, iOS 27.0, on std; deleted afterwards).

1440, light (product | mockup)

1440, dark

Toolbar crops (light product | light mockup | dark product | dark mockup)

Phone 390, simulator Safari (light product | light mockup | dark product | dark mockup)

Differences that are not this slice: the mockup shows ✦ (deliberately absent here: kayg's scope), its sky backdrop, the three-pane layout and the glass tint come from slices 1/3 and the glass tokens; the phone is not in Float in this release.

Phone pills look pale in light mode over a plain page. Checked against the base: port/notes-float (4f0b58327) draws the same pale icons in the simulator, so it predates this slice. Base | branch:

## Screenshots (sample data only) Real Safari on macos-01 at 1440x900 (product served from this branch's dist, mockup = preview.calternal.cloud/calendar-2), and the iPhone Simulator (own sim, iPhone 18 Pro, iOS 27.0, on std; deleted afterwards). **1440, light** (product | mockup) ![](https://git.kayg.org/attachments/fc110aee-9c5b-4bc7-8879-db2ef86240a2) ![](https://git.kayg.org/attachments/4f4ac345-29a3-4543-b8db-4ab01b64b86f) **1440, dark** ![](https://git.kayg.org/attachments/91cb8f12-74c0-400b-b539-aa804593f23e) ![](https://git.kayg.org/attachments/a26af91d-6918-4a24-a92c-b71e8b724ca4) **Toolbar crops** (light product | light mockup | dark product | dark mockup) ![](https://git.kayg.org/attachments/c8121730-1023-4f51-a39f-cf4b95a2c74a) ![](https://git.kayg.org/attachments/fde79744-98de-42c0-b80c-5cadc5320e01) ![](https://git.kayg.org/attachments/611c13ed-6fd1-4640-864d-10d7b30acb90) ![](https://git.kayg.org/attachments/d5f4b78f-fc02-498c-bb2c-3241d4e0e865) **Phone 390, simulator Safari** (light product | light mockup | dark product | dark mockup) ![](https://git.kayg.org/attachments/8cf5d5ad-fe3c-4565-a8f7-084fd1ec8109) ![](https://git.kayg.org/attachments/f985db41-df6d-464d-8e6e-945027bc3b32) ![](https://git.kayg.org/attachments/694b4da7-104f-48cc-bc14-0f727eb21bc5) ![](https://git.kayg.org/attachments/7b243a2b-bacc-41f0-8216-ccda9e8fb363) Differences that are not this slice: the mockup shows ✦ (deliberately absent here: kayg's scope), its sky backdrop, the three-pane layout and the glass tint come from slices 1/3 and the glass tokens; the phone is not in Float in this release. **Phone pills look pale in light mode over a plain page.** Checked against the base: `port/notes-float` (4f0b58327) draws the same pale icons in the simulator, so it predates this slice. Base | branch: ![](https://git.kayg.org/attachments/c89ec101-25bd-4cde-a614-27e746302555) ![](https://git.kayg.org/attachments/933f63a9-8960-4808-8d80-a139630cb324)
Author
Owner

Gates (head f85692c1a, base 4f0b58327)

Gate Command / where Result
New + related specs, chromium 1440 + 390 dev-01, lane-spec.sh nf-toolbar <bin from this branch> chromium-1440,chromium-390 toolbar-slot note-pills pill-press pill-room (--workers=1 --retries=0) 48 passed, 11 skipped, 1 failed on the first run: my new spec counted the phone's Done check as a third button. Fixed in f85692c1a (button.gb); rerun of toolbar-slot.spec.ts on both widths: 2 passed
Same, webkit 1440 + 390 dev-02 (first try hit "port 45021 already used" by another lane's run; retried) 49 passed, 11 skipped, 0 failed
svelte-check bun run check in apps/web 0 errors, 19 warnings (all in files this slice does not touch)
vitest bunx vitest run 28 files, 267 tests passed

Bundle gate (node scripts/bundle-size.mjs dist, base vs branch)

base raw / gzip / brotli branch raw / gzip / brotli delta
first-paint JS 802.0 / 268.6 / 228.2 KB 802.2 / 268.7 / 228.3 KB +0.2 KB raw, +0.1 KB gzip, +0.1 KB brotli
first-paint CSS 112.5 / 22.4 / 19.6 KB 113.2 / 22.6 / 19.7 KB +0.7 KB raw, +0.2 KB gzip, +0.1 KB brotli
all JS / all CSS 1653.1 / 288.4 1653.3 / 289.2 +0.2 / +0.8 KB raw

The growth is the ⋯ min-width, the press/hover layers and the before snippet: a few hundred bytes on the wire.

Computed values, real Safari 1440 (product vs mockup, light; dark is the same except tint)

product mockup
pill height / radius / padding 32 px / 999 px / 0 32 px / 999 px / 0
each button 36 x 32, radius 999 px, padding 0 36 x 32, radius 999 px, padding 0
icon size 20 px 20 px
font Google Sans Flex 14 px Google Sans Flex 14 px (dark: "Google Sans Flex Dark")
right edge 1409 px (window 1440) 1409 px
pill width 72 (Share, ⋯) 108 (Share, ✦, ⋯): ✦ absent by scope, +36 per button when it lands
top of pill 31 px 27 px (card position: slice 1)
glass blur 24 px, bg rgba(253,250,245,.42) blur 20 px, bg rgba(252,252,252,.16) (glass tokens, not this slice)
## Gates (head f85692c1a, base 4f0b58327) | Gate | Command / where | Result | |---|---|---| | New + related specs, chromium 1440 + 390 | dev-01, `lane-spec.sh nf-toolbar <bin from this branch> chromium-1440,chromium-390 toolbar-slot note-pills pill-press pill-room` (`--workers=1 --retries=0`) | 48 passed, 11 skipped, 1 failed on the first run: my new spec counted the phone's Done check as a third button. Fixed in f85692c1a (`button.gb`); rerun of `toolbar-slot.spec.ts` on both widths: 2 passed | | Same, webkit 1440 + 390 | dev-02 (first try hit "port 45021 already used" by another lane's run; retried) | 49 passed, 11 skipped, 0 failed | | svelte-check | `bun run check` in apps/web | 0 errors, 19 warnings (all in files this slice does not touch) | | vitest | `bunx vitest run` | 28 files, 267 tests passed | ## Bundle gate (`node scripts/bundle-size.mjs dist`, base vs branch) | | base raw / gzip / brotli | branch raw / gzip / brotli | delta | |---|---|---|---| | first-paint JS | 802.0 / 268.6 / 228.2 KB | 802.2 / 268.7 / 228.3 KB | +0.2 KB raw, +0.1 KB gzip, +0.1 KB brotli | | first-paint CSS | 112.5 / 22.4 / 19.6 KB | 113.2 / 22.6 / 19.7 KB | +0.7 KB raw, +0.2 KB gzip, +0.1 KB brotli | | all JS / all CSS | 1653.1 / 288.4 | 1653.3 / 289.2 | +0.2 / +0.8 KB raw | The growth is the ⋯ min-width, the press/hover layers and the `before` snippet: a few hundred bytes on the wire. ## Computed values, real Safari 1440 (product vs mockup, light; dark is the same except tint) | | product | mockup | |---|---|---| | pill height / radius / padding | 32 px / 999 px / 0 | 32 px / 999 px / 0 | | each button | 36 x 32, radius 999 px, padding 0 | 36 x 32, radius 999 px, padding 0 | | icon size | 20 px | 20 px | | font | Google Sans Flex 14 px | Google Sans Flex 14 px (dark: "Google Sans Flex Dark") | | right edge | 1409 px (window 1440) | 1409 px | | pill width | 72 (Share, ⋯) | 108 (Share, ✦, ⋯): ✦ absent by scope, +36 per button when it lands | | top of pill | 31 px | 27 px (card position: slice 1) | | glass | blur 24 px, bg rgba(253,250,245,.42) | blur 20 px, bg rgba(252,252,252,.16) (glass tokens, not this slice) |
Author
Owner

Pooled typing/list gate (harness ops/orchestrator/harness/notes-float, typing-list-cpu.mjs)

3 sessions x 8 samples per arm = 24 per arm, ABAB-rotated inside each session on perf-01 (both perf locks held by the perf-turn ticket + the perf-02 watcher), CDP ThreadTime at 4x CPU throttle. Arms: dev and dev2 (control) = port/notes-float 4f0b58327 dist, new = this branch's dist (f85692c1a); the same server binary for all arms (no Rust change). Dists staged and sha256-verified (tb d6604a63d5bf203c, base 54c548dbd3f01a9e).

Pooled (n=24):

metric dev dev2 (control) new
typing CPU ms/key 68.1 67.9 (-0.2%) 67.9 (-0.2%)
typing script ms/key 13.5 13.4 (-0.6%) 13.3 (-1.3%)
list CPU ms 2633 2664 (+1.2%) 2710 (+2.9%)
list script ms 183.2 183.2 (0.0%) 185.6 (+1.3%)
list layout ms 79.9 80.8 (+1.1%) 82.1 (+2.8%)
list recalc ms 102.8 105.2 (+2.4%) 105.7 (+2.8%)

Per session list CPU (new vs dev / control vs dev): s1 +6.8% / +1.2%, s2 -0.7% / -0.2%, s3 +2.5% / +2.5%. Typing: flat in every session (-0.4, -0.8, +0.5%).

List CPU: new is +77 ms over dev (SE of the difference about 77 ms, so about 1 sigma) and +46 ms over the control; session 1 carries most of it (the first session after the controls were re-staged) and sessions 2 and 3 are at the control's level. I read it as noise: the slice changes no list code and no list CSS, and typing is flat. I am flagging it rather than calling it clean: if the orchestrator wants it closed, one more session on the list-only path would settle it.

Process notes: a first attempt shared ~/nfa-perf flag files with other lanes' drivers (stale want-second/driver.pid), so I discarded it and redid all three sessions in a private dir ~/nft-perf (symlinks to the staged dists/harness). The first, discarded attempt looked the same (new within control noise).

## Pooled typing/list gate (harness `ops/orchestrator/harness/notes-float`, `typing-list-cpu.mjs`) 3 sessions x 8 samples per arm = 24 per arm, ABAB-rotated inside each session on perf-01 (both perf locks held by the perf-turn ticket + the perf-02 watcher), CDP ThreadTime at 4x CPU throttle. Arms: `dev` and `dev2` (control) = `port/notes-float` 4f0b58327 dist, `new` = this branch's dist (f85692c1a); the same server binary for all arms (no Rust change). Dists staged and sha256-verified (tb d6604a63d5bf203c, base 54c548dbd3f01a9e). Pooled (n=24): | metric | dev | dev2 (control) | new | |---|---|---|---| | typing CPU ms/key | 68.1 | 67.9 (-0.2%) | 67.9 (-0.2%) | | typing script ms/key | 13.5 | 13.4 (-0.6%) | 13.3 (-1.3%) | | list CPU ms | 2633 | 2664 (+1.2%) | 2710 (+2.9%) | | list script ms | 183.2 | 183.2 (0.0%) | 185.6 (+1.3%) | | list layout ms | 79.9 | 80.8 (+1.1%) | 82.1 (+2.8%) | | list recalc ms | 102.8 | 105.2 (+2.4%) | 105.7 (+2.8%) | Per session list CPU (new vs dev / control vs dev): s1 +6.8% / +1.2%, s2 -0.7% / -0.2%, s3 +2.5% / +2.5%. Typing: flat in every session (-0.4, -0.8, +0.5%). List CPU: new is +77 ms over dev (SE of the difference about 77 ms, so about 1 sigma) and +46 ms over the control; session 1 carries most of it (the first session after the controls were re-staged) and sessions 2 and 3 are at the control's level. I read it as noise: the slice changes no list code and no list CSS, and typing is flat. I am flagging it rather than calling it clean: if the orchestrator wants it closed, one more session on the list-only path would settle it. Process notes: a first attempt shared `~/nfa-perf` flag files with other lanes' drivers (stale `want-second`/`driver.pid`), so I discarded it and redid all three sessions in a private dir `~/nft-perf` (symlinks to the staged dists/harness). The first, discarded attempt looked the same (new within control noise).
Author
Owner

Pooled 5-session list CPU (sessions 4 and 5 added)

Same method as before: private dir ~/nft-perf on perf-01, arms dev and dev2 (control) = port/notes-float 4f0b58327 dist, new = this branch (f85692c1a) dist, 8 samples per arm per session, both perf locks held (full-name perf-02 host), one PERF_TURN_FRONT=1 ticket for sessions 4 and 5 together (a 75 s gap between them). 40 samples per arm over 5 sessions. 95% CIs are bootstrap (5000 resamples) of the mean ratio. To remove each session's offset (the machine drifted: dev list CPU is 2719 ms in session 1 and 2404 ms in session 5), every sample is divided by that session's dev mean before pooling.

5 sessions pooled, n=40/arm dev2 vs dev (control) new vs dev new vs dev2
list CPU +1.2% [-1.5, +4.1] +2.7% [-0.5, +6.1] +1.5% [-1.6, +4.6]
list script -0.2% [-2.1, +1.8] +1.4% [-0.6, +3.5] +1.6% [-0.2, +3.4]
typing CPU / key -0.8% [-2.0, +0.4] -0.4% [-1.7, +0.9] +0.4% [-0.8, +1.6]

Raw means (ms): list CPU dev 2550, dev2 2581, new 2620; list script dev 178.5, dev2 178.2, new 180.9.

Sessions 4 and 5 alone (n=16/arm): list CPU new vs dev +2.5% [+0.4, +4.4], dev2 vs dev +1.2% [-0.9, +3.2], new vs dev2 +1.2% [-0.9, +3.3]; list script new vs dev +1.5% [-0.6, +3.3]. Per-session list CPU (dev / dev2 / new): s1 2719 / 2752 / 2903, s2 2611 / 2607 / 2592, s3 2568 / 2633 / 2634, s4 2449 / 2497 / 2504, s5 2404 / 2416 / 2470.

Reading: typing is flat (kayg's main gate). List CPU for the branch sits above dev in four of five sessions, pooled +2.7%; the control also sits +1.2% above dev, and the branch-vs-control difference (+1.5%) has a CI that includes 0. So this run does not show a regression that is distinguishable from the machine's drift, but it does not prove "zero" either, and I will not call it clean. List script is +1.4% / +1.6% with the same shape.

Plausible (unproven) cause, if it is real: the slice adds, per toolbar button, two small composited layers (.hl press highlight and the ::before hover layer), and 0.7 KB of first-paint CSS. These could be dropped without changing what the user sees if the orchestrator prefers the strict reading; that would need one more build and one more ticket, which I have not done.

Notes: an earlier attempt of sessions 4/5 was lost to my own unit's RuntimeMaxSec counting the queue wait (killed mid-run, leaving a stray work-17 symlink to the shared fixture in my private dir, which then made sample 17 of the next attempt fail). I removed the symlink, discarded both partial runs (17 samples each, kept only in ~/nft-perf/partial until cleanup) and reran; the numbers above are the two clean 24-sample reruns. The killed run's server for sample 17 had been writing into the shared ~/nfa-perf/fixture (its system/ now holds auth.db*, admin.sock, invite.key): other lanes copying that fixture should check it.

## Pooled 5-session list CPU (sessions 4 and 5 added) Same method as before: private dir `~/nft-perf` on perf-01, arms `dev` and `dev2` (control) = `port/notes-float` 4f0b58327 dist, `new` = this branch (f85692c1a) dist, 8 samples per arm per session, both perf locks held (full-name perf-02 host), one `PERF_TURN_FRONT=1` ticket for sessions 4 and 5 together (a 75 s gap between them). 40 samples per arm over 5 sessions. 95% CIs are bootstrap (5000 resamples) of the mean ratio. To remove each session's offset (the machine drifted: dev list CPU is 2719 ms in session 1 and 2404 ms in session 5), every sample is divided by that session's `dev` mean before pooling. | 5 sessions pooled, n=40/arm | dev2 vs dev (control) | new vs dev | new vs dev2 | |---|---|---|---| | list CPU | +1.2% [-1.5, +4.1] | **+2.7% [-0.5, +6.1]** | +1.5% [-1.6, +4.6] | | list script | -0.2% [-2.1, +1.8] | +1.4% [-0.6, +3.5] | +1.6% [-0.2, +3.4] | | typing CPU / key | -0.8% [-2.0, +0.4] | -0.4% [-1.7, +0.9] | +0.4% [-0.8, +1.6] | Raw means (ms): list CPU dev 2550, dev2 2581, new 2620; list script dev 178.5, dev2 178.2, new 180.9. Sessions 4 and 5 alone (n=16/arm): list CPU new vs dev +2.5% [+0.4, +4.4], dev2 vs dev +1.2% [-0.9, +3.2], new vs dev2 +1.2% [-0.9, +3.3]; list script new vs dev +1.5% [-0.6, +3.3]. Per-session list CPU (dev / dev2 / new): s1 2719 / 2752 / 2903, s2 2611 / 2607 / 2592, s3 2568 / 2633 / 2634, s4 2449 / 2497 / 2504, s5 2404 / 2416 / 2470. **Reading:** typing is flat (kayg's main gate). List CPU for the branch sits above dev in four of five sessions, pooled +2.7%; the control also sits +1.2% above dev, and the branch-vs-control difference (+1.5%) has a CI that includes 0. So this run does not show a regression that is distinguishable from the machine's drift, but it does not prove "zero" either, and I will not call it clean. List script is +1.4% / +1.6% with the same shape. Plausible (unproven) cause, if it is real: the slice adds, per toolbar button, two small composited layers (`.hl` press highlight and the `::before` hover layer), and 0.7 KB of first-paint CSS. These could be dropped without changing what the user sees if the orchestrator prefers the strict reading; that would need one more build and one more ticket, which I have not done. Notes: an earlier attempt of sessions 4/5 was lost to my own unit's `RuntimeMaxSec` counting the queue wait (killed mid-run, leaving a stray `work-17` symlink to the shared fixture in my private dir, which then made sample 17 of the next attempt fail). I removed the symlink, discarded both partial runs (17 samples each, kept only in `~/nft-perf/partial` until cleanup) and reran; the numbers above are the two clean 24-sample reruns. The killed run's server for sample 17 had been writing into the shared `~/nfa-perf/fixture` (its `system/` now holds `auth.db*`, `admin.sock`, `invite.key`): other lanes copying that fixture should check it.
Author
Owner

Shared perf-01 fixture restored

What I found: ~/nfa-perf/fixture on perf-01 was not the seed any more. Against the source (fixture.tar, sha256 c2dca53f967104688cec97ad13ce8ce80909a5302e1be96168c5fbab57a7cf94, identical on dev-01 and perf-01) it carried runtime files from servers that had been run directly on it: system/ (auth.db*, admin.sock, invite.key), .lock, .calternal-install-id, index.db*, notes/history.db*, notes/meta.db*, notes/ids.jsonl, notes/scan-state.tsv, and two extra daily notes Notes/2026-11-13.md, 2026-11-14.md. Part of it predates the killed server (the dirt is dated from 12 Nov 13:03), so the killed work-17 run was not the only writer.

What I changed (only inside ~/nfa-perf, nothing else there touched):

  1. Checked no process was using the fixture.
  2. Extracted ~/nfa-perf/fixture.tar into a temp dir and verified it against the extraction of the dev-01 source copy: file list and sha256 of all 3001 files identical.
  3. mv fixture fixture.dirty-1114 (kept, 69 MB, delete it when you no longer need it), then moved the clean copy into place as fixture.
  4. Re-ran the sha256 over the live ~/nfa-perf/fixture: identical to the dev-01 source (3001 files); it now holds only fixture.json and users/.

dev-01's ~/nfa-perf/fixture has the same kind of runtime files (its system/ was written 14 Nov 04:17); I did not touch it.

## Shared perf-01 fixture restored What I found: `~/nfa-perf/fixture` on perf-01 was not the seed any more. Against the source (`fixture.tar`, sha256 c2dca53f967104688cec97ad13ce8ce80909a5302e1be96168c5fbab57a7cf94, identical on dev-01 and perf-01) it carried runtime files from servers that had been run directly on it: `system/` (`auth.db*`, `admin.sock`, `invite.key`), `.lock`, `.calternal-install-id`, `index.db*`, `notes/history.db*`, `notes/meta.db*`, `notes/ids.jsonl`, `notes/scan-state.tsv`, and two extra daily notes `Notes/2026-11-13.md`, `2026-11-14.md`. Part of it predates the killed server (the dirt is dated from 12 Nov 13:03), so the killed `work-17` run was not the only writer. What I changed (only inside `~/nfa-perf`, nothing else there touched): 1. Checked no process was using the fixture. 2. Extracted `~/nfa-perf/fixture.tar` into a temp dir and verified it against the extraction of the dev-01 source copy: file list and sha256 of all 3001 files identical. 3. `mv fixture fixture.dirty-1114` (kept, 69 MB, delete it when you no longer need it), then moved the clean copy into place as `fixture`. 4. Re-ran the sha256 over the live `~/nfa-perf/fixture`: identical to the dev-01 source (3001 files); it now holds only `fixture.json` and `users/`. dev-01's `~/nfa-perf/fixture` has the same kind of runtime files (its `system/` was written 14 Nov 04:17); I did not touch it.
Author
Owner

Correction on the fixture restore (perf-01)

My first restore was wrong: fixture.tar is only the generated Home. The perf runs need it paired (system/auth.db, .calternal-install-id, .lock), which serve refuses without ("storage pairing is missing"). A run using the bare tar copy died at once (my own ab1 run, "fixture server exited"). For about 4 minutes (05:57 to 06:01 CET on 14 Nov) ~/nfa-perf/fixture on perf-01 was that unpaired copy: any lane that copied it in that window failed at startup (the nf1bp-1107-vs1b turn started in it; please check its first sample). At 06:01 CET I put the old state back, so nothing was left broken, then rebuilt it properly:

  1. Fresh copy of the source tar, then the harness's own bootstrap (same steps as perf/fixture-server.sh: calternal user create perf-bootstrap, storage re-pair --confirm-re-pair, then one serve --create start and a graceful stop to create system/, markers and indexes).
  2. Smoke: copied it with the harness's fs.cpSync, started serve --create on the copy, health OK.
  3. Swapped into place: ~/nfa-perf/fixture is now this paired copy (39 MB). Notes content is byte-identical to the source tar (sha256 of every note matches) except what a server start itself adds: today's daily note 2026-11-14.md and yesterday's moved to Trash/day-2026-11-13.*.
  4. The previous (runtime-written) state is kept as ~/nfa-perf/fixture.dirty-1114 (69 MB, delete when you no longer need it) and the bare seed as fixture.tar-only-1114. Nothing else in ~/nfa-perf was touched; fixture.tar is unchanged (sha256 c2dca53f…).

Because every server start adds a daily note and the old fixture carried several runs' worth of that, the new fixture is slightly smaller than the old one; lanes comparing against their old numbers should re-baseline with a dev control (my ablation turn does).

## Correction on the fixture restore (perf-01) My first restore was wrong: `fixture.tar` is only the generated Home. The perf runs need it **paired** (`system/auth.db`, `.calternal-install-id`, `.lock`), which `serve` refuses without ("storage pairing is missing"). A run using the bare tar copy died at once (my own ab1 run, "fixture server exited"). For about 4 minutes (05:57 to 06:01 CET on 14 Nov) `~/nfa-perf/fixture` on perf-01 was that unpaired copy: any lane that copied it in that window failed at startup (the `nf1bp-1107-vs1b` turn started in it; please check its first sample). At 06:01 CET I put the old state back, so nothing was left broken, then rebuilt it properly: 1. Fresh copy of the source tar, then the harness's own bootstrap (same steps as `perf/fixture-server.sh`: `calternal user create perf-bootstrap`, `storage re-pair --confirm-re-pair`, then one `serve --create` start and a graceful stop to create `system/`, markers and indexes). 2. Smoke: copied it with the harness's `fs.cpSync`, started `serve --create` on the copy, health OK. 3. Swapped into place: `~/nfa-perf/fixture` is now this paired copy (39 MB). Notes content is byte-identical to the source tar (sha256 of every note matches) except what a server start itself adds: today's daily note `2026-11-14.md` and yesterday's moved to `Trash/day-2026-11-13.*`. 4. The previous (runtime-written) state is kept as `~/nfa-perf/fixture.dirty-1114` (69 MB, delete when you no longer need it) and the bare seed as `fixture.tar-only-1114`. Nothing else in `~/nfa-perf` was touched; `fixture.tar` is unchanged (sha256 c2dca53f…). Because every server start adds a daily note and the old fixture carried several runs' worth of that, the new fixture is slightly smaller than the old one; lanes comparing against their old numbers should re-baseline with a dev control (my ablation turn does).
Author
Owner

Fixture: root cause found, restored again (perf-01), my earlier perf sessions are affected

Root cause (mine). In my private perf dir I made ~/nft-perf/fixture a symlink to ~/nfa-perf/fixture. The harness copies it per sample with fs.cpSync(fixture, work-N, {recursive}), and for a symlink source Node copies the link, so every work-N was a symlink to the shared fixture and each sample's server ran directly on it. That is what wrote system/, indexes, daily notes and the history db into the shared fixture, and what made sample 17 fail with "src and dest cannot be the same" earlier. The shared dir is a real directory for the lanes that copy it from ~/nfa-perf, so this only bit my private-dir runs.

Answers to the watch questions

  1. Restored at ~06:04 CET: from ~/nfa-perf/fixture.tar (sha256 c2dca53f967104688cec97ad13ce8ce80909a5302e1be96168c5fbab57a7cf94, identical on dev-01 and perf-01): extracted fresh, then the harness bootstrap (user create perf-bootstrap, storage re-pair --confirm-re-pair, one serve --create start and graceful stop), smoke-tested on a cp -a copy, swapped in. That copy was then written to by my ablation turn (via the symlink) until 07:33 CET.
  2. Did my runs since then serve from the shared fixture? Yes: the ablation turn (nft-ab, samples 0 to 6 of its first session, killed at 07:33 CET, no data kept) did. So did all my earlier private-dir sessions on 14 Nov (the pooled 5 sessions posted above and the discarded partial runs): their samples ran on one shared, slowly changing fixture. Dev, control and branch arms were interleaved on it so the comparison is symmetric, but it was not the intended clean per-sample copy, and I now treat those numbers as unreliable; the ablation turn will replace them.
  3. Fixed now (07:45 CET): stopped my turn and watchers, released perf-02, checked no server was running on the fixture, and rebuilt the fixture again with the same procedure from the pristine tar. The write-polluted copy is kept as ~/nfa-perf/fixture.dirty2-1114 (44 MB), the earlier ones as fixture.dirty-1114 and fixture.tar-only-1114 (delete when no longer needed). Nothing else in ~/nfa-perf was touched.

Final fixture (~/nfa-perf/fixture, 39,496 KB, 3016 files, 3024 entries). sha256 of every file from the tar is identical to the tar's (Notes, Trash, fixture.json: 3001 files, none missing, none extra, none changed). The 15 added files are what pairing and one server start create: .calternal-install-id, .lock, system/auth.db{,-shm,-wal}, system/invite.key, users/<uuid>/index.db{,-shm,-wal}, notes/history.db{,-shm,-wal}, notes/meta.db, notes/ids.jsonl, notes/scan-state.tsv. No daily note and no Trash entries were added this time (the first rebuild had both). Versus dev-01's ~/nfa-perf/fixture (49,128 KB, still runtime-written by earlier runs, not touched): it has two extra files, Notes/2026-11-13.md and the dir listing; every other path is the same. If you want dev-01's copy made clean too, say so.

I am re-running the ablation turn with the private copy being a real directory (cp -a, no symlink) and a before/after sha check of the shared fixture around my turn.

## Fixture: root cause found, restored again (perf-01), my earlier perf sessions are affected **Root cause (mine).** In my private perf dir I made `~/nft-perf/fixture` a **symlink** to `~/nfa-perf/fixture`. The harness copies it per sample with `fs.cpSync(fixture, work-N, {recursive})`, and for a symlink source Node copies the *link*, so every `work-N` was a symlink to the shared fixture and each sample's server ran directly on it. That is what wrote `system/`, indexes, daily notes and the history db into the shared fixture, and what made sample 17 fail with "src and dest cannot be the same" earlier. The shared dir is a real directory for the lanes that copy it from `~/nfa-perf`, so this only bit my private-dir runs. **Answers to the watch questions** 1. *Restored at ~06:04 CET:* from `~/nfa-perf/fixture.tar` (sha256 c2dca53f967104688cec97ad13ce8ce80909a5302e1be96168c5fbab57a7cf94, identical on dev-01 and perf-01): extracted fresh, then the harness bootstrap (`user create perf-bootstrap`, `storage re-pair --confirm-re-pair`, one `serve --create` start and graceful stop), smoke-tested on a `cp -a` copy, swapped in. That copy was then written to by my ablation turn (via the symlink) until 07:33 CET. 2. *Did my runs since then serve from the shared fixture?* Yes: the ablation turn (`nft-ab`, samples 0 to 6 of its first session, killed at 07:33 CET, no data kept) did. So did all my earlier private-dir sessions on 14 Nov (the pooled 5 sessions posted above and the discarded partial runs): their samples ran on one shared, slowly changing fixture. Dev, control and branch arms were interleaved on it so the comparison is symmetric, but it was not the intended clean per-sample copy, and I now treat those numbers as **unreliable**; the ablation turn will replace them. 3. *Fixed now (07:45 CET):* stopped my turn and watchers, released perf-02, checked no server was running on the fixture, and rebuilt the fixture again with the same procedure from the pristine tar. The write-polluted copy is kept as `~/nfa-perf/fixture.dirty2-1114` (44 MB), the earlier ones as `fixture.dirty-1114` and `fixture.tar-only-1114` (delete when no longer needed). Nothing else in `~/nfa-perf` was touched. **Final fixture (`~/nfa-perf/fixture`, 39,496 KB, 3016 files, 3024 entries).** sha256 of every file from the tar is identical to the tar's (Notes, Trash, fixture.json: 3001 files, none missing, none extra, none changed). The 15 added files are what pairing and one server start create: `.calternal-install-id`, `.lock`, `system/auth.db{,-shm,-wal}`, `system/invite.key`, `users/<uuid>/index.db{,-shm,-wal}`, `notes/history.db{,-shm,-wal}`, `notes/meta.db`, `notes/ids.jsonl`, `notes/scan-state.tsv`. No daily note and no Trash entries were added this time (the first rebuild had both). Versus dev-01's `~/nfa-perf/fixture` (49,128 KB, still runtime-written by earlier runs, not touched): it has two extra files, `Notes/2026-11-13.md` and the dir listing; every other path is the same. If you want dev-01's copy made clean too, say so. I am re-running the ablation turn with the private copy being a real directory (`cp -a`, no symlink) and a before/after sha check of the shared fixture around my turn.
Author
Owner

Ablation turn (clean per-sample fixture): the layers are not the cause, the earlier +2.7% was my fixture bug

One FRONT ticket on perf-01 (limit set inside the turn, not on the queue wait), two sessions (ab1, ab2), 8 samples per arm per session, five arms interleaved and rotated: dev and dev2 (control) = port/notes-float 4f0b58327; full = this branch f85692c1a; abl = branch without the .hl / ::before layers; lazy = press/hover layers created only on :active / :hover (no permanent layer, no will-change; commit 173be2c93 on a throw-away branch). Dists sha256-checked on both ends (full d6604a63d5bf203c, base 54c548dbd3f01a9e, abl 1c597bbfc1267921, lazy b4278742543666e8). Both perf locks held (full perf-02 host name). Every sample ran on its own real cp -a copy of the fixture (checked: the work-N are real directories); the shared fixture's sha256 over all files is identical before and after my turn. Ratios are per-session normalised to that session's dev mean, 95% bootstrap CIs.

Infraternal window: infra benchmarks ran on backup01 about 06:15 to 07:30 UTC. ab1 ran 07:05 to 07:31 UTC, i.e. inside the window: suspect. ab2 ran 07:32 to 07:58 UTC, just after it. Spread of the same-build pair in the session: dev vs dev2 list CPU +2.5% in ab1 (CI -0.6, +6.0) and -0.5% in ab2; dev's own sd was 110 ms (3.5%) in ab1 and 164 ms (5.2%) in ab2.

list CPU vs dev dev2 (control) full (branch) abl lazy
ab2 only (after the window, n=8) -0.5% [-4.4, +3.7] -0.9% [-4.7, +2.9] +0.8% [-3.1, +4.8] +1.1% [-3.3, +5.8]
ab1 only (inside the window, suspect) +2.5% [-0.6, +6.0] +0.2% [-3.2, +3.8] +4.8% [+1.1, +8.6] +3.5% [+0.4, +6.9]
both pooled (n=16) +1.0% [-1.7, +3.9] -0.4% [-3.0, +2.3] +2.8% [+0.1, +5.8] +2.3% [-0.5, +5.4]

List script (pooled): dev2 -1.2%, full -0.5% [-2.5, +1.4], abl +0.9%, lazy +1.2%. Typing CPU/key (pooled): dev2 -0.3%, full -0.2% [-0.8, +0.5], abl -0.0%, lazy +0.4% [-0.3, +1.0]; typing is 60.7 to 61.4 ms/key for every arm in both sessions.

Verdict. On a clean fixture the branch as pushed (full) is at the control's level for list CPU (-0.4% pooled, -0.9% in the clean-window session) and flat for typing. Removing the layers did not bring list CPU down (it came out higher, +2.8%, though inside the noise), and the lazy version did not either, so the permanent press/hover layers are not the cause and I am keeping them as pushed (mockup look unchanged). The +2.7% I posted earlier came from runs that all served from one shared, changing fixture (see the previous comment); I withdraw that number. The verdict does not hinge on ab1: ab2 alone gives the same answer, but it is only n=8 per arm (CIs about +/-4%); a later extra session would tighten it if you want a smaller interval.

The throw-away branches nft-abl-measure and nft-lazy-measure are deleted; nothing from them is in the PR.

## Ablation turn (clean per-sample fixture): the layers are not the cause, the earlier +2.7% was my fixture bug One FRONT ticket on perf-01 (limit set inside the turn, not on the queue wait), two sessions (`ab1`, `ab2`), 8 samples per arm per session, five arms interleaved and rotated: `dev` and `dev2` (control) = `port/notes-float` 4f0b58327; `full` = this branch f85692c1a; `abl` = branch without the `.hl` / `::before` layers; `lazy` = press/hover layers created only on `:active` / `:hover` (no permanent layer, no will-change; commit 173be2c93 on a throw-away branch). Dists sha256-checked on both ends (full d6604a63d5bf203c, base 54c548dbd3f01a9e, abl 1c597bbfc1267921, lazy b4278742543666e8). Both perf locks held (full perf-02 host name). **Every sample ran on its own real `cp -a` copy of the fixture (checked: the `work-N` are real directories); the shared fixture's sha256 over all files is identical before and after my turn.** Ratios are per-session normalised to that session's `dev` mean, 95% bootstrap CIs. Infraternal window: infra benchmarks ran on backup01 about 06:15 to 07:30 UTC. `ab1` ran 07:05 to 07:31 UTC, i.e. **inside the window: suspect**. `ab2` ran 07:32 to 07:58 UTC, just after it. Spread of the same-build pair in the session: dev vs dev2 list CPU +2.5% in `ab1` (CI -0.6, +6.0) and -0.5% in `ab2`; dev's own sd was 110 ms (3.5%) in `ab1` and 164 ms (5.2%) in `ab2`. | list CPU vs dev | dev2 (control) | **full (branch)** | abl | lazy | |---|---|---|---|---| | `ab2` only (after the window, n=8) | -0.5% [-4.4, +3.7] | **-0.9% [-4.7, +2.9]** | +0.8% [-3.1, +4.8] | +1.1% [-3.3, +5.8] | | `ab1` only (inside the window, suspect) | +2.5% [-0.6, +6.0] | +0.2% [-3.2, +3.8] | +4.8% [+1.1, +8.6] | +3.5% [+0.4, +6.9] | | both pooled (n=16) | +1.0% [-1.7, +3.9] | **-0.4% [-3.0, +2.3]** | +2.8% [+0.1, +5.8] | +2.3% [-0.5, +5.4] | List script (pooled): dev2 -1.2%, full -0.5% [-2.5, +1.4], abl +0.9%, lazy +1.2%. Typing CPU/key (pooled): dev2 -0.3%, full -0.2% [-0.8, +0.5], abl -0.0%, lazy +0.4% [-0.3, +1.0]; typing is 60.7 to 61.4 ms/key for every arm in both sessions. **Verdict.** On a clean fixture the branch as pushed (`full`) is at the control's level for list CPU (-0.4% pooled, -0.9% in the clean-window session) and flat for typing. Removing the layers did not bring list CPU down (it came out higher, +2.8%, though inside the noise), and the lazy version did not either, so the permanent press/hover layers are **not** the cause and I am keeping them as pushed (mockup look unchanged). The +2.7% I posted earlier came from runs that all served from one shared, changing fixture (see the previous comment); I withdraw that number. The verdict does not hinge on `ab1`: `ab2` alone gives the same answer, but it is only n=8 per arm (CIs about +/-4%); a later extra session would tighten it if you want a smaller interval. The throw-away branches `nft-abl-measure` and `nft-lazy-measure` are deleted; nothing from them is in the PR.
Author
Owner

Merged into port/notes-float with --no-ff at ff3b43cfc by the orchestrator. List CPU at dev on the clean fixture (-0.4% [-3.0, +2.3]); typing flat. The final pooled gate on the integration head re-checks everything on a clean fixture before the dev merge. Closing.

Merged into `port/notes-float` with `--no-ff` at `ff3b43cfc` by the orchestrator. List CPU at dev on the clean fixture (-0.4% [-3.0, +2.3]); typing flat. The final pooled gate on the integration head re-checks everything on a clean fixture before the dev merge. Closing.
kayg closed this pull request 2026-11-14 07:59:41 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
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!1110
No description provided.