diff --git a/org-ops-core/src/ai_risk_analysis.rs b/org-ops-core/src/ai_risk_analysis.rs index 8ce612e..1c49fb4 100644 --- a/org-ops-core/src/ai_risk_analysis.rs +++ b/org-ops-core/src/ai_risk_analysis.rs @@ -4,7 +4,6 @@ //! Produces confidence score + recommendation. use crate::test_evidence::TestRunResult; -use sha2::{Digest, Sha256}; /// Confidence thresholds for AI recommendations. /// Loaded from AccordTemplate min_confidence_* fields when available. @@ -182,11 +181,6 @@ impl RiskAnalysis { /// Emit AI_RISK_ASSESSMENT to Chronicle. pub fn emit_chronicle(&self, agent_did: &str, playbook_name: &str, webhook: &str) { - let reasoning_json = serde_json::to_string(&self.reasoning).unwrap_or_default(); - let mut h = Sha256::new(); - h.update(reasoning_json.as_bytes()); - let reasoning_cid = format!("sha256:{:x}", h.finalize()); - let body = serde_json::json!({ "pusher": {"login": agent_did}, "ref": "refs/ai/AI_RISK_ASSESSMENT", @@ -201,7 +195,5 @@ impl RiskAnalysis { .timeout(std::time::Duration::from_secs(5)) .send() .ok(); - - let _ = reasoning_cid; // used in full implementation } }