The directory that holds an intent's canonical sidecar artifacts: ` /canonical/intents/ /`. Keyed off the SAME normalized id as the tracked vault path (critic #4).
(repo: &Repository, id: &str)
| 144 | /// `<dot_dir>/canonical/intents/<sanitized-normalized-id>/`. Keyed off the SAME |
| 145 | /// normalized id as the tracked vault path (critic #4). |
| 146 | pub fn sidecar_dir(repo: &Repository, id: &str) -> BridgeResult<PathBuf> { |
| 147 | Ok(repo |
| 148 | .dot_dir() |
| 149 | .join("canonical") |
| 150 | .join("intents") |
| 151 | .join(sanitize_id(&normalized_id(repo, id)?))) |
| 152 | } |
| 153 | |
| 154 | /// The attested-node sidecar file for an intent. |
| 155 | pub fn attested_sidecar_path(repo: &Repository, id: &str) -> BridgeResult<PathBuf> { |
no test coverage detected