Skip to main content

Report

Struct Report 

Source
pub struct Report {
    pub dataset: Option<String>,
    pub context_version: Option<String>,
    pub context_injection: Option<ContextInjectionReport>,
    pub parallel: usize,
    pub selected_cases: usize,
    pub total_cases: usize,
    pub configs: Vec<ConfigReport>,
    pub backend: Backend,
}
Expand description

A full eval report (one config per tier→model binding). Serialized by warble eval run --out and consumed as the baseline / candidate by warble eval gate.

Fields§

§dataset: Option<String>§context_version: Option<String>§context_injection: Option<ContextInjectionReport>

Dispatch-time context identity copied from context-report.json. Fingerprints/counts only: the report never embeds private business-rule text. None for legacy agents.

§parallel: usize

Concurrency the cases ran at (1 = serial). Recorded because parallelism can inflate per-case latency (queueing), so latency columns are only comparable at equal levels.

§selected_cases: usize

Golden cases scored vs the golden file’s total. selected_cases < total_cases means a --tags/--sample subset (a smoke run) — recorded so a partial run is never mistaken for a full one and eval gate can see the comparison was over fewer cases (no silent caps). Both 0 in a pre-P3 report (the field was absent).

§total_cases: usize§configs: Vec<ConfigReport>§backend: Backend

Which back-end/runtime produced this report. #[serde(default)] so a legacy report (no field at all) deserializes to Backend::default — the back-end that behavior always meant before this dimension existed — never a hard parse failure.

Implementations§

Source§

impl Report

Source

pub fn backfill_legacy(&mut self)

Migrate a report from before repeated sampling to today’s shape. A case with samples == 0 is the legacy sentinel — freshly-produced results always set samples >= 1 — so such a case is backfilled to a single deterministic sample matching its recorded pass outcome, and each touched tag’s pass_rate_sum is rebuilt from the (now-backfilled) case pass rates.

One historical distinction is lost in the backfill: whether a legacy case was a cache hit. The old schema’s single cache_hit bool has no home in the new per-case cache_hits/ cache_misses counts once it’s not in the JSON at all (serde drops unknown fields), so every legacy case backfills to cache_hits: 0, cache_misses: 1 (as if freshly run). This only affects cache-visibility reporting on a re-processed old report, never gate correctness — the gate never looks at cache counts.

Trait Implementations§

Source§

impl Clone for Report

Source§

fn clone(&self) -> Report

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Report

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Report

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Report

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.