The `doneSubstanceHash` pin an intent recorded when `done` was granted (T5b). Lives in the intent's frontmatter (review state, deliberately not lifted into the `CanonicalNode`), so it is read straight off the bridge inputs. `None` when the intent was never granted done or predates the pin.
(repo: &Repository, bare_id: &str)
| 1097 | /// the `CanonicalNode`), so it is read straight off the bridge inputs. |
| 1098 | /// `None` when the intent was never granted done or predates the pin. |
| 1099 | fn load_intent_done_pin(repo: &Repository, bare_id: &str) -> Option<String> { |
| 1100 | let inputs = bridge::read_intent(repo, bare_id).ok()?; |
| 1101 | inputs |
| 1102 | .frontmatter |
| 1103 | .get("doneSubstanceHash") |
| 1104 | .and_then(|v| v.as_str()) |
| 1105 | .map(str::to_string) |
| 1106 | } |
| 1107 | |
| 1108 | /// Best-effort compact provenance for a change: session, agent label, turn |
| 1109 | /// timestamp, and governing plan id. `None` if no provenance graph explains it. |
no test coverage detected