GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) · Issue #8960 · developing-today/code

pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960

New issue
Copy link
New issue
Copy link
Closed
#12876
Closed
pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf)#8960
#12876
Copy link
Labels
effort/mMedium: expected under 1 day of workepic/crate-splitsEpic: crate-splits - all issues of this effort carry itkind/refactorCode restructuring with no behavior changepriority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 12, 2026
Issue body actions

pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf)

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 pure helper functions (lines 135-183 of today's src/main.rs: generate_random_number, generate_divisible_i_from_n_up_to_m, generate_random_number_and_multiply, parse_input, generate_random_number_and_multiply_result, generate_random_number_and_multiply_str_future) into member crate web-gen-core with no Leptos/wasm dependencies. Components keep calling them through the crate path. Add unit tests for the pure helpers in this step — they are currently untested and are the project's only non-UI logic.

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.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    developing-todayBot
    on Nov 12, 2026 – with developing.today
    Contributor
    More actions

    CODE-2720

  2. dezren39
    added
    epic/crate-splitsEpic: crate-splits - all issues of this effort carry it
    on Nov 12, 2026
  3. dezren39
    added a parent issue on Nov 12, 2026
    • epic: crate splits — splitting monolith pkgs crates into workspace sub-crates #8977
  4. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged + blocked (escalated gate) — task 18781 (lane any-f)

    • State: triaged. Issue pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 is OPEN, unheld. Work kind: task/small-fix (crate-split step), priority/normal, effort/m for this step once unblocked, kind/refactor.
    • Fresh verification (2026-11-17, origin/main d4b0f0f): the extraction target is unchanged — the six pure helpers are still in pkgs/web-gen/src/main.rs (~L135–183), no web-gen-core crate exists, and pkgs/web-gen is still a single package with no workspace. Step 0 (pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959) is CLOSED with its outcome recorded on umbrella pkgs/web-gen crate split #8958: the project does not build as it stands, and no workspace conversion ever landed.
    • Baseline re-checked today, and it is still red — on the CURRENT pin: pkgs/web-gen/rust-toolchain now pins nightly-2026-11-08 (moved by the deps PRs since step 0's nightly-2023-07-20 finding). cargo check in a clean worktree at main fails inside leptos-0.8.2 itself ("expected identifier, found keyword fn" from its #[component] macro, 6 errors) before web-gen's own code is reached. Step 1's acceptance (workspace builds clean, full suite green, no dependency version bumps) cannot be met while the dependency graph itself does not compile.
    • One new defect found this run (not in the step-0 baseline): the extraction target itself does not compile — generate_divisible_i_from_n_up_to_m (src/main.rs ~L141) computes let times_divisible = subject / i; but pushes (subject, number_of_times_divisible), an undefined name. Whoever revives the crate fixes this in passing; the step-1 unit tests the issue requires would have caught it.
    • Gate: the revival decision (port to current leptos on stable / pin a matching 2025-era nightly + graph / retire the starter) is Drew's, and it was delivered today: pending-questions ledger item web-gen-8958-revival (filed by lane code-b, task 18780, on umbrella pkgs/web-gen crate split #8958, which carries user/escalated + queue/blocked + status/blocked). The same blocked label set is applied to this issue so the step is not re-triaged lane after lane while the decision pends. This is the can't-you gate answered honestly: reviving means choosing retire-vs-invest for a starter template — a value call the fleet's own baseline reserved to Drew, and no standing doctrine answers it.
    • Action: task 18781 blocked as escalated-to-user naming ledger item web-gen-8958-revival. No fix packet is enqueued — it could only bounce off the same red baseline. Once Drew picks an option on pkgs/web-gen crate split #8958, this step proceeds mechanically: extract the six helpers into web-gen-core (rand is its only dependency among them), add their unit tests, facade re-export from main.rs.
  6. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    kind/refactorCode restructuring with no behavior change
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    on Nov 17, 2026
  7. dezren39
    removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    🤖 Agent note · pickup — task 18781 (lane oc-code-02)

    • Rechecking pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 and its pkgs/web-gen crate split #8958 dependency against current GitHub and repository state; prior escalation rationale is historical, not a stop condition.
  9. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged — task 18781 (lane oc-code-02)

    • State: OPEN, unheld; extraction target remains in pkgs/web-gen/src/main.rs; no web-gen-core crate exists. Step 0 pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959 is closed after recording the baseline, not after making the package build.
    • Fresh verification (2026-11-22, HEAD d94de71f02cbf41bb38479e984a8eedd4142e003): cargo check fails in leptos-0.8.2 with six expected identifier, found keyword fn errors before compiling this crate. The target helper also still references undefined number_of_times_divisible at src/main.rs:147.
    • Decision: On umbrella pkgs/web-gen crate split #8958, chose to continue investing in web-gen and repair its build baseline before splitting; the prior “Drew decision” gate was an agent assertion, not a sourced human decision. Decision record: pkgs/web-gen crate split #8958 (comment)
    • Disposition: Keep this split step open, but its acceptance is unreachable until the build prerequisite is repaired. Route that prerequisite via umbrella triage task 18780; do not block on an owner answer. Once buildable, resume this bounded extraction and tests.
  10. dezren39
    removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  11. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged

    • Agent: repo-worker-code, lane oc-code-07
    • Task: 20993 — triage of issue pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960
    • Disposition: triaged; keep this split step open, but do not start its extraction until the package build is restored.
    • Fresh state: pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 remains OPEN; the six pure-helper extraction target remains as described, and the last fresh failure note reports the locked Leptos graph fails before this crate compiles.
    • Prerequisite routed: web-gen: restore a stable-compatible Leptos build #12274 now has implementation task 20999 queued to restore the stable-compatible pkgs/web-gen build. This is the required prerequisite; no duplicate build or split task was filed. Once web-gen: restore a stable-compatible Leptos build #12274 passes its build gate, resume this bounded extraction and tests.
    • Evidence: pkgs/web-gen crate split — step 1: extract web-gen-core (pure helpers, leaf) #8960 (comment) · web-gen: restore a stable-compatible Leptos build #12274 · queue task 20999.
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · pickup — Lane DX (sandbox fix lane, agent archer)

    Claiming step 1 (#8960) now that its prerequisite #12274 is closed (PR #12369 merged, merge d35a35951aa — stable build restored: Leptos 0.8.23 / leptos_router 0.8.17, cargo check --locked --offline green on stable).

    Plan: extract the six pure helpers from pkgs/web-gen/src/main.rs into member crate web-gen-core (leaf, no Leptos/wasm deps), add unit tests for the helpers, components call through the crate path. Behavior-preserving, no dependency version bumps, one PR for this step only.

  13. developing-today
    added
    status:in-review
    on Nov 23, 2026
  14. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12876 from developing-today/lane-dx/8960-web-gen-…

    f286647
  15. dezren39
    closed this as completedin #12876on Nov 23, 2026
  16. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 23, 2026
  17. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — Lane DX (agent archer)

    Step 1 complete. PR #12876 merged (merge commit f2866476f2ad276c2100a0574b446c9f07e4792d); this issue auto-closed as completed.

    What landed:

    • pkgs/web-gen is now a Cargo workspace (root package + crates/web-gen-core); shared rand/futures versions pinned in [workspace.dependencies]. Note: step 0 (pkgs/web-gen crate split — step 0: workspace conversion + baselines (no code motion) #8959) closed with the baseline recorded but its workspace conversion unlanded (the project did not build then), so the conversion landed in this PR as the mechanical prerequisite — no other step's extraction was bundled.
    • The six pure helpers moved verbatim into web-gen-core (leaf: rand + futures only). Verified on main: grep -c "fn generate_" pkgs/web-gen/src/main.rs = 0 — the moved code exists solely in the new crate; components call it via the web_gen_core:: path.
    • 10 unit tests added for the helpers (the project's first tests), each naming its oracle.

    Verification (PR branch, laptop, stable via ~/tools/fleet-build-lock):

    • cargo test --workspace --offline: green — web-gen-core 10 passed / 0 failed, bin 0 tests ok.
    • cargo check --locked --offline: green; lockfile diff minimal (new path-only member).
    • cargo fmt -- --check: clean. Warning count strictly decreased vs the main baseline (dead-code warnings for the previously uncalled helpers are gone now that they are a lib's public API; the rand deprecation warnings moved with the verbatim code).

    Next slice: step 2, #8961 (extract web-gen-ui, slim the bin to a facade) — now unblocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workepic/crate-splitsEpic: crate-splits - all issues of this effort carry itkind/refactorCode restructuring with no behavior changepriority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.