port: Notes Float slice 4 — Style sheet #1100
Closed
kayg
wants to merge 8 commits from
port/notes-float-s4-style into port/notes-float
pull from: port/notes-float-s4-style
merge into: kayg:port/notes-float
kayg:main
kayg:port/tasks-float-2
kayg:fix/train-1116-2
kayg:fix/train-1116-3
kayg:fix/train-1116-1
kayg:fix/flake-1134
kayg:fix/server-1182
kayg:dev
kayg:port/notes-float-3c
kayg:docs/auto-update-ig
kayg:feat/dav-transport
kayg:port/tasks-float-1
kayg:wip/mail1011-sv-order-1116
kayg:fix/flake-1179
kayg:fix/flake-1178
kayg:fix/guards-1153-fsio-split
kayg:fix/guards-1153-notes-split-we
kayg:fix/guards-1153-notes-lib
kayg:fix/guards-1153-notes-home
kayg:fix/guards-1153-ui-primitives
kayg:fix/guards-1153-primitives-e2e
kayg:fix/guards-1153-visibility-doc
kayg:feat/paper-grey-1116
kayg:fix/flake-1165
kayg:fix/flake-1119
kayg:docs/imap-766-plan-v2
kayg:fix/e2e-unique-ports
kayg:t3/paged-search-reconcile-final
kayg:wip/mail1011-final-1115
kayg:docs/tasks-float-port
kayg:perf/editor-first-paint-1c
kayg:feat/imap-notes-fetch
kayg:feat/imap-notes-projection
kayg:feat/imap-notes-readonly
kayg:feat/imap-notes-auth
kayg:feat/imap-notes-server-foundation
kayg:wip/mail1011-txn-ownvocab-1115
kayg:wip/mail1011-txn-novocab-1115
kayg:perf/p1117-final-harness
kayg:perf/single-shot-repeats
kayg:port/tasks-matrix
kayg:wip/mail1011-txn-1115
kayg:fix/static-gates-1155
kayg:feat/files-s1-identity-r7
kayg:fix/files-r7-idle-loop
kayg:fix/daily-train-1152
kayg:port/notes-float
kayg:fix/editor-tables-test-types
kayg:port/notes-float-listscript
kayg:feat/tasks-actions
kayg:port/notes-float-phone-preload
kayg:perf/sound-comparator
kayg:port/notes-float-listscroll
kayg:port/notes-float-budgets
kayg:port/notes-float-suite-fix-b
kayg:port/notes-float-sidebar-fix
kayg:port/notes-float-trim
kayg:port/notes-float-3-lists
kayg:fix/attachments-meta-capability
kayg:docs/carddav-writes-v2-plan
kayg:feat/contacts-companion-pure
kayg:issue/carddav-read-perf-fix-r2
kayg:issue/carddav-read-r2
kayg:port/notes-float-devsync2
kayg:review/calendar-2
kayg:review/switcher-a-pills
kayg:port/notes-float-switcher-a
kayg:port/port-tables-2
kayg:review/switcher-ends
kayg:wip/whiteboard-s1-1114
kayg:port/port-tables
kayg:wip/mail1011-perfneutral
kayg:review/photo-tint
kayg:port/notes-float-shell
kayg:wip/local/collections-db
kayg:wip/local/mail-p1
kayg:wip/local/cold-growth-on-tiering
kayg:wip/local/tiering-v3-s1
kayg:wip/local/wal1051-cap
kayg:wip/local/tiering-v3-s1-resume
kayg:wip/local/index-position-startup-scan
kayg:port/notes-float-flat
kayg:port/notes-float-promote
kayg:wip/handover/mail1011-candidate
kayg:wip/handover/files-s1-candidate
kayg:port/notes-float-shell-only
kayg:port/notes-float-perf
kayg:feat/whiteboard-s1
kayg:feat/tiering-v5
kayg:fix/app-switch-hitch
kayg:wip/local/files-s1-dev-v4-final
kayg:feat/files-s1-dev-v4
kayg:fix/c2-glass-shared
kayg:feat/flat-lists
kayg:wip/handover/whiteboard-s1-resume
kayg:wip/att-lazy-861
kayg:feat/switcher-browse
kayg:wip/att-lazy-860
kayg:feat/tasks-float
kayg:recovered/flat-backup-candidate
kayg:perf/stalls-1054-kc
kayg:land/ai-toolbar
kayg:feat/collections-db
kayg:feat/collections-db-fixes
kayg:codex/mail-1011-redesign-20261111
kayg:fix/ai-toolbar
kayg:backup/macos-vm/st3-head
kayg:perf/trim-candidate-phonestack
kayg:feat/switcher-three
kayg:fix/1051-index-idle-checkpoint
kayg:perf/stalls-1054-kb
kayg:perf/stalls-1054-k
kayg:perf/stalls-1054-r3
kayg:fix/c2-contrast-tail
kayg:perf/stalls-1054-r3-preview
kayg:feat/collections-before
kayg:feat/tiering-v4
kayg:fix/timelog-caret
kayg:wip/local/tasks-actions
kayg:docs/tasks-writes-v2-plan
kayg:st3-r3
kayg:feat/pass8
kayg:review/calendar-2-before-1111
kayg:wip/tiering-v3-cold4
kayg:perf/stalls-1054-r2
kayg:fix/suite-A4
kayg:fix/suite-A5-probe
kayg:fix/suite-A6
kayg:fix/suite-A3
kayg:fix/suite-A2
kayg:fix/suite-A5
kayg:fix/suite-A1
kayg:wip/local/attachments-861-fix
kayg:feat/contrast
kayg:wip/local/ports-861
kayg:storage/wal-checkpoint-off-save-1051
kayg:wip/local/mail-1011-reconcile-20261110
kayg:feat/style-sheet-fixes
kayg:feat/money-round
kayg:perf/stalls-1054
kayg:wip/tiering-v3-cold5
kayg:t3/mail-1011-liveness
kayg:feat/iphone-fixes
kayg:feat/notes-approve
kayg:wip/local/shrow-work
kayg:feat/files-s1-identity
kayg:feat/quickfix
kayg:wip/tiering-v3-cold
kayg:wip/local/shared-row-swipes
kayg:backup/macos-vm/pfx-B
kayg:backup/macos-vm/pfx-C
kayg:backup/macos-vm/pfx-D
kayg:feat/contrast-r1
kayg:feat/tiering-v3-s2-tags
kayg:feat/folder-drop
kayg:t3/photos-s1
kayg:feat/tiering-v3-s1-namespace
kayg:wip/local/photos-s1
kayg:t3/photos-plan-slice-one
kayg:recovered/backup/p1b-61505
kayg:t3/paged-search-reconcile
kayg:t3/smooth-pane-transitions
kayg:t3/index-position-startup-scan
kayg:fix/private-staging-759b-r2
kayg:backup/macos-vm/hk/hk1009/pr877
kayg:backup/macos-vm/hk/hk1009/pr878
kayg:docs/undo-block-ids-plan
kayg:fix/undo-768
kayg:backup/macos-vm/hk/hk1009/pr875
kayg:backup/macos-vm/hk/hk1009/pr904
kayg:proto/block-identity-v7d
kayg:backup/macos-vm/hk/hk1009/pr846
kayg:backup/macos-vm/hk/hk1009/pr860
kayg:backup/macos-vm/hk/hk1009/pr861
kayg:backup/macos-vm/hk/hk1009/pr849
kayg:backup/macos-vm/hk/hk1009/pr848
kayg:backup/macos-vm/hk/hk1009/pr853
kayg:backup/macos-vm/hk/hk1009/pr957
kayg:backup/macos-vm/hk/hk1009/pr893
kayg:backup/macos-vm/hk/hk1009/pr889
kayg:backup/macos-vm/hk/hk1009/pr902
kayg:docs/imap-notes-plan
kayg:docs/quota-plan-2
kayg:fix/parallel-test-flakes
kayg:docs/calendar-backend-v2-plan
kayg:feat/calendar-ical-converter
kayg:backup/macos-vm/hk/hk1009/pr808
kayg:docs/contacts-import-v2-plan
kayg:issue/610-pm-midnight
kayg:feat/calendar-v2-s1-containment
kayg:backup/macos-vm/hk/hk1009/pr854
kayg:backup/macos-vm/hk/hk1009/pr845
kayg:backup/macos-vm/hk/hk1009/pr917
kayg:docs/dav-recorder-v2-plan
kayg:plan/previews-865
kayg:plan/save-log-durable-entry
kayg:backup/macos-vm/hk/hk1009/pr934
kayg:fix/e2e-data-on-ram
kayg:backup/macos-vm/hk/hk1009/pr888
kayg:feat/appwindow3
kayg:feat/appwindow2
kayg:feat/appwindow
kayg:feat/money-p1
kayg:feat/keys-sheet
kayg:review/calendar-2-themes
kayg:feat/smooth-cursor
kayg:fix/float-style
kayg:review/calendar-2-float
kayg:release/2026-11-06-hotfix
kayg:archive/port/rows-drop-code
kayg:archive/port/rows-actions
kayg:archive/port/rows
kayg:scratch/tasks-894-ui-gates
kayg:review/calendar-2-night-wip
kayg:recovered/flaky/toast-reduced
kayg:release/2026-11-05
kayg:archive/flaky/rows-drop-fixed
kayg:archive/flaky/rows-actions
kayg:archive/flaky/rows
kayg:sim/bm15-final
kayg:sim/bm15-bis-932
kayg:sim/bm15-bis-909
kayg:sim/bm15
kayg:sim/bm15-bis-887
kayg:perf/tiering-option-b
kayg:fix/sw-lazy-precache
kayg:archive/plan/save-log-durable-entry
kayg:mock/money-fix2
kayg:archive/fix/e2e-data-on-ram
kayg:mock/appearance-all
kayg:mock/pill-press
kayg:mock/pill-press-mac
kayg:backup/macos-vm/appearance-after
kayg:mock/auto-swipes
kayg:mock/mail-actions
kayg:backup/macos-vm/mock/mail-actions
kayg:mock/money-static
kayg:archive/review/standards-917
kayg:perf/tiering-761-fix
kayg:mock/type-audit
kayg:mock/third-pane
kayg:feat/contacts-import-v2-s1
kayg:perf/executor-hot-path
kayg:archive/port/hidden-blocks
kayg:archive/port/devices
kayg:scratch/executor-on-894
kayg:scratch/executor-spans2
kayg:scratch/executor-spans
kayg:archive/port/rows-drop
kayg:feat/tiering-761-d-scale
kayg:feat/tiering-761-c-index
kayg:feat/tiering-761-b-reader
kayg:archive/review/sharing-pr3-review-9fec3d1f
kayg:perf/ports-lazy-budgets
kayg:feat/tiering-761-a-migration
kayg:archive/review/sharing-pr3-review
kayg:archive/review/sharing-pr3-review-code
kayg:archive/plan/previews-865
kayg:archive/port/port-attachments-3
kayg:archive/port/contacts-merge
kayg:fix/motion-audit-859
kayg:fix/motion-audit-859-mac
kayg:archive/port/port-pickers
kayg:archive/port/port-tables-2
kayg:archive/port/port-tables
kayg:recovered/local/sharing-s1-pr2-room-snapshot-candidate
kayg:archive/fix/parallel-test-flakes-code-minipc01
kayg:docs/imap-766-readonly-slice
kayg:feat/dav-recorder-v3
kayg:research/788-diagnosis
kayg:archive/fix/parallel-test-flakes
kayg:archive/perf/pr792-cold-index-edit
kayg:docs/sharing-slice-1
kayg:recovered/feat/dav-recorder-v2
kayg:recovered/feat/dav-recorder-v2-edd7bbb
kayg:spike/imap-766-s0-cases
kayg:archive/fix/undo-768
kayg:recovered/feat/dav-recorder
kayg:recovered/feat/dav-recorder-901acd4
kayg:feat/contacts-import
kayg:perf/cold-growth-on-764
kayg:perf/cold-growth-on-tiering
kayg:recovered/feat/tasks-set-status
kayg:feat/tasks-move-reorder
kayg:feat/tasks-delete-promote-duplicate
kayg:feat/carddav-writes
kayg:perf/quota-on-tiering
kayg:perf/quota-simple
kayg:perf/cold-growth-on-quota-stack
kayg:recovered/perf/cold-growth-on-tiering
kayg:feat/calendar-identity
kayg:feat/calendar-event-parser
kayg:feat/calendar-props-maps
kayg:port/glass-when-ring
kayg:recovered/feat/tiering-761-s1-wip-8132a84
kayg:recovered/feat/tiering-761-s1-wip-9da4094
kayg:recovered/feat/tiering-761-s1-wip-724512c
kayg:recovered/feat/tiering-761-s1-wip-66e667e
kayg:recovered/feat/tiering-761-s1
kayg:wip/6by32-01-tier-761-s1-pause-20261030
kayg:spike/imap-766-s0
kayg:wip/6by32-02-calternal-pause-20261030
kayg:wip/8by64-01-review-688-pause-20261030
kayg:wip/6by32-01-verify-744-pause-20261030
kayg:wip/6by32-01-verify-742-pause-20261030
kayg:fix/private-staging-759b
kayg:wip/6by32-01-review-748-pause-20261030
kayg:wip/6by32-01-review-733c-pause-20261030
kayg:wip/6by32-01-review-733b-pause-20261030
kayg:review/calendar-month
kayg:wip/local/bm15-trash
kayg:plan/759b-staging
kayg:review/767b-tests
kayg:review/preview-2026-10-29
kayg:docs/tiering-731-plan
kayg:wip/c6b02-review-733d
kayg:wip/c6b02-bm1-full-a
kayg:docs/deploy-plan
kayg:fix/storage-owner-liveness-642
kayg:fix/storage-fix-7
kayg:feat/tiering-731
kayg:wip/tiering-731-first-attempt
kayg:perf/idle-honest-2
kayg:fix/storage-private-tmp-642-dev
kayg:fix/storage-exact-file-quarantine-642
kayg:perf/one-flush-save
kayg:review/calendar-static
kayg:review/indexing-ring
kayg:review/when-field-2
kayg:proto/block-identity-2-review
kayg:proto/block-identity-review
kayg:review/when-field
kayg:issue/tasks-create-ids
kayg:issue/tasks-create
kayg:review/combined
kayg:review/task-polish
kayg:review/top-buttons
kayg:review/q1-q5
kayg:archive/integ325-293
kayg:archive/integ325-ci
kayg:issue/calendar-adr
kayg:archive/old/train/2026-10-23bk2
kayg:archive/old/train/2026-10-23bk
kayg:issue/469-mockup-9a
kayg:issue/smart-tasks-mockup
kayg:issue/469-menus
kayg:issue/652-signout-flake
kayg:issue/652-history-fix7
kayg:issue/652-history-fix6
kayg:archive/old/issue/spring-check-perf
kayg:issue/spring-check-perf
kayg:issue/659-rename-fast
kayg:archive/old/train/2026-10-21ar
kayg:issue/search-hardening-3
kayg:issue/652-history-fix5
kayg:issue/660-port-sheets-glass
kayg:issue/652-history-fix4
kayg:issue/652-history-fix3
kayg:issue/652-history-fix2
kayg:issue/652-history-flake
kayg:train/2026-10-21an
kayg:issue/settings-admin-port
kayg:issue/search-port
kayg:train/2026-10-20am
kayg:issue/storage-split-fix2
kayg:issue/storage-split
kayg:archive/old/issue/folder-ids-fix
kayg:train/2026-10-20al
kayg:archive/old/issue/folder-ids
kayg:train/2026-10-20ak
kayg:issue/tables-mockup
kayg:train/2026-10-19aj
kayg:train/2026-10-19ai
kayg:issue/469-merge-fixes
kayg:issue/sidebar-band
kayg:archive/old/issue/608-settings-spec
kayg:train/2026-10-19ah
kayg:issue/swipe-offscreen
kayg:train/2026-10-19ag
kayg:archive/old/issue/590-nlp-adr
kayg:archive/old/issue/587-event-after-write-2
kayg:train/2026-10-19af
kayg:archive/old/issue/587-event-after-write
kayg:issue/469-pill-room-c
kayg:issue/469-pill-room
kayg:train/2026-10-19ae
kayg:issue/469-narrow-handle
kayg:issue/397-ios-swipe-2
kayg:issue/469-desk-fixes
kayg:archive/old/issue/auto-update-adr
kayg:issue/469-filter-gap
kayg:issue/469-port-1b
kayg:issue/442-opacity-flake
kayg:issue/327-web-fast-3
kayg:archive/old/issue/469-port-1
kayg:issue/469-port-1
kayg:issue/327-web-fast-2
kayg:archive/old/issue/327-web-fast
kayg:archive/old/issue/425-stt-bench-vq1
kayg:archive/old/issue/445-no-bleed
kayg:archive/old/issue/400-swipe-mockup-2
kayg:issue/426-client-review
kayg:issue/426-client-2
kayg:issue/426-client
kayg:archive/old/issue/476-safe-area-lab
kayg:archive/old/issue/445-top-light
kayg:issue/471-blocks-mockup
kayg:archive/old/issue/448-links-app-2
kayg:archive/old/issue/448-links-app
kayg:archive/old/issue/398-cold-links
kayg:issue/434-442-small-2
kayg:issue/434-442-small
kayg:archive/old/issue/398-unload
kayg:archive/old/issue/445-bottom-band
kayg:issue/445-bottom-band
kayg:issue/351-rem-3
kayg:issue/351-rem-2
kayg:issue/351-rem
kayg:archive/old/issue/327-first-note
kayg:issue/395-width-phone
kayg:archive/old/issue/327-typing
kayg:issue/396-ios-edges
kayg:issue/397-ios-swipe
kayg:archive/old/issue/327-notes-index
kayg:issue/345-347-contrast-empty-2
kayg:archive/old/issue/44-arenas
kayg:issue/44-arenas
kayg:archive/integ325
kayg:archive/old/issue/327-perf-harness
kayg:archive/old/issue/44-thp
kayg:issue/44-thp
kayg:archive/old/issue/285-sticky-pills
kayg:archive/old/issue/44-trim-3
kayg:issue/44-trim-3
kayg:archive/old/issue/165-cards
kayg:archive/old/issue/165-picker-2
kayg:archive/old/issue/212-multi-select
No reviewers
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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!1100
Loading…
Reference in a new issue
No description provided.
Delete branch "port/notes-float-s4-style"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Slice 4 of the Notes Float port (#1088, plan
docs/plans/notes-float-port.md). Based onport/notes-float-1a(#1093,b9a319721); rebase when 1a moves. Notes only.What
lib/looks.tsremoved).GlobalLayer, two tints, opacity crossfade). Dim rows and the "busy photo, dim it?" nudge are gone.lib/themes.ts(contrast guard:themes.test.ts, 26 tests); one generated stylesheet inserted once and lazily; a note's theme is a class on its card (pal-<id>), written ascalternal-theme. Switch is instant, no crossfade;lib/settle.tsfinishes the colour transitions the restyle starts (#1054).calternal-theme,-grain: on,-separator,-background-effect: faded,-backdrop: art:solid:#…|art:grad:#…:#…:tb.Decisions / open
---only splits into cards at Narrow/Wide. Wide page: on = Full, off = Narrow. Captain: should Notes default to Narrow (mockup)?.cm-breakfor Narrow/Wide; phone keeps the full page.lazy-ui-plugincount 33 -> 34 (themes chunk).Gates and evidence follow in comments.
Slice 4 gates so far (head
ff666ee11+ later spec fixes; see head in the final report)Commands (dev-01, under
~/bin/slot,CI=1 --retries=0 --workers=1, own--outputper project):bunx playwright test e2e/style-sheet.spec.ts e2e/style-background.spec.ts e2e/opacity.spec.ts e2e/frontmatter-unreachable.spec.ts e2e/style-card-box.spec.ts e2e/note-bars.spec.ts e2e/window-layout.spec.ts --project=chromium-1440|chromium-390themes.test.ts: 26 contrast/data tests).gl, which a phone has not): fixed inff666ee11, rerun pendingFindings: the build's lazy-import guard counts 33 -> 34 (the themes chunk is imported from the idle screens);
window-layout.spec.ts:89failed once on chromium-1440 in a first run and passed in the rerun (not reproduced).dev-02 has 46 GB free (floor is 50): flagged, my footprint is one worktree.
Product screenshots, Style sheet (Chromium, Nord theme + Dots separator, narrow, two cards). Mockup pairs: not captured yet.
product-background-dark-1440.png
product-background-dark-390.png
product-background-light-1440.png
product-background-light-390.png
product-gradient-dark-1440.png
product-gradient-dark-390.png
product-gradient-light-1440.png
product-gradient-light-390.png
product-page-dark-1440.png
product-page-dark-390.png
product-page-light-1440.png
product-page-light-390.png
Slice 4 gates: final table (head
6e625cbab)Commands:
CI=1 bunx playwright test e2e/style-sheet.spec.ts e2e/style-background.spec.ts e2e/opacity.spec.ts e2e/frontmatter-unreachable.spec.ts e2e/style-card-box.spec.ts e2e/note-bars.spec.ts e2e/window-layout.spec.ts --project=<p> --workers=1 --retries=0 --output=/tmp/s4pw-out-<p>under~/bin/slot; backend binary built from dev (a copy,~/s4-bin/calternal).window-layout.spec.ts:70and:89(slice 1a's spec; the same two fail intermittently on earlier runs and pass on others; it flips the shared test person's saved sidebar state, so one failure can chain). Not touched by this slice..gl, a phone has none); fixed inff666ee11, passes on chromium-390; webkit-390 not rerun at the final headNOT done yet (say so, not green): real-Safari frames for the theme switch and opening the sheet (Mac VM); iPhone simulator shots; product-vs-mockup pairs (product shots are in the comment above, mockup shots not captured); first-paint bytes / budgets.json (
idle-screensgrows with the themes and builder; themes are a separate lazy chunk, but the number is not measured); contrast spec of the theme CSS inside the page (the pure palette contrast is covered bythemes.test.ts).Slice 4, final gates (head
9dcdcabb4; code identical to2bccd20b2, then budgets only). Rebased on the merged 1a (port/notes-floateb9d0552b).Decision applied (orchestrator 11-12): Notes default to Narrow (a phone's page stays full); "Wide page" = Full.
CI=1 --retries=0 --workers=1, own--outputper project,~/bin/slot)backdrops.spec:78"pick a photo", a flake: 1/14 on the integration base and 2/14 on this branch with--repeat-each=14). webkit-1440 (dev-02): 173 passed / 0 failed. webkit-390 (dev-02): 349 passed / 0 failed. (Skips are the specs' own project filters.)editor.spec"no layout shift while loading" fail at 1440 (now held off while a floating page opens), and a phone's pre-load page started Narrow and flipped to full (36 px shift at 390): its default is now full. Both pass.perf/web.sh --bundle-only --gate, brotli)budgets.jsonset to the measured sizes (index 225.371, idle-screens 60.065, press 7.875 hash-name artefact, total 550.007). Note: the merged base is itself over its index budget (224.594 > 223.9).Real Safari frames, blocked (infra): on macos-01, from 11-12 about 10:00 PST, every safaridriver session (about:blank, visible, focused, window in front, any size) gets 0.13 to 0.5 rAF/s against 58 to 60 yesterday (
sb-out/*-raf.json); the VM is idle and the display is online. The maintainer saw 60.3 rAF/s once at 10:35 PST; mine measured again at ~11:55 PST and ~13:10 PST was still 0.27 to 0.46 (~/s4-frames/diag.sh). Thenflane's own diag at 10:15 PST also found pages not loading. The measuring script (~/s4-frames/frames_s4.py, open-sheet ABAB against the base build, theme switch with an idle baseline) and the two servers (base on 18765, this branch on 18766 on dev-01) are ready; it only needs a Mac that renders.Slice 4, real-Safari frames: still blocked (checked 11-13 ~00:10 IST, head
9dcdcabb4)The orphaned Safari/safaridriver was gone (no lock holder, no safaridriver; I quit the one leftover Safari under
/tmp/mac-bench.lock). Memory at the start of the run:vm_statabout 0.4 GB free plus about 2.5 GB inactive, swap 0 (below the brief's 2 GB free line, so treat the rAF numbers as indicative; the 0.5 rAF/s is far below anything memory explains).First gate,
about:blankrAF rate in a fresh safaridriver session on macos-01 (Safari activated after the session opened, window 1440x900):Expected about 60. It is still 0.4 to 0.5, the same as before the orphan was killed, so Safari is not rendering frames for the automation window. Per the brief I stopped here and did not loop. The theme-switch and Style-sheet-open frame comparisons are therefore NOT taken; the measuring script (open-sheet ABAB against
eb9d0552b, theme switch with idle baseline) and the servers recipe are ready and only need a Mac session that renders.Cleanup done: lock removed, own safaridriver and tunnel killed, Safari quit.
Slice 4 gate, 11-14: merged onto the new integration head. NOT READY: real-Safari "open the Style sheet" has hitches that dev does not have.
Head
a2f824dee(=port/notes-float4f0b58327merged--no-ffat4eca8a496, then a budgets commit). Base for "base" below:4f0b58327; "dev":796d80cba.Merge
Three conflicts, resolved by hand:
GlobalLayer.svelte: the integration head replaced the one screen-sized layer with six plain pieces painting a viewport-fixed picture. Slice 4's Immersive/Faded tint is now ONE viewport-fixed gradient shared by the six pieces; its foot stop is a premultipliedcolor-mixof the wash and the neutral by a registered--fade(0/1), with a 240 ms transition on.gl. This replaces the two crossfading<i>layers (they would have covered the window the pieces avoid).style-background.specreads--fadeon.gl: still true.cm.css: kept both the Separator marks and the caret-gap/lone-line rules.perf/budgets.json: kept both approval notes; lines re-measured on the merged head (below).Gates (own server binary built from the integration base 4f0b58327's crates; the crates tree is identical to this head's)
Commands:
CI=1 bunx playwright test <20 specs> --project=<p> --workers=1 --retries=0, under~/bin/slot, 20 spec files: style-sheet, style-background, style-card-box, style-presets, opacity, frontmatter-unreachable, note-bars, width, window-layout, adaptive-glass, glass, chrome-contrast, contrast, backdrops, backdrop-page, editor, tint, split-cards, lazy-styled, links-look.window-layout.spec.ts:73,:93,:165(the integration head's known flaky window-layout specs). Re-runwindow-layout.spec.ts --repeat-each=3on this head and on4f0b58327: 24/24 passed on both. Not a regression.tint.spec.ts:313(tagged, light, phone swipe).--repeat-each=8of that test: 8/8 passed on this head and on4f0b58327. Flake.perf/web.sh --bundle-only --gate, brotli)4f0b58327is itself over its own index line (228.164 vs 224.662). This head, same toolchain: first JS 228.164 → 229.013 (+0.849 KB), first CSS 19.567 → 19.843 (+0.276), idle-screens 56.844 → 60.055 (+3.211), total JS 539.904 → 543.673 (+3.769), WhenField 8.708 → 8.765. Lines inbudgets.jsonset to these (index 229.02, WhenField 8.77, idle-screens 60.065 and total 550.007 unchanged); the gate now exits 0 for this slice's chunks. Growth is what #1100 said (+0.8 KB first paint, +3.2 KB idle).Real Safari, macos-01 (
nfa-framesharness, adapted: 3 arms dev | base | s4, ABAB rotating, 8 cycles, same session, 1440×900, DPR 1)Blank page first: 143 frames in 2 s (≈71 rAF/s counting the 2 s window; mean 16.7 ms, worst 26), so the machine delivered ≥60 rAF/s. (An earlier attempt had a dev dist that did not build — missing gitignored
public/fontsin my dev worktree — so the dev arm never loaded; I threw that run away and re-ran.) Free memory was about 0.25–0.65 GB (below the 2 GB line), swap 0; treat as indicative, but the idle baseline is clean (worst 22–24 ms in every arm, 0 hitches ≥50).Worst frame per 1.2 s gesture window (median of 8 runs | max | runs with a ≥50 ms frame):
4f0b58327)Per-run worst frame on "open the sheet", ms: dev 43 35 21 26 23 35 51 21; base 30 22 25 23 41 24 28 23; s4 70 1298 51 63 53 48 45 75.
Must-fix: opening the Style sheet in this build hitches ≥50 ms in 6 of 8 runs; dev has 1 of 8 (51 ms) and the integration base 0. The 1298 ms is one outlier (outliers occur in every arm over a night's runs, not attributable), but the median 58 vs 24.5–30.5 is the effect. Likely cause (not profiled): the Page tab now builds the 13 theme tiles (each runs the contrast maths in
swatch(), mini card + generated gradient per tile) in the sheet's open task; dev's Page tab has far less. Ideas: build the theme row in a later step ofPageTab's own staging (after the sheet has opened), precomputeswatch()per scheme once at idle, or render the tiles as plain CSS variables instead of per-tile JS.App-scheme switch: all arms hitch (dev 6/8, base 5–6/8, s4 7/8; median 55–63 ms): the switch repaints everything and exists on dev, so it is not attributable to slice 4, but s4 is +8 ms median and +1 run over base; the new gradient/
--fadetransition on.glis the obvious suspect and is worth a look when the sheet-open fix lands. The theme tile taps are 38 / 48.5 ms median (1 and 4 runs ≥50): near the Mac's noise floor; no dev equivalent.Safari text sharpness (1440×900, DPR 1; the Mac VM's display has no 2x mode, so 2x is not checked here)
Same note, editor not focused (
off) vs focused (on: the integration head promotes.wside/.wc-listto layers while typing;.typingclass present on base and s4, absent on dev): list/sidebar text is as crisp inonas inofffor both base and s4, and matches dev's unpromoted text by eye (shots below). I had no image tooling on hd01 for a pixel diff; judged by eye on the 1x shots. 2x stays an open item for kayg's retina.iPhone Simulator (std, own sim
s4t-sim, iOS 27.0 / iPhone 18 Pro, deleted on exit)Reproduced the known bug:
?sheet=stylewith no tab opens with Page highlighted over the Text tab's content (Font, Text size, Tree lines).&tab=pageshows the correct Page content (Theme row, Cover). It is not slice 4's code (StyleSheet.svelteis identical to dev's, and the pager's one-shotscrollLeftis the suspect), so I did not change it here: filed as #1111 with steps and the suspect.Pooled ×3 typing/list CPU gate: not run, and why
The merge resolution touched a hot path (the six-piece
GlobalLayerpaint on the list/sidebar side, plus slice 4'sEditor.svelte,cm.css,editing.svelte.tswhich the typing path runs through), so a pooled ABAB ×3 on perf-01 IS owed. I did not spend it on this head because the must-fix above changesPageTab/ThemeRow(not the typing path, but the finalGlobalLayermay change too if the scheme-switch hitch is chased). Run it once on the head that fixes sheet-open. Perf-01's queue also had two live tickets.State
Pushed:
4eca8a496(merge),a2f824dee(budgets). Not merged, per instructions. Nothing left running on dev-01, dev-02, the Mac or std from this lane except the units named in the final report (stopped there).Shots
Mac Safari: Style sheet, this head, light
Mac Safari: Style sheet, this head, dark
Mac Safari: Style sheet, base
4f0b58327, lightCrisp, this head, editor focused (promoted layers)
Crisp, this head, editor not focused
Crisp, dev (no promotion)
iPhone Sim: ?sheet=style (no tab): Page highlighted, Text content (bug, #1111)
iPhone Sim: ?sheet=style (no tab), dark
iPhone Sim: ?sheet=style&tab=page (correct)
Style sheet open hitch (Safari): fixed. Head
683b00eda(code =08262ee8b+ budgets). Not merged.Follow-up to the gate report above (comment 95717). Base for "base" below: integration head
4f0b58327. "dev":796d80cba. "s4":a2f824dee(the head that hitched).What it was (profiled, then bisected in real Safari)
Chromium trace (dev-01, 4x throttle, unminified builds, 5 opens each): s4 added about +170 ms of style recalc, +120 ms of paint, +120 ms of rAF callbacks and +90 ms of forced layout over base. The rAF callbacks were ThemeRow's
edges()readingscrollWidthand the firstreveal()runningscrollIntoView, both forcing layout inside the open. The contrast maths (tokens()× 13) was about 20–30 ms at 4x. I fixed those first (02ee2302e).Real Safari didn't move on that fix (sheet open: s4 65 → 81.5 ms median), so I bisected in Safari, same session, 8 ABAB cycles each (worst frame per open: median | runs ≥50 ms):
and a second round on the staged build: dev 40.5 (0/8) · staged 77 (7/8) · no gradient 49.5 (4/8) · no card shadow 64 (6/8) · fill only on intent 60.5 (8/8) · 4 tiles + intent 52.5 (4/8).
Cause: Safari paints the theme tiles' 39 radial gradients (the largest part) and 13 blurred card shadows in the frames of the open. It's not the contrast maths, the row mask or the GlobalLayer gradient.
The fix (no look change)
lib/theme-thumbs.ts(new): each theme's tile picture, meaning the backdrop gradient plus the mini card's shadow, is drawn once on a canvas from the same numbers as the CSS.gradientPools()inthemes.tsis now the one source for both the CSS string and the canvas. The result is kept as a decoded image, so a tile paints one cached image. The 1 px inset line and the card itself (paper, ink lines, dot) stay CSS, so the layering is unchanged. A tile whose picture isn't ready yet draws with CSS exactly as before.swatch()solves only the body ink (the same calltokens()makes; a unit test checks every theme and scheme) and is cached.edges()reads geometry in its ResizeObserver callback (layout already clean), and the firstreveal()runs there too; the default first tile needs none.02ee2302e,eeca6d78b,b2fd47e92,07ece5961,35e5fa10a,08262ee8b(code);3dd26fcd6,20988183c,683b00eda(budgets).Real Safari, macos-01 (final session below): 1440×900, DPR 1, ABAB 8 cycles, same session, arms dev | base | s4 | final (
35e5fa10a;08262ee8bonly adds the 3x branch, which is the same code at DPR 1)Blank page first: 138 frames in 2 s (mean 17.25 ms, ≥60 rAF/s; one 115 ms frame in the 2 s, idle noise). Free memory 1.6 GB at start, 0.5 GB at end, swap 0. Idle baseline: worst 23–24 ms median in every arm, 0 frames ≥50 ms.
Per-run worst frame on open: dev 40 33 23 45 45 36 24 58 · base 33 49 36 49 46 38 48 36 · s4 66 64 70 59 60 60 79 65 · final 41 34 37 41 37 39 41 42. (Scheme rows: 7 cycles, because my wrapper's ssh dropped mid-run; the script kept going and finished the open/close rows.) The theme pictures were in use on every measured open (13/13
.thumb.pic).Two earlier full sessions on
07ece5961/b2fd47e92agree: final 42.0 (1/8) vs dev 34.5 (1/8), base 42.5 (1/8), s4 61.5 (8/8); bake 39 (3/8) vs dev 27 (1/8), base 34 (2/8), s4 57.5 (4/8).Verdict on the brief's pass line: sheet open now has no extra ≥50 ms hitches (0/8 vs dev 1/8) and sits at the integration base's level. Its median is within 2 ms of dev in the final session, but across sessions it tracks base rather than dev: base itself is +4 to +8 ms over dev in every session, and that gap is the integration head's, not slice 4's.
Scheme switch: I tried the
--fadechange (crossfading a static::afterlayer's opacity instead of transitioning a registered custom property; it composites to the same pixels, Faded strips matched within 1–2 levels). In Safari it was worse (scheme → dark 75.5 vs s4 66.5; → light 75 vs 63), so I dropped it, as the brief says (branch deleted). The scheme switch hitches in every arm (dev included). s4 and final sit about 0–14 ms above base on → light depending on the session (sessions: +3/+2, +5/+5, +14/+15), so it's still an open item, not touched by this fix.Look: the theme row, s4 (CSS tiles) vs final (canvas pictures), diffed in Safari's own canvas over the row's box (43,885 px). Light: mean |Δ| 0.95, 869 px over 4 levels. Dark: mean 0.29, 175 px over 4. The differences are sub-pixel edges (the card's right edge, the tile rim) and name-glyph antialiasing (the names are CSS in both arms). Crops below: top = s4, middle = final, bottom = |Δ| × 4.
Gates (head code
08262ee8b; budgets head683b00eda)Server binary: dev-01
nf-base-bin(crates identical to this head:git diffof crates/Cargo.lock = 0 lines; only a re-written Cargo.lock in that tree), dev-02 a copy ofnf-toolbar's binary (crates identical, same check). 19 spec files (style-presets.spec.ts was deleted by slice 4):CI=1 bunx playwright test <19 specs> --project=<p> --workers=1 --retries=0, under~/bin/slot.3dd26fcd6one run hittint.spec.ts:313phone swipe:--repeat-each=8→ 48/48 on this head, 46/48 on base4f0b58327: an existing flake in the integration head)tokens()for all themes/schemes;gradient()unchanged by the pools refactor)perf/web.sh --bundle-only --gate)a2f824dee, same toolchain: first JS 229.013 → 229.041 (index code byte-identical unminified, same exports; hash jitter only), first CSS 19.843 → 19.843, idle-screens 60.055 → 61.072 (+1.017, the pictures module), total 543.673 → 545.007. Lines: index 229.11, idle-screens 61.08; total set to the sum of the chunk lines (554.777), as the gate requires. The merged heada2f824deealready summed to 553.672 against a total of 550.007, so its gate also failed that check.~/bin/perf-turn s4h-1100, perf-02 lock held by a watcher, dev vs dev2 control vs this head, 8 each per session; measured dist =35e5fa10a, which is identical code on every path but the 3x branch)The list number is against dev, so it includes the whole integration head. Nothing in this fix runs on the list path (ThemeRow is mounted only in the Style sheet; warming waits for 1.5 s of no input). To attribute it, I've queued a second turn with the integration base as a fourth arm (
s4h-1100-attr: dev, dev2, base, new; ×3) and will post it here when it lands.Open / for kayg in the morning
--fadechange I tried made it worse. Still open.Shots
Theme row, light: top s4 (CSS), middle final (pictures), bottom |Δ|×4, 3× zoom
Theme row, dark: top s4 (CSS), middle final (pictures), bottom |Δ|×4, 3× zoom
Correction + clean verdict: sheet-open fix passes on a quiet Mac. Head
683b00eda. Not merged.1. My earlier Safari numbers are invalid (overlap with the Mail lane's Mac job)
The Mail lane's job on macos-01 checked out its worktree at 13:40:49 PST (03:10:49 IST) and was writing cargo build output until 14:48:15 PST (04:18:15 IST). My Safari sessions ran 13:25–15:53 PST. Sessions 1–5 (the first five-arm run, both variant bisects, the "stage" run and the "bake" run) overlapped that window completely, and I can't prove the machine was quiet for 6–8 either. Every Safari frame number in comment 95791 is withdrawn as a measurement. My script took the lock with
mkdironly, but I'm now using exactlyuntil mkdir /tmp/mac-bench.lock 2>/dev/null; do sleep 30; doneand never writing into a lock dir I didn't create. Each run now also logs the load average and the top CPU processes, so contention is visible in the data. The bisect direction (the tile gradients and shadows painted in the open) is what the code change is based on; the clean runs below confirm the outcome.2. Also found: the comparison wasn't like for like
Slice 4 makes a note with no width line render as the Narrow card (
widthOf()→"narrow", orchestrator 11-12 "mockup values win"), while dev and base render the same note Full. The harness noteframe-00has no width line, so s4/final were opening the sheet over a floating card while dev/base opened it over a full page. The clean re-runs therefore seed two extra notes in every arm,calternal-width: fullandcalternal-width: narrow, and measure each.3. Clean real-Safari verdict (macos-01, 1440×900, DPR 1, ABAB 8 cycles per session; lock taken by my own
mkdir, released at exit; load 1.0–2.3, top CPU only WebKit/Safari)Worst frame per sheet open: median | runs ≥50 ms.
683b00eda)mediaanalysisdwas at 96% CPU during it, so I discarded it and re-ran (the row above).--fadechange stays dropped.Look check (clean): theme row, s4 (CSS) vs final (pictures), diffed in Safari over the row's box: light mean |Δ| 0.71 (625 of 43,885 px over 4 levels), dark 0.31 (198 px). Same sub-pixel edges as before.
4. Typing/list attribution (perf-01,
~/bin/perf-turn s4h-1100-attr, perf-02 lock held by a watcher 20:31:22–21:18:51 EST; arms dev, dev2 control, base4f0b58327, new = this head's dist; 6 per arm per session, ×3)Gates on the code head (unchanged since comment 95791)
chromium-1440 117 passed / 0 failed · chromium-390 97 / 0 · webkit-1440 112 / 0 · webkit-390 92 / 0 · svelte-check 0 errors (19 warnings, as before) · vitest 295 passed · bundle gate exit 0 (first JS 229.041, idle-screens 61.072, total 545.007; lines index 229.11, idle-screens 61.08, total = sum 554.777).
Open for kayg
Merged into
port/notes-floatwith--no-ffat200db310dby the orchestrator. Gates: comment 95791 + correction 95864 (clean Safari re-runs: sheet open at or below dev, typing at dev, list at base). Open for the final review: iPhone-sim look of the theme row; list script residual is tracked by the residuals lane. Closing.Pull request closed