Whether dropping this entry destroys no unattested evidence (review R7). ContentChanges evidence is the durable change itself (tracked in `recorded_change_hashes` and the change store); ObservationOnly claims nothing; RepositoryOperations entries are evictable only once every observed operation is covered by an attestation.
(&self, attested_operations: &[String])
| 115 | /// nothing; RepositoryOperations entries are evictable only once every |
| 116 | /// observed operation is covered by an attestation. |
| 117 | fn evictable(&self, attested_operations: &[String]) -> bool { |
| 118 | match &self.outcome { |
| 119 | ManagedTurnOutcome::ContentChanges { .. } | ManagedTurnOutcome::ObservationOnly => true, |
| 120 | ManagedTurnOutcome::RepositoryOperations { operations, .. } => { |
| 121 | operations.iter().all(|operation| { |
| 122 | let decorated = format!("turn {} {}", self.turn, operation); |
| 123 | attested_operations.contains(&decorated) |
| 124 | }) |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /// Maximum number of classified outcomes retained per session JSON. |
no test coverage detected