| 282 | use atomic_core::change::attestation::{AttestAgent, ModelUsage}; |
| 283 | |
| 284 | fn attestation(session: &str, vendor: &str, model: &str, tokens: u64) -> Attestation { |
| 285 | let mut usage = ModelUsage::new(model); |
| 286 | usage.input_tokens = tokens; |
| 287 | usage.output_tokens = tokens / 2; |
| 288 | usage.cost_usd = 0.25; |
| 289 | let mut value = Attestation::builder( |
| 290 | session, |
| 291 | AttestAgent::new("claude-code", "Claude Code", vendor), |
| 292 | ) |
| 293 | .cost_usd(0.25) |
| 294 | .build(); |
| 295 | value.models = vec![usage]; |
| 296 | value.notes = Some("PRIVATE NOTES SENTINEL".to_string()); |
| 297 | value |
| 298 | } |
| 299 | |
| 300 | #[test] |
| 301 | fn summary_is_an_allowlisted_projection() { |