Load a reached intent's [`CanonicalNode`], preferring a fresh attestation and falling back to a live lift — the same resolution `intent validate` uses. Returns a string error (best-effort; a load failure becomes a finding, not a hard error).
(repo: &Repository, bare_id: &str)
| 1103 | /// Returns a string error (best-effort; a load failure becomes a finding, not a |
| 1104 | /// hard error). |
| 1105 | fn load_intent_node(repo: &Repository, bare_id: &str) -> Result<CanonicalNode, String> { |
| 1106 | let inputs = bridge::read_intent(repo, bare_id).map_err(|e| e.to_string())?; |
| 1107 | match bridge::load_attestation(repo, bare_id, &inputs).map_err(|e| e.to_string())? { |
| 1108 | bridge::Attestation::Fresh(node) => Ok(*node), |
| 1109 | _ => bridge::lift(&inputs).map_err(|e| e.to_string()), |
| 1110 | } |
| 1111 | } |
| 1112 | |
| 1113 | /// The `doneSubstanceHash` pin an intent recorded when `done` was granted (T5b). |
| 1114 | /// Lives in the intent's frontmatter (review state, deliberately not lifted into |
no test coverage detected