hack/manual-validate: enable the service APIs a run needs before bring-up #16251
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 236 lines diff across 2 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.327
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #16251"
general
weight: 0.35
barney-s
A manual-validation run now enables the service APIs it needs, instead of failing a create later because an API is off in the test project.
Change
hack/manual-validate/lib.sh:mv_enable_apis PHASE SERVICE.... For each service it checksgcloud services list --enabled; an API already on is recorded as such, a disabled one is enabled withgcloud services enableand recorded as "enabled by this run" (also listed asapis_enabled_by_runin the report). A URL or regional endpoint host is taken as its service (https://us-central1-aiplatform.googleapis.com/...->aiplatform.googleapis.com). WithMV_ENABLE_APIS=0it only checks, and a disabled API fails the run with the command to enable it. APIs are never disabled again: the project is shared..gemini/skills/manual-validate-controller/SKILL.md: step 1 lists the APIs a Kind needs - every*.googleapis.comhost in its fixture's_http.logfiles, plus what the out-of-band and functional checks call (e.g.logging.googleapis.comfor the audit-log check); step 2 callsmv_enable_apisbeforemv_up; aSERVICE_DISABLEDfailure is now a script fix (add the API, re-run) rather than an escalation; a critical rule never to disable an API.hack/manual-validate/bigqueryrowaccesspolicy/validate.sh: enablesbigquery.googleapis.comandlogging.googleapis.combefore bring-up.Enabling needs
serviceusage.services.enableon the project; the factory sandboxes' service account has it on their test project (checked withtestIamPermissions).Tested
Against a test project, read-only paths: already-enabled APIs are recorded as such (including a full regional URL resolving to
logging.googleapis.com), and withMV_ENABLE_APIS=0a disabled API fails withgcloud services enable <api> --project <project>. The enabling path itself (a project change) was not exercised.``
release-note
``NONE