Fix #1155 static gates: bundle lines at measured sizes, split trash/history/lists/meta #1156

Closed
kayg wants to merge 0 commits from fix/static-gates-1155 into dev
Owner

Fixes the two NEW static-gate failures of the daily train on dev 26e27d3fa (#1155). Pure refactor plus budget lines. The #1153 pre-existing failures are not touched.

Bundle gate (perf/web.sh --bundle-only --gate): 7 lazy chunk lines moved to the measured size (rounded up 0.001), total = sum. tables 12.29 -> 12.587 (+0.30 KB): no one change; it comes from the tables work merged since prod (wrap-to-fit, pinned column, row-group skipping, the grid/state/paint/widths module split), so no cheap dedupe; set to measured under kayg's small-growth rule. The other six (attachments, ContactsScreen, idle-screens, LinksTab, panes, table-bar.svelte) are hash jitter, 0.002-0.023 KB. first_js_brotli measured 231.971, line 240 untouched.

check-size-budgets (pure moves, //! on each new file, public API unchanged via re-export):

  • notes/trash.rs 1613 -> 644: new trash/put.rs (delete half), trash/task_restore.rs, trash/task_anchors.rs.
  • notes/history.rs 1084 -> 974: new history/schema.rs (migrations, tune, migrate).
  • tasks/lists.rs 635 -> 526: new lists/grouping.rs (day boundaries, group expr, keys).
  • notes/meta.rs 1655 -> 1289 (was over its ceiling too): new meta/sync.rs (Home list-sync methods).
  • Ceilings lowered for those files and three other entries that had already shrunk. write_executor/home.rs 832 > 648 is still over (and listed in #1153); I left it as asked.

Gates (dev-01 unless noted, via ~/bin/slot, head 93d7e5e80):

  • cargo fmt --all -- --check: ok (after one rustfmt commit).
  • cargo clippy --workspace --all-targets -j4 --locked -- -D warnings: ok.
  • cargo test --workspace -j4 --locked --no-fail-fast: all ok (incl. notes crash tests).
  • Guards: no-evidence, case-paths, 0070 tests, layers, web-cycles pass; remaining failures are only the #1153 ones (size: NoteList, fsio lib, notes home.rs/lib.rs, write_executor/home.rs; file-docs: actions/visibility.rs; ui-primitives: 3 hits + its 1 test).
  • perf/web.sh --bundle-only --gate: 0 over budget, total 585.518 <= 587.327.
  • Playwright journal-trash trash tasks- : chromium-1440 on dev-01 62 passed, 3 skipped; webkit-1440 on dev-02 62 passed, 3 skipped. There are no history* spec files; history is covered by the trash specs and the cargo tests.

No perf run: no runtime code changed (moves of functions between modules in the same crate, inlining unaffected by module boundaries at this scale; only budget JSON values changed). Not merged.

Fixes the two NEW static-gate failures of the daily train on dev 26e27d3fa (#1155). Pure refactor plus budget lines. The #1153 pre-existing failures are not touched. **Bundle gate** (`perf/web.sh --bundle-only --gate`): 7 lazy chunk lines moved to the measured size (rounded up 0.001), total = sum. `tables` 12.29 -> 12.587 (+0.30 KB): no one change; it comes from the tables work merged since prod (wrap-to-fit, pinned column, row-group skipping, the grid/state/paint/widths module split), so no cheap dedupe; set to measured under kayg's small-growth rule. The other six (attachments, ContactsScreen, idle-screens, LinksTab, panes, table-bar.svelte) are hash jitter, 0.002-0.023 KB. first_js_brotli measured 231.971, line 240 untouched. **check-size-budgets** (pure moves, `//!` on each new file, public API unchanged via re-export): - `notes/trash.rs` 1613 -> 644: new `trash/put.rs` (delete half), `trash/task_restore.rs`, `trash/task_anchors.rs`. - `notes/history.rs` 1084 -> 974: new `history/schema.rs` (migrations, tune, migrate). - `tasks/lists.rs` 635 -> 526: new `lists/grouping.rs` (day boundaries, group expr, keys). - `notes/meta.rs` 1655 -> 1289 (was over its ceiling too): new `meta/sync.rs` (Home list-sync methods). - Ceilings lowered for those files and three other entries that had already shrunk. `write_executor/home.rs` 832 > 648 is still over (and listed in #1153); I left it as asked. Gates (dev-01 unless noted, via `~/bin/slot`, head 93d7e5e80): - `cargo fmt --all -- --check`: ok (after one rustfmt commit). - `cargo clippy --workspace --all-targets -j4 --locked -- -D warnings`: ok. - `cargo test --workspace -j4 --locked --no-fail-fast`: all ok (incl. notes crash tests). - Guards: no-evidence, case-paths, 0070 tests, layers, web-cycles pass; remaining failures are only the #1153 ones (size: NoteList, fsio lib, notes home.rs/lib.rs, write_executor/home.rs; file-docs: actions/visibility.rs; ui-primitives: 3 hits + its 1 test). - `perf/web.sh --bundle-only --gate`: 0 over budget, total 585.518 <= 587.327. - Playwright `journal-trash trash tasks-` : chromium-1440 on dev-01 62 passed, 3 skipped; webkit-1440 on dev-02 62 passed, 3 skipped. There are no `history*` spec files; history is covered by the trash specs and the cargo tests. No perf run: no runtime code changed (moves of functions between modules in the same crate, inlining unaffected by module boundaries at this scale; only budget JSON values changed). Not merged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
perf: seven lazy chunk lines at the measured sizes (tables +0.30 KB from the tables work since prod, six jitter); total = sum
Some checks failed
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
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-editor-contract (pull_request) Has been cancelled
93d7e5e803
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into dev at ee50429e7 by the orchestrator. Deploying this head to prod: train #1155 passed every test and the perf comparator on 26e27d3fa; this PR only moves Rust code between modules and budget numbers, re-gated by cargo tests, guards, bundle gate and trash/tasks specs. Closing.

Merged into `dev` at `ee50429e7` by the orchestrator. Deploying this head to prod: train #1155 passed every test and the perf comparator on 26e27d3fa; this PR only moves Rust code between modules and budget numbers, re-gated by cargo tests, guards, bundle gate and trash/tasks specs. Closing.
kayg closed this pull request 2026-11-15 06:15:19 +00:00
Some checks failed
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
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-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!1156
No description provided.