← Back to Pull requests

docs: define stable metric guarantees and metric lifecycle #3198

Open
unknown opened this pull request with 189 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 09, 2026 00:39 UTC
Author

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 -->

Diff: 189 lines (+141 / -48) across 2 files Reviewer: CatherineF-dev Review duration: 33832m
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
0.41
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Assignees
Unassigned
Labels
risk: low confidence: 43.0% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 40.8% (MEDIUM) · Higher = larger blast radius
40.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 43.0% · Lower = rushed or shallow review
43.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.3% · Safe to merge
23.3%