fix(deep-search): don't require Cloud credentials in AI Studio mode #2582
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.31) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 103 lines diff across 1 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.278
Real PR Conversation Timeline
1 comments
"Review active on #2582"
general
weight: 0.35
rootkiller6788
Fixes #2574. The deep-search sample called google.auth.default() at import time, so
make devdied with DefaultCredentialsError on machines without gcloud ADC even when only GOOGLE_API_KEY was set for local AI Studio use (which is the README's default local path).I moved the project id lookup behind the same GOOGLE_API_KEY check app/config.py already uses, and load .env from the app folder explicitly so the key is seen before the guard runs. Vertex AI mode is unchanged: without GOOGLE_API_KEY it still resolves ADC and fails loudly if there are no credentials.
Also applied the same guard to the old python/agents/deep-search path since the issue is reported there.
Verified locally: importing the app with GOOGLE_API_KEY set no longer crashes, ruff check/format are clean, and the recipe's runnability test passes.