docs: define stable metric guarantees and metric lifecycle #3198
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.41) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 189 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.314
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #3198"
general
weight: 0.35
CatherineF-dev
What this PR does / why we need it:
Adds
docs/metric-stability.md, which writes down what STABLE metrics guarantee (including across major releases) and how a metric is introduced, promoted, deprecated and removed. The stability section in the best practices doc now points to it, and the docs README and developer guide link to it.Main points up for discussion:
A major release does not skip the deprecation window for STABLE metrics.
Renaming a STABLE metric only to follow a naming convention is not enough reason to break it.
KSM STABLE is closest to Kubernetes BETA, since we allow adding labels.
How does this change affect the cardinality of KSM: does not change
Which issue(s) this PR fixes:
Fixes #3156, fixes #3157
/cc @CatherineF-dev @mrueg
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Added guidance on EXPERIMENTAL, STABLE, and DEPRECATED metric levels, including STABLE compatibility guarantees and the lifecycle for introducing, promoting, deprecating, and removing metrics.
Clarified that breaking changes to STABLE metrics require a deprecation period. Deprecated metrics or labels may be removed no earlier than the second subsequent minor or major release; patch releases do not count.
* Updated related metrics documentation to link to the stability and lifecycle guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->