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
Owner

Status (14 Nov 2026): ready for merge review. kayg accepted the measured attached-note typing cost on 14 Nov (+1.24% task, about +0.26 ms/key at 4x CPU throttle, CI -0.3 to +2.7%; plain notes -0.7%), so the approved picture card (caption strip + lift) stays. Stack restacked on dev 796d80cba (heads: #846 802a8d56b, #860 fd2b0a512, #861 9a3d38586). Gates: see the comment on this PR and the shared table on #861. Not merged.

port: attachments, slice 3 of 3 (note embeds, mini bar, widths, custom text, phone Attach) · stacked on slice 2

  • Note embeds as live cards: ![T](<Note.md>) 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 (#^id one 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).
  • Mini toolbar on every embed (corner of cards, end of rows, under a gallery): the layouts as a segmented choice, Open/Download, then ⋯ for the same menu as a right-click. At once on hover or focus, fades out fast; on touch it shows while the card is focused.
  • Widths: Large (pictures, video) is written as "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.
  • Custom text (CV4): double-click a picture's name (or a note card's title) to change the link's words (its alt text); Enter keeps, Esc leaves, empty gives the file's own name back. The first click of a double click waits 260 ms on the name only, so it never opens the viewer by accident.
  • Attach in the phone's keyboard text bar (next to the link button; pressing it does not take the keyboard from the text), same upward menu.
  • Viewer: shows the picture's name under it, a lighter veil (as the mockup).

Gates (head abe12cb0 = gated head ef0937a3 + a CSS-only change to the viewer's veil; Chromium dev-01, WebKit dev-02, CI=1 --retries=0, ~/bin/slot)

  • editor vitest 521 pass, tsc ok; web vitest 87 pass; svelte-check 0 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)

gz bytes first paint (entry) all JS+CSS
dev 314,236 460,562
slice 1 317,511 (+3.3 KB) 465,238 (+4.7 KB)
slice 2 323,395 (+9.2 KB) 471,534 (+11.0 KB)
slice 3 327,810 (+13.6 KB) 476,079 (+15.5 KB)

Slice 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

  • Embed layouts 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).
  • The mockup's Scan document and Unsplash rows of the Attach menu (no backend yet); Camera shows only on touch.
  • A note card's ⌘↵ shortcut hints, the mockup's expand-in-place for the card's lines (the card expands, but without the mockup's height spring).

🤖 Generated with Claude Code

> **Status (14 Nov 2026): ready for merge review.** kayg accepted the measured attached-note typing cost on 14 Nov (+1.24% task, about +0.26 ms/key at 4x CPU throttle, CI -0.3 to +2.7%; plain notes -0.7%), so the approved picture card (caption strip + lift) stays. Stack restacked on dev 796d80cba (heads: #846 `802a8d56b`, #860 `fd2b0a512`, #861 `9a3d38586`). Gates: see the comment on this PR and the shared table on #861. Not merged. ## port: attachments, slice 3 of 3 (note embeds, mini bar, widths, custom text, phone Attach) · stacked on slice 2 - **Note embeds as live cards**: `![T](<Note.md>)` 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 (`#^id` one 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). - **Mini toolbar** on every embed (corner of cards, end of rows, under a gallery): the layouts as a segmented choice, Open/Download, then ⋯ for the same menu as a right-click. At once on hover or focus, fades out fast; on touch it shows while the card is focused. - **Widths**: Large (pictures, video) is written as `"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. - **Custom text (CV4)**: double-click a picture's name (or a note card's title) to change the link's words (its alt text); Enter keeps, Esc leaves, empty gives the file's own name back. The first click of a double click waits 260 ms on the name only, so it never opens the viewer by accident. - **Attach in the phone's keyboard text bar** (next to the link button; pressing it does not take the keyboard from the text), same upward menu. - Viewer: shows the picture's name under it, a lighter veil (as the mockup). ### Gates (head `abe12cb0` = gated head `ef0937a3` + a CSS-only change to the viewer's veil; Chromium dev-01, WebKit dev-02, `CI=1 --retries=0`, `~/bin/slot`) - editor `vitest` 521 pass, `tsc` ok; web `vitest` 87 pass; `svelte-check` 0 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`) | gz bytes | first paint (entry) | all JS+CSS | |---|---|---| | `dev` | 314,236 | 460,562 | | slice 1 | 317,511 (+3.3 KB) | 465,238 (+4.7 KB) | | slice 2 | 323,395 (+9.2 KB) | 471,534 (+11.0 KB) | | slice 3 | 327,810 (+13.6 KB) | 476,079 (+15.5 KB) | Slice 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 - Embed layouts `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). - The mockup's **Scan document** and **Unsplash** rows of the Attach menu (no backend yet); Camera shows only on touch. - A note card's ⌘↵ shortcut hints, the mockup's expand-in-place for the card's lines (the card expands, but without the mockup's height spring). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kayg added 20 commits 2026-11-02 13:16:26 +00:00
viewer: a lighter veil, as the mockup's
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
abe12cb0e4
Author
Owner

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), PictureViewer 1.216 KB (limit 1.1), and attachments is 10.3 KB (a new chunk name, needs a budget line). Everything this PR adds to JS lives in the lazy attachments chunk (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.

**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), `PictureViewer` 1.216 KB (limit 1.1), and `attachments` is 10.3 KB (a new chunk name, needs a budget line). Everything this PR adds to JS lives in the lazy `attachments` chunk (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.
Author
Owner

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 dev cd7f84432febfc63b788fbb9b9f9950452982d74, 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):

exit command
0 cargo fmt -p calternal-attachments -- --check
0 cargo check -j4 --locked -p calternal-attachments --all-targets
0 cargo clippy -j4 --locked -p calternal-attachments --all-targets -- -D warnings
0 cargo test -j4 --locked -p calternal-attachments

targeted 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.

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 dev `cd7f84432febfc63b788fbb9b9f9950452982d74`, 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): | exit | command | |---|---| | 0 | `cargo fmt -p calternal-attachments -- --check` | | 0 | `cargo check -j4 --locked -p calternal-attachments --all-targets` | | 0 | `cargo clippy -j4 --locked -p calternal-attachments --all-targets -- -D warnings` | | 0 | `cargo test -j4 --locked -p calternal-attachments` | targeted 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](https://git.kayg.org/attachments/870a0fef-2e31-425c-aea6-eb87a66d365a). frontend inputs are identical to the tested frontend tree when a Rust-only repair changed the head. [original-head cherry/patch inventory](https://git.kayg.org/attachments/e05a38dc-c028-4d77-8655-efa9d5c8ea50), `pr-861.md`; unmatched entries are missing-patch candidates, with semantic overlap/replacements noted above. [final queue, cleanup and source-verification evidence](https://git.kayg.org/attachments/7ab315a5-4b6c-4af1-971b-cdae2637adae).
Author
Owner

Final-port test pass (issue #1009), READY: no: 2 real failures; bundle gate fails; first paint is bigger than dev.

head 985c68535484651b39cd611cc8f814a36c05ff75

Targeted specs, CI=1 --retries=0 --workers=1, dev-01 Chromium and dev-02 WebKit (through ~/bin/slot), against a dev-head backend (cd7f84432).

spec Chromium 1440 Chromium 390 WebKit 1440 WebKit 390
embeds, note-embeds 10 pass, 1 fail 11 pass, 1 fail 10 pass, 1 fail 11 pass, 1 fail

Failing: embeds.spec.ts:101 (1440, same cause as #860) and note-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_brotli budget 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.

  • Gate: attachments 9.90 KB (no budget), PictureViewer 1.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.

**Final-port test pass (issue #1009), READY: no: 2 real failures; bundle gate fails; first paint is bigger than dev.** head `985c68535484651b39cd611cc8f814a36c05ff75` Targeted specs, `CI=1 --retries=0 --workers=1`, dev-01 Chromium and dev-02 WebKit (through `~/bin/slot`), against a dev-head backend (`cd7f84432`). | spec | Chromium 1440 | Chromium 390 | WebKit 1440 | WebKit 390 | |---|---|---|---|---| | embeds, note-embeds | 10 pass, 1 fail | 11 pass, 1 fail | 10 pass, 1 fail | 11 pass, 1 fail | Failing: `embeds.spec.ts:101` (1440, same cause as #860) and `note-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_brotli` budget 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. - Gate: `attachments` 9.90 KB (no budget), `PictureViewer` 1.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.
Author
Owner

Screenshots and state (issue #1009), a4ee1ff888

Attachments 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.css was imported by nothing in apps/web, so pictures were drawn without their styles in WebKit (pictures:70 and :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

mockup this PR
1440 light
1440 dark
390 light
390 dark

note-card

mockup this PR
1440 light
1440 dark
390 light
390 dark

note-part

mockup this PR
1440 light
1440 dark
390 light
390 dark

note-picture

mockup this PR
1440 light
1440 dark
390 light
390 dark

picture

mockup this PR
1440 light
1440 dark
390 light
390 dark

large

mockup this PR
1440 light
1440 dark
390 light
390 dark

gallery-stack

mockup this PR
1440 light
1440 dark
390 light
390 dark

gallery-grid

mockup this PR
1440 light
1440 dark
390 light
390 dark

viewer

mockup this PR
1440 light
1440 dark
390 light
390 dark

audio

mockup this PR
1440 light
1440 dark
390 light
390 dark

pdf-file

mockup this PR
1440 light
1440 dark
390 light
390 dark

textbar

mockup this PR
390 light
390 dark
**Screenshots and state (issue #1009), a4ee1ff8885f654b89bf57c9ad533c3f7be3e1c1** Attachments 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.css` was imported by nothing in `apps/web`, so pictures were drawn without their styles in WebKit (`pictures:70` and `: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** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/83691742-583d-4605-8f98-d79fc9b20b80) | ![](https://git.kayg.org/attachments/9ff6c509-ae62-4e25-9b0a-e59a842785a1) | | 1440 dark | ![](https://git.kayg.org/attachments/c1b377d2-5b51-4d1d-992c-de308daee2cd) | ![](https://git.kayg.org/attachments/144fe3a5-b9ad-45f4-8e93-e3678687af74) | | 390 light | ![](https://git.kayg.org/attachments/11105e8a-6a1d-49d7-b305-fa030b9d493f) | ![](https://git.kayg.org/attachments/3602849a-5a78-4d67-b672-be11b221c67b) | | 390 dark | ![](https://git.kayg.org/attachments/9a189ec3-0d11-47aa-aa0a-f4b7a26940ae) | ![](https://git.kayg.org/attachments/c237d2a4-435b-4109-8ca5-446621c4b4fd) | **note-card** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/796ea36f-0cf1-484d-8618-5aadb0f107cd) | ![](https://git.kayg.org/attachments/d3c8ebdf-5958-48fd-a5c5-ceddc3145666) | | 1440 dark | ![](https://git.kayg.org/attachments/123fa7d0-3436-44d4-8c6f-4827ef4fb68a) | ![](https://git.kayg.org/attachments/bb36b578-7793-49ea-93c5-c433c4fb7b35) | | 390 light | ![](https://git.kayg.org/attachments/42eb69a8-72b0-45cf-a344-48aa91459cdc) | ![](https://git.kayg.org/attachments/235bce49-8497-4602-b458-9208d80b756a) | | 390 dark | ![](https://git.kayg.org/attachments/810cd1da-6f21-42b7-a7d8-3464db962fee) | ![](https://git.kayg.org/attachments/cd9b3037-7f2f-4108-9515-3080b7d83956) | **note-part** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/df520523-5665-45aa-b131-b93c5ffd7e4d) | ![](https://git.kayg.org/attachments/d7eb2c9e-d016-4857-8760-e74053c10caf) | | 1440 dark | ![](https://git.kayg.org/attachments/e3e7b4ed-7b0d-42c1-801f-3e3add9d2e1f) | ![](https://git.kayg.org/attachments/26e5e448-fddb-4f70-a097-dd8a85b5d644) | | 390 light | ![](https://git.kayg.org/attachments/b7e9b418-31f6-4598-973f-ff40e11e60f1) | ![](https://git.kayg.org/attachments/128d0fa9-591a-44c8-a984-98f5ad404fde) | | 390 dark | ![](https://git.kayg.org/attachments/482d63fa-71ca-4bca-9a7e-533d34d88a77) | ![](https://git.kayg.org/attachments/2f9c2569-9d9a-4596-8ca4-523f85e20a15) | **note-picture** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/0bf9a4b3-b218-4695-b5be-974d0318aabb) | ![](https://git.kayg.org/attachments/57b19d48-d2a3-43bb-b505-1ff3d1551ad0) | | 1440 dark | ![](https://git.kayg.org/attachments/94885b06-d0d1-4433-b0f0-d111f4654051) | ![](https://git.kayg.org/attachments/10d2a05d-e489-4895-bd74-7825fc062c8c) | | 390 light | ![](https://git.kayg.org/attachments/1b716f0f-5137-406e-83f5-0a832913b33e) | ![](https://git.kayg.org/attachments/fd9c00b4-3672-47d5-8893-08a65d56b8d5) | | 390 dark | ![](https://git.kayg.org/attachments/c83cf6f4-ed17-4e0d-9bde-29305d44544b) | ![](https://git.kayg.org/attachments/6d6a778f-8122-4c50-aa45-fa75b67b594d) | **picture** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/5d4a7c14-80c8-4014-adaa-9692cd2a0293) | ![](https://git.kayg.org/attachments/9a00da65-9b62-40d4-9b49-2a084936bd52) | | 1440 dark | ![](https://git.kayg.org/attachments/6a605783-3bc1-4810-b111-a73645c71442) | ![](https://git.kayg.org/attachments/bcdad948-5b6e-4916-bfd2-f01fb7b73e33) | | 390 light | ![](https://git.kayg.org/attachments/68cf1fe5-e54b-453f-8e38-c7c882a0c8dc) | ![](https://git.kayg.org/attachments/fe595e39-d0eb-4605-85a4-3c3c2330e57f) | | 390 dark | ![](https://git.kayg.org/attachments/cd32a484-f059-4130-8512-d64ba733fe07) | ![](https://git.kayg.org/attachments/65f1a53d-7873-4dbe-b13d-476588a3c9ff) | **large** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/c1f4cd96-9f15-4024-97db-f7e73a9af0d5) | ![](https://git.kayg.org/attachments/91eb11a7-b122-4f14-8a3d-36fc5e61ef64) | | 1440 dark | ![](https://git.kayg.org/attachments/d49fdaff-60f5-4d22-bccd-2b59cb614ee1) | ![](https://git.kayg.org/attachments/969f48ca-55dc-4941-93be-25d5e36fb293) | | 390 light | ![](https://git.kayg.org/attachments/4aaa79f0-4f7f-420a-8059-79ab64f2e861) | ![](https://git.kayg.org/attachments/57734517-5dac-4a39-9480-9223bb9bb7e8) | | 390 dark | ![](https://git.kayg.org/attachments/dfaa9874-6d77-4204-af38-d1cdd66626f6) | ![](https://git.kayg.org/attachments/8271fd73-78fd-4fad-a2de-fb349c12e169) | **gallery-stack** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/d64ea68b-4936-4366-81d5-1c4151efe26e) | ![](https://git.kayg.org/attachments/411cbcf8-f06b-474e-973f-e55082a18375) | | 1440 dark | ![](https://git.kayg.org/attachments/6693cc41-e5c0-429a-8a2f-3012974d5a97) | ![](https://git.kayg.org/attachments/03de7abe-b15f-46c8-be0f-c90074fecfdd) | | 390 light | ![](https://git.kayg.org/attachments/b56ef8ed-6e08-41e1-90a5-cbeccf5d314d) | ![](https://git.kayg.org/attachments/a313b11c-7b9a-46ee-a629-83e25b24f3c2) | | 390 dark | ![](https://git.kayg.org/attachments/003a16d8-8c18-453c-bf79-b7de949d6f15) | ![](https://git.kayg.org/attachments/42b4d102-5246-4b68-8cdf-29278b629925) | **gallery-grid** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/f0fa5490-a297-46e6-8c1f-9f81646b62e9) | ![](https://git.kayg.org/attachments/21563ac5-f2ea-448d-8ace-4419cfa80c1f) | | 1440 dark | ![](https://git.kayg.org/attachments/c14b2365-fde9-4a3e-b989-ad3523d91075) | ![](https://git.kayg.org/attachments/f366b2ee-3077-478b-aa27-46c076fffb3f) | | 390 light | ![](https://git.kayg.org/attachments/3a449d37-2a7d-47e4-b4e3-943548262524) | ![](https://git.kayg.org/attachments/828e7136-ed7f-41c8-9b94-365d533c3354) | | 390 dark | ![](https://git.kayg.org/attachments/9bdf81b0-25a0-403e-9cab-6ee1d278bc88) | ![](https://git.kayg.org/attachments/dd07b62f-cb0d-43df-a9a3-5cdbac7c4172) | **viewer** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/27d56e54-8011-489e-84fd-c4c84b29039f) | ![](https://git.kayg.org/attachments/854683d1-7ef8-4765-b794-51f5c431c3e6) | | 1440 dark | ![](https://git.kayg.org/attachments/82041f0b-96d9-4964-baf8-24566b6e1453) | ![](https://git.kayg.org/attachments/58cad892-a6fe-42fd-a24a-0affc3b17207) | | 390 light | ![](https://git.kayg.org/attachments/7f4df2dd-e400-4ce8-b63f-87689a051879) | ![](https://git.kayg.org/attachments/e120c047-efeb-4a7a-9194-943ef0c0042f) | | 390 dark | ![](https://git.kayg.org/attachments/3f499c53-d9e8-49c4-83d0-1277c1433843) | ![](https://git.kayg.org/attachments/3a15fb5b-1a6e-417c-81a0-c6588bab7155) | **audio** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/96c07dd9-4bf3-4011-afa1-5029722fe2ed) | ![](https://git.kayg.org/attachments/150e5619-f436-494f-8408-051323976ec6) | | 1440 dark | ![](https://git.kayg.org/attachments/295250dd-12d5-4ee1-8a20-d02ab2672ac6) | ![](https://git.kayg.org/attachments/ad545c4d-39bb-4c2f-889c-5052a38bb7c3) | | 390 light | ![](https://git.kayg.org/attachments/7f161860-96e2-4cd6-b22c-24aa108c25b8) | ![](https://git.kayg.org/attachments/6ef7f591-2b1e-4c51-9996-1da61fc52415) | | 390 dark | ![](https://git.kayg.org/attachments/cd424f1b-eca1-4442-9706-adc6fb92d652) | ![](https://git.kayg.org/attachments/45304ba6-18ab-48be-8759-2de947f58266) | **pdf-file** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/a10e20df-6d1c-402a-a66b-878309c57e73) | ![](https://git.kayg.org/attachments/fe0f0de1-dae7-47b9-8060-040a59228c2e) | | 1440 dark | ![](https://git.kayg.org/attachments/cfdebabc-bcd7-4d86-81fd-64ad1434c388) | ![](https://git.kayg.org/attachments/c34f164f-d1fb-43a5-910e-040b99bbfbae) | | 390 light | ![](https://git.kayg.org/attachments/f72cde85-b23d-4565-b709-a2dec12c2e08) | ![](https://git.kayg.org/attachments/5e4c701a-d993-40ae-b79b-65a9e790a13d) | | 390 dark | ![](https://git.kayg.org/attachments/386cf7ab-08a8-4c66-9ce8-fa3011a3b89d) | ![](https://git.kayg.org/attachments/c19c7fa9-7c14-4898-9549-515538d7eb12) | **textbar** | | mockup | this PR | |---|---|---| | 390 light | ![](https://git.kayg.org/attachments/5d84537c-6ff6-4aba-9b7c-bb5384e061b7) | ![](https://git.kayg.org/attachments/4576fee1-35da-4def-92f3-33cb12b46053) | | 390 dark | ![](https://git.kayg.org/attachments/ec9c71de-7c7c-4327-b10c-4ad89b9b6d3c) | ![](https://git.kayg.org/attachments/a6ed21bf-b99f-445c-9e97-0a14e98429bc) |
Author
Owner

Screenshots and state (issue #1009), fcf655253b

Attachments 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's above placement, not the old up; embeds.css is 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

mockup this PR
1440 light
1440 dark
390 light
390 dark

note-card

mockup this PR
1440 light
1440 dark
390 light
390 dark

note-part

mockup this PR
1440 light
1440 dark
390 light
390 dark

note-picture

mockup this PR
1440 light
1440 dark
390 light
390 dark

picture

mockup this PR
1440 light
1440 dark
390 light
390 dark

large

mockup this PR
1440 light
1440 dark
390 light
390 dark

gallery-stack

mockup this PR
1440 light
1440 dark
390 light
390 dark

gallery-grid

mockup this PR
1440 light
1440 dark
390 light
390 dark

viewer

mockup this PR
1440 light
1440 dark
390 light
390 dark

audio

mockup this PR
1440 light
1440 dark
390 light
390 dark

pdf-file

mockup this PR
1440 light
1440 dark
390 light
390 dark

textbar

mockup this PR
390 light
390 dark

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.

**Screenshots and state (issue #1009), fcf655253bdd9b32f00a3b3dcfdc3678b8f544e5** Attachments 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's `above` placement, not the old `up`; `embeds.css` is 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** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/3fa05b8a-a081-4baf-a1f7-a62afc82b39c) | ![](https://git.kayg.org/attachments/d4fdee20-82ab-4967-9e84-8d722ecec26d) | | 1440 dark | ![](https://git.kayg.org/attachments/6df9c63f-1e80-4ace-b4db-6f71f90fe1a0) | ![](https://git.kayg.org/attachments/cb09b7eb-5ab5-487a-86a7-7c92d3cae9de) | | 390 light | ![](https://git.kayg.org/attachments/797e7785-23e2-41d1-9f13-6dbec7921266) | ![](https://git.kayg.org/attachments/2c86f154-7778-4493-8105-60076d256f08) | | 390 dark | ![](https://git.kayg.org/attachments/c5dcaac5-193a-4303-8f18-a61be5e186eb) | ![](https://git.kayg.org/attachments/604605d0-4427-44bf-98dd-15b938587663) | **note-card** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/11742305-da7a-43f8-8c03-60edf2d7426a) | ![](https://git.kayg.org/attachments/8dc8f24e-361b-4d41-b86e-388113fd4c77) | | 1440 dark | ![](https://git.kayg.org/attachments/ae87d5fd-443b-454a-992e-fc65f4bfa145) | ![](https://git.kayg.org/attachments/475cc8e7-8f9a-4681-b79b-842d321bcca2) | | 390 light | ![](https://git.kayg.org/attachments/9a69330c-f4e1-45ee-9a55-ec216941d6fe) | ![](https://git.kayg.org/attachments/606ba1eb-f918-4880-9dd6-ac5b94c614a0) | | 390 dark | ![](https://git.kayg.org/attachments/f570607e-6ade-4ec1-b919-2761883c8c29) | ![](https://git.kayg.org/attachments/aacb23ea-040d-45ae-8ee2-a9e3b1de8f88) | **note-part** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/413b19c8-76df-4d6e-84e6-638760c49007) | ![](https://git.kayg.org/attachments/1fa54c01-5fec-412d-a242-5beb83a26661) | | 1440 dark | ![](https://git.kayg.org/attachments/365568ba-6ffc-452c-a922-5b1e86b8cb88) | ![](https://git.kayg.org/attachments/259afe05-b405-4f2d-a36c-f9715e031d7c) | | 390 light | ![](https://git.kayg.org/attachments/646cee8a-96e9-4e57-9bb0-2e08f22c1cc5) | ![](https://git.kayg.org/attachments/a0bc4a0c-5278-4eee-b34f-6fed8a1e0518) | | 390 dark | ![](https://git.kayg.org/attachments/d2a7a951-4c15-483e-9d8f-a624cb681c9b) | ![](https://git.kayg.org/attachments/83113021-4cfd-4f85-b8cb-69ca4f6a87e5) | **note-picture** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/32d1b59d-0bd9-4abb-9c90-7ea198d34575) | ![](https://git.kayg.org/attachments/28f83d9f-5a69-4061-9f49-e45e38dd77a6) | | 1440 dark | ![](https://git.kayg.org/attachments/e8cc40c2-bb45-4adb-8b8c-8031f9d2102e) | ![](https://git.kayg.org/attachments/071553c9-c360-4c29-919f-fa9de229548e) | | 390 light | ![](https://git.kayg.org/attachments/4b698100-6dd0-4df1-8cfa-02b1fde76199) | ![](https://git.kayg.org/attachments/9064238b-33aa-4807-b87d-0eb83f9a1498) | | 390 dark | ![](https://git.kayg.org/attachments/4b1c884b-599b-4f94-bfa6-a549c1b2148e) | ![](https://git.kayg.org/attachments/cae160b3-7b85-492d-80f5-668a194b3996) | **picture** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/14e91131-39b1-4dd4-907a-b130f48da59a) | ![](https://git.kayg.org/attachments/2babc51a-deb1-49d5-8624-b39b7e78533e) | | 1440 dark | ![](https://git.kayg.org/attachments/f4eeb1c6-f3bc-4e37-adc3-0a2ac48736b0) | ![](https://git.kayg.org/attachments/170f0aa8-3fe7-46e7-a868-8176fa589da1) | | 390 light | ![](https://git.kayg.org/attachments/a3bbf5f0-7e73-47bd-a17e-92bdd69acc5e) | ![](https://git.kayg.org/attachments/69876961-51b3-4be4-8d4f-6f606468f1f7) | | 390 dark | ![](https://git.kayg.org/attachments/8bb0869b-b7bd-45c5-a7e4-292133e63b3e) | ![](https://git.kayg.org/attachments/fa2299c0-8bf7-4178-8d30-b7a070c98ade) | **large** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/380f03e6-91d6-471c-9091-7778e3496cd4) | ![](https://git.kayg.org/attachments/47c316da-ebf2-4b70-bfe8-eb5c723b0beb) | | 1440 dark | ![](https://git.kayg.org/attachments/457fe72b-a811-4f6f-a35e-8513b545bd1a) | ![](https://git.kayg.org/attachments/10f094bd-542d-4a8b-abf1-abfa5ede9a1f) | | 390 light | ![](https://git.kayg.org/attachments/3be26591-850d-45a0-8b50-b8ed0908327c) | ![](https://git.kayg.org/attachments/42c83588-494b-4dbc-bc4b-a2309ab237d1) | | 390 dark | ![](https://git.kayg.org/attachments/5869df76-b18b-4b1d-99cc-87e3d36db87c) | ![](https://git.kayg.org/attachments/8dfb62d3-53ab-4e5d-9214-7d60f64832cc) | **gallery-stack** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/ad6710aa-1a4f-4b4d-9943-96de8efe9b73) | ![](https://git.kayg.org/attachments/aa01df88-c9fc-4c94-8338-48892e5d9519) | | 1440 dark | ![](https://git.kayg.org/attachments/926690af-a2e7-4b85-844f-d6077a73e5b6) | ![](https://git.kayg.org/attachments/e704a969-4d79-48d7-a93b-6abd141f6438) | | 390 light | ![](https://git.kayg.org/attachments/a16989d7-4214-485f-9737-4ecae4e08bc1) | ![](https://git.kayg.org/attachments/8ca62faa-3cd1-49a2-98e9-6f3c22b18fb3) | | 390 dark | ![](https://git.kayg.org/attachments/b6108cb2-e6b5-4067-8204-e198fba150d7) | ![](https://git.kayg.org/attachments/5cadb8dd-244a-40e0-8a61-9fbf67bdbfdf) | **gallery-grid** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/88269559-d897-41ee-9e61-02f90a6efecd) | ![](https://git.kayg.org/attachments/d3d2d6e4-6b69-4494-97d0-af667176fd06) | | 1440 dark | ![](https://git.kayg.org/attachments/da7e02fa-7661-44df-b593-5ff5ed8ba8b4) | ![](https://git.kayg.org/attachments/ee9c6c01-9fdb-4673-ba00-d7d2d86a6dea) | | 390 light | ![](https://git.kayg.org/attachments/b728b867-44b5-43e4-aaf8-81024bd19269) | ![](https://git.kayg.org/attachments/3ed54fe3-552d-4a69-91fc-02c31657cc7e) | | 390 dark | ![](https://git.kayg.org/attachments/788fa9bd-50d1-446c-9a1e-d35e946441d8) | ![](https://git.kayg.org/attachments/e0c5924f-07df-4488-a0d8-3dc12466797c) | **viewer** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/20e74d13-4819-43fc-ae28-8214e1795c6d) | ![](https://git.kayg.org/attachments/a91629b5-fa89-45c0-a049-f1b3740024f4) | | 1440 dark | ![](https://git.kayg.org/attachments/88424766-62ff-440f-82b8-baca2032c962) | ![](https://git.kayg.org/attachments/ad9f0e1a-01f3-43b7-8f92-0a9c99762e21) | | 390 light | ![](https://git.kayg.org/attachments/8046147e-8607-457a-9542-929c250485a7) | ![](https://git.kayg.org/attachments/f1acb065-11de-4fbd-a779-3c98191da4bc) | | 390 dark | ![](https://git.kayg.org/attachments/135aa536-7aa2-4c6e-aefd-1c0e10c4a305) | ![](https://git.kayg.org/attachments/8d251b90-8024-4d2b-bffa-4c875f55164e) | **audio** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/f05f8200-6547-45a8-8af1-6fef0eabfa87) | ![](https://git.kayg.org/attachments/661418d0-7556-443b-aeb8-1941c5d05940) | | 1440 dark | ![](https://git.kayg.org/attachments/42fb00c0-cce2-4c2e-8642-7c5293fae5d2) | ![](https://git.kayg.org/attachments/971a6db7-44ad-4c02-bb0a-08a5df67629e) | | 390 light | ![](https://git.kayg.org/attachments/9370e4e8-92b8-4a0c-afcb-11b2325d1d05) | ![](https://git.kayg.org/attachments/88827090-084e-4b7e-9a3b-ae791a06b1d6) | | 390 dark | ![](https://git.kayg.org/attachments/96c6683f-447a-400c-9765-d8960113b1f4) | ![](https://git.kayg.org/attachments/eaa54c3b-6773-448a-81f6-10616e1aeaee) | **pdf-file** | | mockup | this PR | |---|---|---| | 1440 light | ![](https://git.kayg.org/attachments/5d9efc52-7a34-47ec-a51f-3a2b9b2f282f) | ![](https://git.kayg.org/attachments/5d7860aa-85ed-4259-be94-5ca52c4f7815) | | 1440 dark | ![](https://git.kayg.org/attachments/a2b87a1e-2b68-44ef-98d9-a65e7e3e38ea) | ![](https://git.kayg.org/attachments/2d744f8d-25ba-46ce-ab38-50d99ee33116) | | 390 light | ![](https://git.kayg.org/attachments/247ae82e-2c17-44fa-b9ed-d2852e33a087) | ![](https://git.kayg.org/attachments/96a2e7b1-5d1a-4412-9a20-41c8d9f469da) | | 390 dark | ![](https://git.kayg.org/attachments/562495ce-4c72-467e-8d37-3434c6712979) | ![](https://git.kayg.org/attachments/3d49e6c0-c6de-4eb8-99ba-c4d75b222b46) | **textbar** | | mockup | this PR | |---|---|---| | 390 light | ![](https://git.kayg.org/attachments/9ae10453-f0db-4068-8b02-eb319774502c) | ![](https://git.kayg.org/attachments/1251d005-ea94-4bce-baca-4d9d5517560b) | | 390 dark | ![](https://git.kayg.org/attachments/326967d8-3175-4123-843c-8c5a2ad322a2) | ![](https://git.kayg.org/attachments/6422479c-65ac-4110-b752-2bb4bbb8b28d) | 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.
Author
Owner

Perf (perf-02, Chromium 4x slowdown, 10k notes, 5 interleaved rounds, dev built from 3f079de39 run twice as a control; medians of per-run p50 / p95, ms):

metric dev A dev B (control) #1022 credits #849 Contacts #854 tables #861 attachments
blaze.shown p50 / p95 36.2 / 64.7 36.0 / 65.7 35.5 / 67.3 37.3 / 65.1 35.1 / 62.3 34.7 / 66.6
type.long_note p50 / p95 21.9 / 55.5 23.5 / 53.4 22.8 / 55.2 23.3 / 54.8 21.8 / 57.0 26.3 / 61.5
type.nested_list p50 / p95 42.1 / 51.0 42.0 / 51.3 43.0 / 52.5 42.4 / 51.0 42.2 / 50.8 43.2 / 52.2
type.code_block p50 / p95 23.9 / 34.8 24.0 / 47.3 24.4 / 52.9 28.0 / 47.5 24.9 / 53.6 25.7 / 53.1
type.code_note_prose p50 / p95 28.0 / 63.0 29.6 / 64.0 29.6 / 68.6 33.4 / 68.5 27.9 / 69.5 37.1 / 71.2
blaze.cpu 76.8 76.3 75.8 75.8 75.4 77.2
blaze.long_task_max 157 153 157 151 149 162

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, #861 f20b9457b, #849 as 144013926 before its budget-only commit, #1022 17010f469).

First paint on dev 3f079de39: +78 B plain / +467 B normalised. Gate passes at f20b9457b. Specs: all chromium specs pass. webkit-1440 (15) and webkit-390 (7) fail in embeds, note-embeds and pictures (Page crashed on dev-01 under load 30+); the same four pictures specs fail the same way on the pre-rebase head fcf655253, so they are not caused by the rebase. They need a quieter host to be told apart from load.

**Perf** (perf-02, Chromium 4x slowdown, 10k notes, 5 interleaved rounds, dev built from `3f079de39` run twice as a control; medians of per-run p50 / p95, ms): | metric | dev A | dev B (control) | #1022 credits | #849 Contacts | #854 tables | #861 attachments | |---|---|---|---|---|---|---| | blaze.shown p50 / p95 | 36.2 / 64.7 | 36.0 / 65.7 | 35.5 / 67.3 | 37.3 / 65.1 | 35.1 / 62.3 | 34.7 / 66.6 | | type.long_note p50 / p95 | 21.9 / 55.5 | 23.5 / 53.4 | 22.8 / 55.2 | 23.3 / 54.8 | 21.8 / 57.0 | 26.3 / 61.5 | | type.nested_list p50 / p95 | 42.1 / 51.0 | 42.0 / 51.3 | 43.0 / 52.5 | 42.4 / 51.0 | 42.2 / 50.8 | 43.2 / 52.2 | | type.code_block p50 / p95 | 23.9 / 34.8 | 24.0 / 47.3 | 24.4 / 52.9 | 28.0 / 47.5 | 24.9 / 53.6 | 25.7 / 53.1 | | type.code_note_prose p50 / p95 | 28.0 / 63.0 | 29.6 / 64.0 | 29.6 / 68.6 | 33.4 / 68.5 | 27.9 / 69.5 | 37.1 / 71.2 | | blaze.cpu | 76.8 | 76.3 | 75.8 | 75.8 | 75.4 | 77.2 | | blaze.long_task_max | 157 | 153 | 157 | 151 | 149 | 162 | 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`, #861 `f20b9457b`, #849 as `144013926` before its budget-only commit, #1022 `17010f469`). First paint on dev `3f079de39`: +78 B plain / +467 B normalised. Gate passes at `f20b9457b`. Specs: all chromium specs pass. webkit-1440 (15) and webkit-390 (7) fail in embeds, note-embeds and pictures (`Page crashed` on dev-01 under load 30+); the same four pictures specs fail the same way on the pre-rebase head `fcf655253`, so they are not caused by the rebase. They need a quieter host to be told apart from load.
Author
Owner

READY FOR MERGE: attachments embeds (head f20b9457b): the webkit failures were the host

Re-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, same calternal-h861 backend: 31 passed, 1 skipped, 0 failed. The four pictures specs that had Page crashed pass 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 embeds (head `f20b9457b`): the webkit failures were the host Re-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, same `calternal-h861` backend: **31 passed, 1 skipped, 0 failed**. The four pictures specs that had `Page crashed` pass 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.
Author
Owner

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 newer 4274dafb4), budgets regenerated from a fresh build, bundle gate clean, specs on dev-02 with calternal-h861, chromium and webkit at 1440 and 390. Dev baseline: 228023 B plain / 227378 B normalised / CSS 18236.

first paint plain / normalised CSS budget total
228337 / 227893 B (+314 / +515 B; accepted) 18236 542.28 KiB (≤ 543.9)

Specs (+ embeds, note-embeds, phone-bars, keys-no-motion): 654 passed, 518 skipped, 0 failed on dev-02; the earlier webkit Page crashed failures on dev-01 do not recur on an idle host. Pixel and contrast specs on x86 (dev-01): see the dev-01 comment below.

## 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 newer `4274dafb4`), budgets regenerated from a fresh build, bundle gate clean, specs on dev-02 with `calternal-h861`, chromium and webkit at 1440 and 390. Dev baseline: 228023 B plain / 227378 B normalised / CSS 18236. | first paint plain / normalised | CSS | budget total | |---|---|---| | 228337 / 227893 B (**+314 / +515 B**; accepted) | 18236 | 542.28 KiB (≤ 543.9) | Specs (+ embeds, note-embeds, phone-bars, keys-no-motion): **654 passed, 518 skipped, 0 failed** on dev-02; the earlier webkit `Page crashed` failures on dev-01 do not recur on an idle host. Pixel and contrast specs on x86 (dev-01): see the dev-01 comment below.
Author
Owner

Handoff: head ac2061d00 is pushed and READY as posted

Handoff (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 fe2efbf11 and the earlier heads (#902, #854, rows tip, #878 base) ran there with the same 6 phone-bars photo-dark failures on dev itself and nothing new. Next step: re-run px-d1b.sh-style pixel set on this head on dev-01 (about 1 h per head) if you want it before merging.

## Handoff: head `ac2061d00` is pushed and READY as posted Handoff (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 `fe2efbf11` and the earlier heads (#902, #854, rows tip, #878 base) ran there with the same 6 `phone-bars` photo-dark failures on dev itself and nothing new. Next step: re-run `px-d1b.sh`-style pixel set on this head on dev-01 (about 1 h per head) if you want it before merging.
Author
Owner

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 31972329b shows 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.

## 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 `31972329b` shows 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](https://git.kayg.org/kayg/calternal/pulls/902#issuecomment-90034). 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.
Author
Owner

visual evidence on 895e94efc: BLOCKED on growth, qualification incomplete

Real 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.

state approved mockup product
1440 Safari, light, picture mockup product
1440 Safari, light, gallery mockup product
1440 Safari, light, video mockup product
1440 Safari, light, audio mockup product
1440 Safari, light, pdf mockup product
1440 Safari, light, viewer mockup product
1440 Safari, light, mini mockup product
1440 Safari, light, notes mockup product
iPhone Safari, light, picture mockup product
390 layout, light, picture mockup product
iPhone Safari, light, note cards mockup product
390 layout, light, note cards mockup product
1440 Safari, dark, picture mockup product
1440 Safari, dark, gallery mockup product
1440 Safari, dark, video mockup product
1440 Safari, dark, audio mockup product
1440 Safari, dark, pdf mockup product
1440 Safari, dark, viewer mockup product
1440 Safari, dark, mini mockup product
1440 Safari, dark, notes mockup product
iPhone Safari, dark, picture mockup product
390 layout, dark, picture mockup product
iPhone Safari, dark, note cards mockup product
390 layout, dark, note cards mockup product

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.ts was removed after svelte-check caught its old handler signature; the live Svelte widget is the sole implementation.

## visual evidence on `895e94efc`: BLOCKED on growth, qualification incomplete Real 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. | state | approved mockup | product | |---|---|---| | 1440 Safari, light, picture | ![mockup](https://git.kayg.org/attachments/453215c6-6c34-409d-afdd-6fb93f4e89ca) | ![product](https://git.kayg.org/attachments/239f2c7a-a7a6-411c-8b8d-3fa379bca59c) | | 1440 Safari, light, gallery | ![mockup](https://git.kayg.org/attachments/fdad1ddc-dfa9-4b2c-a5d8-7409ec6fcce8) | ![product](https://git.kayg.org/attachments/598fddd7-4339-4c24-9eac-c6a16569e4c0) | | 1440 Safari, light, video | ![mockup](https://git.kayg.org/attachments/b29fb761-be5a-4bb0-a4d3-517e9be70adf) | ![product](https://git.kayg.org/attachments/72fb62ac-bb28-499b-a9ef-b18b523a7713) | | 1440 Safari, light, audio | ![mockup](https://git.kayg.org/attachments/fadb0386-b00f-4d5f-ad80-7d83f626a5ee) | ![product](https://git.kayg.org/attachments/b9963506-9cec-49f2-8e66-c26cd776b4cb) | | 1440 Safari, light, pdf | ![mockup](https://git.kayg.org/attachments/8ebba3ce-88cb-4d5c-8d29-cec8b345785e) | ![product](https://git.kayg.org/attachments/73f0c732-469b-4a83-b91b-6a417b4405d4) | | 1440 Safari, light, viewer | ![mockup](https://git.kayg.org/attachments/9e77a024-232f-4870-a063-a34d2cfb6be4) | ![product](https://git.kayg.org/attachments/c12236b8-dd5d-4140-84eb-3f945845d9c5) | | 1440 Safari, light, mini | ![mockup](https://git.kayg.org/attachments/93fedd1a-61e3-47e1-9701-b35f96c6c1a3) | ![product](https://git.kayg.org/attachments/7e4a4f40-34da-47c9-b24b-e291cdf3b5e7) | | 1440 Safari, light, notes | ![mockup](https://git.kayg.org/attachments/747c54d8-7343-4336-ab47-1ed61b4b0e1a) | ![product](https://git.kayg.org/attachments/6e6fc480-59e7-45b5-963e-1615b81269e0) | | iPhone Safari, light, picture | ![mockup](https://git.kayg.org/attachments/87744e07-54c7-41f4-93f7-f6e84627f2be) | ![product](https://git.kayg.org/attachments/d4dc500b-32d3-4386-b1e2-ab9453537722) | | 390 layout, light, picture | ![mockup](https://git.kayg.org/attachments/b42a4f55-6919-4d37-9c37-f767db73e56b) | ![product](https://git.kayg.org/attachments/cb59a943-857c-4e81-be88-031466dd2c7a) | | iPhone Safari, light, note cards | ![mockup](https://git.kayg.org/attachments/4c1b911e-cbd9-4540-a524-5f2ffbe6dff3) | ![product](https://git.kayg.org/attachments/187bd30f-f2bc-46db-b6dc-8ebd475ec5e5) | | 390 layout, light, note cards | ![mockup](https://git.kayg.org/attachments/22669ead-f9fb-4a8c-8160-e8b5f9bfd290) | ![product](https://git.kayg.org/attachments/1e6384ab-f0f5-4471-b295-7dc103243395) | | 1440 Safari, dark, picture | ![mockup](https://git.kayg.org/attachments/2fb47232-f3ae-4b41-af92-61194033f425) | ![product](https://git.kayg.org/attachments/554db68b-4ccd-4149-b44e-afab35998734) | | 1440 Safari, dark, gallery | ![mockup](https://git.kayg.org/attachments/f47bbab3-a2bc-46a1-9622-d07a6261055f) | ![product](https://git.kayg.org/attachments/0b13791b-6a9b-4532-876b-6b9473f08c6a) | | 1440 Safari, dark, video | ![mockup](https://git.kayg.org/attachments/1d1be606-6412-4490-895c-0be4dee78e3e) | ![product](https://git.kayg.org/attachments/9309d59b-c06e-43b5-8d1e-2fbf8a354593) | | 1440 Safari, dark, audio | ![mockup](https://git.kayg.org/attachments/3507c7b0-0063-4a8f-8a31-e7e7c0ae90bc) | ![product](https://git.kayg.org/attachments/ab0335cf-7a41-4cf4-b15a-5b466ae82300) | | 1440 Safari, dark, pdf | ![mockup](https://git.kayg.org/attachments/b967028d-296a-4214-847b-24d5fb30e7ad) | ![product](https://git.kayg.org/attachments/eb97da65-a107-4174-818b-51d916344689) | | 1440 Safari, dark, viewer | ![mockup](https://git.kayg.org/attachments/2885f157-5287-4ced-a09e-26008ef1d60e) | ![product](https://git.kayg.org/attachments/f824f2e3-4a87-4ac0-92a4-c71dab7e2c3e) | | 1440 Safari, dark, mini | ![mockup](https://git.kayg.org/attachments/4fe6ae41-460f-440c-9a2b-d763e70c34ca) | ![product](https://git.kayg.org/attachments/9de521d4-4f30-474e-bf70-cc9f11acbd0d) | | 1440 Safari, dark, notes | ![mockup](https://git.kayg.org/attachments/e3c2f851-8d7f-472c-bdb4-175933a3f11d) | ![product](https://git.kayg.org/attachments/5cffe13d-0d0f-4cc9-8f45-3e113240799d) | | iPhone Safari, dark, picture | ![mockup](https://git.kayg.org/attachments/ebbc6e52-1e21-4ea5-9c97-e134f21a5c75) | ![product](https://git.kayg.org/attachments/08e1ab8c-8e16-4035-9dc1-cf206b0f7eb6) | | 390 layout, dark, picture | ![mockup](https://git.kayg.org/attachments/154380c2-384b-41b7-a91c-d4dc57092c82) | ![product](https://git.kayg.org/attachments/723dbde4-4aaf-4d89-bd3f-b8f6cf5baaf3) | | iPhone Safari, dark, note cards | ![mockup](https://git.kayg.org/attachments/c4dde263-f440-4694-8c56-575464c865cf) | ![product](https://git.kayg.org/attachments/f2e81d5e-44d9-4a03-a519-42e29f1b327e) | | 390 layout, dark, note cards | ![mockup](https://git.kayg.org/attachments/6ecde945-551a-4559-949c-3b30f0bb8deb) | ![product](https://git.kayg.org/attachments/48c92383-9ed9-4f1f-a5da-ad18cb837f3c) | 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.ts` was removed after svelte-check caught its old handler signature; the live Svelte widget is the sole implementation.
Author
Owner

current-dev validation: BLOCKED

Head 895e94efcacca2e044c4d2752519460261700c57, rebased stack on dev 31972329b0691183dbda982d6f0c765139ad3368. No merge performed. This result supersedes earlier readiness claims.

Only this PR's original budget lines were carried forward, with _approval_attachments_861 citing "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/slot and Nix:

gate result
bun run --cwd apps/web check 0 errors, 18 warnings
bun run --cwd apps/web test 247 passed
bun run --cwd packages/editor test 572 passed
targeted Playwright, four main projects 551 passed, 512 skipped, 21 failed
contrast project 9 passed, 1 failed
PERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gate PASS

Targeted 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=1 reruns 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 of calternal.

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:

21 failed
    [webkit-1440] › e2e/embeds.spec.ts:65:1 › a picture shows its name and size on the strip ───────
    [webkit-1440] › e2e/embeds.spec.ts:76:1 › pictures on one line are a gallery: a stack by default, a grid from its menu 
    [webkit-1440] › e2e/embeds.spec.ts:101:1 › Attach with several pictures writes one gallery line 
    [webkit-1440] › e2e/embeds.spec.ts:116:1 › a PDF is a card with its page count; any other file is a row; a tap opens it 
    [webkit-1440] › e2e/embeds.spec.ts:136:1 › a video is a card until it is played; a recording plays from its button 
    [webkit-1440] › e2e/embeds.spec.ts:157:1 › Enter on a focused picture opens the viewer ─────────
    [webkit-1440] › e2e/note-embeds.spec.ts:52:1 › a note embedded as a card shows its start, one part of it, and opens with a click 
    [webkit-1440] › e2e/note-embeds.spec.ts:77:1 › the card is live: what is typed in the note shows in its card 
    [webkit-1440] › e2e/note-embeds.spec.ts:94:1 › a note never written says so, and Make the note makes it 
    [webkit-1440] › e2e/note-embeds.spec.ts:105:1 › the mini toolbar sets the layout; Large is wider than the card and never scrolls the page sideways 
    [webkit-1440] › e2e/note-embeds.spec.ts:126:1 › a double click on the name changes the words of the link; empty gives the file name back 
    [webkit-1440] › e2e/pictures.spec.ts:70:1 › Attach → Photos adds a picture line, shows it in its own shape and opens the viewer 
    [webkit-1440] › e2e/pictures.spec.ts:97:1 › a pasted picture becomes a line; reload draws it without a jump 
    [webkit-1440] › e2e/pictures.spec.ts:126:1 › the same picture twice is one file, and the line is plain markdown in source mode 
    [webkit-1440] › e2e/pictures.spec.ts:143:1 › a picture this device has never seen has its real shape from the first frame, and normal spacing 
    [webkit-390] › e2e/embeds.spec.ts:116:1 › a PDF is a card with its page count; any other file is a row; a tap opens it 
    [webkit-390] › e2e/embeds.spec.ts:136:1 › a video is a card until it is played; a recording plays from its button 
    [webkit-390] › e2e/note-embeds.spec.ts:52:1 › a note embedded as a card shows its start, one part of it, and opens with a click 
    [webkit-390] › e2e/note-embeds.spec.ts:77:1 › the card is live: what is typed in the note shows in its card 
    [webkit-390] › e2e/note-embeds.spec.ts:94:1 › a note never written says so, and Make the note makes it 
    [webkit-390] › e2e/pictures.spec.ts:97:1 › a pasted picture becomes a line; reload draws it without a jump

The final head also deletes the unimported superseded attachments/widget.ts, which still called an obsolete handler signature; the live module is widget.svelte.ts. Gates above were rerun on this final head.

## current-dev validation: BLOCKED Head `895e94efcacca2e044c4d2752519460261700c57`, rebased stack on dev `31972329b0691183dbda982d6f0c765139ad3368`. No merge performed. This result supersedes earlier readiness claims. Only this PR's original budget lines were carried forward, with `_approval_attachments_861` citing "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/slot` and Nix: | gate | result | |---|---| | `bun run --cwd apps/web check` | 0 errors, 18 warnings | | `bun run --cwd apps/web test` | 247 passed | | `bun run --cwd packages/editor test` | 572 passed | | targeted Playwright, four main projects | 551 passed, 512 skipped, **21 failed** | | contrast project | **9 passed, 1 failed** | | `PERF_WORK=… PERF_OUT=… bash perf/web.sh --bundle-only --gate` | PASS | Targeted 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=1` reruns 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 of `calternal`. 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](https://git.kayg.org/kayg/calternal/pulls/861#issuecomment-90143). 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](https://git.kayg.org/attachments/0cce4933-fdfa-4fba-8d64-ee3181d3138e). 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: ```text 21 failed [webkit-1440] › e2e/embeds.spec.ts:65:1 › a picture shows its name and size on the strip ─────── [webkit-1440] › e2e/embeds.spec.ts:76:1 › pictures on one line are a gallery: a stack by default, a grid from its menu [webkit-1440] › e2e/embeds.spec.ts:101:1 › Attach with several pictures writes one gallery line [webkit-1440] › e2e/embeds.spec.ts:116:1 › a PDF is a card with its page count; any other file is a row; a tap opens it [webkit-1440] › e2e/embeds.spec.ts:136:1 › a video is a card until it is played; a recording plays from its button [webkit-1440] › e2e/embeds.spec.ts:157:1 › Enter on a focused picture opens the viewer ───────── [webkit-1440] › e2e/note-embeds.spec.ts:52:1 › a note embedded as a card shows its start, one part of it, and opens with a click [webkit-1440] › e2e/note-embeds.spec.ts:77:1 › the card is live: what is typed in the note shows in its card [webkit-1440] › e2e/note-embeds.spec.ts:94:1 › a note never written says so, and Make the note makes it [webkit-1440] › e2e/note-embeds.spec.ts:105:1 › the mini toolbar sets the layout; Large is wider than the card and never scrolls the page sideways [webkit-1440] › e2e/note-embeds.spec.ts:126:1 › a double click on the name changes the words of the link; empty gives the file name back [webkit-1440] › e2e/pictures.spec.ts:70:1 › Attach → Photos adds a picture line, shows it in its own shape and opens the viewer [webkit-1440] › e2e/pictures.spec.ts:97:1 › a pasted picture becomes a line; reload draws it without a jump [webkit-1440] › e2e/pictures.spec.ts:126:1 › the same picture twice is one file, and the line is plain markdown in source mode [webkit-1440] › e2e/pictures.spec.ts:143:1 › a picture this device has never seen has its real shape from the first frame, and normal spacing [webkit-390] › e2e/embeds.spec.ts:116:1 › a PDF is a card with its page count; any other file is a row; a tap opens it [webkit-390] › e2e/embeds.spec.ts:136:1 › a video is a card until it is played; a recording plays from its button [webkit-390] › e2e/note-embeds.spec.ts:52:1 › a note embedded as a card shows its start, one part of it, and opens with a click [webkit-390] › e2e/note-embeds.spec.ts:77:1 › the card is live: what is typed in the note shows in its card [webkit-390] › e2e/note-embeds.spec.ts:94:1 › a note never written says so, and Make the note makes it [webkit-390] › e2e/pictures.spec.ts:97:1 › a pasted picture becomes a line; reload draws it without a jump ``` The final head also deletes the unimported superseded `attachments/widget.ts`, which still called an obsolete handler signature; the live module is `widget.svelte.ts`. Gates above were rerun on this final head.
Author
Owner

final implementation result: BLOCKED, head 0703d25932e2c2f43a026c922aba699eee54c14a, dev comparison 31972329b0691183dbda982d6f0c765139ad3368. 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.

dev-01 gate result
svelte-check 0 errors, 18 warnings
web vitest 249 passed
editor vitest 572 passed
four main Playwright projects 580 passed, 512 skipped, 0 failed
contrast 10 passed, 0 failed
bundle gate FAIL, index chunk exceeds its recorded line

all gates ran through ~/bin/slot and Nix. Playwright used CI=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.

brotli metric bytes delta vs dev recorded allowance
first-paint js 228530 +767 +314
hash-normalized first-paint js 227896 +512 +515
first-paint css 18859 +0 +0
total js including opt-in 545759 +11674 unchanged

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.

typing metric, median ms/key dev plain → PR plain delta dev attached → PR attached delta
TaskDuration 21.608988 → 21.706014 +0.4490% 19.861794 → 20.680384 +4.1214%
ScriptDuration 7.844120 → 7.948692 +1.3331% 7.797104 → 8.194734 +5.0997%

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 3918c6314 only. final 0703d2593 refresh 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:

product light 390

mockup, light:

mockup light 390

product note cards, light:

product note cards light 390

mockup note cards, light:

mockup note cards light 390

product, dark:

product dark 390

mockup, dark:

mockup dark 390

product note cards, dark:

product note cards dark 390

mockup note cards, dark:

mockup note cards dark 390

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:

TYPING_EXTERNAL_LOCK=1 PLAYWRIGHT_BROWSERS_PATH=/nix/store/9ibf73nllmrcqx4w7x5jayfxanv2gyfq-playwright-browsers ~/bin/perf-turn attachments-fix-cpu-coord /nix/store/qshvhyv92g772jjsm2zrgzxc4ai4iqfx-nodejs-22.23.3/bin/node typing-cpu.mjs

lock-coordinator.py in 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.

final implementation result: **BLOCKED**, head `0703d25932e2c2f43a026c922aba699eee54c14a`, dev comparison `31972329b0691183dbda982d6f0c765139ad3368`. 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. | dev-01 gate | result | |---|---| | svelte-check | 0 errors, 18 warnings | | web vitest | 249 passed | | editor vitest | 572 passed | | four main Playwright projects | 580 passed, 512 skipped, 0 failed | | contrast | 10 passed, 0 failed | | bundle gate | FAIL, index chunk exceeds its recorded line | all gates ran through `~/bin/slot` and Nix. Playwright used `CI=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. | brotli metric | bytes | delta vs dev | recorded allowance | |---|---:|---:|---:| | first-paint js | 228530 | +767 | +314 | | hash-normalized first-paint js | 227896 | +512 | +515 | | first-paint css | 18859 | +0 | +0 | | total js including opt-in | 545759 | +11674 | unchanged | 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. | typing metric, median ms/key | dev plain → PR plain | delta | dev attached → PR attached | delta | |---|---:|---:|---:|---:| | TaskDuration | 21.608988 → 21.706014 | +0.4490% | 19.861794 → 20.680384 | +4.1214% | | ScriptDuration | 7.844120 → 7.948692 | +1.3331% | 7.797104 → 8.194734 | +5.0997% | 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 3918c6314 only**. final 0703d2593 refresh 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: ![product light 390](https://git.kayg.org/attachments/7270a6f2-32f7-400b-926f-1966b137395c) mockup, light: ![mockup light 390](https://git.kayg.org/attachments/cc8336e9-b9d8-4249-b7f2-bb5efd5c5f83) product note cards, light: ![product note cards light 390](https://git.kayg.org/attachments/067f6617-f674-406d-8c1e-21b9a8ee8850) mockup note cards, light: ![mockup note cards light 390](https://git.kayg.org/attachments/f6c987dc-f704-4b23-a5c9-1dd937aeb986) product, dark: ![product dark 390](https://git.kayg.org/attachments/b530162b-ed8d-44e5-903f-81e2323c247a) mockup, dark: ![mockup dark 390](https://git.kayg.org/attachments/dc1a2e26-1d37-4591-badb-fa2cab7a942b) product note cards, dark: ![product note cards dark 390](https://git.kayg.org/attachments/fb743d98-366d-4152-8d77-d913eae51652) mockup note cards, dark: ![mockup note cards dark 390](https://git.kayg.org/attachments/b0bbcab6-d2a6-419d-8d82-810ee501dbb4) 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](https://preview.calternal.cloud/calendar-2/chrome.html#/note/autumn-trip?list=all&ai=0). [final gate, size, typing and red/green receipts](https://git.kayg.org/attachments/b303aaa9-7171-4745-abd0-6495a200dee0) [dev real-Safari readiness diagnostic, invalid visual proof](https://git.kayg.org/attachments/cf3b3e9e-e0a4-4814-8c69-850dfde58db6) measurement launch receipt, after staging and manifest hash verification: ```sh TYPING_EXTERNAL_LOCK=1 PLAYWRIGHT_BROWSERS_PATH=/nix/store/9ibf73nllmrcqx4w7x5jayfxanv2gyfq-playwright-browsers ~/bin/perf-turn attachments-fix-cpu-coord /nix/store/qshvhyv92g772jjsm2zrgzxc4ai4iqfx-nodejs-22.23.3/bin/node typing-cpu.mjs ``` `lock-coordinator.py` in 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.
Author
Owner

Design pass result: BLOCKED. Nothing merged; the PR branch is not updated (see "why not pushed"). Work is on wip/att-lazy-861 (head 9b91a15f9); the unit, e2e, contrast and typing runs below were on the code-identical heads 745bdbedf (only perf/budgets.json differs: the lazy attachments line 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.ts and 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; Playwright CI=1 --workers=1 --retries=0)

gate result
svelte-check 0 errors, 18 warnings
web vitest pass
editor vitest pass
e2e, 4 main projects 580 passed, 512 skipped, 0 failed
contrast pass
bundle gate PASS

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 head 4a6df335a: 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, same toggleSource helper): 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)

first-paint JS normalised index chunk vs recorded line recorded allowance
#861 +609 B +524 B within the recorded line +314 / +515 (cumulative)

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-turn FIFO 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)

median ms/key plain: dev → PR delta attached (4 pictures): dev → PR delta
TaskDuration 22.05 → 21.98 -0.31% 20.65 → 20.34 -1.52%
ScriptDuration 8.10 → 8.06 -0.46% 8.31 → 8.17 -1.73%
Dev-vs-dev control (A vs B): plain task -0.32% / script -1.29%; attached task -3.53% / script -0.74%. Plain-note runtime code is identical on all three layers (the field is not installed), so the spread between layers (+1.4, +0.2, -0.3% task on plain) is noise; #846's plain +1.4% task / +2.9% script is above the control bound and I do not claim it clean. Attached notes are at or below dev (before: +1.2 to +5.4%).

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: safaridriver refuses 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 use blocks-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/dev is still 31972329b and the branch merges cleanly (git merge-tree writes a tree), so Forgejo's "not mergeable" flag looked stale.

product-861-picture-iphone-light.png:
product-861-picture-iphone-light.png
product-861-picture-iphone-dark.png:
product-861-picture-iphone-dark.png
product-861-notes-iphone-light.png:
product-861-notes-iphone-light.png
product-861-notes-iphone-dark.png:
product-861-notes-iphone-dark.png
mockup-notes-iphone-light.png:
mockup-notes-iphone-light.png
mockup-notes-iphone-dark.png:
mockup-notes-iphone-dark.png

**Design pass result: BLOCKED.** Nothing merged; the PR branch is **not** updated (see "why not pushed"). Work is on `wip/att-lazy-861` (head `9b91a15f9`); the unit, e2e, contrast and typing runs below were on the code-identical heads `745bdbedf` (only `perf/budgets.json` differs: the lazy `attachments` line 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.ts` and 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; Playwright `CI=1 --workers=1 --retries=0`)** | gate | result | |---|---| | svelte-check | 0 errors, 18 warnings | | web vitest | pass | | editor vitest | pass | | e2e, 4 main projects | 580 passed, 512 skipped, 0 failed | | contrast | pass | | bundle gate | **PASS** | **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 head `4a6df335a`: 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`, same `toggleSource` helper): 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)** | | first-paint JS | normalised | index chunk vs recorded line | recorded allowance | |---|---|---|---|---| | #861 | +609 B | +524 B | within the recorded line | +314 / +515 (cumulative) | 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-turn` FIFO 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)** | median ms/key | plain: dev → PR | delta | attached (4 pictures): dev → PR | delta | |---|---|---|---|---| | TaskDuration | 22.05 → 21.98 | -0.31% | 20.65 → 20.34 | -1.52% | | ScriptDuration | 8.10 → 8.06 | -0.46% | 8.31 → 8.17 | -1.73% | Dev-vs-dev control (A vs B): plain task -0.32% / script -1.29%; attached task -3.53% / script -0.74%. Plain-note runtime code is identical on all three layers (the field is not installed), so the spread between layers (+1.4, +0.2, -0.3% task on plain) is noise; #846's plain +1.4% task / +2.9% script is above the control bound and I do not claim it clean. Attached notes are at or below dev (before: +1.2 to +5.4%). **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**: `safaridriver` refuses 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 use `blocks-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/dev` is still 31972329b and the branch merges cleanly (`git merge-tree` writes a tree), so Forgejo's "not mergeable" flag looked stale. product-861-picture-iphone-light.png: ![product-861-picture-iphone-light.png](https://git.kayg.org/attachments/811ce22d-80f4-42bf-a743-8c480cea4933) product-861-picture-iphone-dark.png: ![product-861-picture-iphone-dark.png](https://git.kayg.org/attachments/ec4f4e92-3ba5-436a-ad46-176ede69b436) product-861-notes-iphone-light.png: ![product-861-notes-iphone-light.png](https://git.kayg.org/attachments/c3fdadea-7d66-4812-8899-b905d2e48c42) product-861-notes-iphone-dark.png: ![product-861-notes-iphone-dark.png](https://git.kayg.org/attachments/13e806b2-fd46-4377-8524-c9056f6bcf7f) mockup-notes-iphone-light.png: ![mockup-notes-iphone-light.png](https://git.kayg.org/attachments/a0d8f47d-4a09-4846-b71f-861eb675110d) mockup-notes-iphone-dark.png: ![mockup-notes-iphone-dark.png](https://git.kayg.org/attachments/604c63d4-31e7-426d-97b6-6a8ab4e3d6d7)
Author
Owner

Interim result (Attachments lazy-load flakes) — head 8015e266e on wip/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:95 chromium-1440 20/20; pictures.spec.ts:150 webkit-1440 20/20.

First-paint JS (brotli) vs dev 31972329b: 228539 B = +776 B (+1631 B raw). chunk.index set 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.

**Interim result (Attachments lazy-load flakes)** — head `8015e266e` on `wip/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:95` chromium-1440 **20/20**; `pictures.spec.ts:150` webkit-1440 **20/20**. **First-paint JS (brotli) vs dev `31972329b`:** 228539 B = **+776 B** (+1631 B raw). `chunk.index` set 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.
Author
Owner

Final result (Attachments lazy-load flakes) — head eade53594 on wip/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's backdrop-filter is 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 + :122 chromium-1440 40/40; :167 + :122 webkit-1440 40/40.

Full suite (top of the stack, split per project on dev-01 with --workers=1 --retries=0, run on ddf8ec33a; later commits changed only specs, CSS and budgets):

project result
chromium-1440 604 passed, 1 failed (picker-lazy.spec.ts:12: 10/10 on dev and 10/10 on #861, not reproduced)
chromium-390 1057 passed, 1 failed (note-bars.spec.ts:69, stale spec, fixed, 10/10)
contrast 10 passed
webkit-1440 596 passed, 4 failed: style-card-box.spec.ts:123 fails 10/10 on dev too; tree.spec.ts:377 10/10 on dev and #861; vim-block.spec.ts:23 ×20 each 40/40 on dev and on #861
webkit-390 1047 passed, 4 failed: bar-stays.spec.ts:38 fails 7/10 on dev, 2/10 on #861; style-card-box.spec.ts:123 5/10 dev, 6/10 #861; style-card-box.spec.ts:130 10/10; note-bars.spec.ts:69 10/10

Bundle 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).

**Final result (Attachments lazy-load flakes)** — head `eade53594` on `wip/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's `backdrop-filter` is 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` + `:122` chromium-1440 **40/40**; `:167` + `:122` webkit-1440 **40/40**. **Full suite (top of the stack, split per project on dev-01 with `--workers=1 --retries=0`, run on `ddf8ec33a`; later commits changed only specs, CSS and budgets):** | project | result | |---|---| | chromium-1440 | 604 passed, 1 failed (`picker-lazy.spec.ts:12`: 10/10 on dev and 10/10 on #861, not reproduced) | | chromium-390 | 1057 passed, 1 failed (`note-bars.spec.ts:69`, stale spec, fixed, 10/10) | | contrast | 10 passed | | webkit-1440 | 596 passed, 4 failed: `style-card-box.spec.ts:123` fails **10/10 on dev too**; `tree.spec.ts:377` 10/10 on dev and #861; `vim-block.spec.ts:23` ×20 each 40/40 on dev and on #861 | | webkit-390 | 1047 passed, 4 failed: `bar-stays.spec.ts:38` fails 7/10 on dev, 2/10 on #861; `style-card-box.spec.ts:123` 5/10 dev, 6/10 #861; `style-card-box.spec.ts:130` 10/10; `note-bars.spec.ts:69` 10/10 | **Bundle 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).
Author
Owner

Restacked on dev be968d9df (orchestrator request). Heads: #846 9d52d4fb7, #860 291b96483, #861 5a22dd9b8; each is a descendant of the one below and #846 contains dev.

Conflicts, kept both intents: Editor.svelte (the attachment preview wait, with dev's readFm), vite.config.ts (dev's chunks plus the idle-screens addition), packages/editor/package.json (hidden-blocks next 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 :167 source 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 (dev 31972329b) the same top measured −1.35% / +1.0%, so dev's changes moved the baseline. Needs a decision or a further look before merge.

**Restacked on dev `be968d9df`** (orchestrator request). Heads: #846 `9d52d4fb7`, #860 `291b96483`, #861 `5a22dd9b8`; each is a descendant of the one below and #846 contains dev. **Conflicts, kept both intents:** `Editor.svelte` (the attachment preview wait, with dev's `readFm`), `vite.config.ts` (dev's chunks plus the idle-screens addition), `packages/editor/package.json` (`hidden-blocks` next 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 `:167` source 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 (dev `31972329b`) the same top measured −1.35% / +1.0%, so dev's changes moved the baseline. Needs a decision or a further look before merge.
Author
Owner

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-merges lists would drop. Each layer contains the one below it. Heads: #846 ce81bc787, #860 68be8ab75, #861 b27cb8ba0. #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)

  • The page receives 0 mousemove/pointermove/mouseover events during typing, in both builds. So it isn't a hover listener of ours. It is Chromium's own hover update after layout.
  • That work runs about 0.9× per key on dev too, about 1.4–1.5 ms/key. It is mostly forced style and layout nested inside handleMouseMoveEvent. That is why any extra style or layout cost shows up under "hit testing".
  • Pointer position makes no difference. With the pointer parked in the corner, resting over a picture, or never moved, the counts are 0.88–0.93 per key and the ms/key are the same within noise, on dev and on #861.
  • It does not scale with picture count or size. With 0, 1 or 8 pictures, and with 200 px pictures, hit/mouse-move ms/key were flat (mouse-move 1.57–1.76, no trend). A plain note on #861 equals dev.
  • JS is not the gap. Profiler self-time per key: dev 101.0 ms, #861 99.3 ms.
  • Ablating CSS on the PR build (6 interleaved sessions per arm, run-task ms/key: dev 45.9, #861 49.4 with two outlier sessions): no pointer-events on embeds 45.9, contain: layout style 45.8, no lift transform 46.9, no content-visibility 44.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.
  • The one deterministic difference in the event counts: DisplayLockUtilities::SelectionChanged fires once per key whenever a content-visibility: auto card exists (0 on dev). It is cheap (0.015 ms/key) but it is the display lock showing up.

Change made: content-visibility removed 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)

notes metric dev #861 delta
plain task ms/key 22.066 21.904 −0.74% [−1.7, +0.2]
plain script ms/key 8.140 8.112 −0.34% [−1.2, +0.6]
attached task ms/key 20.613 20.868 +1.24% [−0.3, +2.7]
attached script ms/key 8.128 8.196 +0.84% [−0.8, +2.3]
control dev/dev plain task / script −1.81% / −1.80%
control dev/dev attached task / script +0.07% / −0.71%

Gates on the final head (b27cb8ba0; the CSS head 7ff563de7 differs only in perf/budgets.json)

gate result
bundle gate (dev-01 and dev-02) pass; first-paint JS brotli 224.493 KB vs dev 223.749 KB = +744 B; total 547.600 ≤ 556.39
svelte-check 0 errors, 19 warnings
web vitest / editor vitest 272 / 591 passed
pictures, embeds, note-embeds, slash-menu, note-bars, phone-bars chromium-1440 29/29 and chromium-390 280/280 on dev-01 (x86); webkit-1440 29/29, webkit-390 279 passed + 6 skipped, chromium-390 280/280 on dev-02

An earlier spec failure (pictures.spec.ts:56, ENOENT on trace files) came from me running four projects in one test-results directory; with --output per 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-lift transform/transition, contain on the card, plain <img> without the strip) as real builds in one perf turn each.

**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-merges` lists would drop. Each layer contains the one below it. Heads: #846 `ce81bc787`, #860 `68be8ab75`, #861 `b27cb8ba0`. #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) - The page receives **0** mousemove/pointermove/mouseover events during typing, in both builds. So it isn't a hover listener of ours. It is Chromium's own hover update after layout. - That work runs about 0.9× per key on **dev too**, about 1.4–1.5 ms/key. It is mostly forced style and layout nested inside `handleMouseMoveEvent`. That is why any extra style or layout cost shows up under "hit testing". - Pointer position makes no difference. With the pointer parked in the corner, resting over a picture, or never moved, the counts are 0.88–0.93 per key and the ms/key are the same within noise, on dev and on #861. - It does not scale with picture count or size. With 0, 1 or 8 pictures, and with 200 px pictures, hit/mouse-move ms/key were flat (mouse-move 1.57–1.76, no trend). A plain note on #861 equals dev. - JS is not the gap. Profiler self-time per key: dev 101.0 ms, #861 99.3 ms. - Ablating CSS on the PR build (6 interleaved sessions per arm, run-task ms/key: dev 45.9, #861 49.4 with two outlier sessions): no `pointer-events` on embeds 45.9, `contain: layout style` 45.8, no lift transform 46.9, no `content-visibility` 44.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. - The one deterministic difference in the event counts: `DisplayLockUtilities::SelectionChanged` fires once per key whenever a `content-visibility: auto` card exists (0 on dev). It is cheap (0.015 ms/key) but it is the display lock showing up. **Change made:** `content-visibility` removed 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) | notes | metric | dev | #861 | delta | |---|---|---|---|---| | plain | task ms/key | 22.066 | 21.904 | −0.74% [−1.7, +0.2] | | plain | script ms/key | 8.140 | 8.112 | −0.34% [−1.2, +0.6] | | attached | task ms/key | 20.613 | 20.868 | **+1.24% [−0.3, +2.7]** | | attached | script ms/key | 8.128 | 8.196 | **+0.84% [−0.8, +2.3]** | | control dev/dev plain | task / script | | | −1.81% / −1.80% | | control dev/dev attached | task / script | | | +0.07% / −0.71% | **Gates on the final head (`b27cb8ba0`; the CSS head `7ff563de7` differs only in `perf/budgets.json`)** | gate | result | |---|---| | bundle gate (dev-01 and dev-02) | pass; first-paint JS brotli 224.493 KB vs dev 223.749 KB = +744 B; total 547.600 ≤ 556.39 | | svelte-check | 0 errors, 19 warnings | | web vitest / editor vitest | 272 / 591 passed | | pictures, embeds, note-embeds, slash-menu, note-bars, phone-bars | chromium-1440 29/29 and chromium-390 280/280 on dev-01 (x86); webkit-1440 29/29, webkit-390 279 passed + 6 skipped, chromium-390 280/280 on dev-02 | An earlier spec failure (`pictures.spec.ts:56`, ENOENT on trace files) came from me running four projects in one `test-results` directory; with `--output` per 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-lift` transform/transition, `contain` on the card, plain `<img>` without the strip) as real builds in one perf turn each.
Author
Owner

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): #846 802a8d56b -> #860 fd2b0a512 -> #861 9a3d38586. Diff of #861 vs b27cb8ba0 outside ops/: none.

gate (on #861 head 9a3d38586) command result
cargo build cargo build -j4 --locked -p calternal (dev-01 x86, dev-02 aarch64) ok both
svelte-check bun run check in apps/web (both VMs) 0 errors, 19 warnings
web vitest bunx vitest run in apps/web 272 passed
editor vitest bunx vitest run in packages/editor 591 passed
bundle gate perf/web.sh --bundle-only --gate (both VMs) pass; total 547.600 KB brotli <= 556.39; first-paint JS unchanged vs 94636
pictures, embeds, note-embeds, slash-menu, note-bars, phone-bars playwright test <6 specs> --project=<p> --workers=1 --retries=0 --output=<per project> chromium-1440 29 passed (dev-01 x86); chromium-390 280 passed, 5 skipped (dev-01 x86); webkit-1440 29 passed (dev-02); webkit-390 279 passed, 6 skipped (dev-02)
perf typing gate not re-run: the dev merge touched no editor/typing code (ops/ only), the web bundle is byte-identical in the gate numbers reuse 94636: plain -0.74% task [-1.7,+0.2], attached +1.24% task [-0.3,+2.7], +0.84% script (accepted by kayg)

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 . size right (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-dark-1440.png
embeds-light-1440.png: embeds-light-1440.png
note-embed-dark-1440.png: note-embed-dark-1440.png
note-embed-light-1440.png: note-embed-light-1440.png
pictures-dark-1440.png: pictures-dark-1440.png
pictures-light-1440.png: pictures-light-1440.png
embeds-dark-phone.png: embeds-dark-phone.png
embeds-light-phone.png: embeds-light-phone.png
note-embed-dark-phone.png: note-embed-dark-phone.png
note-embed-light-phone.png: note-embed-light-phone.png
pictures-dark-phone.png: pictures-dark-phone.png
pictures-light-phone.png: pictures-light-phone.png

**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): #846 `802a8d56b` -> #860 `fd2b0a512` -> #861 `9a3d38586`. Diff of #861 vs `b27cb8ba0` outside `ops/`: none. | gate (on #861 head `9a3d38586`) | command | result | |---|---|---| | cargo build | `cargo build -j4 --locked -p calternal` (dev-01 x86, dev-02 aarch64) | ok both | | svelte-check | `bun run check` in apps/web (both VMs) | 0 errors, 19 warnings | | web vitest | `bunx vitest run` in apps/web | 272 passed | | editor vitest | `bunx vitest run` in packages/editor | 591 passed | | bundle gate | `perf/web.sh --bundle-only --gate` (both VMs) | pass; total 547.600 KB brotli <= 556.39; first-paint JS unchanged vs 94636 | | pictures, embeds, note-embeds, slash-menu, note-bars, phone-bars | `playwright test <6 specs> --project=<p> --workers=1 --retries=0 --output=<per project>` | chromium-1440 29 passed (dev-01 x86); chromium-390 280 passed, 5 skipped (dev-01 x86); webkit-1440 29 passed (dev-02); webkit-390 279 passed, 6 skipped (dev-02) | | perf typing gate | not re-run: the dev merge touched no editor/typing code (ops/ only), the web bundle is byte-identical in the gate numbers | reuse 94636: plain -0.74% task [-1.7,+0.2], attached +1.24% task [-0.3,+2.7], +0.84% script (accepted by kayg) | 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 . size` right (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-dark-1440.png](https://git.kayg.org/attachments/9b5ae5a5-cbbe-481d-9e20-12b92e7a0677) embeds-light-1440.png: ![embeds-light-1440.png](https://git.kayg.org/attachments/3ac2ec19-8ebd-4659-89b9-098bc1e0768f) note-embed-dark-1440.png: ![note-embed-dark-1440.png](https://git.kayg.org/attachments/32e763f4-36e0-4845-989e-5d1a1a031d89) note-embed-light-1440.png: ![note-embed-light-1440.png](https://git.kayg.org/attachments/657f80dd-07e6-48b4-aa9d-ca7399e479cd) pictures-dark-1440.png: ![pictures-dark-1440.png](https://git.kayg.org/attachments/59153a88-ef11-4b68-bf9c-d297eec2ec75) pictures-light-1440.png: ![pictures-light-1440.png](https://git.kayg.org/attachments/9a7dc86b-903d-4806-8e88-6decbe35de45) embeds-dark-phone.png: ![embeds-dark-phone.png](https://git.kayg.org/attachments/100efb26-89c8-4be0-b0e5-b79ce4333ab3) embeds-light-phone.png: ![embeds-light-phone.png](https://git.kayg.org/attachments/bbb3598c-c471-4528-9af6-e62bf51649ce) note-embed-dark-phone.png: ![note-embed-dark-phone.png](https://git.kayg.org/attachments/1b71fbf9-d42f-4b60-8e30-fa83813027cd) note-embed-light-phone.png: ![note-embed-light-phone.png](https://git.kayg.org/attachments/382f2655-b6ec-4c2d-aa35-fbfb54d6f2d9) pictures-dark-phone.png: ![pictures-dark-phone.png](https://git.kayg.org/attachments/5f4f4d14-8e18-43a9-8c47-3bff146f0c95) pictures-light-phone.png: ![pictures-light-phone.png](https://git.kayg.org/attachments/2feb0246-ce54-4f22-a696-1c958fec35d8)
Author
Owner

Full Playwright suite on 9a3d38586: no blocker

Stack head 9a3d38586 (#846 + #860 + #861, restacked on dev 796d80cba). Full Playwright run on both VMs, every project, nothing merged. No failure reproduces on the branch only. Four first-run failures: one search-palette, one contacts-edit, two note-bars-motion throttled 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

  • Worktree ~/Developer/Worktrees/att861-full at 9a3d38586 on dev-01 (claude@calternal-dev-01-compute02.vpn.kayg.org, x86_64) and dev-02 (cua@calternal-dev-02-std.vpn.kayg.org, aarch64).
  • Build on each: ~/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).
  • Dev baseline worktree ~/Developer/Worktrees/att861-dev at 796d80cba on 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/slot job per project, its own --output dir. Counts are the per-project results.json statuses. Listed total 5345 across all projects.

project host listed pass fail skip
chromium-1440 dev-01 1288 625 0 663
chromium-390 dev-01 1288 1068 1 219
webkit-1440 dev-02 1288 619 1 668
webkit-390 dev-02 1288 1062 0 226
flow dev-01 1 1 0 0
passkeys dev-01 1 1 0 0
admin-setup dev-01 1 1 0 0
admin-chromium-1440 dev-01 34 22 0 12
admin-chromium-390 dev-01 34 20 0 14
admin-webkit-1440 dev-02 31 19 0 12
admin-webkit-390 dev-02 31 17 0 14
prefs-chromium dev-01 7 7 0 0
prefs-webkit dev-02 7 3 0 4
look-chromium-1440 dev-01 5 5 0 0
look-chromium-390 dev-01 5 5 0 0
look-webkit-1440 dev-02 5 4 0 1
look-webkit-390 dev-02 5 4 0 1
contrast dev-01 10 10 0 0
sidebar-band-chromium dev-01 3 3 0 0
sidebar-band-webkit dev-02 3 3 0 0
throttled-1440 dev-01 5 3 0 2
throttled-390 dev-01 5 3 2 0

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-setup 1/1, prefs-chromium 7/7, contrast 10/10, sidebar-band-chromium 3/3, all passed on aarch64.

Failure table

# test run first-run error repeat x10 branch 9a3d38586 repeat x10 dev 796d80cba verdict issue
1 e2e/search-palette.spec.ts:47 "the list never shows an empty frame between two keys" chromium-390 search-palette.spec.ts:68: expected 0, received 3 10/10 pass 10/10 pass flaky, does not reproduce #1113
2 e2e/contacts-edit.spec.ts:114 "the Notes take a timestamp line and keep what is typed after it" webkit-1440 120 s timeout waiting for getByRole('textbox', { name: 'Notes' }) (at line 123) 10/10 pass 10/10 pass flaky, does not reproduce #1114
3 e2e/note-bars-motion.spec.ts:71 variants "rest to Style sheet, and back" and "rest to Attach menu, and back" (@throttled, 6x CPU) throttled-390 longest main-thread task 257.7 ms, expected < 250 (2 of 5 failed in the first run) 5 of 20 fail (257 to 361 ms) 3 of 20 fail (about 272 ms) fails on both, pre-existing timing gate #1115

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)

  • Full runs: 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.
  • Throttled projects: --config=playwright.att861-throttled.config.ts. This is a temporary untracked file that imports playwright.config.ts and keeps only the throttled-* projects with dependencies: []. Without it, --project=throttled-* pulls every project into the run (5340 tests, which I stopped after 1 minute).
  • Repeats: 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, ~/.slots holder records, and /tmp scratch are removed on both VMs after this comment. The untracked throttled config goes with the worktrees. Nothing merged, and no code changed.

## Full Playwright suite on `9a3d38586`: no blocker Stack head `9a3d38586` (#846 + #860 + #861, restacked on dev `796d80cba`). Full Playwright run on both VMs, every project, nothing merged. **No failure reproduces on the branch only.** Four first-run failures: one `search-palette`, one `contacts-edit`, two `note-bars-motion` throttled 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 - Worktree `~/Developer/Worktrees/att861-full` at `9a3d38586` on dev-01 (`claude@calternal-dev-01-compute02.vpn.kayg.org`, x86_64) and dev-02 (`cua@calternal-dev-02-std.vpn.kayg.org`, aarch64). - Build on each: `~/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). - Dev baseline worktree `~/Developer/Worktrees/att861-dev` at `796d80cba` on 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/slot` job per project, its own `--output` dir. Counts are the per-project `results.json` statuses. Listed total 5345 across all projects. | project | host | listed | pass | fail | skip | |---|---|---|---|---|---| | chromium-1440 | dev-01 | 1288 | 625 | 0 | 663 | | chromium-390 | dev-01 | 1288 | 1068 | 1 | 219 | | webkit-1440 | dev-02 | 1288 | 619 | 1 | 668 | | webkit-390 | dev-02 | 1288 | 1062 | 0 | 226 | | flow | dev-01 | 1 | 1 | 0 | 0 | | passkeys | dev-01 | 1 | 1 | 0 | 0 | | admin-setup | dev-01 | 1 | 1 | 0 | 0 | | admin-chromium-1440 | dev-01 | 34 | 22 | 0 | 12 | | admin-chromium-390 | dev-01 | 34 | 20 | 0 | 14 | | admin-webkit-1440 | dev-02 | 31 | 19 | 0 | 12 | | admin-webkit-390 | dev-02 | 31 | 17 | 0 | 14 | | prefs-chromium | dev-01 | 7 | 7 | 0 | 0 | | prefs-webkit | dev-02 | 7 | 3 | 0 | 4 | | look-chromium-1440 | dev-01 | 5 | 5 | 0 | 0 | | look-chromium-390 | dev-01 | 5 | 5 | 0 | 0 | | look-webkit-1440 | dev-02 | 5 | 4 | 0 | 1 | | look-webkit-390 | dev-02 | 5 | 4 | 0 | 1 | | contrast | dev-01 | 10 | 10 | 0 | 0 | | sidebar-band-chromium | dev-01 | 3 | 3 | 0 | 0 | | sidebar-band-webkit | dev-02 | 3 | 3 | 0 | 0 | | throttled-1440 | dev-01 | 5 | 3 | 0 | 2 | | throttled-390 | dev-01 | 5 | 3 | 2 | 0 | 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-setup` 1/1, `prefs-chromium` 7/7, `contrast` 10/10, `sidebar-band-chromium` 3/3, all passed on aarch64. ### Failure table | # | test | run | first-run error | repeat x10 branch `9a3d38586` | repeat x10 dev `796d80cba` | verdict | issue | |---|---|---|---|---|---|---|---| | 1 | `e2e/search-palette.spec.ts:47` "the list never shows an empty frame between two keys" | chromium-390 | `search-palette.spec.ts:68`: expected 0, received 3 | 10/10 pass | 10/10 pass | flaky, does not reproduce | #1113 | | 2 | `e2e/contacts-edit.spec.ts:114` "the Notes take a timestamp line and keep what is typed after it" | webkit-1440 | 120 s timeout waiting for `getByRole('textbox', { name: 'Notes' })` (at line 123) | 10/10 pass | 10/10 pass | flaky, does not reproduce | #1114 | | 3 | `e2e/note-bars-motion.spec.ts:71` variants "rest to Style sheet, and back" and "rest to Attach menu, and back" (`@throttled`, 6x CPU) | throttled-390 | longest main-thread task 257.7 ms, expected < 250 (2 of 5 failed in the first run) | 5 of 20 fail (257 to 361 ms) | 3 of 20 fail (about 272 ms) | fails on both, pre-existing timing gate | #1115 | 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) - Full runs: `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. - Throttled projects: `--config=playwright.att861-throttled.config.ts`. This is a temporary untracked file that imports `playwright.config.ts` and keeps only the `throttled-*` projects with `dependencies: []`. Without it, `--project=throttled-*` pulls every project into the run (5340 tests, which I stopped after 1 minute). - Repeats: `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, `~/.slots` holder records, and `/tmp` scratch are removed on both VMs after this comment. The untracked throttled config goes with the worktrees. Nothing merged, and no code changed.
Author
Owner

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.

arm build runs fails (longest task ≥ 250 ms) longest task median p90 max
dev 796d80cba 80 0 73 ms 92 ms 118 ms
branch (#861 stack) 9a3d38586 80 0 72 ms 82 ms 113 ms

By test, 40 runs per arm:

test dev median / p90 / max branch median / p90 / max
rest to Style sheet, and back 74 / 96 / 118 76.5 / 88 / 113
rest to Attach menu, and back 69 / 84 / 94 69.5 / 77 / 91

The number is the longest main-thread task of the asserted "there" trace (the longest N in 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

  • Builds on dev-01 through ~/bin/slot: cargo build --release -j4 --locked -p calternal + bun install --frozen-lockfile + vite build, worktrees at exactly 9a3d38586 and 796d80cba. The spec, trace.ts and helpers.ts have no diff between the two commits.
  • Staged to perf-01 and sha256 checked at both ends: server binaries branch bdd143ba…cf8, dev c20a1a88…a76; dist tarballs and the node_modules/e2e rig tarball also matched.
  • One turn: ~/bin/perf-turn attach-throttled ~/attthr/turn.sh on perf-01 (22:06–22:25Z, 19 min). The script takes perf-02's lock first and holds it for the whole turn.
  • Per block: playwright test e2e/note-bars-motion.spec.ts:71 --project=throttled-390 --repeat-each=10 --workers=1 --retries=0 with CI=1, against a copy of playwright.config.ts with 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).
  • Caveat: Chromium on Linux, 6× CPU throttle as the spec sets it; a 4-core VM that was otherwise idle for this turn, which is what the test needs.

Decision

No regression from the Attachments stack on this gate. Leave :71 as 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.

## `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. | arm | build | runs | fails (longest task ≥ 250 ms) | longest task median | p90 | max | |---|---|---|---|---|---|---| | dev | `796d80cba` | 80 | **0** | 73 ms | 92 ms | 118 ms | | branch (#861 stack) | `9a3d38586` | 80 | **0** | 72 ms | 82 ms | 113 ms | By test, 40 runs per arm: | test | dev median / p90 / max | branch median / p90 / max | |---|---|---| | rest to Style sheet, and back | 74 / 96 / 118 | 76.5 / 88 / 113 | | rest to Attach menu, and back | 69 / 84 / 94 | 69.5 / 77 / 91 | The number is the longest main-thread task of the asserted "there" trace (the `longest N` in 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 - Builds on dev-01 through `~/bin/slot`: `cargo build --release -j4 --locked -p calternal` + `bun install --frozen-lockfile` + `vite build`, worktrees at exactly `9a3d38586` and `796d80cba`. The spec, `trace.ts` and `helpers.ts` have no diff between the two commits. - Staged to perf-01 and sha256 checked at both ends: server binaries `branch` `bdd143ba…cf8`, `dev` `c20a1a88…a76`; dist tarballs and the node_modules/e2e rig tarball also matched. - One turn: `~/bin/perf-turn attach-throttled ~/attthr/turn.sh` on perf-01 (22:06–22:25Z, 19 min). The script takes perf-02's lock first and holds it for the whole turn. - Per block: `playwright test e2e/note-bars-motion.spec.ts:71 --project=throttled-390 --repeat-each=10 --workers=1 --retries=0` with `CI=1`, against a copy of `playwright.config.ts` with 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). - Caveat: Chromium on Linux, 6× CPU throttle as the spec sets it; a 4-core VM that was otherwise idle for this turn, which is what the test needs. ### Decision No regression from the Attachments stack on this gate. Leave `:71` as 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.
Author
Owner

Merged into dev with --no-ff at 8b00393b0 by 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.

Merged into `dev` with `--no-ff` at `8b00393b0` by 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.
kayg closed this pull request 2026-11-14 05:33:29 +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!861
No description provided.