perf: trim round 1 (11-11): first-paint JS 222.73 -> 222.24 KB, budgets lowered #1083

Closed
kayg wants to merge 0 commits from perf/trim-round-1 into dev
Owner

Trim round 1 (11-11): periodic bundle trimming that changes no behaviour and no visuals. Base: dev 1a14e9f10.

Before / after (brotli, perf/web.sh --bundle-only, built on dev-02)

dev 1a14e9f10 this PR Δ
first-paint JS 222.73 KB (783.96 raw) 222.24 KB (782.46 raw) −0.49 KB
first-paint CSS 18.42 KB (104.95 raw) 18.42 KB 0
all JS (every chunk) 489.86 KB 489.62 KB −0.24 KB
sum of chunk budgets lines 540.15 539.66 −0.49

The moved code lands in idle-screens (54.30 → 54.84 KB, inside its 56.7 line); total JS falls by less than first paint because the new chunk boundary compresses a little worse.

What changed (3 commits)

  1. unsentChanges (+ storedPendingIds) out of wipe.ts into lib/unsent.ts. Only the Settings sign-out row calls it; Settings is lazy. No state of its own, so nothing about when or how it runs changes. wipe.ts exports existingMeta for it; the freeze/heartbeat/wipe code is untouched.
  2. Settings' option labels (OPTIONS) out of variants.svelte.ts into lib/variant-options.ts; variants.svelte.ts imports them for the type only.
  3. perf/budgets.json: chunk.index 222.76 → 222.27 (measured 222.24 + 0.03 jitter), total kept equal to the sum of the chunk lines. "trim round 1 (11-11)". first_js_brotli (240) is kayg's line and is not touched.

What the round found (the honest part)

The first paint is already close to its floor without behaviour changes. About 335 KB raw of the 784 KB entry is CodeMirror and Yjs, which first paint needs and which cannot be split. A Chromium coverage probe (boot, open a note, type, switch notes) of the entry chunk shows ~409 KB raw never ran, but ~300 KB of that is library code, and the first-party remainder is scattered branches (error recovery, format handlers, phone-only code), not a lazy-able block.

Candidates, brotli estimate (raw × 0.28 unless measured) and risk:

candidate saves risk status
Phone layout (PhoneStack + TopPills + PhoneFoot + headings) as its own lazy chunk measured: desktop −5.84 KB JS and −2.01 KB CSS first paint; phones +3.7 KB JS total (shared panes + plugins chunks appear) and one extra sequential request medium: changes the phone startup path not landed. Needs kayg's decision (desktop −7.9 KB vs phone +3.2 KB and one request). Branch perf/trim-candidate-phonestack has it, built and measured
propertyReadSideEffects:false in rolldown measured −0.45 KB low-medium (getter side effects) not landed
maxIterations for the oxc compressor measured 0 KB none no gain
sign-out freeze/forget code in wipe.ts ~1.2 KB medium-high (safety-critical, shared mutable state) not landed
note.ts recover() ~0.9 KB high (sync core) not landed
editing.svelte.ts block ops/format commands ~2.2 KB high (typing path, must be sync) not landed
daily/log.ts + command.ts ~0.9 KB medium (typing path) not landed
photo-backdrop helpers (soft-picture, glass-edge, backdrop-art) ~1.4 KB medium (photo users would wait for a chunk) not landed
keyChips (tooltip.ts) ~0.04 KB none not worth a commit
icon tables — — already trimmed in #912, guarded by icons.test.ts
first-paint CSS — — no dead classes in the global sheets (14 "unmentioned" names are built dynamically); the ~60% of rules that did not match in the probe are hover, reduced-motion, phone, tag, task and link states
duplicated helpers, polyfills, locale tables — — none found (no duplicate packages in the entry; es2022 target; Intl only)

Gates

Evidence is posted in the comments below as each gate finishes.

🤖 Generated with Claude Code

