Diagnostic Catalog
Diagnostics are now owned by package metadata under morphs/<Package>/diagnostics/.
Source Of Truth
catalog.tomlstores locale-independent metadata such as canonical code, severity, phase, slug, parameter names, and quick-fix ids.diagnostics/<locale>/*.tomlstores localizedtitle,summary,default_message, andrecoverytext.- LSP, browser/playground assets, localization, and quick-fix discovery all consume the same generated registry data instead of a hand-maintained TSV.
Rules
- Emit canonical package/domain codes only, such as
CORE2201orBUILD5001. - Do not introduce legacy
N,NR, orWcodes in new diagnostics or tests. - Add or update localized entries whenever a package adds a new canonical code.
- Prefer structured metadata and generated fix ids over message parsing.
Validation
- Registry loading validates canonical code metadata and locale coverage for catalog-declared diagnostics.
- Unit and behavior suites validate emitted canonical codes end-to-end.