pub fn check(prog: &ProtocolProgram) -> Result<Vec<String>, Vec<IdlError>>
Compile-time well-formedness — the dialogue matrix (§16) applied to the PROGRAM, not the runtime. Returns warnings; errors abort compilation.