Trim round 1 (11-11): periodic bundle trimming that changes no behaviour and no visuals. Base: `dev` 1a14e9f10. ## Before / after (brotli, `perf/web.sh --bundle-only`, built on dev-02) | | dev 1a14e9f10 | this PR | Δ | |---|---:|---:|---:| | first-paint JS | 222.73 KB (783.96 raw) | **222.24 KB** (782.46 raw) | **−0.49 KB** | | first-paint CSS | 18.42 KB (104.95 raw) | 18.42 KB | 0 | | all JS (every chunk) | 489.86 KB | 489.62 KB | −0.24 KB | | sum of chunk budgets lines | 540.15 | 539.66 | −0.49 | The moved code lands in `idle-screens` (54.30 → 54.84 KB, inside its 56.7 line); total JS falls by less than first paint because the new chunk boundary compresses a little worse. ## What changed (3 commits) 1. `unsentChanges` (+ `storedPendingIds`) out of `wipe.ts` into `lib/unsent.ts`. Only the Settings sign-out row calls it; Settings is lazy. No state of its own, so nothing about when or how it runs changes. `wipe.ts` exports `existingMeta` for it; the freeze/heartbeat/wipe code is untouched. 2. Settings' option labels (`OPTIONS`) out of `variants.svelte.ts` into `lib/variant-options.ts`; `variants.svelte.ts` imports them for the type only. 3. `perf/budgets.json`: `chunk.index` 222.76 → 222.27 (measured 222.24 + 0.03 jitter), total kept equal to the sum of the chunk lines. "trim round 1 (11-11)". `first_js_brotli` (240) is kayg's line and is not touched. ## What the round found (the honest part) The first paint is already close to its floor without behaviour changes. About 335 KB raw of the 784 KB entry is CodeMirror and Yjs, which first paint needs and which cannot be split. A Chromium coverage probe (boot, open a note, type, switch notes) of the entry chunk shows ~409 KB raw never ran, but ~300 KB of that is library code, and the first-party remainder is scattered branches (error recovery, format handlers, phone-only code), not a lazy-able block. Candidates, brotli estimate (raw × 0.28 unless measured) and risk: | candidate | saves | risk | status | |---|---:|---|---| | Phone layout (PhoneStack + TopPills + PhoneFoot + headings) as its own lazy chunk | **measured:** desktop −5.84 KB JS and −2.01 KB CSS first paint; phones +3.7 KB JS total (shared `panes` + `plugins` chunks appear) and one extra sequential request | medium: changes the phone startup path | **not landed.** Needs kayg's decision (desktop −7.9 KB vs phone +3.2 KB and one request). Branch `perf/trim-candidate-phonestack` has it, built and measured | | `propertyReadSideEffects:false` in rolldown | measured −0.45 KB | low-medium (getter side effects) | not landed | | `maxIterations` for the oxc compressor | measured 0 KB | none | no gain | | sign-out freeze/forget code in `wipe.ts` | ~1.2 KB | medium-high (safety-critical, shared mutable state) | not landed | | `note.ts` `recover()` | ~0.9 KB | high (sync core) | not landed | | `editing.svelte.ts` block ops/format commands | ~2.2 KB | high (typing path, must be sync) | not landed | | `daily/log.ts` + `command.ts` | ~0.9 KB | medium (typing path) | not landed | | photo-backdrop helpers (`soft-picture`, `glass-edge`, `backdrop-art`) | ~1.4 KB | medium (photo users would wait for a chunk) | not landed | | `keyChips` (tooltip.ts) | ~0.04 KB | none | not worth a commit | | icon tables | — | — | already trimmed in #912, guarded by `icons.test.ts` | | first-paint CSS | — | — | no dead classes in the global sheets (14 "unmentioned" names are built dynamically); the ~60% of rules that did not match in the probe are hover, reduced-motion, phone, tag, task and link states | | duplicated helpers, polyfills, locale tables | — | — | none found (no duplicate packages in the entry; es2022 target; `Intl` only) | ## Gates Evidence is posted in the comments below as each gate finishes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Only the Settings sign-out row asks whether anything is unsent, and Settings is a
lazy screen, but the check lived in wipe.ts, which every page load imports. It has
no state of its own, so it moves as it is; wipe.ts exports existingMeta for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The (value, label) tables are read only by the lazy Settings screen. They now live
in variant-options.ts, which variants.svelte.ts imports for its type only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
perf: lower the index chunk budget to the trimmed first paint (trim round 1 (11-11))
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
0d35071ca7
index 222.76 -> 222.27 KB brotli (measured 222.24 + 0.03 jitter); the total stays the
sum of the chunk lines (540.15 -> 539.66). first_js_brotli (240) is not touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Perf gate: ABAB on perf-02, dev/dev control (~/bin/perf-turn, locks released)

