Diagnostics Migration Plan (dignostics -> diagnostics)
Goal
Use canonical diagnostics naming everywhere while preserving temporary compatibility during bootstrap.
Phases
- Freeze typo spread
- Enforce
make diagnostics-migration-gate. - Only files listed in
tools/dignostics_allowlist.txtmay still containdignostics.
- Introduce canonical modules
- Add canonical spaces/paths under
src/vitte/compiler/diagnostics. - Keep temporary forwarding layers from legacy modules.
- Switch imports gradually
- Replace
use vitte/compiler/dignostics/...withuse vitte/compiler/diagnostics/...by subsystem. - Keep snapshots updated after each subsystem move.
- Remove compatibility
- Empty allowlist.
- Delete
src/vitte/compiler/diagnosticscompatibility shims that keep typo-era aliases. - Keep gate strict so typo cannot reappear.
Exit Criteria
- Zero
dignosticsreferences insrc,toolchain,tools,Makefile. make selfhost-hard-strictgreen without migration exceptions.