Skip to main content

Module stat

Module stat 

Source
Expand description

<Stat> widget — the honesty primitive.

Renders a value plus its freshness and sample size per spec §3.1. Refuses to render when the value’s as_of exceeds the configured stale threshold without an explicit stale badge.

Lint rule (enforced in CI): numeric fields of EngineState may only be rendered through this widget. See ADR-010.

Structs§

StatWidget
Render a Stat<T> with value, freshness, and optional n.