pub fn check(doc: &Value) -> CheckReportExpand description
Validate doc and report structured diagnostics.
Conversation specs get pointer-level diagnostics for unknown tools and
unwritten guard keys, including digression triggers and safety-handoff
intents. Everything else that SessionSpec::validate reports is passed
through with code validation.