| PHASE | SCOPE | STATUS | SESSIONS |
| 0 | Structural stabilization (splices, keydown, silent failures, undo, session restore) | DONE | 1–3 |
| 1 | Modularization (BOOT consolidation + 11-file split, byte-exact) | DONE | 4–5 |
| 2 | Musical correctness (lead gates, HPF, genres, drums, limiter, DUCK, BarPlan) | DONE | 6–12 |
| 4 | I/O (WAV export, live recording, MIDI in/out+clock, presets, projects) | DONE | 13–17 |
| 5 | PWA (real precache + icons, offline works) | DONE | 18 |
| 3 | Creative brain (learning hook, candidate-dependent fitness, modes UI) | DONE | 19 |
| + | Docs truthfulness · wire-or-delete · dashboard · UI polish · hyperspace identity · update pipeline · arrangement editor | DONE | 20–22 |
| FILE | ROLE |
| src/core.js | utilities (debounce/throttle/clamp/theory basics) |
| src/pools.js | BufferPool, VoicePool, UndoRedo |
| src/midi.js | MIDILearn, MIDIInput, MIDIOut, audioToPerf |
| src/theory.js | scales, RNG, makePatterns, makeVoices (kick/bass/lead/arp/pad/perc) |
| src/song.js | sections, themes, bass styles, energy curves, GENRE_SOUND_CONFIG |
| src/groovebox.js | Groovebox constructor + early prototypes + cfg() |
| src/dsp.js | BrickwallLimiter only (wire-or-delete survivor) |
| src/brain-runtime.js | scheduler, transport, FX chain, grammars, CandidateGenerator |
| src/ui.js | knobs, sequencer, pads, timeline, transport buttons |
| src/editor.js | presets, projects, banks v3, WAV export, live recording |
| src/main.js | BOOT — the only executable section (Phase 1a invariant) |