Git-only observed operations not yet covered by any attestation. Only `RepositoryOperations` outcomes carry attributable observations; `ContentChanges` are covered through their change hashes and `ObservationOnly` turns claim nothing to attest. Outcomes whose classification could not observe both boundaries (missing turn-start baseline or failed end observation) stay in the session ledger but are
(&self)
| 530 | /// never attested: an attestation binds verified observations, not |
| 531 | /// observation gaps. |
| 532 | pub fn unattested_git_operations(&self) -> Vec<String> { |
| 533 | self.turn_outcomes |
| 534 | .iter() |
| 535 | .filter_map(|entry| match &entry.outcome { |
| 536 | ManagedTurnOutcome::RepositoryOperations { operations, .. } => { |
| 537 | Some((entry.turn, operations)) |
| 538 | } |
| 539 | _ => None, |
| 540 | }) |
| 541 | .filter(|(_, operations)| !operations.is_empty()) |
| 542 | .filter(|(turn, _)| { |
| 543 | self.outcome_for_turn(*turn) |
| 544 | .map(|entry| { |
| 545 | entry |
| 546 | .boundary_start |
| 547 | .as_ref() |
| 548 | .and_then(|b| b.git.as_ref()) |
| 549 | .is_some() |
| 550 | && entry |
| 551 | .boundary_end |
| 552 | .as_ref() |
| 553 | .and_then(|b| b.git.as_ref()) |
| 554 | .is_some() |
| 555 | }) |
| 556 | .unwrap_or(false) |
| 557 | }) |
| 558 | .flat_map(|(turn, operations)| { |
| 559 | operations |
| 560 | .iter() |
| 561 | .map(move |operation| format!("turn {} {}", turn, operation)) |
| 562 | }) |
| 563 | .filter(|operation| !self.attested_operations.contains(operation)) |
| 564 | .collect() |
| 565 | } |
| 566 | |
| 567 | /// Mark observed Git operations as attested (idempotent). |
| 568 | pub fn mark_operations_attested(&mut self, operations: &[String]) { |