Design decisions

265. cpl explain and hover show four sections in v0.3 (tools-3) (2026-11-22)

  • Decision. v0.3's cpl explain and LSP hover show types with bytes and niches, arrays and peak memory, specializations chosen, and checks left per build, from one shared-core query. Contexts, generic instances and unsafe-tier sites come after v0.3. Until the compiler's representation query exists, cpl explain lists the four under Not shown yet: rather than computing them in the tools crates. Option B of tools-3.
  • Why. These answer "why is this slow or big"; one query keeps explain and hover from disagreeing, and the rest of spec/tools/explain.md needs compiler queries that do not exist yet.
  • Reverse. Sections are independent records in explain --json; adding or dropping one changes no other.