pub struct CostBound {
pub field: String,
pub max_increase_ratio: f64,
}Expand description
A cost bound beside the quality metric. The verdict on the quality
field is unchanged; when quality held but field on the run after the
apply exceeds max_increase_ratio × its value on the baseline run, the
checkpoint records held_costlier and outcome_review emits an
advisory Flag citing both runs — never a revert draft, because a
cost/quality trade is a human decision. regressed dominates: one
verdict per checkpoint. field is one of the promoted cost fields
(effects, tokens, usd, wall_ms, cost_per_pass) or any integer
key the harness writes; a run on which it is not measurable records no
cost figures, and the quality verdict still records.
Fields§
§field: String§max_increase_ratio: f64Current may be at most this many times the baseline (1.0 = no
increase at all); finite and > 0.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CostBound
impl<'de> Deserialize<'de> for CostBound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CostBound
Auto Trait Implementations§
impl Freeze for CostBound
impl RefUnwindSafe for CostBound
impl Send for CostBound
impl Sync for CostBound
impl Unpin for CostBound
impl UnsafeUnpin for CostBound
impl UnwindSafe for CostBound
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more