pub struct ReplaySummary {Show 14 fields
pub lines_total: u64,
pub lines_skipped_no_raw_event: u64,
pub lines_parse_error: u64,
pub events_ingested: u64,
pub windows_closed: u64,
pub intents_total: u64,
pub intents_approved: u64,
pub intents_rejected: u64,
pub actions_authorized: u64,
pub actions_denied: u64,
pub actions_failed: u64,
pub audit_records: u64,
pub denial_counts: BTreeMap<DenialReason, u64>,
pub audit_hash: String,
}Expand description
Aggregate counters surfaced both in the NDJSON summary record and to integration tests.
audit_hash is a hex SHA-256 of the canonical projection of every
per-stage record (everything except the final summary record itself).
Identical inputs must yield identical hashes; pin this in golden tests.
denial_counts keys are DenialReason enum variants; the BTreeMap
gives a stable, canonical iteration order so the JSON projection is
deterministic and folds into audit_hash without extra effort.
Fields§
§lines_total: u64§lines_skipped_no_raw_event: u64§lines_parse_error: u64§events_ingested: u64§windows_closed: u64§intents_total: u64§intents_approved: u64§intents_rejected: u64§actions_denied: u64§actions_failed: u64§audit_records: u64§denial_counts: BTreeMap<DenialReason, u64>§audit_hash: StringImplementations§
Source§impl ReplaySummary
impl ReplaySummary
Sourcepub fn human_summary(&self) -> String
pub fn human_summary(&self) -> String
Render a compact, eyeball-friendly summary for stderr. The canonical
machine view is the {"stage":"summary",...} NDJSON record already on
the output sink; this view trades precision for scannability.
Layout is stable: pipeline / intents / actions blocks are always
emitted; denials by reason only appears when denial_counts is
non-empty. The audit hash is truncated to the first 16 hex chars after
the sha256: prefix — enough to eyeball-diff against a pinned value.
Trait Implementations§
Source§impl Clone for ReplaySummary
impl Clone for ReplaySummary
Source§fn clone(&self) -> ReplaySummary
fn clone(&self) -> ReplaySummary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more