pub struct Summary {Show 22 fields
pub sv: u32,
pub at: u64,
pub fit: Fit,
pub hash: String,
pub sessions: Vec<Session>,
pub fresh: BTreeMap<String, Fresh>,
pub lessons: Vec<String>,
pub models: Vec<String>,
pub judges: Vec<String>,
pub checks: Vec<Check>,
pub applies: Vec<Apply>,
pub pool: Pool,
pub early: Early,
pub signals: [Signals; 2],
pub spend: [Spent; 2],
pub fell_back: [u64; 3],
pub experiment: Experiment,
pub era: bool,
pub gate: Gate,
pub monitor: Monitor,
pub dropped: u64,
pub past: Past,
}Expand description
The selection state of one store (module doc).
Fields§
§sv: u32SV when written.
at: u64The bytes of outcomes.jsonl folded so far, and a hash chained over its lines.
fit: FitThe value model decisions draw from; the prior without data.
hash: String§sessions: Vec<Session>§fresh: BTreeMap<String, Fresh>Sessions shown lessons before they have a tick, by session id (module doc: what a session had).
lessons: Vec<String>Lesson ids, model-and-prompt keys and judge keys, by index.
models: Vec<String>§judges: Vec<String>§checks: Vec<Check>§applies: Vec<Apply>§pool: Pool§early: Early§signals: [Signals; 2]§spend: [Spent; 2]§fell_back: [u64; 3]Graded checks whose learned decision fell back to the fixed rule, per reason (FELL_BACK), with
applies or none: a guard that binds often shows (top.rs Selection::fallbacks).
experiment: ExperimentThe question-count test’s checks (module doc).
era: boolA check of the learned policy was folded: the signals count as after.
gate: Gate§monitor: Monitor§dropped: u64Applies compaction dropped, and what it kept of the sessions it dropped.
past: PastImplementations§
Source§impl Summary
impl Summary
Sourcepub fn key(&self) -> String
pub fn key(&self) -> String
What a fit on this summary is keyed by: the bytes folded and the line hash’s first 8 hex digits
(protocol: logged with each check, Log::fit).
Sourcepub fn tallies(&self, h: Option<u32>) -> [(f64, f64); 5]
pub fn tallies(&self, h: Option<u32>) -> [(f64, f64); 5]
Every folded session’s delivery tallies as (delivered, not), each weighted by its age in
sessions under half-life h (select/policy.rs decay), the compacted ones included (Past,
kept for the half-lives a fit chooses from, policy::HALF_LIVES).