← Back to Pull requests

Rename INTERNAL_VISIBILITY to PUBLIC_IF_NOT_GOOGLE #910

Closed
armandomontanez closed this pull request without merging on Sep 29, 2026 07:38 UTC
View on GitHub
armandomontanez armandomontanez commented on Sep 25, 2026 21:46 UTC
Author

Renames INTERNAL_VISIBILITY to better clarify the intent of the variable, and communicate to both Bazel and Google-internal users what this variable implies. Also restricts the visibilty of the visibility.bzl file to hopefully prevent hyrum's law from taking too strong a hold on this non-private file.

Diff: 14 lines (+9 / -5) across 3 files Reviewer: lilygorsheneva Review duration: 4911m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.22) × (1 − Review Confidence (0.77)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.22 · 14 lines diff across 3 files
0.22
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 3 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.162
Real PR Conversation Timeline
5 items
armandomontanez armandomontanez commented on Sep 25, 2026 21:53 UTC
Author

@lilygorsheneva I suspect this'll break Copybara, and we should probably move visibility.bzl into //cc/private.

If that's to much work, let's just restrict visibility.bzl and call it a day.

lilygorsheneva lilygorsheneva approved these changes on Sep 25, 2026 21:57 UTC
Approved Reviewer

Approved these changes.

lilygorsheneva lilygorsheneva commented on Sep 25, 2026 22:03 UTC
Contributor

It'll need some minor intervention; should I move it to //cc/private while I'm doing that anyway @armandomontanez? (it'll be better to do it in the same change for the reason you suspect)

armandomontanez armandomontanez commented on Sep 25, 2026 22:14 UTC
Author

That'd be for the best. There's significantly more publicly useful things in //cc/private than this. 😛
I suspect this slipped through the cracks because putting it there originally would've triggered buildifier warnings from some of the stuff in //cc/common without a buildifier: disable=bzl-visibility annotation.

Assignees
armandomontanez armandomontanez
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: 22.1% (LOW) · Higher = larger blast radius
22.1%
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: 5.1% · Safe to merge
5.1%