GeezerVison is showing github.com — pkgs/web-gen-api-axum crate split — step 1: extract start-axum-error (leaf: error_template) · Issue #8967 · developing-today/code
pkgs/web-gen-api-axum crate split — step 1: extract start-axum-error (leaf: error_template) #8967Descriptionpkgs/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.
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 18786 (lane code-e)
- Work kind: task/small-fix · Priority: priority/normal · Effort: effort/s
- Fresh state (2026-11-17): issue pkgs/web-gen-api-axum crate split — step 1: extract start-axum-error (leaf: error_template) #8967 OPEN, label epic/crate-splits only, no hard-stop labels. Sequence gate satisfied: step 0 (pkgs/web-gen-api-axum crate split — step 0: workspace conversion + baselines (no code motion) #8966, workspace conversion + baselines) is CLOSED. On origin/main,
pkgs/web-gen-api-axum/src/error_template.rs is still in place and no start-axum-error crate exists — step 1 is unexecuted and unblocked.
- Scan evidence stands: per umbrella pkgs/web-gen-api-axum crate split #8965's import scan, error_template (76 LOC:
AppError + ErrorTemplate) is a true leaf — referenced only by app, referencing nothing local. The project's gate per step 0: 0 tests baseline, so cargo test passes + workspace builds clean + any added tests pass.
- First concrete step: create the
start-axum-error member crate with the moved file, re-export as start_axum::error_template from the facade, and confirm the implementation exists only in the new crate. One PR, this step only (pkgs/web-gen-api-axum crate split — step 2: extract start-axum-ui (dark_mode + app) #8968 is separate); never leave main red — stop and report here instead of merging partial state.
- Follow-on: task 20248 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:8967; packet hidden_files/18786-fix-packet-8967.json).
dezren39 commented on Nov 17, 2026 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. dezren39 commented on Nov 17, 2026 🤖 Agent note · picked up and blocked — task 20248 (lane code-g, repo-worker-code)
dezren39 commented on Nov 22, 2026 [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] dezren39 commented on Nov 22, 2026
🤖 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|