perspt_coding/diag/mod.rs
1//! The structured verifier plane (PSP-10 system 26).
2//!
3//! Language adapters preserve as much source structure as each tool
4//! provides: cargo JSON messages, `ty` LSP/text diagnostics, Pyright's
5//! JSON fallback (separately fingerprinted), pytest JUnit XML, and
6//! normalized `tsc` text. Cascades cluster by root cause before scoring;
7//! magnitudes are profile-normalized, replacing the historic unconditional
8//! `score = 1.0`.
9
10pub mod cargo;
11pub mod cluster;
12pub mod pyright;
13pub mod pytest;
14pub mod tsc;
15pub mod ty;
16pub mod types;
17
18pub use cluster::{cluster, DiagnosticCluster, CLUSTER_PROFILE_V1};
19pub use types::{cluster_residual, StructuredDiagnostic};