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

Function tracked_source_anchor

libatomic/src/daemon/services_agent.rs:1083–1091  ·  view source on GitHub ↗

The `sourceContentHash` anchor off a tracked attestation entry's frontmatter.

(entry: &atomic_core::pristine::VaultEntry)

Source from the content-addressed store, hash-verified

1081/// The `sourceContentHash` anchor off a tracked attestation entry's
1082/// frontmatter.
1083fn tracked_source_anchor(entry: &atomic_core::pristine::VaultEntry) -> Option<String> {
1084 serde_json::from_str::<Value>(&entry.frontmatter_json)
1085 .ok()
1086 .and_then(|v| {
1087 v.get("sourceContentHash")
1088 .and_then(Value::as_str)
1089 .map(str::to_string)
1090 })
1091}
1092
1093/// An intent's attestation, loaded through the same dual-read the CLI
1094/// bridge performs: the tracked vault entry first (its body parses to a

Callers 2

intent_list_attestationFunction · 0.85
memory_list_attestationFunction · 0.85

Calls 2

getMethod · 0.65
okMethod · 0.45

Tested by

no test coverage detected