← Back to Pull requests

Reuse cc_args action lists, variables, and tuples #846

Closed
dzbarsky closed this pull request without merging on Aug 17, 2026 08:23 UTC
View on GitHub
dzbarsky dzbarsky commented on Aug 14, 2026 17:27 UTC
Author

Compute the action list, builtin-variable mapping, and single-element argument tuple once in _cc_args_impl; reuse those values for validation and by_action entries while preserving the ArgsInfo.actions depset.

Validation: buildifier -mode=check cc/toolchains/args.bzl; bazel test --jobs=2 //tests/rule_based_toolchain/args:all //tests/rule_based_toolchain/features:all (28 tests passed).

Diff: 17 lines (+10 / -7) across 1 files Reviewer: lilygorsheneva Review duration: 3775m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.20) × (1 − Review Confidence (0.77)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.20 · 17 lines diff across 1 files
0.20
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 1 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
77%
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
Diff Size diff_size
0.173
Real PR Conversation Timeline
3 items
lilygorsheneva lilygorsheneva approved these changes on Aug 14, 2026 17:37 UTC
Approved Reviewer

Approved these changes.

armandomontanez armandomontanez commented on Aug 14, 2026 18:37 UTC
Contributor

Thanks! :)

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