Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Diagnostic code registry

Platform spec feature

Diagnostic code registry

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

This feature defines ownership and evolution rules for semantic diagnostic codes in SemanticIssueKind::code() and neighboring catalog logic. It keeps diagnostics stable for tooling, docs, and conformance references.

  1. Diagnostic code-to-meaning mapping is normative in compiler source, not in rendering layers.
  2. New semantic issues must use unique, documented codes before release.
  3. Registry updates must remain synchronized with platform-spec documentation and verification scripts.
  4. Renaming or reusing existing codes requires explicit migration handling for downstream consumers.
  • compiler/crates/beskid_analysis/src/analysis/diagnostic_kinds.rs
  • compiler/crates/beskid_analysis/src/analysis
  • compiler/crates/beskid_analysis/src/doc/validate.rs
  • compiler/crates/beskid_analysis/src/services.rs
  • packages/trudoc/scripts/verify-diagnostics-spec-sync.mjs

No open decisions. Closed choices are normative ADRs under adr/ (D-COMP-SEM-0001D-COMP-SEM-0003); use the reader ADRs tab for expandable detail.