port: attachments (approved mockup) 3/3: note embeds, mini bar, widths, custom text #861
Closed
kayg
wants to merge 20 commits from
port/port-attachments-3 into port/port-attachments-2
pull from: port/port-attachments-3
merge into: kayg:port/port-attachments-2
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!861
Loading…
Reference in a new issue
No description provided.
Delete branch "port/port-attachments-3"
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?
port: attachments, slice 3 of 3 (note embeds, mini bar, widths, custom text, phone Attach) · stacked on slice 2
is a card with the note's title, its first six lines (blocks drawn read-only: headings, lists, to-dos, quotes, emphasis) and "Show all N lines";<Note.md#Ingredients>shows only that part (#^idone line); it stays live (a change to the note marks its text stale, the card asks again and redraws). States are the links' (#448): never written (Make the note), in the Trash (lines shown dimmed, Restore), deleted for good (Create a new note), each with Remove embed. Open scales the note up out of its card (300 ms, reduced motion keeps the plain arrival)."large"; on desktop it reaches 56 px past the text column on each side, on a phone to within 7 px of the card's edge, never scrolling the page sideways (asserted). Compact ("compact") for notes, PDFs, recordings.Gates (head
abe12cb0= gated headef0937a3+ a CSS-only change to the viewer's veil; Chromium dev-01, WebKit dev-02,CI=1 --retries=0,~/bin/slot)vitest521 pass,tscok; webvitest87 pass;svelte-check0 errors; Rust: contract test ok.e2e/note-embeds.spec.ts(whole note and one part, open; live: text typed in another page shows in the card; never written → Make the note; mini toolbar sets Large and Card, wider than the card, no sideways scroll; double-click changes the words and empty gives the name back; phone text bar Attach) +pictures+embeds+bar-stable+phone-bars: chromium 273 pass; webkit 273 pass. The broader regression set on the stack head (editor, links, picker, no-hscroll, text-size too) passed on Chromium (325 of 326, the one failure was a read of an element that had been drawn again, fixed in the spec) and WebKit (320 of 322; the two were the Linux-WebKit video crash above).Bundle (gz, whole stack vs
dev)devSlice 3 adds +4.4 KB first paint / +4.5 KB total. The embed builders are in the editor chunk (the extension has to draw them synchronously); lazy-loading them is a possible later trim.
Screenshots
Control host:
~/Developer/Worktrees/shots/port-attachments/(product-*↔mockup-*, 1440x900 and 390x844). Pairs: note card (whole, part), picture with mini toolbar, viewer (desktop and phone); Attach menu (tools bar and text bar) and Large are product-only.Not ported yet, and why
pill/plain/map/web-link cards, code and CSV previews, Add-to-gallery+, drag a picture onto another to join (gallery stays "several on one line" by hand, or by Attach with several photos).🤖 Generated with Claude Code
First-paint budget (#866) at head
495b4041: first_js_brotli 240.136 KB (limit 240: over by 0.136), first_css_brotli 22.739 KB (limit 22.1: over by 0.64: the mini toolbar and note-card styles),PictureViewer1.216 KB (limit 1.1), andattachmentsis 10.3 KB (a new chunk name, needs a budget line). Everything this PR adds to JS lives in the lazyattachmentschunk (note cards, mini toolbar, zoom, live cards,embed-note.ts); the entry gets only the zoom and peek hooks (lazy.ts,peek.ts) and the phone text bar's Attach button. I did not raise any limit. To get under: the CSS can move to the chunk (measured: that costs the entry ~0.2 KB for the listed dependency, so it needs the entry trimmed too) or kayg can give this PR its own lines. Gates: Chromium 310 and WebKit 306 pass (pictures, embeds, note-embeds, bar-stable, phone-bars, editor, links, picker), editor 521 / web 87 unit tests.kayg referenced this pull request2026-11-05 23:21:11 +00:00
housekeeping #1009: rebased+failing, left open for review.
restacked attachment slice three on #860. preserved final viewer/embed modules and current dev bars; peek notifications follow the memory update without eager prefetch. removed obsolete widget.ts and updated peek subscriptions to onPeek.
head:
985c68535484651b39cd611cc8f814a36c05ff75; based on devcd7f84432febfc63b788fbb9b9f9950452982d74, pushed with the original exact force-with-lease.frontend frozen install, check, lint, build and unit tests passed. bundle gate failed. first-paint brotli vs dev: JS 231081 B (+304 B), CSS 18386 B (+0 B).
Rust gate results (Mac VM):
cargo fmt -p calternal-attachments -- --checkcargo check -j4 --locked -p calternal-attachments --all-targetscargo clippy -j4 --locked -p calternal-attachments --all-targets -- -D warningscargo test -j4 --locked -p calternal-attachmentstargeted Chromium and WebKit specs at 1440 and 390 never started. the audit waited more than three hours behind the live daily-train-1107 locks (first queue at 23:45 IST, 7 November; final queue cleanup after 02:46 IST, 8 November). browser validation and UI captures are unrun. only this audit’s exact queued units were stopped; the train locks and owners were left intact. hot-path perf qualification is unrun.
all executed gates used the VM Nix environment, shared Mac lock and slot. exact commands, source heads, logs and dev baseline. frontend inputs are identical to the tested frontend tree when a Rust-only repair changed the head.
original-head cherry/patch inventory,
pr-861.md; unmatched entries are missing-patch candidates, with semantic overlap/replacements noted above.final queue, cleanup and source-verification evidence.
Final-port test pass (issue #1009), READY: no: 2 real failures; bundle gate fails; first paint is bigger than dev.
head
985c68535484651b39cd611cc8f814a36c05ff75Targeted specs,
CI=1 --retries=0 --workers=1, dev-01 Chromium and dev-02 WebKit (through~/bin/slot), against a dev-head backend (cd7f84432).Failing:
embeds.spec.ts:101(1440, same cause as #860) andnote-embeds.spec.ts:145 on a phone the text bar has Attach, and it opens the same menu(390).Bundle gate:
perf/web.sh --bundle-only --gate(the 17 failures from the housekeeping audit). Per the gate's own rule (total_js_brotlibudget must equal the sum of the named chunk budgets) a cap can only move between named chunks; there is no donor chunk inside this PR, so a fix is a code cut or a decision by kayg. I raised nothing and moved nothing.attachments9.90 KB (no budget),PictureViewer1.21 vs 1.1. First paint JS +304 B vs dev (rule: <= dev).Not done: Not run yet: Mac VM Safari blur/frame check and perf ABAB x5 on the perf VMs (they need a ready PR first); light/dark 2x screenshots against the mockup are only done for #888 (see its comment).
Not marked READY FOR MERGE.
Screenshots and state (issue #1009),
a4ee1ff888Attachments and pictures (#846, #860, #861; this is the #861 tip). Product (Chromium, 2x) next to the approved mockup, light and dark. Not READY: first paint is over dev (JS +257 B plain; see the #1009 table). Specs: Chromium and WebKit at both sizes green (pictures, note-embeds, embeds, bars, dialogs) after one real fix:
embeds.csswas imported by nothing inapps/web, so pictures were drawn without their styles in WebKit (pictures:70and:143).Differences from the mockup: the product's audio card has no waveform or scrubber; its PDF is a tile row with no page preview; the viewer shows the note dimmed behind the picture where the mockup has a blurred backdrop; the picture toolbar has fewer buttons; the product's Insert sheet at 1440 is a small floating card.
Screenshots (2x; light and dark; 1440x900 and 390x844). Left: the approved mockup (review/calendar-2). Right: this PR.
attach-menu
note-card
note-part
note-picture
picture
large
gallery-stack
gallery-grid
viewer
audio
pdf-file
textbar
Screenshots and state (issue #1009),
fcf655253bAttachments and pictures (#846, #860, #861; this is the #861 tip), restacked on dev
661123e94. Product (Chromium, 2x, re-taken after the rebase) next to the approved mockup, light and dark. Not READY: first paint JS is over dev (+233 B #846, +202 B #860, +352 B #861; #846 CSS +129 B). Specs: pictures, note-embeds, embeds, bars, dialogs, phone-bars: green on Chromium and WebKit at both sizes (275 passed each). Gate passes (budget total 517.3 KiB). Rebase notes: Image and File are now blocks of the registry (Media group) that open the chooser inside the tap, since the Insert sheet lists the registry; the attach menu uses dev'saboveplacement, not the oldup;embeds.cssis imported by the lazy widget module. Perf ABAB is queued behind other lanes.Screenshots (2x; light and dark; 1440x900 and 390x844). Left: the approved mockup (review/calendar-2). Right: this PR.
attach-menu
note-card
note-part
note-picture
picture
large
gallery-stack
gallery-grid
viewer
audio
pdf-file
textbar
Differences from the mockup: the product's Insert sheet at 1440 has Image and File where the mockup has one Photo or file tile; the audio card has no waveform or scrubber; the PDF is a tile row with no page preview; no cover chip.
Perf (perf-02, Chromium 4x slowdown, 10k notes, 5 interleaved rounds, dev built from
3f079de39run twice as a control; medians of per-run p50 / p95, ms):The dev-vs-dev control moves by as much as any arm (code_block p95 34.8 vs 47.3; long_note p95 53.4 vs 55.5), so there is no change beyond the noise on any metric, for any arm. Arms are the heads built from the rebased branches (#854
f58c71010, #861f20b9457b, #849 as144013926before its budget-only commit, #102217010f469).First paint on dev
3f079de39: +78 B plain / +467 B normalised. Gate passes atf20b9457b. Specs: all chromium specs pass. webkit-1440 (15) and webkit-390 (7) fail in embeds, note-embeds and pictures (Page crashedon dev-01 under load 30+); the same four pictures specs fail the same way on the pre-rebase headfcf655253, so they are not caused by the rebase. They need a quieter host to be told apart from load.READY FOR MERGE: attachments embeds (head
f20b9457b): the webkit failures were the hostRe-ran the three specs that crashed (
pictures,note-embeds,embeds) in webkit-1440 and webkit-390 on dev-02, which was idle: load 3.1 before, 6.5 at the end (dev-01 was at 30 to 40 when they crashed). Same head, samecalternal-h861backend: 31 passed, 1 skipped, 0 failed. The four pictures specs that hadPage crashedpass too. So the earlier webkit failures were the loaded host (WebKit crashing under memory/CPU pressure), not this PR and not the rebase.The rest of the evidence on this head is unchanged: gate passes, chromium 1440 and 390 all pass, only dev's own failures elsewhere. First paint against dev is still over (+78 B plain / +467 B normalised on
3f079de39); that is kayg's call and is parked until the new table.READY FOR MERGE: attachments 3, embedded notes (head
ac2061d00, on #860)Merged dev
fe2efbf11(#1044) into the branch (clean; it also merges cleanly with the newer4274dafb4), budgets regenerated from a fresh build, bundle gate clean, specs on dev-02 withcalternal-h861, chromium and webkit at 1440 and 390. Dev baseline: 228023 B plain / 227378 B normalised / CSS 18236.Specs (+ embeds, note-embeds, phone-bars, keys-no-motion): 654 passed, 518 skipped, 0 failed on dev-02; the earlier webkit
Page crashedfailures on dev-01 do not recur on an idle host. Pixel and contrast specs on x86 (dev-01): see the dev-01 comment below.Handoff: head
ac2061d00is pushed and READY as postedHandoff (usage limit): the x86 pixel and contrast run on dev-01 (4 projects, 15 specs) was stopped before finishing this head; I released its job. Done: dev
fe2efbf11and the earlier heads (#902, #854, rows tip, #878 base) ran there with the same 6phone-barsphoto-dark failures on dev itself and nothing new. Next step: re-runpx-d1b.sh-style pixel set on this head on dev-01 (about 1 h per head) if you want it before merging.BLOCKED / unrun in the current ports lane
Current remote head:
ac2061d00fec31d72fb2d6e1f12c3df1c79be9b0. This PR was not changed or retested in this pass.The requested serial lane stopped at #902: fresh dev-01 measurement on dev
31972329bshows first-paint JS +313 B (+0.306 KiB), CSS unchanged, and failed index/ContactsScreen bundle lines. The instruction is to stop and report additional growth requiring kayg; no budgets were raised. Current #902 evidence and exact commands.For this PR: rebase/push, svelte-check, vitest, four-project targeted e2e, contrast, bundle delta, editor perf vs dev, and fresh real Safari / iPhone Simulator product-versus-mockup captures are unrun in this pass. Earlier evidence remains historical; this comment makes no current READY claim. The approved tables/attachments growth remains accepted as specified by kayg; that approval was not revoked or changed. No merge performed.
visual evidence on
895e94efc: BLOCKED on growth, qualification incompleteReal Safari on the Mac VM at 1440×900, plus iPhone 18 Pro Safari on std, light and dark, own simulator under the shared simulator lock (shut down and deleted afterwards). Native iPhone capture is 402 CSS px wide / 1206 image pixels; auxiliary Chromium captures cover exactly 390×844. Glass is assessed only in real Safari / native iOS Safari. The initial Linux WebKit auxiliary capture crashed; the Chromium auxiliary capture passed after waiting for the preview DOM rather than all media downloads.
Approved reference:
review/calendar-2, https://preview.calternal.cloud/calendar-2/chrome.html . Public mockup fixture assets and sample notes only.The current product shell, title spacing and backdrop differ from the mockup; these captures do not establish full visual parity. Native phone shots cover resting card/note layouts; they do not cover every active viewer/media state. Desktop Safari captures cover the listed active states.
Known scope gaps remain: PDF is a metadata tile rather than a rendered first page; video has a fixed placeholder rather than the mockup poster/dimensions; audio waveform is populated on play. The fixture uses JPEG for the mockup HEIC sample and small generated PDF/CSV/code sample files, so metadata differs.
The obsolete
attachments/widget.tswas removed after svelte-check caught its old handler signature; the live Svelte widget is the sole implementation.current-dev validation: BLOCKED
Head
895e94efcacca2e044c4d2752519460261700c57, rebased stack on dev31972329b0691183dbda982d6f0c765139ad3368. No merge performed. This result supersedes earlier readiness claims.Only this PR's original budget lines were carried forward, with
_approval_attachments_861citing "kayg 11-10, tables and attachments ports OK". Unrelated dev budgets, including ContactsScreen 14.17, remain intact. No allowance beyond the recorded amount was added.All correctness/build gates ran on dev-01 through
~/bin/slotand Nix:bun run --cwd apps/web checkbun run --cwd apps/web testbun run --cwd packages/editor testPERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gateTargeted command:
CI=1 E2E_DIST=<built-dist> CALTERNAL_BIN=<attachment-debug-bin> bunx playwright test e2e/pictures.spec.ts e2e/phone-bars.spec.ts e2e/keys-no-motion.spec.ts e2e/embeds.spec.ts e2e/note-embeds.spec.ts --project=chromium-1440 --project=chromium-390 --project=webkit-1440 --project=webkit-390 --workers=1 --retries=0.Contrast command:
bunx playwright test --project=contrast --workers=1 --retries=0. Failure: desktop light Insert sheet over photo/glass, "Link to a note" contrast 4.20, required 4.5. This remains unresolved.The initial editor timing failures on #846/#860 are retained in the evidence. Full
bun run --cwd packages/editor test --maxWorkers=1reruns passed (568/572). Both affected specs were also repeated ten times each on dev, #846 and #860; all passed. No timing assertions were changed. These reruns do not override the independent e2e/contrast blockers.Shared Rust inputs are identical across #846 → #860 → #861. Gates passed:
cargo fmt -p calternal-attachments -- --check;cargo check --locked -j4 -p calternal-attachments --all-targets;cargo clippy --locked -j4 -p calternal-attachments --all-targets -- -D warnings;cargo test --locked -j4 -p calternal-attachments;cargo test --locked -j4 -p calternal contract; debug and release builds ofcalternal.First paint, Brotli against dev: JS +513 B (+0.501 KiB); CSS +0 B (+0.000 KiB). Content-hash-normalised JS +627 B. Total JS including opt-in chunks +11709 B (+11.435 KiB). Dev baseline: first JS 227763 B, CSS 18859 B, normalised JS 227384 B, total JS 534085 B.
Recorded allowance: plain JS +314 B / normalised JS +515 B / CSS +0 B. Normalised JS exceeds that allowance by 112 B, so this PR is BLOCKED even where its bundle gate passes. Extra growth requires kayg's decision.
Perf: not run, growth stop. Following the explicit stop-and-report instruction, the unstarted FIFO measurement ticket was cancelled after the size overrun was established. No attachment timing samples were produced; no perf approval is claimed. No timing ran on std.
Real Safari / native iPhone light-dark product versus approved mockup evidence and remaining visual gaps. Native iPhone 18 Pro is 402 CSS px; auxiliary captures cover exactly 390×844. Screenshots do not establish visual parity.
Gate logs, bundle JSON, repeat logs and exact command scripts. All owned gate, screenshot and perf jobs have finished or been stopped; locks released.
All feature-spec failures below are WebKit; Chromium cases passed. Missing picture/embed assertions and page crashes remain unresolved, with no host-only attribution:
The final head also deletes the unimported superseded
attachments/widget.ts, which still called an obsolete handler signature; the live module iswidget.svelte.ts. Gates above were rerun on this final head.final implementation result: BLOCKED, head
0703d25932e2c2f43a026c922aba699eee54c14a, dev comparison31972329b0691183dbda982d6f0c765139ad3368. no merge and no budget increase.shared fixes: attachment cards, previews, viewer, upload code and styles remain cold until attachment content or a file gesture. the first paste/drop copies files, destination and caret synchronously. native file selection keeps its user gesture. a 1 px image-line font avoids WebKit's zero-font font-cache assertion, without changing the geometry assertions. Insert labels use primary ink to meet AA. metadata completion, including delayed, empty and failed replies, now controls the first card frame instead of a 250 ms timeout. failures release waiters and remain retryable without an offline redraw loop.
this head also fixes Large cards on phones: the old symmetric outsets ignored the real 40 px / 18 px editor gutters, placing the right edge at 395 px in a 390 px viewport. a strengthened viewport-edge assertion failed in Chromium and WebKit, then passed in all four main projects with separate start/end outsets.
all gates ran through
~/bin/slotand Nix. Playwright usedCI=1 --workers=1 --retries=0. exact commands and logs are attached. picture geometry now waits through a deliberately delayed 500 ms metadata response; assertions were strengthened, not relaxed. cold-start paste/drop coverage verifies attachment chunks are absent through plain-note idle.failure comparison on dev: the new attachment renderers and controls are absent there, so feature assertions cannot be treated as pre-existing dev failures. the matched raw-markdown dev WebKit control passed 20/20 without the crash or reflow. dev's relevant contrast controls passed 2/2; original PR contrast reproduced at 4.20/4.49 before the primary-ink fix. metadata unit tests were red on the previous implementation and green with the completion barrier. the original failure lists are retained in comments 90154, 90157 and 90160.
normalization uses the existing
~/bin/norm-fp.mjs, Brotli q11 and hash replacement, not a new comparison method. raw JS exceeds the recorded allowance by 453 B; normalized JS is within its allowance by 3 B. residual growth requires kayg's decision. a broad bundle pass does not approve these extra bytes.typing check on perf-01, same session and fixtures, FIFO plus both performance locks. four dev and four PR runs per comparison, counterbalanced ABBAABBA; 216 real keys per note at 60 ms/key, 4x CPU throttle. the attached note contains four pictures, the plain note has matched prose. dev has the same markdown, with its existing rendering. no Linux frame or paint claim.
dev/dev control TaskDuration deltas: plain -0.6596%, attached +2.0002%. the no-regression requirement is not cleared. positive results are retained as blockers, not waived against the control noise. the earlier ThreadTime-based CPU labels are withdrawn: that field includes the inter-key wait and is excluded from this report. TaskDuration and ScriptDuration are aggregate main-thread work under the same throttle, not native frame measurements.
native visual status: BLOCKED for desktop proof. real Safari on the Mac VM produces an opaque blue 1440×900 capture on dev. a separate 800×600 diagnostic remained blue after dev was fully ready and synced, with populated note text. that diagnostic is attached and is not visual approval. a fresh Safari session and readiness checks did not resolve it. no timing claim is made from std or Linux frames. infraternal#260 was checked; captures only ran on std.
native iPhone 14, iOS 27.0, 390 CSS px, light/dark product versus approved mockup captures:
pre-fix head
3918c6314only. final0703d2593refresh failed at simctl openurl, and the retry was cancelled behind an unverifiable Mac lock directory without a holder. these images retain the original right-edge clipping and are red evidence, not proof of the fix. final-head iPhone visual verification remains BLOCKED.product, light:
mockup, light:
product note cards, light:
mockup note cards, light:
product, dark:
mockup, dark:
product note cards, dark:
mockup note cards, dark:
visual gaps: these pairs cover the initial picture and, on #861, note cards in light/dark. gallery, media, viewer and toolbar states still lack valid final-head real Safari screenshots. product uses neutral page chrome while the approved mockup has a warmer backdrop and additional cover/AI controls. note-card fixture content differs from the mockup recipe. no pixel-parity claim is made. mockup source:
review/calendar-2, calendar-2 preview.final gate, size, typing and red/green receipts
dev real-Safari readiness diagnostic, invalid visual proof
measurement launch receipt, after staging and manifest hash verification:
lock-coordinator.pyin the receipts takes perf-02's shared lock only after perf-01's FIFO turn starts, signals the harness, and releases it after measurement completion. the completed harness returned 0 with all 56 note samples. both locks have been checked released. all owned gate, capture and server jobs are stopped; the owned simulators are deleted. owned scratch build assets, fixtures and staged binaries were removed. the unrelated empty Mac lock directory was left untouched.Design pass result: BLOCKED. Nothing merged; the PR branch is not updated (see "why not pushed"). Work is on
wip/att-lazy-861(head9b91a15f9); the unit, e2e, contrast and typing runs below were on the code-identical heads745bdbedf(onlyperf/budgets.jsondiffers: the lazyattachmentsline was set to its measured size, first-paint and index lines untouched).Design: pictures/embeds are one CodeMirror state field in the lazy attachments chunk, put into an empty editor slot when the chunk loads (note with attachments, first paste/drop, native chooser).
hidden.tsand the editor core are dev's exact code. Keystrokes in a note with attachments only look at the changed lines.Gates (dev-01, through
~/bin/slot, Nix; PlaywrightCI=1 --workers=1 --retries=0)Intermittent failure introduced by this redesign (blocker).
pictures.spec.ts:95(Attach → Photos),--repeat-each=10, chromium-1440: 2/10 fail. The same spec on the previous head4a6df335a: 10/10 pass. In the failing frame the Insert sheet is still open and covers the new picture, so the click is intercepted.pictures.spec.ts:150(source toggle), webkit-1440, ×10: 1/10 fail; dev control (editor.spec.ts:5, sametoggleSourcehelper): 10/10. Not root-caused. My suspicion is the editor reconfigure that fills the slot when the chunk arrives, racing the sheet close; not proven.First-paint JS, brotli, vs dev
31972329b(227763 B; hash-normalised 227384 B)I could not reach "at or below dev". Per-module raw growth of the entry chunk on #846:
Editor.svelte+312,lazy.ts+259,intake.ts+250 (loader, file-gesture handler, slot). No first-paint budget was raised.Typing (perf-01,
perf-turnFIFO plus perf-02 lock, 4x CPU throttle, 216 real keys at 60 ms, ABAB ×3 per comparison = 6 dev + 6 PR; dev-vs-dev control 8 runs; same session)Screenshots (iPhone 14 simulator, iOS 27.0, Safari, 390 px, light and dark, product vs
review/calendar-2; attached below). Real Safari 1440: not captured:safaridriverrefuses to start on std ("Allow remote automation" is off in Safari's Developer settings and enabling it needs the GUI/admin). I did not change that setting. The earlier "invalid" Safari capture was the app's loading skeleton. Note-card states useblocks-and-embeds.Why not pushed: the new heads fix the typing cost and shrink first paint, but they add the intermittent Attach failure above; I will not put that on the PR branch. Rebase onto dev:
origin/devis still31972329band the branch merges cleanly (git merge-treewrites a tree), so Forgejo's "not mergeable" flag looked stale.product-861-picture-iphone-light.png:






product-861-picture-iphone-dark.png:
product-861-notes-iphone-light.png:
product-861-notes-iphone-dark.png:
mockup-notes-iphone-light.png:
mockup-notes-iphone-dark.png:
Interim result (Attachments lazy-load flakes) — head
8015e266eonwip/att-lazy-861; the PR branch is not updated yet.Same root cause and fix as #846 (see the comment there); cherry-picked as
914db3ea2, then the budget line.20× runs on this stack:
pictures.spec.ts:95chromium-1440 20/20;pictures.spec.ts:150webkit-1440 20/20.First-paint JS (brotli) vs dev
31972329b: 228539 B = +776 B (+1631 B raw).chunk.indexset to the measured 223.19 (note "kayg OK 11-11, Attachments lazy-load"); total adjusted.Typing (pooled 10 runs per arm): plain task −0.48% / script +0.37%; attached (4 pictures) task +0.85% / script +0.33%; dev-vs-dev control ±0.8% plain, −2.7%/−3.7% attached.
Shots: Safari 1440 and iPhone simulator, light and dark, note with a picture and the open Insert sheet (below).
Full suite: in progress; results follow.
Final result (Attachments lazy-load flakes) — head
eade53594onwip/att-lazy-861. This replaces the interim comment above.Same root cause and fix as #846, plus the
/Image/File fix, the stale phone Attach spec, and two CSS fixes for typing cost (caption strip blur and mask, as in #860; and the embed toolbar'sbackdrop-filteris now on only while it shows, since an invisible one on every embed still cost per key).20× on this head:
pictures.spec.ts:95+:122chromium-1440 40/40;:167+:122webkit-1440 40/40.Full suite (top of the stack, split per project on dev-01 with
--workers=1 --retries=0, run onddf8ec33a; later commits changed only specs, CSS and budgets):picker-lazy.spec.ts:12: 10/10 on dev and 10/10 on #861, not reproduced)note-bars.spec.ts:69, stale spec, fixed, 10/10)style-card-box.spec.ts:123fails 10/10 on dev too;tree.spec.ts:37710/10 on dev and #861;vim-block.spec.ts:23×20 each 40/40 on dev and on #861bar-stays.spec.ts:38fails 7/10 on dev, 2/10 on #861;style-card-box.spec.ts:1235/10 dev, 6/10 #861;style-card-box.spec.ts:13010/10;note-bars.spec.ts:6910/10Bundle gate: pass (index 223.406 KB measured, line 223.42 with the note "kayg OK 11-11, Attachments lazy-load"). First-paint JS vs dev
31972329b: about +1000 B brotli (the gate's build-hash jitter included), just under 1 KB.Typing (8 runs per arm, interleaved; control ±0.8% plain / ±0.2% attached): plain task −0.0% / script +0.7%; attached task −1.35% / script +1.0%.
Shots below (Safari 1440, iPhone simulator; light and dark).
Restacked on dev
be968d9df(orchestrator request). Heads: #8469d52d4fb7, #860291b96483, #8615a22dd9b8; each is a descendant of the one below and #846 contains dev.Conflicts, kept both intents:
Editor.svelte(the attachment preview wait, with dev'sreadFm),vite.config.ts(dev's chunks plus the idle-screens addition),packages/editor/package.json(hidden-blocksnext to the image/embed exports),perf/budgets.json(lines set from a measurement on the new base; total = sum of chunk lines).Checks on the top (#861): bundle gate pass on all three layers (first-paint JS vs dev
be968d9df, brotli: #846 +669 B, #860 +536 B, #861 +900 B); svelte-check 0 errors; unit tests editor 590 / ui 104 / web 272;pictures.spec.ts×10 chromium-1440 70/70, webkit-1440 69/70 (the one failure is:167source toggle in WebKit;:167×40 on the same head: 40/40); targeted specs (pictures, slash-menu, note-bars-fit, note-bars, editor, bar-stable, dialog-stable, phone-bars): chromium-1440 38/38, chromium-390 291/291, webkit-1440 35/35, webkit-390 287/287.Typing on the new base (perf-01
perf-turn+ perf-02 lock, 4× CPU, interleaved dev/PR) is NOT at dev for attached notes. Plain notes are flat (task −0.5% / script −0.9%, 8 runs per arm). Attached notes (4 pictures, two form a gallery), top: task +3.35% / script +0.6% (6 per arm), then +4.06% / +2.5% (8 per arm; control +0.2% / −2.6%). Per layer (6 per arm, one session, control −4.4% / −3.1%): #846 −1.1% / −0.2%, #860 +1.6% / +1.3%, #861 +2.3% / +3.0%. Hiding the embed toolbar on the PR arm only: +2.3% / +1.0%. On the old base (dev31972329b) the same top measured −1.35% / +1.0%, so dev's changes moved the baseline. Needs a decision or a further look before merge.Restack on dev
7747f0490+ hit-testing diagnosis: NOT READY (attached notes still +1.2% task / +0.8% script)Restack. I merged dev forward through the stack instead of cherry-picking, because #846 already holds a conflict-resolved dev merge that
--no-mergeslists would drop. Each layer contains the one below it. Heads: #846ce81bc787, #86068be8ab75, #861b27cb8ba0. #861's toolbar and flattening commits (c1e56823f,e5aa82003) are present. The specs have 29 tests at chromium-1440.Why typing shows hit testing / mouse-move work (dev-01, Chromium traces, 4× CPU throttle, ~216 keys per session)
handleMouseMoveEvent. That is why any extra style or layout cost shows up under "hit testing".pointer-eventson embeds 45.9,contain: layout style45.8, no lift transform 46.9, nocontent-visibility44.6, hide embeds 48.8. dev-01 is shared and noisy (session sd 1–5 ms), so these only point a direction, with no proof.DisplayLockUtilities::SelectionChangedfires once per key whenever acontent-visibility: autocard exists (0 on dev). It is cheap (0.015 ms/key) but it is the display lock showing up.Change made:
content-visibilityremoved from the picture/video clip, the card fan and the gallery cell (7ff563de7; CodeMirror already draws only nearby lines). Budget lines for the attachments chunk (9.52→9.55) and the press chunk (7.86→7.90, 7.864 measured, build-hash jitter), total 556.32→556.39 (b27cb8ba0).Pooled typing gate on the final build (perf-01
perf-turn+ perf-02 lock held from outside because perf-01→perf-02 ssh was refused; 4× CPU, interleaved dev/PR, 40 runs per arm over 5 sessions; bootstrap 95% CI; binary: the 11-11 attachments binary for both arms, since only the web bundle differs)Gates on the final head (
b27cb8ba0; the CSS head7ff563de7differs only inperf/budgets.json)An earlier spec failure (
pictures.spec.ts:56, ENOENT on trace files) came from me running four projects in onetest-resultsdirectory; with--outputper project it is clean. A first run on dev-01 was lost when the host rebooted at about 05:25 IST.Remaining gap: attached notes are +1.2% task / +0.8% script (CI includes 0, but the point estimates are above dev). A visible picture adds per-frame work that dev's plain-text line doesn't have (image priority updates, layers, intersection computation); the traces show the cost is constant, not per-picture, and not a pointer effect. I could not resolve it below ~2% on a shared dev VM. Next step if wanted: the same ablations (no
.cm-embed-lifttransform/transition,containon the card, plain<img>without the strip) as real builds in one perf turn each.Re-gate on dev
796d80cba: PASS (14 Nov 2026). kayg accepted the measured attached-note typing cost on 14 Nov; no redesign.Restack (merge, not cherry-pick; dev's 4 new commits are only
ops/files, so the non-ops tree is identical to the one gated in #861 comment 94636): #846802a8d56b-> #860fd2b0a512-> #8619a3d38586. Diff of #861 vsb27cb8ba0outsideops/: none.9a3d38586)cargo build -j4 --locked -p calternal(dev-01 x86, dev-02 aarch64)bun run checkin apps/web (both VMs)bunx vitest runin apps/webbunx vitest runin packages/editorperf/web.sh --bundle-only --gate(both VMs)playwright test <6 specs> --project=<p> --workers=1 --retries=0 --output=<per project>Server binary for e2e: built from the #861 head on each VM (Rust changes in
crates/attachments).Real Safari (macos-01, 1440x900) and iPhone Simulator (std, own iPhone 18 Pro sim, iOS 27.0, light and dark) on a sample note with 3 pictures, a PDF + file card + picture, and a note embed (whole +
#Ingredients). All 12 shots rendered without errors (pictures load, caption strips + blur, cards, phone bottom bar with Aa / + / paperclip). Shots attached below.Differences vs the approved mockup (review/calendar-2 "Blocks and embeds"): the mockup page is the Float layout (sidebar/pane chrome, mic button, sparkle in the toolbar, warm gradient backdrop) while this app shows dev's 3-pane chrome and its own backdrop, so only the embed elements are comparable. Note-embed cards match in structure (title, lines fading out, "Show all N lines", "Open ->"); the card there is tinted by the backdrop, here it is the paper colour. Picture strip: name left,
w x h . sizeright (pixels dropped on phone, as in the mockup rule). I could not frame the mockup's picture block in my headless scroll, so the picture/PDF comparison rests on the spec-covered values and the earlier approved port shots, not a fresh side by side. Mockup shots shown only for chrome context.embeds-dark-1440.png:











embeds-light-1440.png:
note-embed-dark-1440.png:
note-embed-light-1440.png:
pictures-dark-1440.png:
pictures-light-1440.png:
embeds-dark-phone.png:
embeds-light-phone.png:
note-embed-dark-phone.png:
note-embed-light-phone.png:
pictures-dark-phone.png:
pictures-light-phone.png:
Full Playwright suite on
9a3d38586: no blockerStack head
9a3d38586(#846 + #860 + #861, restacked on dev796d80cba). Full Playwright run on both VMs, every project, nothing merged. No failure reproduces on the branch only. Four first-run failures: onesearch-palette, onecontacts-edit, twonote-bars-motionthrottled variants. All four also fail-or-pass the same way on dev or do not reproduce, so each has a stability issue (#1113, #1114, #1115).Setup
~/Developer/Worktrees/att861-fullat9a3d38586on dev-01 (claude@calternal-dev-01-compute02.vpn.kayg.org, x86_64) and dev-02 (cua@calternal-dev-02-std.vpn.kayg.org, aarch64).~/bin/slot nix develop -c bash -c "cargo build -j4 --locked -p calternal && bun install --frozen-lockfile". Both exit 0 (dev-01 4m38s, dev-02 1m26s).~/Developer/Worktrees/att861-devat796d80cbaon both VMs, built the same way. Used only for the repeats below.Per-project results (first full run, branch)
CI=1,--retries=0,--workers=1(the config says CI is serial because the projects share a vault; I did not raise it to 4), one~/bin/slotjob per project, its own--outputdir. Counts are the per-projectresults.jsonstatuses. Listed total 5345 across all projects.Totals: pass 3505, fail 4, skip 1836 (dev-01 2687 listed, dev-02 2658). Skips are as Playwright reports them. I did not audit each skip.
Dependency projects also ran inside the WebKit jobs on dev-02 (Playwright runs a project's dependencies with it):
admin-setup1/1,prefs-chromium7/7,contrast10/10,sidebar-band-chromium3/3, all passed on aarch64.Failure table
9a3d38586796d80cbae2e/search-palette.spec.ts:47"the list never shows an empty frame between two keys"search-palette.spec.ts:68: expected 0, received 3e2e/contacts-edit.spec.ts:114"the Notes take a timestamp line and keep what is typed after it"getByRole('textbox', { name: 'Notes' })(at line 123)e2e/note-bars-motion.spec.ts:71variants "rest to Style sheet, and back" and "rest to Attach menu, and back" (@throttled, 6x CPU)No row fails only on the branch, so none is a blocker. Row 3 fails on dev too, and the branch count (5/20) against dev (3/20) is too small to call a regression. If you want a clean number for it, that is the point to ask for it. Note: the throttled runs in each repeat batch shared dev-01 with other lanes.
Commands (exact)
CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal PLAYWRIGHT_JSON_OUTPUT_NAME=<out>/<project>/results.json bunx playwright test --project=<project> --workers=1 --retries=0 --output=<out>/<project>/test-results --reporter=line,json, run as~/bin/slot nix develop -c bash -c "..."from~/att861-run.sh, one systemd-run unit per group.--config=playwright.att861-throttled.config.ts. This is a temporary untracked file that importsplaywright.config.tsand keeps only thethrottled-*projects withdependencies: []. Without it,--project=throttled-*pulls every project into the run (5340 tests, which I stopped after 1 minute).CI=1 CALTERNAL_BIN=<wt>/target/debug/calternal bunx playwright test <file:line> --project=<project> --repeat-each=10 --workers=1 --retries=0, run on branch and dev in turn (throttled ones strictly one after the other).Cleanup
Worktrees,
target/,apps/web/test-results, units,~/.slotsholder records, and/tmpscratch are removed on both VMs after this comment. The untracked throttled config goes with the worktrees. Nothing merged, and no code changed.note-bars-motion.spec.ts:71@throttled on a quiet perf VM: same as dev (14 Nov 2026)Verdict: same as dev. The #1115 gap (branch 5/20, dev 3/20) came from shared build VMs, not from the Attachments stack. On quiet perf-01 neither arm failed once, 0/80 each. Nothing merged. The stability fix is still #1115.
796d80cba9a3d38586By test, 40 runs per arm:
The number is the longest main-thread task of the asserted "there" trace (the
longest Nin the MOTION line, rounded to whole ms). Each of the 8 blocks was 20 of 20 passed, both arms, and no block had a failure. The highest value in either arm (118 ms) is well under the 250 ms limit. The earlier failures were 257–361 ms, so a 2× gap was not a thin margin on this host.How it was run
~/bin/slot:cargo build --release -j4 --locked -p calternal+bun install --frozen-lockfile+vite build, worktrees at exactly9a3d38586and796d80cba. The spec,trace.tsandhelpers.tshave no diff between the two commits.branchbdd143ba…cf8,devc20a1a88…a76; dist tarballs and the node_modules/e2e rig tarball also matched.~/bin/perf-turn attach-throttled ~/attthr/turn.shon perf-01 (22:06–22:25Z, 19 min). The script takes perf-02's lock first and holds it for the whole turn.playwright test e2e/note-bars-motion.spec.ts:71 --project=throttled-390 --repeat-each=10 --workers=1 --retries=0withCI=1, against a copy ofplaywright.config.tswith project dependencies emptied (as the #861 full-suite lane did). The config lives outside the repo, on perf-01. Order interleaved ABAB × 4: dev, branch, dev, branch, … (8 blocks, 20 runs each).Decision
No regression from the Attachments stack on this gate. Leave
:71as is for #861 and fix its stability in #1115 (it needs a quiet host, or a run alone, as #1115 says; this turn confirms a quiet host is enough).Cleanup
Released perf-02's lock (the first release call failed on a DNS blip; I released it by hand ~5 min after the turn ended). Removed the perf-01/dev-01 staging dirs, the two worktrees on dev-01 and the
target/dirs.Merged into
devwith--no-ffat8b00393b0by the orchestrator (whole stack #846 ⊂ #860 ⊂ #861). Gates: #861 comments 95661 (targeted + shots), the full-suite comment and 95754 (throttled check); typing cost accepted by kayg 14 Nov. Closing.Pull request closed