chore: remove dead reasoning_cid computation
The reasoning_cid was computed via SHA-256 but immediately discarded (`let _ = reasoning_cid`). Remove the dead hash computation and the now-unused sha2 import. Ref: cid-reconciliation-audit.md Site 5 Signed-off-by: Tyler King <tking@guildhouse.dev>
This commit is contained in:
parent
7107b2860a
commit
d39fd692eb
1 changed files with 0 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue