Skip to content

pkgs/web-gen-api-axum crate split — step 1: extract start-axum-error (leaf: error_template) #8967

Closed

Description

@dezren39

pkgs/web-gen-api-axum crate split — step 1: extract start-axum-error (leaf: error_template)

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/error_template.rs (AppError enum + ErrorTemplate component, 76 LOC) into member crate start-axum-error. Scan evidence: it is referenced only by app (use crate::error_template::{AppError, ErrorTemplate}) and references nothing local — a true leaf. The facade re-exports it as start_axum::error_template during the migration; the implementation must exist only in the new crate after this step.

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. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    on Nov 17, 2026
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 18786 (lane code-e)

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — picked up by repo-worker-code (lane code-g, task 20248). Executing step 1: extract start-axum-error from pkgs/web-gen-api-axum/src/error_template.rs.

  5. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    and removed on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up and blocked — task 20248 (lane code-g, repo-worker-code)

  7. 4 remaining items

  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    [agent-note:v1]
    Agent: repo-worker-code
    Lane: code-g
    Task: 20248
    State: picked_up
    Verdict: Resuming prior blocked claim for fresh validation; will continue only if prerequisite #12275 removes the documented baseline build blocker.
    Next: check GitHub state for #8967/#8966/#12275, related PR/branch and prerequisite queue task.
    [/agent-note:v1]

  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · PR opened — task 20248 (lane code-g, repo-worker-code)

    • Extracted AppError and ErrorTemplate into pkgs/start-axum-error; the old module is a compatibility re-export.
    • Enabled the package’s optional tracing dependency for hydrate, required by Leptos component macro expansion in the extracted crate and existing parent components. No dependency versions changed.
    • Verification: SSR cargo test passes (0 tests); SSR check passed; hydrate check passes; git diff --check clean. cargo fmt --check reports unrelated pre-existing ordering differences in dark_mode.rs and main.rs, left untouched.
    • PR: refactor(web-gen-api-axum): extract error template crate #12395 (open; checks neutral/skipped).
    • Commit: 5c65bf7706d68c592ab046a1cdb4fa53aec3ca38.
    • Next: wait for applicable review/CI; task completed at pr_opened.
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/sSmall: expected under 2 hours of workepic/crate-splitsEpic: crate-splits - all issues of this effort carry itpriority/normalOrdinary priority (the default)status/in-reviewstatus: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