You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pkgs/web-gen-api-axum crate split — step 3: facade slimming (fileserv + server stay in start-axum) #8969
Template: doc/2026-11-01T16-53-00Z_design_id_crate_split/2026-11-01T16-53-00Z_design_id_crate_split.md (design of record for the pkgs/id split, from #3195). Worked example: pkgs/id umbrella #3447, step issues #4403-#4411. Program: fleet-wide crate-splitting program (Drew's order, 2026-11-11); this issue set comes from the Part 2 inventory, 2026-11-12.
Scope
Finish the split: confirm the facade crate holds only lib.rs (hydrate()), fileserv.rs, main.rs (axum server wiring) and the facade re-exports. fileserv's reference to the app (use crate::app::App) now resolves through the facade's re-export of start-axum-ui — server glue depending downward, per the umbrella's crate map. Remove any leftover empty module files/stubs from the pre-split layout, and record the final workspace shape on the umbrella.
Acceptance
Acceptance discipline (from the id template; applies to every step):
One PR per step; no step bundles another step's extraction.
Full test suite green on that PR. Baseline is recorded in step 0 (this project currently has 0 tests, so the gate is: cargo test passes, the workspace builds clean, and any tests added by a step pass).
Behavior-preserving: no functional changes, no dependency version bumps, no renames beyond the crate-path moves in scope.
Facade re-exports where consumers exist: the facade crate keeps the pre-split public paths working for the whole migration, and a step is complete only when the moved code exists solely in its new crate (the old location holds at most the re-export). The 2026-11-12 inventory found no external/Nix consumers of this project (grep of *.nix outside the project dir: no hits); the known consumer is the project's own binary/lib entry points.
Never leave main red: a step that cannot go green stops and reports here instead of merging partial state.
Agent note (task 18788, lane any-l) — TRIAGED: step 3 is dependency-gated on steps 1 and 2; nothing has been extracted yet.
Fresh state (2026-11-17, origin/main): umbrella #8965 OPEN; step 1 #8967 OPEN; step 2 #8968 OPEN; this step 3 #8969 OPEN. The project still has its pre-split flat layout — pkgs/web-gen-api-axum/src/ holds app.rs, dark_mode.rs, error_template.rs, fileserv.rs, lib.rs, main.rs, and the crate has no workspace members: step 1's leaf extraction (error_template → start-axum-error) has not landed, so step 2 (app/dark_mode → start-axum-ui) and this step have nothing to slim against.
Resume condition for step 3, in order: #8967 merged (extraction exists solely in start-axum-error, facade re-export only), then #8968 merged (same for start-axum-ui). Only then does this step's work — confirming the facade holds only lib.rs (hydrate), fileserv.rs, main.rs and re-exports, and removing pre-split stubs — become executable. No packet created here: the step issues are already the program's own routing under #8965, and their bulk-intake triage tasks carry the sequencing.
🤖 Agent note · claimed — lane lane-bp (archer), step 3 of the #8965 split.
State on main (verified 2026-11-22 by source read): steps 1–2 landed (#8967 via PR #12395; #8968 via PR #12617, merge 79e9097de2). Facade start-axumsrc/ today: lib.rs (hydrate()), fileserv.rs (use crate::app::App — already resolves through the facade re-export), main.rs, and three one-line re-export shims: app.rs (pub use start_axum_ui::app::*;), dark_mode.rs (pub use start_axum_ui::dark_mode::*;), error_template.rs (pub use start_axum_error::{AppError, ErrorTemplate};) — plus one non-source leftover, src/shell.nix.
Move set for this step (one PR):
Delete pkgs/web-gen-api-axum/src/shell.nix — a byte-identical duplicate of the project-root shell.nix sitting in src/ (there since 2024, referenced by nothing; code search: 0 hits). After this, facade src/ holds exactly lib.rs, fileserv.rs, main.rs + the three re-export shims the scope names.
Add pkgs/web-gen-api-axum/tests/facade_paths.rs — a facade-contract test (ssr-gated, matching the step gates) that references the pre-split public paths through the facade (start_axum::app::App / SimpleCounter, start_axum::dark_mode::DarkModeToggle, start_axum::error_template::{AppError, ErrorTemplate}, start_axum::fileserv::file_and_error_handler), so a dropped re-export fails the suite. Baseline is 0 tests; this becomes 1.
No code moves and no Cargo.toml changes: the moved code already exists solely in start-axum-ui / start-axum-error, and fileserv already depends downward through the facade re-export, per the umbrella's crate map. (Observation for later, out of scope here: the facade Cargo.toml still carries direct deps only the extracted code uses — e.g. leptos_query, web-sys, libsql, serde, http, once_cell, hyper; pruning them changes the facade's feature-forwarding surface, so it is not folded into this behavior-preserving step.)
Verification: the step-gate set from steps 1–2 via fleet-run — cargo check --features ssr; cargo check --locked --features hydrate; cargo check --locked --features ssr; cargo test --locked --features ssr — plus a mutation check that the new test fails when a re-export is broken. The final workspace shape gets recorded on #8965 at completion.
Move set (as claimed in comment 7089887773): (1) deleted pkgs/web-gen-api-axum/src/shell.nix — a byte-identical duplicate of the project-root shell.nix, sitting in src/ since 2024, referenced by nothing; facade src/ now holds exactly lib.rs (hydrate()), fileserv.rs, main.rs + the three one-line re-export shims (app.rs, dark_mode.rs, error_template.rs). (2) added pkgs/web-gen-api-axum/tests/facade_paths.rs — the project's first test: an ssr-gated facade-contract test referencing the pre-split public paths through the facade. (3) No code moves, no Cargo.toml changes — verified by source read that the extracted code already lives solely in start-axum-ui / start-axum-error, and fileserv's use crate::app::App already resolves through the facade re-export.
Oracle (fleet-run, nix develop .#fleet):run 45100026191 on the PR head — cargo check --features ssr; cargo check --locked --features hydrate; cargo check --locked --features ssr; cargo test --locked --features ssr — all green; the test run shows facade_paths_resolve ... ok (1 passed; the step-0 baseline was 0 tests).
Mutation evidence (laptop, same shell): dropping ErrorTemplate from the facade shim's export list leaves the lib compiling but fails the new test — error[E0425]: cannot find value ErrorTemplate in module start_axum::error_template at tests/facade_paths.rs:22, could not compile start-axum (test "facade_paths"); renaming the shim's import fails the build with E0432. Both mutations were restored; the tree is clean.
Named remainder (out of scope, recorded in the claim): the facade Cargo.toml still carries direct deps only the extracted code uses (e.g. leptos_query, web-sys, libsql, serde, http, once_cell, hyper). Pruning them changes the facade's feature-forwarding surface, so it belongs in its own step if wanted — not folded into this behavior-preserving closeout. Recorded here and on pkgs/web-gen-api-axum crate split #8965 rather than filed as a separate issue; it is a judgment call for the umbrella owner.
Activity
developing-today commentedon Nov 12, 2026
CODE-2729
dezren39 commentedon Nov 17, 2026
Agent note (task 18788, lane any-l) — TRIAGED: step 3 is dependency-gated on steps 1 and 2; nothing has been extracted yet.
Fresh state (2026-11-17, origin/main): umbrella #8965 OPEN; step 1 #8967 OPEN; step 2 #8968 OPEN; this step 3 #8969 OPEN. The project still has its pre-split flat layout —
pkgs/web-gen-api-axum/src/holdsapp.rs,dark_mode.rs,error_template.rs,fileserv.rs,lib.rs,main.rs, and the crate has no workspace members: step 1's leaf extraction (error_template → start-axum-error) has not landed, so step 2 (app/dark_mode → start-axum-ui) and this step have nothing to slim against.Resume condition for step 3, in order: #8967 merged (extraction exists solely in start-axum-error, facade re-export only), then #8968 merged (same for start-axum-ui). Only then does this step's work — confirming the facade holds only
lib.rs(hydrate),fileserv.rs,main.rsand re-exports, and removing pre-split stubs — become executable. No packet created here: the step issues are already the program's own routing under #8965, and their bulk-intake triage tasks carry the sequencing.dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged (dependency-gated, no work routed)
dezren39 commentedon Nov 23, 2026
🤖 Agent note · claimed — lane lane-bp (archer), step 3 of the #8965 split.
State on main (verified 2026-11-22 by source read): steps 1–2 landed (#8967 via PR #12395; #8968 via PR #12617, merge
79e9097de2). Facadestart-axumsrc/today:lib.rs(hydrate()),fileserv.rs(use crate::app::App— already resolves through the facade re-export),main.rs, and three one-line re-export shims:app.rs(pub use start_axum_ui::app::*;),dark_mode.rs(pub use start_axum_ui::dark_mode::*;),error_template.rs(pub use start_axum_error::{AppError, ErrorTemplate};) — plus one non-source leftover,src/shell.nix.Move set for this step (one PR):
pkgs/web-gen-api-axum/src/shell.nix— a byte-identical duplicate of the project-rootshell.nixsitting insrc/(there since 2024, referenced by nothing; code search: 0 hits). After this, facadesrc/holds exactlylib.rs,fileserv.rs,main.rs+ the three re-export shims the scope names.pkgs/web-gen-api-axum/tests/facade_paths.rs— a facade-contract test (ssr-gated, matching the step gates) that references the pre-split public paths through the facade (start_axum::app::App/SimpleCounter,start_axum::dark_mode::DarkModeToggle,start_axum::error_template::{AppError, ErrorTemplate},start_axum::fileserv::file_and_error_handler), so a dropped re-export fails the suite. Baseline is 0 tests; this becomes 1.start-axum-ui/start-axum-error, andfileservalready depends downward through the facade re-export, per the umbrella's crate map. (Observation for later, out of scope here: the facade Cargo.toml still carries direct deps only the extracted code uses — e.g. leptos_query, web-sys, libsql, serde, http, once_cell, hyper; pruning them changes the facade's feature-forwarding surface, so it is not folded into this behavior-preserving step.)Verification: the step-gate set from steps 1–2 via fleet-run —
cargo check --features ssr;cargo check --locked --features hydrate;cargo check --locked --features ssr;cargo test --locked --features ssr— plus a mutation check that the new test fails when a re-export is broken. The final workspace shape gets recorded on #8965 at completion.Merge pull request #12778 from developing-today/archer-lane-bp/8969-f…
dezren39 commentedon Nov 23, 2026
🤖 Agent note · done — lane lane-bp (archer)
Step 3 is landed; this issue auto-closed via
Closes #8969in PR #12778.cd688f5566c842f5b0245fcb02a5cd8042d30f39.pkgs/web-gen-api-axum/src/shell.nix— a byte-identical duplicate of the project-rootshell.nix, sitting insrc/since 2024, referenced by nothing; facadesrc/now holds exactlylib.rs(hydrate()),fileserv.rs,main.rs+ the three one-line re-export shims (app.rs,dark_mode.rs,error_template.rs). (2) addedpkgs/web-gen-api-axum/tests/facade_paths.rs— the project's first test: an ssr-gated facade-contract test referencing the pre-split public paths through the facade. (3) No code moves, no Cargo.toml changes — verified by source read that the extracted code already lives solely instart-axum-ui/start-axum-error, andfileserv'suse crate::app::Appalready resolves through the facade re-export.nix develop .#fleet): run 45100026191 on the PR head —cargo check --features ssr;cargo check --locked --features hydrate;cargo check --locked --features ssr;cargo test --locked --features ssr— all green; the test run showsfacade_paths_resolve ... ok(1 passed; the step-0 baseline was 0 tests).ErrorTemplatefrom the facade shim's export list leaves the lib compiling but fails the new test —error[E0425]: cannot find value ErrorTemplate in module start_axum::error_templateat tests/facade_paths.rs:22,could not compile start-axum (test "facade_paths"); renaming the shim's import fails the build with E0432. Both mutations were restored; the tree is clean.