CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/guardrail-metrics-reference

Pure-reference catalog of guardrail-metric methodology for online controlled experiments. Defines guardrail metrics (metrics that must NOT degrade for an experiment to ship, even if the primary metric improves), the standard guardrail set (latency / errors / engagement / opt-out), the relationship to OEC (Overall Evaluation Criterion) per Kohavi et al., and pre-commitment of the metric set. The quantitative evaluation mechanics (per-metric alert/block thresholds, Bonferroni / Benjamini-Hochberg multiple-comparison correction) live in references/. Use when designing the metric set for a new experiment, auditing existing experiment configs, or reviewing experiment results before ship-decisions.

75

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

thresholds-and-corrections.mdreferences/

Guardrail thresholds and multiple-comparison correction

Deep reference for guardrail-metrics-reference SKILL.md. Consult when setting per-metric alert/block levels and correcting alpha across the OEC + N guardrails.

Setting guardrail thresholds

A guardrail typically has two levels:

ThresholdWhat
AlertA statistically significant degradation; investigate before ship
BlockA degradation past a pre-declared limit; ship-decision flips to "no"

Example for API latency p95:

LevelThreshold
AlertAny statistically significant increase
Block> 10% increase OR > 50ms absolute increase, whichever is greater

The "whichever is greater" handles fast endpoints where 10% is trivially small in absolute terms.

Multiple-comparison correction

With one OEC + N guardrails (typically 10-20), a fixed-alpha significance test means you'll see N×0.05 false positives on average. Per Kohavi et al., apply Bonferroni or Benjamini- Hochberg correction:

MethodWhen
BonferroniStrict; alpha / N. Use when missing a true regression is catastrophic
Benjamini-Hochberg (FDR)Less strict false-discovery-rate control; use for general guardrail dashboards

Reference

  • Kohavi, Tang, Xu. Trustworthy Online Controlled Experiments (Cambridge University Press, 2020). ISBN 978-1108724265.

SKILL.md

tile.json