pub struct CostPerMergedChange {
pub window_days: u64,
pub closed_in_window: u64,
pub total_cost_usd: f64,
pub merged_changes: u64,
pub usd_per_merged_change: Option<f64>,
pub zero_intervention_share: Option<f64>,
}Expand description
Cost per merged change for one repo (KRZ-329), beside the autonomy
ratio. The numerator is the existing cost fold over missions closed in
the window; the denominator is merged changes — missions that COMPLETED
in the window AND whose branch tip is an ancestor of the live base tip
(crate::merged::merged_bit), derived at fold time, never stored.
Fields§
§window_days: u64The window in effect (days).
closed_in_window: u64Missions with a terminal event inside the window (any terminal kind —
the same closed set as AutonomyRatio).
total_cost_usd: f64Σ worker cost over the windowed missions (same rule as
CostPerChange::total_cost_usd).
merged_changes: u64Windowed missions that closed COMPLETE with their branch landed.
usd_per_merged_change: Option<f64>total_cost_usd / merged_changes — None when nothing merged in the window (absent, never zero: no fabricated numbers).
zero-intervention closed / closed over the same window — None when nothing closed in it.
Trait Implementations§
Source§impl Clone for CostPerMergedChange
impl Clone for CostPerMergedChange
Source§fn clone(&self) -> CostPerMergedChange
fn clone(&self) -> CostPerMergedChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more