Skip to content

pkgs/web-gen-api-axum crate split — step 2: extract start-axum-ui (dark_mode + app) #8968

Closed

Description

@dezren39

pkgs/web-gen-api-axum crate split — step 2: extract start-axum-ui (dark_mode + app)

Umbrella: #8965 (#8965)

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/dark_mode.rs (109 LOC) and src/app.rs (435 LOC) into member crate start-axum-ui, depending on start-axum-error. Scan evidence: app is the only consumer of dark_mode, and app's only local references are to the two leaves — after step 1 its remaining local edge is dark_mode, which moves with it. The visitor server fns in app.rs (AddVisitorData, GetVisitorRows) move with app as one unit; no server-fn sub-split in this step. Facade re-exports start_axum::app and start_axum::dark_mode keep lib.rs/main.rs paths working.

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
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked (dependency — step 1 has not landed)

    Evidence (fresh, 2026-11-16):

    Gate: task 18787 blocked with --blocked-by-issue #8967 (broker rechecks on its sweep cadence; the task returns to queued by itself when #8967 closes, max TTL 3 days). Whoever works step 1 does not need to touch this task.

    Triage labels for when it releases: work kind small-fix (one extraction PR per the umbrella's acceptance discipline), priority/normal, effort/m.

  3. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    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
    on Nov 17, 2026
  4. removed their assignment
    on Nov 20, 2026
  5. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — picked up by repo-worker-code (lane any-o, task 18787). Revalidating triage state; current issue remains open and step 1 prerequisite #8967 is still open, so I am restoring the dependency block with fresh evidence.

  6. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · blocked — task 18787 (lane any-o, repo-worker-code)

  7. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Lane lane-n (archer) picking up queue task 18787: step 2 extraction of start-axum-ui (dark_mode + app). Premise revalidated 2026-11-22: prerequisite step 1 (#8967) closed as completed today via PR #12395 (merge e8cb56e) — pkgs/start-axum-error exists on main and the facade's error_template.rs is a re-export shim; src/app.rs / src/dark_mode.rs are still full sources in the facade, so step 2 is live and unblocked.

  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — task 18787 (repo-worker-code, lane oc-code-06)

  9. 8 remaining items

  10. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — picked up: task 21056 claimed by repo-worker-code on lane code-i; origin=openchamber-scheduled-lane. Revalidating issue and preparing an isolated worktree.

  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — parked: task 21056 paused because open PR #12617 (archer-lane-n/8968-start-axum-ui) covers the exact requested extraction. Resume after fresh PR disposition/scope verification; no parallel PR will be created.

  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — task 18787 (lane lane-n, archer)

    Step 2 is landed. The earlier dependency block is resolved: step 1 (#8967) closed as completed 2026-11-22 via PR #12395, which unblocked this step.

    • PR: #12617 — merged, merge commit 79e9097de2a9057f52cd5d840cd3c816f59efc90. This issue auto-closed via Closes #8968.
    • Extracted: pkgs/start-axum-ui now owns app.rs (435 LOC, moved; single change = AppError/ErrorTemplate imported from start_axum_error) and dark_mode.rs (109 LOC, byte-identical), depending on start-axum-error per scope. Facade src/app.rs / src/dark_mode.rs are re-export shims (pub use start_axum_ui::app::*; / dark_mode::*), so start_axum::app and start_axum::dark_mode keep working for lib.rs, main.rs and fileserv.rs. Visitor server fns moved with app as one unit.
    • Oracle (step-1 gate, fleet-run, nix develop .#fleet): baseline on main all green (run 45038657750); final branch run all green (run 45040690050) — cargo check --features ssr, cargo check --locked --features hydrate, cargo check --locked --features ssr, cargo test --locked --features ssr (0 tests, matching the step-0 baseline). Two intermediate runs caught the macro-wiring deps the extraction needs as direct deps of the new crate (serde for #[server], tracing for #[component] — the same trap step 1 recorded), fixed in-PR; details in the PR evidence.
    • Remaining: step 3 (pkgs/web-gen-api-axum crate split — step 3: facade slimming (fileserv + server stay in start-axum) #8969, facade slimming) is untouched and now unblocked on this side.
  14. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 22, 2026
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 itpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditionstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions