Skip to content

Run google-vertex scouts keyless and add Neon beside Sol - #74

Merged
masih merged 1 commit into
mainfrom
masih/1796220530-vertex-scout
Dec 3, 2026
Merged

masih merged 1 commit into
mainfrom
masih/1796220530-vertex-scout

Conversation

@masih

@masih masih commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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.

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
masih marked this pull request as ready for review December 3, 2026 15:19

@seidroid seidroid Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
masih merged commit 664bc14 into main Dec 3, 2026
15 checks passed
@masih
masih deleted the masih/1796220530-vertex-scout branch December 3, 2026 16:21
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant