A hash of the source lift inputs, recorded in the sidecar so a later edit to the intent can be detected as making the attestation stale. This is a standalone digest of (frontmatter + body); it is NOT the vault's `content_hash` and never feeds it. `attest` writes it; `validate`/`show`/ `verify` recompute it to decide whether a sidecar is still fresh.
(inputs: &LiftInputs)
| 182 | /// `content_hash` and never feeds it. `attest` writes it; `validate`/`show`/ |
| 183 | /// `verify` recompute it to decide whether a sidecar is still fresh. |
| 184 | pub fn source_content_hash(inputs: &LiftInputs) -> String { |
| 185 | let fm = serde_json::to_string(&inputs.frontmatter).unwrap_or_default(); |
| 186 | let mut hasher = blake3::Hasher::new(); |
| 187 | hasher.update(fm.as_bytes()); |
| 188 | hasher.update(b"\0"); |
| 189 | hasher.update(inputs.body.as_bytes()); |
| 190 | format!("blake3:{}", hasher.finalize().to_hex()) |
| 191 | } |
| 192 | |
| 193 | /// The state of an intent's attestation sidecar relative to the current source. |
| 194 | pub enum Attestation { |