Skip to content

fix(anthropic-vertex): honor official multi-region provider endpoints - #116757

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-vertex
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-vertex

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Use the official Google/Anthropic aiplatform.us.rep.googleapis.com and aiplatform.eu.rep.googleapis.com endpoints for multi-region Anthropic Vertex requests.
  • Keep official-endpoint cache retention aligned with the existing Anthropic payload owner while preserving custom-proxy restrictions.

Verification

  • Isolated Vertex provider and shared payload-policy suites: 74 tests passed.
  • Independent reviewer confirmed the exact official Google documentation and installed Anthropic Vertex SDK endpoint contract, frozen-base manifest classification, and custom-proxy cache boundaries; no blockers.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; independent manual diff and secret review completed.

Root causes fixed

1 canonical multi-region Vertex endpoint ownership defect.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 7:42 AM ET / 11:42 UTC.

ClawSweeper review

What this changes

The branch maps Anthropic Vertex us and eu locations to Google’s official multi-region endpoints and allows those official endpoints to use the existing long prompt-cache retention policy.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 4 items remain

This PR appears to correct an active Anthropic Vertex provider-routing defect: current main still builds the obsolete https://us-aiplatform.googleapis.com/regional pattern for us and eu, while the proposed branch maps those locations to Google’s official multi-region endpoints. The focused implementation and regression coverage look sound, but the prior ClawSweeper request for after-fix real behavior proof remains unmet; the PR body reports tests and review only. The maintainer label also requires explicit human handling rather than automated cleanup.

Priority: P1
Reviewed head: 51c231a299c4df071a6885c217603d266d47565f

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and contract-aligned, but merge readiness is capped by the missing real provider-routing proof.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports 74 focused tests and manual review, but does not include after-fix evidence from a real configured Anthropic Vertex request; add a redacted terminal transcript, runtime log, or live output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports 74 focused tests and manual review, but does not include after-fix evidence from a real configured Anthropic Vertex request; add a redacted terminal transcript, runtime log, or live output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Current-main endpoint behavior: Current main constructs non-global Vertex URLs as https://${region}-aiplatform.googleapis.com; therefore us and eu do not yet use the official multi-region hostnames addressed by this PR.
Branch implementation: The proposed conditional maps us and eu to aiplatform.<region>.rep.googleapis.com, retaining the existing global and regional-location paths.
Cache-policy boundary: The branch adds only the two exact official multi-region hostnames to the existing long-TTL allowlist; custom proxy URLs remain outside the environment-driven retention path and are covered by an explicit regression test.
Findings None None.
Security None None.

How this fits together

The bundled Anthropic Vertex provider converts Google Cloud location configuration into a provider base URL, then the stream runtime passes that URL and region to Anthropic’s Vertex SDK. Shared Anthropic payload policy separately decides whether the configured cache-retention setting can be applied to that endpoint.

flowchart LR
  A[Google Cloud location] --> B[Anthropic Vertex provider catalog]
  B --> C[Official endpoint selection]
  C --> D[Stream runtime and Vertex SDK]
  C --> E[Anthropic payload policy]
  E --> F[Prompt cache retention]
  D --> G[Anthropic Vertex request]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports 74 focused tests and manual review, but does not include after-fix evidence from a real configured Anthropic Vertex request; add a redacted terminal transcript, runtime log, or live output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Merging changes the endpoint used by existing Anthropic Vertex us/eu configurations and therefore needs an after-fix authenticated request or redacted runtime log proving the SDK accepts and reaches an official multi-region endpoint.
  • Resolve merge risk (P1) - The cache-policy allowlist expands environment-driven long retention to two provider hosts; focused tests cover the intended boundary, but real provider proof should confirm the routing and retention behavior together.
  • Complete next step (P2) - Needs contributor-supplied real provider behavior evidence and maintainer handling because the PR carries the protected maintainer label; there is no narrow automated repair for that proof gap.
Agent review details

Security

None.

PR surface

Source +4, Tests +73. Total +77 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 5 1 +4
Tests 4 75 2 +73
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 80 3 +77

Review metrics

Metric Value Why it matters
Official endpoint eligibility 2 official multi-region hosts added Both hosts become eligible for the existing environment-driven long cache-retention policy while custom proxy endpoints stay restricted.

Stored data model

Persistent data-model change detected: persistent cache schema: packages/ai/src/transports/anthropic-payload-policy.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Add authenticated endpoint proof before merge (recommended)
    Run one redacted Anthropic Vertex request using a US or EU multi-region location on this head and attach terminal output or runtime logs that show a successful request without exposing project identifiers or credentials.
  2. Accept the SDK-routing risk
    A maintainer may merge from the documented endpoint contract and focused tests alone, accepting that this review has not seen a real configured Vertex request.

