pub struct RunConclusion {
pub headline: String,
pub outcome: Option<RunOutcome>,
pub dominant_cost: Option<NodeCost>,
pub cache_hit_ratio: Option<f64>,
pub health_flags: Vec<FlagCount>,
pub audit_flags: Vec<FlagCount>,
pub trials: Option<TrialSummary>,
pub agent_cost: Option<AgentCost>,
pub warnings: Vec<String>,
}Expand description
What happened in a run, in fields and in one line.
Fields§
§headline: StringDeterministic one-line rendering of everything below.
outcome: Option<RunOutcome>How the run ended, None when the status file was unreadable.
dominant_cost: Option<NodeCost>The slowest node, when node timings exist.
cache_hit_ratio: Option<f64>hits / (hits + misses), None when the run touched no cache.
health_flags: Vec<FlagCount>HealthFlag events, grouped by flag.
audit_flags: Vec<FlagCount>Flags from diagnostics/report.json, grouped by flag. Overlaps
health_flags by construction (the audit both emits events and
writes the report); kept separate because the report survives a
truncated event log and carries the audited filter ids.
trials: Option<TrialSummary>Trial statistics, None for non-study runs.
agent_cost: Option<AgentCost>What the run’s agent steps cost, None for runs with none.
warnings: Vec<String>What the summarizer could not read, in the summarizer’s words. Never an error — a half-written run is still worth recording.
Implementations§
Source§impl RunConclusion
impl RunConclusion
Sourcepub fn render_headline(
&self,
duration_ms: Option<u64>,
metrics: &BTreeMap<String, f64>,
error: Option<&str>,
) -> String
pub fn render_headline( &self, duration_ms: Option<u64>, metrics: &BTreeMap<String, f64>, error: Option<&str>, ) -> String
Render this conclusion as one deterministic line.
Section order is fixed — outcome, error, trials, metrics, cost,
cache, flags — so two runs’ headlines are comparable by eye and
diffable in tests. error is the run’s first node error, which
for a failed run is the single most useful thing it can say.
Trait Implementations§
Source§impl Clone for RunConclusion
impl Clone for RunConclusion
Source§fn clone(&self) -> RunConclusion
fn clone(&self) -> RunConclusion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more