feat(controller): native histograms and wider buckets for reconcile metrics #4983
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.47) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 291 lines diff across 3 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.340
Real PR Conversation Timeline
1 comments
"Review active on #4983"
general
weight: 0.35
agaudreault
The rollout_reconcile, analysis_run_reconcile, experiment_reconcile, and notification_send histograms used fixed buckets (0.01, 0.15, 0.25, 0.5, 1s) with no +Inf boundary, making percentile estimates inaccurate for any reconcile slower than 1s. Per the agreed proposal (#5084), this widens the classic bucket boundaries to 0.01-60s and additionally emits the same four histograms as Prometheus native histograms, so future bucket tuning isn't needed. No CLI flag or override is added.
Checklist:
[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g.
"fix(controller): Updates such and such. Fixes #1234".[x] I've signed my commits with DCO
[x] My builds are green. Try syncing with master if they are not.
[x] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[x] I have run all tests locally (including the flaky ones) and they pass on my workstation
[x] I have used LLM/AI/Agent tools for this PR but I am responsible for all code of this PR
[x] I understand what the code does and WHY/HOW it works in several scenarios
[x] I know if my code is just adding new functionality or changing old functionality for existing users
[x] My organization is added to USERS.md.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Reconciliation duration metrics now provide finer-grained buckets from 0.01 seconds up to 60 seconds across rollouts, analysis runs, experiments, and notifications.
* Reconciliation metrics also emit native histograms, providing an additional view of duration data.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->