← Back to Pull requests

Use dict.items() for artifact-label pairs #900

Closed
dzbarsky closed this pull request without merging on Oct 01, 2026 12:39 UTC
View on GitHub
dzbarsky dzbarsky commented on Sep 23, 2026 13:27 UTC
Author

Replace _map_to_list with dict.items() in cc_helper.bzl and objc_compilation_support.bzl. Starlark's dict.items() already returns a list of key-value tuples in insertion order, so the helpers unnecessarily iterate over that list and recreate each tuple. Remove both helpers and return artifact_label_map.items() at all five call sites.

Diff: 22 lines (+5 / -17) across 2 files Reviewer: lilygorsheneva Review duration: 11471m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.23) × (1 − Review Confidence (0.56)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.23 · 22 lines diff across 2 files
0.23
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
55%
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.289
Diff Size diff_size
0.188
Real PR Conversation Timeline
2 items
lilygorsheneva lilygorsheneva approved these changes on Sep 23, 2026 21:13 UTC
Approved Reviewer

Approved these changes.

Assignees
dzbarsky dzbarsky
Labels
risk: low confidence: 55.5% 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: 23.2% (LOW) · Higher = larger blast radius
23.2%
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: 55.5% · Lower = rushed or shallow review
55.5%
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: 10.3% · Safe to merge
10.3%