Fix daily train #1152 failures new since prod (guards, size budgets, ui-primitives, #1114 flake) #1154

Closed
kayg wants to merge 0 commits from fix/daily-train-1152 into dev
Owner

Fixes the failures of the daily train #1152 that are new since prod be968d9df. Pre-existing ones are listed in #1153 and untouched.

One commit per item:

  1. check-no-evidence: ops/orchestrator/scripts/shots.sh renamed to icon-capture.sh (nothing referenced it; the guard is unchanged).
  2. check-layers: calternal-carddav added as plugin (deps: core, contacts, contacts-actions, engine; it does not use server, ADR 0064 piece 3-4 is a read bridge that is mounted by the server, not the other way round).
  3. Size: packages/editor/src/tables/grid.ts split into revision/cells/measure/paint/commit/keys/ops/clipboard (grid.ts 497 code lines, same behaviour, grid.ts re-exports the revision pieces); Editor.svelte post-sync targets and margin tooltips moved to lib/note-live.ts (493 lines).
  4. check-ui-primitives: embed lift/play/pause buttons use the shared bounce press (--press-scale), the embed mini toolbar uses the Toolbar pill-in-pill recipe (:global(.pillbar) in Toolbar.svelte).
  5. #1114 flake (contacts-edit.spec.ts:114): root cause in the product. Card.svelte closed the open name/Notes box in the cleanup of an effect that read the person object; the notes list hands out a new object for the same person on every refresh, so a refresh while the box was opening closed it (the textbox never appeared, or typed text was dropped). The effect now follows person.id. New spec the open Notes box stays open and keeps its text when the note changes underneath it.
  6. Merged origin/dev (Notes Float, 02be2b2db); new guard failures it added: ThemeRow.svelte had no opening comment (fixed). NoteList.svelte grew 582→595 (already over its ceiling on prod, perf-sensitive list-script code from another lane): not touched, listed in #1153.

Evidence follows in a comment.

Fixes the failures of the daily train #1152 that are new since prod `be968d9df`. Pre-existing ones are listed in #1153 and untouched. One commit per item: 1. `check-no-evidence`: `ops/orchestrator/scripts/shots.sh` renamed to `icon-capture.sh` (nothing referenced it; the guard is unchanged). 2. `check-layers`: `calternal-carddav` added as `plugin` (deps: core, contacts, contacts-actions, engine; it does not use `server`, ADR 0064 piece 3-4 is a read bridge that is mounted by the server, not the other way round). 3. Size: `packages/editor/src/tables/grid.ts` split into `revision/cells/measure/paint/commit/keys/ops/clipboard` (grid.ts 497 code lines, same behaviour, `grid.ts` re-exports the revision pieces); `Editor.svelte` post-sync targets and margin tooltips moved to `lib/note-live.ts` (493 lines). 4. `check-ui-primitives`: embed lift/play/pause buttons use the shared `bounce` press (`--press-scale`), the embed mini toolbar uses the Toolbar pill-in-pill recipe (`:global(.pillbar)` in Toolbar.svelte). 5. #1114 flake (`contacts-edit.spec.ts:114`): root cause in the product. `Card.svelte` closed the open name/Notes box in the cleanup of an effect that read the `person` object; the notes list hands out a new object for the same person on every refresh, so a refresh while the box was opening closed it (the textbox never appeared, or typed text was dropped). The effect now follows `person.id`. New spec `the open Notes box stays open and keeps its text when the note changes underneath it`. 6. Merged origin/dev (Notes Float, `02be2b2db`); new guard failures it added: `ThemeRow.svelte` had no opening comment (fixed). `NoteList.svelte` grew 582→595 (already over its ceiling on prod, perf-sensitive list-script code from another lane): not touched, listed in #1153. Evidence follows in a comment.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
It uses contacts-actions and engine but not server, so it is a plain plugin (ADR 0064, ADR 0070).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Revision types, cell DOM, column measuring, cell marks, note writes, keys, bar operations and clipboard each get their own file; grid.ts keeps the grid and re-exports the revision pieces.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The card lift, the play button and the audio play/pause button take the shared bounce press (--press-scale 1.009 / 0.94, divided by the hover scale while hovered, so pressed-while-hovered ends at the same size as before). The mini toolbar takes the Toolbar recipe through the global pillbar class.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Card.svelte let go of an open name or Notes box in the cleanup of an effect that read the person object. The notes list hands out a new object for the same person whenever it refreshes, so a refresh during editing closed the box and dropped what was typed. The effect now follows the person's id (#1114).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
web: ThemeRow.svelte opens with a doc comment (file-docs guard, new with Notes Float)
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
aea6c59409
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Gate evidence (head before the Notes Float merge bbbf4bebd; guards re-run on merged head)

gate result
guards on merged head aea6c5940 (no-evidence, layers, ui-primitives, web-cycles, case-paths) pass (ui-primitives: only the 3 old hits; size-budgets: only entries already over their ceiling; file-docs: only visibility.rs)
bun run --cwd packages/editor check (tsc) pass
bun run --cwd apps/web check 0 errors, 19 warnings
vitest editor / web / packages/ui test:primitives 663 / 272 / 70 passed
contacts-*, embeds, note-embeds, pictures, uploads, tables* specs, --workers=1 --retries=0 chromium-1440 76 passed 4 skipped, chromium-390 76/4 (dev-01); webkit-1440 76/4, webkit-390 76/4 (dev-02)
#1114 baseline (Card.svelte as on dev), new spec, chromium-1440 --repeat-each=10 -g Notes 2 of 10 failed (Notes textbox never appeared: the race)
#1114 fixed, --repeat-each=30 -g Notes (60 runs: old spec + new spec) chromium-1440 60/60, webkit-1440 60/60
ci/*.test.mjs the ui-primitives guard test fails only on the 3 old hits (same on dev)

Not run on the merged head: the browser specs and vitest (run on bbbf4bebd; the merge touched no file of this PR except ThemeRow.svelte's comment).

Embed cards, before (dev code) vs after, chromium-1440 and 390

Computed values at rest, hovered and pressed (size drawn = transform × scale, box, padding, gap, radius) for the picture card, the video play button, the audio play button and the mini toolbar: identical in all 62 values at both widths (e.g. picture card 1 / 1.018 / 1.009, play 1 / 1.08 / 0.94, audio 1 / 1 (hover grows only by its own 44.79 px box) / 0.94, mini toolbar 132×34, padding 3px, gap 2px, radius 999px). Shots attached (before / after).

## Gate evidence (head before the Notes Float merge `bbbf4bebd`; guards re-run on merged head) | gate | result | |---|---| | guards on merged head `aea6c5940` (no-evidence, layers, ui-primitives, web-cycles, case-paths) | pass (ui-primitives: only the 3 old hits; size-budgets: only entries already over their ceiling; file-docs: only `visibility.rs`) | | `bun run --cwd packages/editor check` (tsc) | pass | | `bun run --cwd apps/web check` | 0 errors, 19 warnings | | vitest editor / web / `packages/ui test:primitives` | 663 / 272 / 70 passed | | `contacts-*`, `embeds`, `note-embeds`, `pictures`, `uploads`, `tables*` specs, `--workers=1 --retries=0` | chromium-1440 76 passed 4 skipped, chromium-390 76/4 (dev-01); webkit-1440 76/4, webkit-390 76/4 (dev-02) | | #1114 baseline (Card.svelte as on dev), new spec, chromium-1440 `--repeat-each=10 -g Notes` | **2 of 10 failed** (Notes textbox never appeared: the race) | | #1114 fixed, `--repeat-each=30 -g Notes` (60 runs: old spec + new spec) | chromium-1440 60/60, webkit-1440 60/60 | | `ci/*.test.mjs` | the ui-primitives guard test fails only on the 3 old hits (same on dev) | Not run on the merged head: the browser specs and vitest (run on `bbbf4bebd`; the merge touched no file of this PR except `ThemeRow.svelte`'s comment). ## Embed cards, before (dev code) vs after, chromium-1440 and 390 Computed values at rest, hovered and pressed (size drawn = `transform` × `scale`, box, padding, gap, radius) for the picture card, the video play button, the audio play button and the mini toolbar: **identical in all 62 values at both widths** (e.g. picture card 1 / 1.018 / 1.009, play 1 / 1.08 / 0.94, audio 1 / 1 (hover grows only by its own 44.79 px box) / 0.94, mini toolbar 132×34, padding 3px, gap 2px, radius 999px). Shots attached (before / after).
Author
Owner

Merged into dev with --no-ff by the orchestrator. The daily train re-runs on the new dev head. Closing.

Merged into `dev` with `--no-ff` by the orchestrator. The daily train re-runs on the new dev head. Closing.
kayg closed this pull request 2026-11-15 03:49:57 +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!1154
No description provided.