| 257 | } |
| 258 | |
| 259 | pub(super) fn attach_snapshot(graph: &mut ReviewGraph) { |
| 260 | graph.risk = Some(RiskSummary { |
| 261 | assessment: RiskAssessment { |
| 262 | rating: RiskRating::Unknown, confidence:Confidence::Low, coverage:RiskCoverage::Unavailable, |
| 263 | rationale:"Whole-view snapshot audit has no change baseline; change-regression risk is not assessed. Current public-surface and dependency metrics remain available.".into(), |
| 264 | evidence:vec![], limitations:vec!["No before/after change or call-contract comparison is implied by a view snapshot.".into()], |
| 265 | }, |
| 266 | basis:"view_snapshot".into(),findings:vec![],unverified_call_candidates:0,unverified_import_candidates:0, |
| 267 | relationship_coverage:"Snapshot audit/metric scope only; change-regression relationships were not evaluated.".into(), |
| 268 | signals:vec![],impact:vec![],model:None, |
| 269 | }); |
| 270 | graph.nodes.push(atomic_canonical::review_graph::GraphNode { |
| 271 | id: "risk-summary".into(), |
| 272 | kind: "risk_summary".into(), |
| 273 | label: "Change risk not evaluated for view snapshot".into(), |
| 274 | properties: serde_json::to_value(graph.risk.as_ref().unwrap()) |
| 275 | .expect("risk summary serializes"), |
| 276 | }); |
| 277 | graph.edges.push(atomic_canonical::review_graph::GraphEdge { |
| 278 | from: ReviewPass::BlastRadiusRisk.id().into(), |
| 279 | relation: "assesses_risk".into(), |
| 280 | to: "risk-summary".into(), |
| 281 | }); |
| 282 | } |
| 283 | |
| 284 | pub(super) fn render(text: &mut String, stem: &str, summary: &RiskSummary) { |
| 285 | let assessment = &summary.assessment; |