omx(team): auto-checkpoint worker-1 [1]

This commit is contained in:
bellman
2026-05-14 18:05:25 +09:00
parent c8c936ede1
commit f8d744bb37

View File

@@ -458,10 +458,12 @@ pub fn compute_event_fingerprint(
});
let canonical = serde_json::to_vec(&payload).unwrap_or_default();
let digest = Sha256::digest(canonical);
digest[..8]
.iter()
.map(|byte| format!("{byte:02x}"))
.collect()
let mut fingerprint = String::with_capacity(16);
for byte in &digest[..8] {
use std::fmt::Write as _;
write!(&mut fingerprint, "{byte:02x}").expect("writing to String should not fail");
}
fingerprint
}
/// Classification of event terminality for reconciliation.