pub struct GaugeDecl {
pub name: Ident,
pub site: Option<String>,
pub site_span: Option<SourceSpan>,
pub judge: GaugeJudge,
pub expect: Option<GaugeBar>,
pub inputs: Vec<GaugeRef>,
pub span: SourceSpan,
}Expand description
gauge <name> [on <site>] { judge via ... [expect ...] [inputs ...] }
(experimentation subsystem §4.2): a named quality dimension — a site, a
judge, optionally a bar. The sibling of test: deterministic expectation
vs. stochastic expectation, one family. Core grammar (hand-parsed): the
judge via tagged union and the bar form are outside the declaration
family’s shape. Bars use the word forms at least / at most because
the declaration tokenizer deliberately steps over >=/<= (the same
reason field presence conditions use is).
Fields§
§name: Ident§site: Option<String>Optional on <dotted.site> designation. v1 records it (identity and
forward-compat with site-scoped judging); ambient scoring judges the
run’s terminal view.
site_span: Option<SourceSpan>§judge: GaugeJudge§expect: Option<GaugeBar>§inputs: Vec<GaugeRef>Derived gauges: other gauges whose scores feed this gauge’s exec
judge (inputs a, b). Deterministic composition — the settled cure
for composite objectives (no weights feature, ever).
span: SourceSpan