pub fn kg_summary(spec: &str) -> Result<KgSummary, HwError>
Extract a render-ready knowledge graph from an English hardware spec. Pure Rust (no Z3), so it runs in the browser. Merges the legacy and typed (ontology) edge sets.