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)
| 1085 | /// Returns a string error (best-effort; a load failure becomes a finding, not a |
| 1086 | /// hard error). |
| 1087 | fn load_intent_node(repo: &Repository, bare_id: &str) -> Result<CanonicalNode, String> { |
| 1088 | let inputs = bridge::read_intent(repo, bare_id).map_err(|e| e.to_string())?; |
| 1089 | match bridge::load_attestation(repo, bare_id, &inputs).map_err(|e| e.to_string())? { |
| 1090 | bridge::Attestation::Fresh(node) => Ok(*node), |
| 1091 | _ => bridge::lift(&inputs).map_err(|e| e.to_string()), |
| 1092 | } |
| 1093 | } |
| 1094 | |
| 1095 | /// The `doneSubstanceHash` pin an intent recorded when `done` was granted (T5b). |
| 1096 | /// Lives in the intent's frontmatter (review state, deliberately not lifted into |
no test coverage detected