MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / stable_journal_id

Function stable_journal_id

atomic-agent/src/turn/orchestrator/provenance.rs:859–864  ·  view source on GitHub ↗
(session_id: &str, turn_number: u32, discriminator: &str)

Source from the content-addressed store, hash-verified

857}
858
859fn stable_journal_id(session_id: &str, turn_number: u32, discriminator: &str) -> String {
860 let digest = blake3::hash(format!("{session_id}\0{turn_number}\0{discriminator}").as_bytes())
861 .to_hex()
862 .to_string();
863 format!("hook-{}", &digest[..32])
864}
865
866fn reasoning_blocks(event: &TurnEvent) -> Vec<(String, Option<u64>, Option<String>)> {
867 let Some(raw) = event.raw_json.as_ref() else {

Callers 5

commit_hook_eventMethod · 0.85
enrich_opencode_turnMethod · 0.85
ingest_sherpa_traceMethod · 0.85

Calls 3

hashFunction · 0.50
to_hexMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected