Repository navigation
Run google-vertex scouts keyless and add Neon beside Sol - #74
Merged
Merged
Conversation
Vertex AI is reached through GCP workload identity federation from the job's GitHub OIDC token, written to an external_account credential file under the runner's temp directory. A google-vertex scout in a job without that federation is skipped with a notice.
masih
marked this pull request as ready for review
December 3, 2026 15:19
There was a problem hiding this comment.
This change adds a google-vertex scout (Gemini 4 Neon). It authenticates through GCP workload identity federation, keeping an external_account credential file and a fresh GitHub OIDC subject token under runner.temp, and the scout is skipped with a notice when the federation is not configured. I found nothing blocking: the credential and token files sit outside the readable root and the sandbox, pi hands the credential file to Google's auth library, ya29 tokens are now caught by the secret scan, relabelling and settling still work with one scout, and tsc and npm test pass. The cross-check found nothing, and I have nothing to add from it.
Seidroid Review · the review wrote approve · run
masih
added a commit
that referenced
this pull request
Dec 3, 2026
Seidroid's own pull requests now review with the reusable workflow at the merge of #74, so they run Gemini 4 Neon on Vertex beside GPT-6.1 Sol. This is the trial before any release: Neon's tokens, cost and findings show up in the run records of the next reviews here, and no other caller changes. The commit is on main, which the service requires and the GCP identity pool accepts, and #74 changed only the runner side, so the v0.3.5 service on dev handles it unchanged. If Neon fails or the GCP variables go missing, the review continues on Sol alone. Pin back to a tag once a release includes Neon.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sol is the only scout reading a diff before the review, so a second, independent reading from Gemini 4 Neon should catch more of what one model misses. Neon runs on Vertex AI, and like the OpenAI and Anthropic credentials it has to come from the job's GitHub OIDC token rather than a stored key.
The runner writes an external_account credential file under the runner's temp directory and points GOOGLE_APPLICATION_CREDENTIALS at it. Its subject token is a GitHub OIDC token, addressed to the workload identity provider, that the runner rewrites every four minutes beside the Anthropic one. Google's auth library rereads that file whenever its access token expires and impersonates the configured service account. pi never sees the OIDC request token, and the sandboxed shell cannot see the temp directory. The provider and service account are checked against their resource-name shapes before they go into the file. Google access tokens (ya29.) are now caught by the secret scan; the subject token is a JWT, which already was.
The federation is configured by the PLATFORM_CODE_AGENT_GCP_WIF_PROVIDER, PLATFORM_CODE_AGENT_GCP_SERVICE_ACCOUNT, PLATFORM_CODE_AGENT_GCP_PROJECT and PLATFORM_CODE_AGENT_GCP_LOCATION organization variables. Where any of them is missing, a google-vertex scout is dropped before the scouts run, with a notice in the job log, and the review goes on with Sol alone, labelled the cross-check as it is today. That is what makes it safe to put Neon in the default scout-models: until the variables exist, every caller that bumps its pin behaves as it does now.
Once they exist, a bumped caller runs both scouts. Scouts are labelled cross-check A and B, and the review settles without a review turn only when both read the whole diff and find nothing, so a two-scout review settles less often and costs one more model run. Run records and cost metrics already carry the model id, so Neon shows up as google-vertex/gemini-4-neon.