Chromium, CPU slowed 4x, 10k Home, calternal release of dev (31972329b server, no Rust change since). Cases devA / trim / devB, 6 rounds, order rotated each round, one run at a time. dev = 1a14e9f10 dist, trim = a814ef630 dist (this PR's web code; head 0d35071ca differs only by perf/budgets.json). Specs: typing.perf.ts, blaze.perf.ts, boot.perf.ts plus a throwaway first-interaction probe (not committed). Median of per-run p50 across 6 runs; "dev/dev spread" is |devA−devB| / mean, the noise floor.

Typing CPU (per key, ms): long note 28.2 / 27.6 dev vs 27.7 trim (−0.7%, spread 2.2%); nested list 51.2 / 50.9 vs 51.6 (+1.0%, spread 0.5%); code prose 32.6 / 32.8 vs 32.7; code block 29.8 / 29.6 vs 29.8. Typing latency p50 within ±2%.
List CPU (blaze, switching notes): cpu 72.5 / 72.3 vs 72.8 (+0.5%, spread 0.3%); live 88.5 vs 87.5; shown 35.3/35.5 vs 36.6; requests 51 vs 48.
Boot (cold/warm): cold FCP 802/800 vs 784; cold note 1040/1030 vs 1020; cold CPU 1570 vs 1550; warm note 495/496 vs 503 (+1.5%, outside the 0.2% spread but 8 ms; warm list +1.2%).
First interaction of the moved pieces (4x CPU): Settings open (tap to Sign out visible) 21.9 / 22.1 vs 22.4 ms (+1.6%); Sign out click to next state (the path that calls the moved unsentChanges, wall clock from Node) 462 / 452 vs 464 ms.

Named, not hidden: blaze.heap_growth median 2.81/2.83 dev vs 3.17 trim (+12%). Per run it is dev 2.69–3.30, trim 2.63–3.42, so the ranges overlap (6 runs each); I read it as noise, not a regression. boot.warm_note +1.5% and warm_list +1.2% are the only other positive deltas outside the dev/dev spread; boot cold numbers are all slightly better. No typing, list or first-interaction metric regressed beyond the dev/dev spread.

Full table
metric | devA p50 | devB p50 | trim p50 | trim vs mean(dev) | n runs | trim p95 vs dev p95
web.chromium.blaze.back_missed | 1 | 1 | 1 | +0.0% (dev/dev spread 0.0%) | 6 | 1 vs 1
web.chromium.blaze.back_shown | 30.9 | 30.8 | 30.6 | -0.7% (dev/dev spread 0.5%) | 6 | 49.5 vs 49.1
web.chromium.blaze.cls | 0 | 0 | 0 | +0.0% (dev/dev spread 0.0%) | 6 | 0 vs 0
web.chromium.blaze.cpu | 72.5 | 72.3 | 72.8 | +0.5% (dev/dev spread 0.3%) | 6 | 72.8 vs 72.4
web.chromium.blaze.dom_growth | 7 | 7 | 7 | +0.0% (dev/dev spread 0.0%) | 6 | 7 vs 7
web.chromium.blaze.heap_growth | 2.81 | 2.83 | 3.17 | +12.3% (dev/dev spread 0.5%) | 6 | 3.17 vs 2.82
web.chromium.blaze.live | 88.5 | 88.5 | 87.5 | -1.1% (dev/dev spread 0.0%) | 6 | 87.5 vs 88.5
web.chromium.blaze.long_task_max | 132 | 142 | 136 | -0.7% (dev/dev spread 7.3%) | 6 | 136 vs 138
web.chromium.blaze.long_tasks | 8.5 | 8 | 9 | +9.1% (dev/dev spread 6.1%) | 6 | 9 vs 8.25
web.chromium.blaze.missed | 0 | 0 | 1 | +0.0% (dev/dev spread 0.0%) | 6 | 1 vs 0
web.chromium.blaze.requests | 51 | 51 | 48 | -5.9% (dev/dev spread 0.0%) | 6 | 48 vs 51
web.chromium.blaze.shown | 35.3 | 35.5 | 36.6 | +3.5% (dev/dev spread 0.6%) | 6 | 90.3 vs 72.2
web.chromium.boot.cls | 0 | 0 | 0 | +0.0% (dev/dev spread 0.0%) | 6 | 0.01 vs 0.01
web.chromium.boot.cold_blocked | 550 | 547 | 533 | -2.8% (dev/dev spread 0.5%) | 6 | 558 vs 572
web.chromium.boot.cold_cpu | 1.57e+03 | 1.57e+03 | 1.55e+03 | -1.4% (dev/dev spread 0.2%) | 6 | 1.62e+03 vs 1.61e+03
web.chromium.boot.cold_fcp | 802 | 800 | 784 | -2.1% (dev/dev spread 0.2%) | 6 | 814 vs 817
web.chromium.boot.cold_list | 1.02e+03 | 1.03e+03 | 1.01e+03 | -1.6% (dev/dev spread 1.0%) | 6 | 1.02e+03 vs 1.05e+03
web.chromium.boot.cold_note | 1.04e+03 | 1.03e+03 | 1.02e+03 | -1.0% (dev/dev spread 0.6%) | 6 | 1.06e+03 vs 1.06e+03
web.chromium.boot.cold_tbt | 168 | 174 | 172 | +0.6% (dev/dev spread 3.5%) | 6 | 192 vs 184
web.chromium.boot.cold_tti | 2.09e+03 | 2.01e+03 | 2.02e+03 | -1.3% (dev/dev spread 3.9%) | 6 | 2.15e+03 vs 2.18e+03
web.chromium.boot.heap | 14.2 | 14.2 | 14.2 | -0.0% (dev/dev spread 0.1%) | 6 | 14.3 vs 14.3
web.chromium.boot.warm_list | 321 | 321 | 325 | +1.2% (dev/dev spread 0.0%) | 6 | 632 vs 623
web.chromium.boot.warm_note | 495 | 496 | 503 | +1.5% (dev/dev spread 0.2%) | 6 | 880 vs 874
web.chromium.boot.warm_tbt | 13.5 | 13.5 | 11 | -18.5% (dev/dev spread 0.0%) | 6 | 61.3 vs 56.8
web.chromium.boot.warm_tti | 1.43e+03 | 1.44e+03 | 1.41e+03 | -1.6% (dev/dev spread 1.1%) | 6 | 1.84e+03 vs 1.84e+03
web.chromium.first.settings_open | 21.9 | 22.1 | 22.4 | +1.6% (dev/dev spread 0.9%) | 6 | 26 vs 25.1
web.chromium.first.signout_click | 462 | 452 | 464 | +1.3% (dev/dev spread 2.2%) | 6 | 464 vs 458
web.chromium.type.code_block | 63.8 | 62.9 | 63.8 | +0.7% (dev/dev spread 1.5%) | 6 | 75.1 vs 77.6
web.chromium.type.code_block_cpu | 29.8 | 29.6 | 29.8 | +0.4% (dev/dev spread 0.5%) | 6 | 29.8 vs 29.7
web.chromium.type.code_note_prose | 67 | 66.7 | 68.1 | +1.9% (dev/dev spread 0.6%) | 6 | 112 vs 110
web.chromium.type.code_note_prose_cpu | 32.6 | 32.8 | 32.7 | -0.1% (dev/dev spread 0.6%) | 6 | 32.7 vs 32.7
web.chromium.type.long_note | 66.5 | 67.2 | 67.5 | +1.1% (dev/dev spread 1.1%) | 6 | 106 vs 103
web.chromium.type.long_note_cpu | 28.2 | 27.6 | 27.7 | -0.7% (dev/dev spread 2.2%) | 6 | 27.7 vs 27.9
web.chromium.type.nested_list | 43.8 | 43.7 | 43.5 | -0.4% (dev/dev spread 0.1%) | 6 | 59.4 vs 60.5
web.chromium.type.nested_list_cpu | 51.2 | 50.9 | 51.6 | +1.0% (dev/dev spread 0.5%) | 6 | 51.6 vs 51
### Perf gate: ABAB on perf-02, dev/dev control (`~/bin/perf-turn`, locks released) Chromium, CPU slowed 4x, 10k Home, `calternal` release of dev (31972329b server, no Rust change since). Cases devA / trim / devB, 6 rounds, order rotated each round, one run at a time. dev = `1a14e9f10` dist, trim = `a814ef630` dist (this PR's web code; head `0d35071ca` differs only by `perf/budgets.json`). Specs: `typing.perf.ts`, `blaze.perf.ts`, `boot.perf.ts` plus a throwaway first-interaction probe (not committed). Median of per-run p50 across 6 runs; "dev/dev spread" is |devA−devB| / mean, the noise floor. **Typing CPU (per key, ms):** long note 28.2 / 27.6 dev vs **27.7** trim (−0.7%, spread 2.2%); nested list 51.2 / 50.9 vs **51.6** (+1.0%, spread 0.5%); code prose 32.6 / 32.8 vs **32.7**; code block 29.8 / 29.6 vs **29.8**. Typing latency p50 within ±2%. **List CPU (blaze, switching notes):** cpu 72.5 / 72.3 vs **72.8** (+0.5%, spread 0.3%); live 88.5 vs 87.5; shown 35.3/35.5 vs 36.6; requests 51 vs 48. **Boot (cold/warm):** cold FCP 802/800 vs 784; cold note 1040/1030 vs 1020; cold CPU 1570 vs 1550; warm note 495/496 vs 503 (+1.5%, outside the 0.2% spread but 8 ms; warm list +1.2%). **First interaction of the moved pieces (4x CPU):** Settings open (tap to Sign out visible) 21.9 / 22.1 vs **22.4** ms (+1.6%); Sign out click to next state (the path that calls the moved `unsentChanges`, wall clock from Node) 462 / 452 vs **464** ms. Named, not hidden: `blaze.heap_growth` median 2.81/2.83 dev vs 3.17 trim (+12%). Per run it is dev 2.69–3.30, trim 2.63–3.42, so the ranges overlap (6 runs each); I read it as noise, not a regression. `boot.warm_note` +1.5% and `warm_list` +1.2% are the only other positive deltas outside the dev/dev spread; boot cold numbers are all slightly better. No typing, list or first-interaction metric regressed beyond the dev/dev spread. <details><summary>Full table</summary> ``` metric | devA p50 | devB p50 | trim p50 | trim vs mean(dev) | n runs | trim p95 vs dev p95 web.chromium.blaze.back_missed | 1 | 1 | 1 | +0.0% (dev/dev spread 0.0%) | 6 | 1 vs 1 web.chromium.blaze.back_shown | 30.9 | 30.8 | 30.6 | -0.7% (dev/dev spread 0.5%) | 6 | 49.5 vs 49.1 web.chromium.blaze.cls | 0 | 0 | 0 | +0.0% (dev/dev spread 0.0%) | 6 | 0 vs 0 web.chromium.blaze.cpu | 72.5 | 72.3 | 72.8 | +0.5% (dev/dev spread 0.3%) | 6 | 72.8 vs 72.4 web.chromium.blaze.dom_growth | 7 | 7 | 7 | +0.0% (dev/dev spread 0.0%) | 6 | 7 vs 7 web.chromium.blaze.heap_growth | 2.81 | 2.83 | 3.17 | +12.3% (dev/dev spread 0.5%) | 6 | 3.17 vs 2.82 web.chromium.blaze.live | 88.5 | 88.5 | 87.5 | -1.1% (dev/dev spread 0.0%) | 6 | 87.5 vs 88.5 web.chromium.blaze.long_task_max | 132 | 142 | 136 | -0.7% (dev/dev spread 7.3%) | 6 | 136 vs 138 web.chromium.blaze.long_tasks | 8.5 | 8 | 9 | +9.1% (dev/dev spread 6.1%) | 6 | 9 vs 8.25 web.chromium.blaze.missed | 0 | 0 | 1 | +0.0% (dev/dev spread 0.0%) | 6 | 1 vs 0 web.chromium.blaze.requests | 51 | 51 | 48 | -5.9% (dev/dev spread 0.0%) | 6 | 48 vs 51 web.chromium.blaze.shown | 35.3 | 35.5 | 36.6 | +3.5% (dev/dev spread 0.6%) | 6 | 90.3 vs 72.2 web.chromium.boot.cls | 0 | 0 | 0 | +0.0% (dev/dev spread 0.0%) | 6 | 0.01 vs 0.01 web.chromium.boot.cold_blocked | 550 | 547 | 533 | -2.8% (dev/dev spread 0.5%) | 6 | 558 vs 572 web.chromium.boot.cold_cpu | 1.57e+03 | 1.57e+03 | 1.55e+03 | -1.4% (dev/dev spread 0.2%) | 6 | 1.62e+03 vs 1.61e+03 web.chromium.boot.cold_fcp | 802 | 800 | 784 | -2.1% (dev/dev spread 0.2%) | 6 | 814 vs 817 web.chromium.boot.cold_list | 1.02e+03 | 1.03e+03 | 1.01e+03 | -1.6% (dev/dev spread 1.0%) | 6 | 1.02e+03 vs 1.05e+03 web.chromium.boot.cold_note | 1.04e+03 | 1.03e+03 | 1.02e+03 | -1.0% (dev/dev spread 0.6%) | 6 | 1.06e+03 vs 1.06e+03 web.chromium.boot.cold_tbt | 168 | 174 | 172 | +0.6% (dev/dev spread 3.5%) | 6 | 192 vs 184 web.chromium.boot.cold_tti | 2.09e+03 | 2.01e+03 | 2.02e+03 | -1.3% (dev/dev spread 3.9%) | 6 | 2.15e+03 vs 2.18e+03 web.chromium.boot.heap | 14.2 | 14.2 | 14.2 | -0.0% (dev/dev spread 0.1%) | 6 | 14.3 vs 14.3 web.chromium.boot.warm_list | 321 | 321 | 325 | +1.2% (dev/dev spread 0.0%) | 6 | 632 vs 623 web.chromium.boot.warm_note | 495 | 496 | 503 | +1.5% (dev/dev spread 0.2%) | 6 | 880 vs 874 web.chromium.boot.warm_tbt | 13.5 | 13.5 | 11 | -18.5% (dev/dev spread 0.0%) | 6 | 61.3 vs 56.8 web.chromium.boot.warm_tti | 1.43e+03 | 1.44e+03 | 1.41e+03 | -1.6% (dev/dev spread 1.1%) | 6 | 1.84e+03 vs 1.84e+03 web.chromium.first.settings_open | 21.9 | 22.1 | 22.4 | +1.6% (dev/dev spread 0.9%) | 6 | 26 vs 25.1 web.chromium.first.signout_click | 462 | 452 | 464 | +1.3% (dev/dev spread 2.2%) | 6 | 464 vs 458 web.chromium.type.code_block | 63.8 | 62.9 | 63.8 | +0.7% (dev/dev spread 1.5%) | 6 | 75.1 vs 77.6 web.chromium.type.code_block_cpu | 29.8 | 29.6 | 29.8 | +0.4% (dev/dev spread 0.5%) | 6 | 29.8 vs 29.7 web.chromium.type.code_note_prose | 67 | 66.7 | 68.1 | +1.9% (dev/dev spread 0.6%) | 6 | 112 vs 110 web.chromium.type.code_note_prose_cpu | 32.6 | 32.8 | 32.7 | -0.1% (dev/dev spread 0.6%) | 6 | 32.7 vs 32.7 web.chromium.type.long_note | 66.5 | 67.2 | 67.5 | +1.1% (dev/dev spread 1.1%) | 6 | 106 vs 103 web.chromium.type.long_note_cpu | 28.2 | 27.6 | 27.7 | -0.7% (dev/dev spread 2.2%) | 6 | 27.7 vs 27.9 web.chromium.type.nested_list | 43.8 | 43.7 | 43.5 | -0.4% (dev/dev spread 0.1%) | 6 | 59.4 vs 60.5 web.chromium.type.nested_list_cpu | 51.2 | 50.9 | 51.6 | +1.0% (dev/dev spread 0.5%) | 6 | 51.6 vs 51 ``` </details>
Author
Owner

Gates: static, bundle, full e2e per project (WebKit on dev-02 aarch64, Chromium on dev-01 x86)

Code under test: a814ef630 (head 0d35071ca adds only perf/budgets.json). Server: debug build of this tree on dev-02; on dev-01 a release calternal of the same Rust (sha256 c859e7ef…, no Rust change in this PR).

Static (dev-02, ~/bin/slot): bun run --cwd apps/web lint 0 fail; svelte-check 0 errors (19 pre-existing warnings); vitest web 238/238; vitest editor pass; ui primitives 62/62; ci/check-file-docs.mjs and check-layers.mjs pass. ci/check-ui-primitives.mjs and ci/check-size-budgets.mjs report findings only in files this PR does not touch (devices.css, DragCard.svelte, NoteList.svelte, crates/fsio, crates/notes). Bundle gate on the final head: perf/web.sh --bundle-only --gate rc 0; chunk.index 222.241 ≤ 222.27, first_js 222.241 ≤ 240, first_css 18.417 ≤ 22.1, total (sum of chunks) 527.526 ≤ 539.66.

Process note (my mistake, now fixed): two of my chains shared one test-results directory, and each Playwright start wipes it, so the first full passes had false ENOENT … .playwright-artifacts failures. Every failing project or spec was therefore rerun alone with its own --output. On dev-01 something also deleted my target/ mid-run (1031 "binary missing" false failures in one dependency-pulling run), so those results were discarded and rerun with a private copy of the binary.

WebKit on dev-02, all projects: webkit-1440 1255 tests (backdrops:131 failed on clobber, passes isolated 8/8); webkit-390 (tint ×5 failed on clobber, pass isolated 12/12); admin-webkit-1440/-390, look-webkit-1440/-390, prefs-webkit, sidebar-band-webkit (16/16 isolated) all pass. One real-looking failure, admin.spec.ts:64 (invite group chip not pressed), passes 11/11 with --repeat-each=10 on this branch and 11/11 on dev head: a flake.

Chromium on dev-01, all projects: admin-chromium-1440 (admin-invite ×4 pass isolated), admin-chromium-390, look-chromium-1440/-390, prefs-chromium, sidebar-band-chromium (13/13), throttled-1440 (3/3), contrast 10/10 on x86, flow, passkeys, admin-setup all pass. chromium-1440 and chromium-390 first passes had 8 and 9 failures; rerun isolated they drop to 3 and 2. Those 5 were then run with --repeat-each=10 on this branch and on dev head (same host, same binary):

spec branch fails/10 dev fails/10
touch-select:246 (390) 2 1
tasks-tick:30 (390) 0 0
backdrops:78 (1440) 3 1
list-fit:67 (1440) 1 3
tasks-tick:107 (1440) 0 0
note-bars-motion:71 (throttled-390, 2 tests x10) 17/20 14/20

Every spec that fails on the branch also fails on dev head at a similar rate, so none is caused by this PR; under the flaky rule they get an issue for stability, not a block. I did not get one clean uninterrupted full pass of chromium-1440/390 on dev-01 because of the clobbering and the deleted binary; the evidence there is first pass plus isolated reruns of every failure.

Not run: real Safari on macos-01 (not needed: no phone UI or visual change; PhoneStack, the only candidate with a phone effect, is not landed).

### Gates: static, bundle, full e2e per project (WebKit on dev-02 aarch64, Chromium on dev-01 x86) Code under test: `a814ef630` (head `0d35071ca` adds only `perf/budgets.json`). Server: debug build of this tree on dev-02; on dev-01 a release `calternal` of the same Rust (sha256 `c859e7ef…`, no Rust change in this PR). **Static (dev-02, `~/bin/slot`):** `bun run --cwd apps/web lint` 0 fail; `svelte-check` 0 errors (19 pre-existing warnings); vitest web 238/238; vitest editor pass; ui primitives 62/62; `ci/check-file-docs.mjs` and `check-layers.mjs` pass. `ci/check-ui-primitives.mjs` and `ci/check-size-budgets.mjs` report findings only in files this PR does not touch (devices.css, DragCard.svelte, NoteList.svelte, crates/fsio, crates/notes). **Bundle gate on the final head:** `perf/web.sh --bundle-only --gate` rc 0; chunk.index 222.241 ≤ 222.27, first_js 222.241 ≤ 240, first_css 18.417 ≤ 22.1, total (sum of chunks) 527.526 ≤ 539.66. **Process note (my mistake, now fixed):** two of my chains shared one `test-results` directory, and each Playwright start wipes it, so the first full passes had false `ENOENT … .playwright-artifacts` failures. Every failing project or spec was therefore rerun alone with its own `--output`. On dev-01 something also deleted my `target/` mid-run (1031 "binary missing" false failures in one dependency-pulling run), so those results were discarded and rerun with a private copy of the binary. **WebKit on dev-02, all projects:** webkit-1440 1255 tests (backdrops:131 failed on clobber, passes isolated 8/8); webkit-390 (tint ×5 failed on clobber, pass isolated 12/12); admin-webkit-1440/-390, look-webkit-1440/-390, prefs-webkit, sidebar-band-webkit (16/16 isolated) all pass. One real-looking failure, `admin.spec.ts:64` (invite group chip not pressed), passes 11/11 with `--repeat-each=10` on this branch and 11/11 on dev head: a flake. **Chromium on dev-01, all projects:** admin-chromium-1440 (admin-invite ×4 pass isolated), admin-chromium-390, look-chromium-1440/-390, prefs-chromium, sidebar-band-chromium (13/13), throttled-1440 (3/3), **contrast 10/10 on x86**, flow, passkeys, admin-setup all pass. chromium-1440 and chromium-390 first passes had 8 and 9 failures; rerun isolated they drop to 3 and 2. Those 5 were then run with `--repeat-each=10` on this branch and on dev head (same host, same binary): | spec | branch fails/10 | dev fails/10 | |---|---:|---:| | touch-select:246 (390) | 2 | 1 | | tasks-tick:30 (390) | 0 | 0 | | backdrops:78 (1440) | 3 | 1 | | list-fit:67 (1440) | 1 | 3 | | tasks-tick:107 (1440) | 0 | 0 | | note-bars-motion:71 (throttled-390, 2 tests x10) | 17/20 | 14/20 | Every spec that fails on the branch also fails on dev head at a similar rate, so none is caused by this PR; under the flaky rule they get an issue for stability, not a block. I did not get one clean uninterrupted full pass of chromium-1440/390 on dev-01 because of the clobbering and the deleted binary; the evidence there is first pass plus isolated reruns of every failure. **Not run:** real Safari on macos-01 (not needed: no phone UI or visual change; PhoneStack, the only candidate with a phone effect, is not landed).
Author
Owner

Merged to dev as d37e52d84 (orchestrator): resolved budgets.json against the rows stack; measured on merged dev: index 224.134 → 223.865 KB brotli (−0.27 net), bundle gate PASS, svelte-check 0 errors. Phone-layout split (−5.84 KB desktop / +3.2 KB phone) left for kayg.

Merged to dev as d37e52d84 (orchestrator): resolved budgets.json against the rows stack; measured on merged dev: index 224.134 → 223.865 KB brotli (−0.27 net), bundle gate PASS, svelte-check 0 errors. Phone-layout split (−5.84 KB desktop / +3.2 KB phone) left for kayg.
kayg closed this pull request 2026-11-12 04:30:22 +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!1083
No description provided.