Repository navigation
Description
pkgs/web-gen-api crate split — step 1: extract web-gen-api-app; facade re-exports leptos_start::app
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
Move src/app.rs (App, HomePage, NotFound) into member crate web-gen-api-app. The facade lib re-exports it as pub use web_gen_api_app as app; so leptos_start::app::* — used by the bin in both ssr and hydrate arms and by hydrate() in lib.rs — resolves unchanged. The app implementation must exist only in the new crate after this step; the facade holds only the re-export.
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 testpasses, 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
*.nixoutside 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.
Activity
developing-today commentedon Nov 12, 2026
CODE-2724
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged
Triage evidence (fresh, 2026-11-17)
pkgs/web-gen-apiis still the single crateleptos_start,src/app.rs(App, HomePage, NotFound) is in place, and there are no member crates.web-gen-api-appholdingsrc/app.rs, leave onlypub use web_gen_api_app as app;in the facade, and proveleptos_start::app::*resolves unchanged for the bin's ssr/hydrate arms andhydrate(). Acceptance: the issue's own discipline (one PR, step 1 only;cargo testpasses and the workspace builds clean against the 0-test baseline; behavior-preserving; a step that cannot go green stops and reports instead of merging partial state).dezren39 commentedon Nov 17, 2026
agent-note:v1
state: picked_up
task: 20249
lane: any-o (OpenChamber scheduled lane, worker repo-worker-code)
stage: claimed -> verified
Claimed task 20249 and revalidated fresh GitHub state: #8964 is OPEN; no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit); no active PR for this step found. The issue is assigned to Drew, but there is no Drew-owned/held PR to avoid, and the queue task explicitly routes this step.
Next: inspect the current main tree and create/resume the dedicated fleet worktree at ~/git/fleet/20249 on branch queue/20249-8964-web-gen-api-app.
dezren39 commentedon Nov 17, 2026
agent-note:v1
transition: picked-up
worker: repo-worker-code
lane: any-n
task: 20249
summary: Claimed for step 1 extraction; issue is open and no matching open PR found. Resuming existing task branch/worktree after checking its state.
dezren39 commentedon Nov 17, 2026
state: blocked — escalated (escalated-to-user)
lane: any-n, worker: repo-worker-code, task 20249
Step 1 is gated on the revive/pin/retire decision already before Drew — the crate cannot resolve on clean
main, so the step cannot meet its own acceptance gate.Evidence, fresh this shift (2026-11-17, laptop,
pkgs/web-gen-api):pkgs/web-gen-apifrom currentmain(no task changes at all),cargo metadata/cargo treefail at dependency resolution: "failed to select a version forwasm-bindgen" —leptos 0.8requires^0.2.100, while the manifest pinswasm-bindgen = "=0.2.87". Every candidate is excluded; the graph is unsatisfiable. Identical failure with--offlineand with--locked.Cargo.lockis also stale against the manifest: it locksleptos 0.4.5whileCargo.tomlrequestsleptos 0.8. So there is no consistent resolution state to build from.leptosset to0.4resolves, but then fails to compile on the stable channel (E0554inserver_fn_macro:#![feature]not allowed) — the toolchain-pin half of the same gate the 2026-11-13 step-0 baseline recorded on the umbrella.This is exactly the gate triaged on the umbrella #8962 (task 18783, 2026-11-17): pending-decisions ledger item
web-gen-8958-revival(options A: port to current leptos on stable — recommended there; B: pin era nightly + matching graph; C: retire the starter). I did not take a version bump or a toolchain change on my own initiative: this issue's acceptance discipline forbids dependency version bumps, and the choice is explicitly recorded as Drew's call.State of the work, so it is revivable at zero cost once the answer lands:
queue/20249-8964-web-gen-api-app, worktree~/git/fleet/20249(laptop), commit6287daa0f5— the mechanical extraction, already complete and not pushed:pkgs/web-gen-api/web-gen-api-app/member crate,src/app.rsmoved to itssrc/lib.rscontent-identical (verified byte-identical againstmain'ssrc/app.rs);src/lib.rsreduced topub use web_gen_api_app as app;plus the unchangedhydrate(), soleptos_start::app::*still resolves inmain.rslines 16 and 74;Cargo.toml:[workspace] members = ["web-gen-api-app"],resolver = "2", path dependency, and feature forwarding (csr/hydrate/ssr→web-gen-api-app/*);[package.metadata.leptos]untouched;main— the app crate mirrors the facade's existingleptos 0.8manifest entries.mainred.cargo test --workspace(baseline 0 tests) plus a cleancargo buildof thessrandhydratearms.Queue handling: task 20249 is blocked (reason-class
escalated-to-user) naming ledger itemweb-gen-8958-revival, not dependency-blocked — no PR or task clears it, only the revive/pin/retire answer does.5 remaining items
dezren39 commentedon Nov 22, 2026
Picked up task 20249 again. The earlier owner-decision gate is cleared: umbrella #8962 now records the decision to revive on current Leptos with stable Rust and proceed with the already-scoped extraction (decision comment: #8962 (comment)). I found no hold label on #8964. I am porting the saved extraction onto current main and will run the package tests plus SSR/hydrate builds; this note replaces the stale “waiting for Drew” checkpoint.
dezren39 commentedon Nov 22, 2026
Step 1 is checkpointed but cannot meet its build acceptance on the current baseline. The scoped extraction is committed and pushed on
queue/20249-8964-web-gen-api-app-resumeat2096faa466923f6962860e5ce12ed3e32dab26d1; no dependency versions were changed.Verification:
cargo metadata --manifest-path pkgs/web-gen-api/Cargo.toml --locked --format-version 1 --no-depspasses and sees both workspace members.cargo test --manifest-path pkgs/web-gen-api/Cargo.toml --workspace --lockedfails during dependency resolution becauseleptos 0.8requireswasm-bindgen ^0.2.100while the facade pinswasm-bindgen =0.2.87. Fixing that graph is outside this step packet (which forbids dependency version bumps), so I am not opening a PR that cannot pass. The umbrella #8958 has now chosen to repair the build baseline before crate-split steps; this task resumes after that prerequisite is buildable.dezren39 commentedon Nov 23, 2026
state: picked-up
task: 20249
lane: FN (archer, sandbox fix lane via fleet agent next)
issue: #8964 (umbrella #8962)
Claiming step 1 for this pass. Fresh premise check 2026-11-23T05:20Z:
fix(web-gen-api): migrate to stable Leptos 0.8(2335140) andfix(web-gen-api): restore SSR shell and hydration(57fc719) landed 2026-11-22; Cargo.lock now resolves wasm-bindgen 0.2.130 / leptos 0.8.23 (the =0.2.87 pin conflict is gone).queue/20249-8964-web-gen-api-app-resumestill exists at 2096faa.Plan: port the saved extraction's structure onto current main in a fresh worktree (current app.rs post-dates the branch), verify workspace test + ssr + hydrate builds, one PR for step 1 only.
Merge pull request #12956 from developing-today/lane-fn/8964-web-gen-…
dezren39 commentedon Nov 23, 2026
state: done
task: 20249
lane: FN (archer, sandbox fix lane via fleet agent next)
Step 1 landed: PR #12956 merged — merge commit
2d421ec8b0252ad90e880debc56caef97ea2f58c, headf253a9d1a7ac. This issue auto-closed as completed via the PR's closing keyword (verified by re-read).What landed (exactly the step's five paths, verified on main post-merge):
src/app.rs→web-gen-api-app/src/lib.rs(verbatim rename; App, HomePage, NotFound exist solely in the new member crate).web-gen-api-app/Cargo.toml(new): mirrors the facade's Leptos 0.8 feature shape; actix-web / leptos_actix optional under itsssrfeature for the ssr-gated block in NotFound.Cargo.toml:[workspace](members = ["web-gen-api-app"], resolver 2), path dependency, csr/hydrate/ssr feature forwarding. Placement follows this step's routed packet and the checkpointed extraction (member at project root beside the facade, not undercrates/).src/lib.rs:pub mod app;→pub use web_gen_api_app as app;— the facade holds only the re-export.Cargo.lock: +12 lines only (new package entry + facade dep edge); no dependency version changes.Route taken: ported the checkpointed extraction from
queue/20249-8964-web-gen-api-app-resume(2096faa) onto current main, adapted to the repaired baseline. The step's named blocker is gone: the baseline repair landed after the checkpoint (fix(web-gen-api): migrate to stable Leptos 0.82335140,restore SSR shell and hydration57fc719, both 2026-11-22), and the lock now resolves wasm-bindgen 0.2.130 / leptos 0.8.23.Verification (laptop worktree off origin/main; the same commands were run green on the pre-change baseline first):
cargo test --manifest-path pkgs/web-gen-api/Cargo.toml --workspace --locked— ok, all targets (project baseline is 0 tests).cargo check --workspace --features ssr— ok (bin ssr arm resolvesleptos_start::app::*through the re-export).cargo check -p leptos_start --features hydrate --target wasm32-unknown-unknown— ok (hydrate() path).cargo metadata --no-depssees both workspace members. rustfmt flags only pre-existing drift in untouchedsrc/main.rs.Umbrella #8962: step 0 (#8963) and step 1 (this issue) are both closed/completed; a close-out note is on the umbrella.