Technical review

Best possible solution:

Keep the exact official-host mapping, retain the narrow hostname allowlist, and land after a redacted real Anthropic Vertex US or EU request demonstrates successful SDK routing on the proposed head.

Do we have a high-confidence way to reproduce the issue?

Yes from source inspection: current main converts GOOGLE_CLOUD_LOCATION=us or eu into the older regional hostname rather than the official multi-region hostname. A live authenticated request has not been supplied in this review cycle.

Is this the best way to solve the issue?

Yes, provisionally: selecting the official host at the provider catalog boundary and recognizing only those exact hosts in shared cache policy is narrower than adding proxy-specific exceptions or a new configuration option.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d865c9b8f567.

Labels

Label changes:

  • add merge-risk: 🚨 auth-provider: The patch changes the host and region supplied to the Anthropic Vertex SDK for existing us and eu provider configurations.

Label justifications:

  • P1: Incorrect provider endpoint selection can prevent real Anthropic Vertex US/EU requests from reaching the supported Google multi-region service.
  • merge-risk: 🚨 auth-provider: The patch changes the host and region supplied to the Anthropic Vertex SDK for existing us and eu provider configurations.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports 74 focused tests and manual review, but does not include after-fix evidence from a real configured Anthropic Vertex request; add a redacted terminal transcript, runtime log, or live output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Current-main endpoint behavior: Current main constructs non-global Vertex URLs as https://${region}-aiplatform.googleapis.com; therefore us and eu do not yet use the official multi-region hostnames addressed by this PR. (extensions/anthropic-vertex/provider-catalog.ts:238, d865c9b8f567)
  • Branch implementation: The proposed conditional maps us and eu to aiplatform.<region>.rep.googleapis.com, retaining the existing global and regional-location paths. (extensions/anthropic-vertex/provider-catalog.ts:238, 51c231a299c4)
  • Cache-policy boundary: The branch adds only the two exact official multi-region hostnames to the existing long-TTL allowlist; custom proxy URLs remain outside the environment-driven retention path and are covered by an explicit regression test. (packages/ai/src/transports/anthropic-payload-policy.ts:56, 51c231a299c4)
  • Official endpoint contract: Google Cloud documentation identifies aiplatform.us.rep.googleapis.com and aiplatform.eu.rep.googleapis.com as the Anthropic Vertex multi-region endpoints, supporting the hostnames selected by the patch.
  • Prior review continuity: The earlier completed ClawSweeper review found no code defect but requested a redacted after-fix live request, terminal transcript, or runtime log. The updated PR body still provides focused test results rather than that real behavior evidence. (b51ef4ac33e9)
  • Current activity and checks: The author force-pushed the current head at 2026-07-31T11:38:32Z and CI is still running, so no stale-PR closure path applies. (51c231a299c4)

Likely related people:

  • steipete: Authored the focused current branch and force-pushed the reviewed head; repository-history inspection was unavailable in this read-only execution environment, so ownership confidence remains low. (role: recent provider-area contributor; confidence: low; commits: 51c231a299c4; files: extensions/anthropic-vertex/provider-catalog.ts, extensions/anthropic-vertex/stream-runtime.test.ts, packages/ai/src/transports/anthropic-payload-policy.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach a redacted successful Anthropic Vertex US or EU multi-region request from this head, showing the endpoint or SDK runtime output without credentials, project IDs, or private endpoints.
  • Let the currently running CI complete on the force-pushed head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-07-31T10:10:09.370Z sha b51ef4a :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the codex/auto-qa-vertex branch from b51ef4a to 51c231a Compare July 31, 2026 11:38
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. label Jul 31, 2026
@steipete
steipete merged commit 754fddb into main Jul 31, 2026
123 checks passed
@steipete
steipete deleted the codex/auto-qa-vertex branch July 31, 2026 11:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to yetval/openclaw that referenced this pull request Aug 1, 2026
* commit 'd8f229f2e6c39e2dc694730c2efc479e4fb3871e': (59 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
pull Bot pushed a commit to liudf0716/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (52 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
sunlit-deng pushed a commit to sunlit-deng/openclaw that referenced this pull request Aug 1, 2026
* commit 'd8f229f2e6c39e2dc694730c2efc479e4fb3871e': (60 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '4e7fffdb98ce4d3e6fd69859bedd584cf474ec53': (59 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (52 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '4e7fffdb98ce4d3e6fd69859bedd584cf474ec53': (60 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: anthropic-vertex maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant