scorecard family — primary metric surface (v0.46+)#

The v1.0 primary metric surface per ADR 0002. scorecard() plus the metric_specs namespace replace the v0.x pattern of importing scalar metrics from the package root (removed at v0.47 per the v1.0 plan).

scorecard

Compute multiple metrics on a single slice; return a Scorecard.

Scorecard

Read-only Mapping [str, MetricResult] over a slice's metric battery.

MetricResult

Per-metric scorecard cell with status + reason + optional CI.

MetricSpec

Public Protocol for metric specifications consumed by scorecard().