Skip to content

Refactoring roadmap: interleaved simplification + architecture sequence (tracking) #455

Description

@rianjs

Tracking issue for the codebase-wide simplification + architecture refactor. Full context lives in docs/refactoring/: roadmap · architecture report (6 judge-endorsed structural proposals) · tactical report (~118 verified line-level items, ~5,000–5,500 LOC net reduction).

Sequencing principle: most tactical batches are the cheap first steps of the architecture moves. Deletions and dedups land before each structural move so there is less code to relocate, fewer symbols to export, and smaller test migrations. Every finding was adversarially verified against the code (166 raw → 151 confirmed → deduplicated).

Sequence

Phases are ordered; each unlocks or shrinks the ones after it. The parallel track has no ordering constraints.

Ground rules

Suggested first three PRs

  1. Phase 0.1 — legacy wizard deletion (Refactor Phase 0: dead-code deletion (legacy init wizard, pipeline dead trio, repo-wide sweep) #447)
  2. Phase 1.1 — internal/fsatomic + migrate the three JSON writers (Refactor Phase 1: shared leaf packages + mechanical boilerplate (fsatomic, cobra Args, view/progress helpers) #448)
  3. Phase 2.1 — SelectionRuntime into internal/app, repoint benchmarkcmd, delete the Architecture refactor 03: move reusable app contracts out of cmdruntime #423 knownDebt entry (Refactor Phase 2: extract internal/app composition root (finishes #422/#423) #449)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:foundationFoundation, skeleton, config, state-path, credential setup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions