Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

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

bellmanf8d744bb377c
diff --git a/rust/crates/runtime/src/lane_events.rs b/rust/crates/runtime/src/lane_events.rs
index 204289f2..52583a11 100644
--- a/rust/crates/runtime/src/lane_events.rs
+++ b/rust/crates/runtime/src/lane_events.rs
@@ -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.