fix(analytics): use neutral leaderboard metric definitions (AAP-96438) #3734
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 303 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3734"
general
weight: 0.35
lgalis
Summary
Update the Volume, Breadth, and Consistency definitions to consistent, neutral wording so they describe the listed users without implying the current viewer performed the actions. The shared definitions appear in both the activity level rows and the selected Top 10 leaderboard.
Jira: https://redhat.atlassian.net/browse/AAP-96438
An earlier commit corrected two pre-existing test fixtures that omitted the required user_organization field and blocked TypeScript checks. That correction has since landed on devel. The merge resolution retains the upstream fixture values, so the final diff against devel contains only the three definition changes.
Type of Change
Risk Analysis - REQUIRED
Testing
git diff --checkpassed.Ephemeral E2E Tests
Once the PR is ready and preliminary checks pass, trigger tests by posting
/run-playwrighton this PR.Manual Testing
Verified all three activity level definitions in the locally running PR branch against the same test backend. Confirmed the updated Volume definition also appears above the Top 10 list. Selection of the other levels is covered by the existing component tests.
Screenshots
Before (test instance)
!Original leaderboard definitions
After (local PR branch, same test backend)
!Updated leaderboard definitions