Compute one intent's row. A read/lift/attestation failure for a SINGLE intent degrades that row's attested/verifies to `–` rather than aborting the whole list.
(
repo: &Repository,
info: &atomic_repository::IntentInfo,
kind: String,
verifier: Option<&Verifier>,
)
| 327 | /// degrades that row's attested/verifies to `–` rather than aborting the whole |
| 328 | /// list. |
| 329 | fn compute_row( |
| 330 | repo: &Repository, |
| 331 | info: &atomic_repository::IntentInfo, |
| 332 | kind: String, |
| 333 | verifier: Option<&Verifier>, |
| 334 | ) -> Row { |
| 335 | // read_intent → inputs → load_attestation. Any failure ⇒ '–' columns. |
| 336 | let attestation = bridge::read_intent(repo, &info.id) |
| 337 | .and_then(|inputs| bridge::load_attestation(repo, &info.id, &inputs)); |
| 338 | let (attested, verifies) = match attestation { |
| 339 | Ok(a) => (classify(&a), compute_verifies(&a, verifier)), |
| 340 | Err(_) => (Attested::None, Verifies::Na), |
| 341 | }; |
| 342 | Row { |
| 343 | human_key: info.id.clone(), |
| 344 | title: info.title.clone(), |
| 345 | status: info.status.clone(), |
| 346 | kind, |
| 347 | attested, |
| 348 | verifies, |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | /// Build the (optionally kind-filtered) rows for the listing. |
| 353 | /// |
no test coverage detected