The `--hash` detail render, pure over the wire-carried domain attestation and per-view coverage rows — the same lines the local body prints.
(
hash: &atomic_core::types::Hash,
attest: &Attestation,
coverage: &[CoverageRow],
)
| 193 | /// attestation and per-view coverage rows — the same lines the local |
| 194 | /// body prints. |
| 195 | pub(crate) fn render_detail( |
| 196 | hash: &atomic_core::types::Hash, |
| 197 | attest: &Attestation, |
| 198 | coverage: &[CoverageRow], |
| 199 | ) { |
| 200 | println!("Attestation {}", format_hash(hash, false)); |
| 201 | println!(); |
| 202 | |
| 203 | // Agent info |
| 204 | println!("Agent: {}", attest.agent); |
| 205 | println!("Session: {}", attest.session_id); |
| 206 | println!( |
| 207 | "Changes: {}", |
| 208 | format_count(attest.change_count(), "change") |
| 209 | ); |
| 210 | |
| 211 | if attest.duration_wall_ms > 0 { |
| 212 | println!("Wall time: {}", attest.wall_duration_display()); |
| 213 | } |
| 214 | if attest.duration_api_ms > 0 { |
| 215 | println!("API time: {}", attest.api_duration_display()); |
| 216 | } |
| 217 | if attest.cost_usd > 0.0 { |
| 218 | println!("Cost: {}", format_cost(attest.cost_usd)); |
| 219 | } |
| 220 | if attest.total_tokens() > 0 { |
| 221 | println!("Tokens: {}", format_tokens(attest.total_tokens())); |
| 222 | } |
| 223 | if !attest.code_changes.is_empty() { |
| 224 | println!( |
| 225 | "Code: +{} -{}", |
| 226 | attest.code_changes.lines_added, attest.code_changes.lines_removed, |
| 227 | ); |
| 228 | } |
| 229 | |
| 230 | if attest.cost_usd == 0.0 && attest.total_tokens() == 0 { |
| 231 | println!(); |
| 232 | println!("Note: Cost and token data pending."); |
| 233 | println!(" Claude Code does not expose this in the SessionEnd hook."); |
| 234 | println!(" Use 'atomic agent attest --enrich' when available."); |
| 235 | } |
| 236 | |
| 237 | if let Some(ref prev) = attest.previous_attestation { |
| 238 | println!("Previous: {}", format_hash(prev, false)); |
| 239 | } |
| 240 | |
| 241 | if let Some(ref notes) = attest.notes { |
| 242 | println!("Notes: {}", notes); |
| 243 | } |
| 244 | |
| 245 | println!(); |
| 246 | |
| 247 | // Model breakdown (only if there's data) |
| 248 | if !attest.models.is_empty() { |
| 249 | println!("Model Breakdown:"); |
| 250 | for model in &attest.models { |
| 251 | println!(" {}", model); |
| 252 | } |
nothing calls this directly
no test coverage detected