Skip to content

Deep refactoring: architectural cleanup and deduplication #268

@bug-ops

Description

@bug-ops

Overview

Deep architectural refactoring of the Zeph codebase (36K LOC, 10 crates). Addresses structural debt, error handling violations, code duplication, and oversized modules.

Plan: .local/plan/refactoring-plan.md

Issues

Phase 1 — Structural (P0)

Phase 2 — Error Handling (P0)

Phase 3 — Deduplication (P1)

Phase 4 — Architecture (P1)

Phase 5 — Polish (P2)

Dependency Graph

#269 (agent decomposition)
  ↓
#270 (error handling) → #271 (deduplication, needs error enums)
  ↓                      ↓
#273 (architecture)    #272 (file decomposition, independent)
  ↓
#274 (types & API)
  ↓
#275 (polish)

Metrics

Priority Count Est. Effort
P0 11 ~30h
P1 13 ~25h
P2 10 ~12h
Total 34 ~67h

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicMilestone-level tracking issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions