GeezerVison is showing github.com — pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade · Issue #8961 · developing-today/code
pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961Descriptionpkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade
Umbrella: #8958 (#8958)
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 the five components (App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample) into member crate web-gen-ui, depending on web-gen-core. The facade bin keeps main (mount/bootstrap) and re-exports the ui surface. End state: no component code remains in the bin crate.
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.
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · picked up + triaged
- Agent: queue worker (repo-worker-code), lane any-g
- Session / ID: task 18782
- Found via: repo-health-code-pilot atomic claim (unfiltered, lane any-g); execution-lane assignment: direct (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)
- Task: Triage issue pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961: pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade
- Fresh verification (2026-11-17): issue pkgs/web-gen crate split — step 2: extract web-gen-ui (components); slim bin to facade #8961 OPEN; its only label was
epic/crate-splits (never triaged; one Kaneo-link comment). No hard-stop labels. On origin/main, pkgs/web-gen is still the pre-split single crate: src/main.rs (341 lines) holds all five components inline (App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample) plus the pure helpers step 1 extracts. No workspace, no web-gen-core crate exists yet.
- Verdict: work kind
task/small-fix · priority/normal · effort/m · kind/refactor (labels applied this run, plus status/triaged; queue coverage is the dep-gated follow-on below, so no queue/queued label — the follow-on's own state carries it).
- Priority why: no expedite/next-up label (Drew's set untouched); crate-split program work in the ordinary band per the priorities brief — lane code-b's umbrella triage (task 18780) set priority/normal for this program today.
- The two gates, in order: (1) Revival decision on umbrella pkgs/web-gen crate split #8958 — step 0 (pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959, CLOSED 2026-11-13) recorded that the project does not build (rust-toolchain pins nightly-2023-07-20; the graph carries leptos 0.8) and that revival (port / pin / retire) is Drew's call. That escalation was delivered today by lane code-b (task 18780): pending-questions ledger item
web-gen-8958-revival, and pkgs/web-gen crate split #8958 carries user/escalated + queue/blocked + status/blocked. It is NOT re-escalated here — the same gate already has a ledger item. (2) Step 1, issue pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 (extract web-gen-core) is OPEN and unlanded; web-gen-ui depends on web-gen-core, so step 2 cannot start before it — and step 1 itself cannot land before the revival, so gate (2) transitively covers gate (1).
- First step (once released): on the revived toolchain, move the five components into member crate
web-gen-ui (depends on web-gen-core), slim the bin to main (mount/bootstrap) + facade re-exports, one PR for this step only.
- Acceptance: components live solely in web-gen-ui; bin holds only main + re-exports;
cargo test passes and the workspace builds clean on the revived toolchain; behavior-preserving.
- Fix packet:
repo-health:v1:fix:developing-today/code:issue:8961 → enqueued as task 20253 (queue repo-health-code-pilot, status queued, priority 30), with both gates stated in its title and body. A dep-block on pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 requires holding the claim, so the packet's claimer applies it at claim time (the block verb refused an unclaimed block this run — recorded here so the state is not mistaken for ungated).
dezren39 commented on Nov 17, 2026 🤖 Agent note · parked (dependency gate, no work started)
- Agent: queue worker (repo-worker-code), lane code-h (OpenChamber scheduled lane)
- Session / ID: task 20253
- Found via: queue claim, fresh gh state 2026-11-17
- Verdict: Step 2 cannot start. Gate 1, pkgs/web-gen crate split #8958 (web-gen revival decision), is OPEN and
user/escalated. Gate 2, pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 (step 1, extract web-gen-core), is OPEN, queue/blocked, user/escalated. Parked for 60 minutes to recheck; no branch created, no files changed.
dezren39 commented on Nov 17, 2026 agent-note:v1
state: parked
task: 20253 · lane: any-o · worker: repo-worker-code
Fresh gate check (2026-11-17): umbrella #8958 remains OPEN with the revival decision pending (user/escalated + queue/blocked); step 1 #8960 remains OPEN and assigned to Drew. Since web-gen-ui depends on web-gen-core, no extraction work was started. Parked for 30 minutes; resume only after #8960 closes, then revalidate the revival decision and current issue/PR state. dezren39 commented on Nov 20, 2026
🤖 Agent note · blocked — task 20253
dezren39 commented on Nov 22, 2026
Decided: Keep #8961 open and dependency-blocked on #8960; do not wait for Drew’s approval. The revival choice is resolved on #8958: continue investing and repair the build baseline before crate splitting.
Why: #8958 now records this decision at #8958 (comment). #8960 remains OPEN and its fresh triage says the crate still fails in leptos-0.8.2, so step 2 cannot satisfy the required build/test gate yet.
Undo: Resume step 2 when #8960’s build prerequisite and extraction are complete; revise the sequence only if new build evidence changes the dependency.
By: repo-worker-code (code-i)
The older user/escalated labels on #8958/#8961 represented an agent-created owner gate and are superseded. #8961 remains genuinely dependency-blocked on #8960. dezren39 commented on Nov 23, 2026
🤖 Agent note · claimed for implementation — queue task 20253
dezren39 commented on Nov 23, 2026
🤖 Agent note · DONE — step 2 implemented and merged (queue task 20253)
Landed: PR #12918 merged — merge commit 663cf37ab4bf02f52944094f5a927eddb3d75727, head 65a32bdc17aa. #8961 auto-closed as completed by the PR.
What changed (5 files):
pkgs/web-gen/crates/web-gen-ui/ (new) — Cargo.toml + src/lib.rs: the five components (App, TestApp, ProgressBar, RandomMultiplierForm, DetailedFormExample) moved verbatim from the bin's main.rs, plus the commented-out historical FormExample block. Only edits: pub on the three previously private components so the facade can re-export them. Crate depends on web-gen-core per the pkgs/web-gen crate split #8958 crate map.
pkgs/web-gen/src/main.rs — slimmed to main (mount/bootstrap) + facade re-export pub use web_gen_ui::{...}; 0 #[component] remains in the bin (verified on main post-merge).
pkgs/web-gen/Cargo.toml — workspace gains crates/web-gen-ui; shared leptos/leptos_router/wasm-bindgen/web-sys versions pinned in [workspace.dependencies] (step-1 pattern); bin drops the deps only the components used. No version bumps.
pkgs/web-gen/Cargo.lock — +12/−4 (new path-only member).
Verification (laptop worktree off origin/main, primary checkout untouched):
cargo test --workspace --offline — all suites ok: web-gen-core 10 passed / 0 failed; ui and bin compile, 0-test suites ok; doc-tests ok.
cargo check --locked --offline — exit 0. cargo fmt -- --check — exit 0.
- Warning profile unchanged in substance: the same five pre-existing unused-import warnings (they serve commented-out code), split across the two crates (ui 2, bin 3).
Gates discharged en route: the revival decision (resolved on #8958; build baseline repaired by #12369) and step 1 (#8960 closed via PR #12876) — the stale status/blocked/queue/blocked labels were removed at claim time.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|