authenticate from ADC, drop host OAuth token mirroring - #549
authenticate from ADC, drop host OAuth token mirroring#549omkargaikwad23 wants to merge 5 commits into
Conversation
…token mirroring and updating documentation and tests.
…redentials and prevent false warnings
… MCP probe and update default configuration to High performance tier
| @@ -19,6 +19,10 @@ | |||
| # location and skips the download when the binary already exists at the target. | |||
There was a problem hiding this comment.
The current changes will not work with GKE. Please test and fix them.
|
Description says we cannot use higher model: ``` |
Yes, I tested using Gemini 3.1 Pro (High) and it's not supported. I have added a feature for early termination when provided model is incorrect. |
Is there a way to test it because this is main model to test. |
Summary
agy 1.1.10 added headless auth from Application Default Credentials, so the
harness no longer needs a host OAuth token.
_mirror_agy_auth_state, which copiedantigravity-oauth-tokenandinstallation_idout of~/.gemini/antigravity-cli/into every evalsandbox. No personal credential is staged anymore.
_setup_authsetsAGY_ADC_AUTH=trueunconditionally (not a config knob)and warns at setup when no ADC is readable — otherwise agy silently falls
back to interactive OAuth and the run dies on "authentication required".
Gemini 3.1 Pro (Low): ADC is entitled to asmaller model set than an interactive login, and
(High)is not in it._merged_env: an unquoted YAML scalar (FLAG: true)reached
subprocess.run(env=)as a bool and raisedTypeError.prerequisites.
Unblocks unattended/CI runs, which previously required copying a personal
token into a shared environment.
Test plan
pytest test/agy_cli_test.py— 59 pass; suite is hermetic with orwithout
GOOGLE_APPLICATION_CREDENTIALSexportedexit 0, goal_completion 2/2, trajectory_matcher 2/2, executable 2/2