The `sourceContentHash` anchor off a tracked attestation entry's frontmatter.
(entry: &atomic_core::pristine::VaultEntry)
| 1081 | /// The `sourceContentHash` anchor off a tracked attestation entry's |
| 1082 | /// frontmatter. |
| 1083 | fn 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 |
no test coverage detected