Skip to content

docs: identify and catalogue tech debt as Epic 7#252

Merged
JWWade merged 2 commits intodevelopfrom
copilot/identify-tech-debt
Mar 17, 2026
Merged

docs: identify and catalogue tech debt as Epic 7#252
JWWade merged 2 commits intodevelopfrom
copilot/identify-tech-debt

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

Systematic audit of the codebase to identify and document accumulated technical debt, structured as a new epic matching the existing issues format (Epics 1–6).

What was found

Severity Issues
🔴 Critical Monolithic useChordState (309 lines, 7 states, mixed concerns); shared/ChromaticCircle.tsx unused duplicate; scale computation logic duplicated across two feature modules; hand-written API wrappers co-mingled with auto-generated types
🟠 High Chord-note retrieval pattern copy-pasted in 5+ files; zero direct tests for any hook; no React Error Boundary; magic numbers (1200, 1500, sRGB gamma constants, inline hex colors); nullable context defaults forcing unsafe casts in every consumer
🟡 Medium Inconsistent folder structure across 15 feature modules; no test:coverage / test:watch scripts; no measurable coverage baseline

Deliverables

issues/epic-7-tech-debt/epic7.md — Epic overview with baseline state table, full issue index, dependency graph, and architecture notes for the three most complex items.

12 individual issue specs (ISSUE-E7-01ISSUE-E7-12), each with: objective, background, concrete file list, and acceptance criteria. Issues are sized XS–L and ordered with an explicit dependency graph:

E7-04, E7-05, E7-06, E7-07, E7-10, E7-12  ← fully independent, parallelisable

E7-01 ──┬──► E7-08
         └──► E7-11
E7-02 ──┬──► E7-09
         └──► E7-11
E7-03 ──────► E7-08

No source code was changed.

Original prompt

This section details on the original issue you should resolve

<issue_title>identify tech debt</issue_title>
<issue_description>Look for areas of improvement in the codebase. Document your findings for a future epic. Do not make code revisions. </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Mar 17, 2026
Copilot AI changed the title [WIP] Document tech debt areas for future epic docs: identify and catalogue tech debt as Epic 7 Mar 17, 2026
Copilot AI requested a review from JWWade March 17, 2026 04:19
@JWWade JWWade marked this pull request as ready for review March 17, 2026 04:21
@JWWade JWWade merged commit f41ae87 into develop Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

identify tech debt

2 participants