refactor(fsio): move the bulk new-file writer to bulk.rs (#1153) #1172

Closed
kayg wants to merge 0 commits from fix/guards-1153-fsio-split into dev
Owner

Pure move for the ADR 0070 ceiling (lib.rs 576 > 551 on dev; now under 500, entry removed). No logic change; visibility only pub(crate) on BulkStage and the members the crate already used. No perf turn needed: moved code only.

Part of #1153. Do not merge before review.

🤖 Generated with Claude Code

Pure move for the ADR 0070 ceiling (`lib.rs` 576 > 551 on dev; now under 500, entry removed). No logic change; visibility only `pub(crate)` on `BulkStage` and the members the crate already used. No perf turn needed: moved code only. Part of #1153. Do not merge before review. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ci: lower the ADR 0070 size ceiling after the split (#1153)
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
3ca0bf1248
Value from node ci/check-size-budgets.mjs on the four split branches merged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Gates at ca689dfe4 on dev-02 (RUSTFLAGS=-D warnings): cargo fmt --all --check OK; cargo clippy --workspace --all-targets --locked exit 0; cargo test --workspace --locked exit 0, no failures.
Pure move, no perf turn needed (code only moves between files of one crate; no logic, no new allocation or call).
Evidence the diff is moves only: every added/removed non-blank line, whitespace-stripped, cancels except doc headers, imports, mod lines and visibility on signatures (pub(super)/pub(crate), never wider), plus the one allowlist line. Residual per branch (from /tmp script over git diff -U0):

fsio-split: added 345 nonblank lines, removed 328; not-a-move: +23 / -6
 ci/size-allowlist.json  |   1 -
 crates/fsio/src/bulk.rs | 356 ++++++++++++++++++++++++++++++++++++++++++++++++
 crates/fsio/src/lib.rs  | 345 +---------------------------------------------
 3 files changed, 360 insertions(+), 342 deletions(-)
notes-home: added 230 nonblank lines, removed 220; not-a-move: +15 / -5
 ci/size-allowlist.json             |   2 +-
 crates/notes/src/home.rs           | 234 +----------------------------------
 crates/notes/src/home/list_work.rs | 241 +++++++++++++++++++++++++++++++++++++
 3 files changed, 244 insertions(+), 233 deletions(-)
notes-lib: added 153 nonblank lines, removed 144; not-a-move: +12 / -3
 ci/size-allowlist.json     |   2 +-
 crates/notes/src/create.rs | 154 +++++++++++++++++++++++++++++++++++++++++++++
 crates/notes/src/lib.rs    | 149 +------------------------------------------
 3 files changed, 157 insertions(+), 148 deletions(-)
notes-split-we: added 306 nonblank lines, removed 278; not-a-move: +38 / -10
 ci/size-allowlist.json                     |   2 +-
 crates/notes/src/write_executor/home.rs    | 287 +----------------------------
 crates/notes/src/write_executor/mod.rs     |   2 +
 crates/notes/src/write_executor/publish.rs | 199 ++++++++++++++++++++
 crates/notes/src/write_executor/startup.rs | 107 +++++++++++
 5 files changed, 313 insertions(+), 284 deletions(-)

Ceiling: crates/fsio/src/lib.rs is now under 500 lines, so its allowlist entry is removed by check-size-budgets. (A first run caught rustfmt import order in the new file; fixed in ca689dfe4.)
Integration check (dev 42c219afd + all 7 branches merged, 95b8a6e8a, dev-02): check-size-budgets fails only on NoteList.svelte 595 > 567 (slice 3c's, untouched); check-file-docs, check-ui-primitives, check-layers, check-web-cycles, check-case-paths, check-no-evidence all pass; apps/web lint 0, packages/editor check, apps/web check (0 errors), packages/editor test, packages/ui test:primitives green. Each branch alone only clears its own guard (the other three Rust files are still over on a lone branch).

🤖 Generated with Claude Code

Gates at `ca689dfe4` on dev-02 (`RUSTFLAGS=-D warnings`): `cargo fmt --all --check` OK; `cargo clippy --workspace --all-targets --locked` exit 0; `cargo test --workspace --locked` exit 0, no failures. Pure move, no perf turn needed (code only moves between files of one crate; no logic, no new allocation or call). Evidence the diff is moves only: every added/removed non-blank line, whitespace-stripped, cancels except doc headers, imports, `mod` lines and visibility on signatures (`pub(super)`/`pub(crate)`, never wider), plus the one allowlist line. Residual per branch (from `/tmp` script over `git diff -U0`): ``` fsio-split: added 345 nonblank lines, removed 328; not-a-move: +23 / -6 ci/size-allowlist.json | 1 - crates/fsio/src/bulk.rs | 356 ++++++++++++++++++++++++++++++++++++++++++++++++ crates/fsio/src/lib.rs | 345 +--------------------------------------------- 3 files changed, 360 insertions(+), 342 deletions(-) notes-home: added 230 nonblank lines, removed 220; not-a-move: +15 / -5 ci/size-allowlist.json | 2 +- crates/notes/src/home.rs | 234 +---------------------------------- crates/notes/src/home/list_work.rs | 241 +++++++++++++++++++++++++++++++++++++ 3 files changed, 244 insertions(+), 233 deletions(-) notes-lib: added 153 nonblank lines, removed 144; not-a-move: +12 / -3 ci/size-allowlist.json | 2 +- crates/notes/src/create.rs | 154 +++++++++++++++++++++++++++++++++++++++++++++ crates/notes/src/lib.rs | 149 +------------------------------------------ 3 files changed, 157 insertions(+), 148 deletions(-) notes-split-we: added 306 nonblank lines, removed 278; not-a-move: +38 / -10 ci/size-allowlist.json | 2 +- crates/notes/src/write_executor/home.rs | 287 +---------------------------- crates/notes/src/write_executor/mod.rs | 2 + crates/notes/src/write_executor/publish.rs | 199 ++++++++++++++++++++ crates/notes/src/write_executor/startup.rs | 107 +++++++++++ 5 files changed, 313 insertions(+), 284 deletions(-) ``` Ceiling: `crates/fsio/src/lib.rs` is now under 500 lines, so its allowlist entry is removed by `check-size-budgets`. (A first run caught rustfmt import order in the new file; fixed in `ca689dfe4`.) **Integration check** (dev `42c219afd` + all 7 branches merged, `95b8a6e8a`, dev-02): `check-size-budgets` fails only on `NoteList.svelte` 595 > 567 (slice 3c's, untouched); `check-file-docs`, `check-ui-primitives`, `check-layers`, `check-web-cycles`, `check-case-paths`, `check-no-evidence` all pass; `apps/web lint` 0, `packages/editor check`, `apps/web check` (0 errors), `packages/editor test`, `packages/ui test:primitives` green. Each branch alone only clears its own guard (the other three Rust files are still over on a lone branch). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Merged into dev with --no-ff together with #1169–#1175 (dev df16d3a24, orchestrator 16 Nov ~05:20 IST). Combined tree gated on dev-02: cargo fmt --check, clippy -D warnings, workspace tests all pass; every guard passes except the size-budget line for NoteList.svelte (595 > 567, slice 3c's file). I checked the four Rust splits myself: only moved code, plus visibility, mod, use and cfg lines.

Merged into dev with `--no-ff` together with #1169–#1175 (dev `df16d3a24`, orchestrator 16 Nov ~05:20 IST). Combined tree gated on dev-02: `cargo fmt --check`, `clippy -D warnings`, workspace tests all pass; every guard passes except the size-budget line for `NoteList.svelte` (595 > 567, slice 3c's file). I checked the four Rust splits myself: only moved code, plus visibility, mod, use and cfg lines.
kayg closed this pull request 2026-11-15 23:27:49 +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!1172
No description provided.