Skip to content

feat(anthropic): complete Claude Opus 5 rollout - #113392

Merged
steipete merged 4 commits into
mainfrom
steipete/anthropic-opus-5-support-286440
Jul 24, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/anthropic-opus-5-support-286440

Conversation

@steipete

@steipete steipete commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Related: #113391

What Problem This Solves

PR #113391 added the base claude-opus-5 model contract, but OpenClaw still kept Opus 4.8 as the generic Anthropic/Claude CLI/media default and lacked several route-specific pieces: direct price normalization and Priority Tier omission, official thinking-off semantics on Bedrock routes, Vertex multi-region pricing, Mantle and Foundry completion, broader documentation/live QA, and first-run migration coverage.

Why This Change Was Made

  • Complete Opus 5 request behavior on top of feat(anthropic): add Claude Opus 5 model support #113391: direct price normalization, unsupported Priority Tier omission, refusal-safe streaming, and explicit thinking-off support where Anthropic permits it.
  • Advance the opus alias, onboarding defaults, Claude CLI default, media-understanding default, live matrix, and retired-Opus migrations to Opus 5 without removing Opus 4.8.
  • Complete route-specific metadata and behavior for Vertex global/US/EU pricing, Bedrock discovery and inference profiles, Bedrock Mantle, and Foundry deployment aliases.
  • Expand setup, upgrade, first-run, docs, and live-QA proof for the promoted default.
  • Preserve Claude Fable 5's provider-mandated fallback target of Claude Opus 4.8; this change does not reinterpret that API contract as “latest Opus.”
  • Refresh the generated meeting-plugin reference contract fields that were already stale and blocked the required plugin-inventory check.

This PR is AI-assisted; I reviewed the implementation, provider boundaries, tests, and live proof.

User Impact

Users can select anthropic/claude-opus-5 and supported cloud equivalents with correct context/output limits, pricing, adaptive-thinking defaults, aliases, and provider-specific request shaping. New Anthropic and Claude CLI setups default to Opus 5. Existing explicit Opus 4.8 configurations continue to work.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: anthropic extensions: qa-lab plugin: zoom Zoom plugin extensions: amazon-bedrock extensions: anthropic-vertex plugin: teams-meetings Teams Meetings plugin size: XL maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete
steipete marked this pull request as ready for review July 24, 2026 19:58
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Jul 24, 2026
@clawsweeper

clawsweeper Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 24, 2026, 4:02 PM ET / 20:02 UTC.

ClawSweeper review

What this changes

The branch adds Claude Opus 5 metadata, aliases, onboarding defaults, request shaping, cloud-provider support, tests, documentation, and live-test coverage across Anthropic-related integrations.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 6 items remain

Keep this PR open for owner review. It is a broad, compatibility-sensitive model-catalog and provider-routing change, but this review environment could not perform the required read-only source, history, and failed-check inspection after its first command was sandbox-blocked.

Priority: P2
Reviewed head: 3a9343668f9558d9ba3651f9ca369d935c875a62
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The PR presents substantial claimed validation, but its source, live evidence, and two failed checks could not be independently reviewed in this environment.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR body claims a live direct-Anthropic smoke and Testbox validation, but the workflow, output, and artifacts could not be inspected; retain or post redacted runtime output proving the exact Opus 5 request path 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 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR body claims a live direct-Anthropic smoke and Testbox validation, but the workflow, output, and artifacts could not be inspected; retain or post redacted runtime output proving the exact Opus 5 request path 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 2 items Review environment blocked inspection: The first read-only command failed before repository files, skills, history, or artifacts could be opened: the sandbox could not configure loopback networking.
Compatibility-sensitive stated scope: The provided PR context says the branch changes the shared opus alias, Anthropic and Claude CLI onboarding defaults, request restrictions, and behavior across direct Anthropic, Vertex, Bedrock, Bedrock Mantle, and Foundry routes.
Findings None None.
Security Needs attention No concrete supply-chain defect is visible in the supplied diff, but the dedicated source-level security pass could not be completed after read-only inspection was sandbox-blocked.

How this fits together

OpenClaw resolves a selected provider/model reference through its model catalog and provider plugins, then applies provider-specific request contracts before an agent turn reaches Anthropic or a cloud-hosted Anthropic endpoint. This PR updates that path so Claude Opus 5 can be selected and shaped consistently across direct and hosted routes.

flowchart LR
  A[User model selection] --> B[Model catalog and aliases]
  B --> C[Provider plugin routing]
  C --> D[Anthropic request contract]
  D --> E[Direct and cloud endpoints]
  E --> F[Agent response]
Loading

Decision needed

Question Recommendation
Should this compatibility-sensitive default and provider-contract change wait for a complete source and failed-check review in a functioning inspection environment? Re-run complete review: Inspect the exact head against current main, including provider contracts, migrations, failed-check logs, and real runtime evidence before deciding on merge.

Why: The review could not inspect the patch beyond the supplied context, so it cannot safely determine upgrade behavior or explain the failed checks.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR body claims a live direct-Anthropic smoke and Testbox validation, but the workflow, output, and artifacts could not be inspected; retain or post redacted runtime output proving the exact Opus 5 request path 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 security review attention item - No concrete supply-chain defect is visible in the supplied diff, but the dedicated source-level security pass could not be completed after read-only inspection was sandbox-blocked.
  • Resolve merge risk (P1) - The shared opus alias and new Anthropic/Claude CLI defaults can change fresh setup behavior, so both fresh-install and upgrade paths need source-level verification before merge.
  • Resolve merge risk (P1) - The supplied check state includes failures for check-docs and QA Smoke CI profile 2/4; their logs and causes were unavailable to this review.
  • Complete next step (P2) - A complete source, contract, and failed-check review is needed before merge; the blocked inspection does not identify a safe automated repair.
Agent review details

Security

Needs attention: No concrete supply-chain defect is visible in the supplied diff, but the dedicated source-level security pass could not be completed after read-only inspection was sandbox-blocked.

PR surface

Source +226, Tests +628, Docs +29, Config 0, Other 0. Total +883 across 73 files.

View PR surface stats
Area Files Added Removed Net
Source 31 288 62 +226
Tests 24 640 12 +628
Docs 15 73 44 +29
Config 1 1 1 0
Generated 0 0 0 0
Other 2 6 6 0
Total 73 1008 125 +883

Review metrics

Metric Value Why it matters
Provider routing scope 6 provider routes named The PR body covers direct Anthropic, Claude CLI, Vertex, Bedrock, Mantle, and Foundry, so the contract must remain consistent across multiple independent transports.

Stored data model

Persistent data-model change detected: vector/embedding metadata: extensions/anthropic-vertex/index.test.ts, vector/embedding metadata: extensions/anthropic/index.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify upgrade behavior before merge (recommended)
    Confirm existing explicit Opus 4.8 selections and authored aliases remain intact while fresh Anthropic and Claude CLI onboarding selects Opus 5.
  2. Accept the default change deliberately
    Land the new alias and onboarding defaults only after an owner explicitly accepts that new setups will select Opus 5 across the supported provider routes.

Technical review

Best possible solution:

Verify current-main model migration behavior and all direct/cloud provider request contracts, resolve the two failed checks, and then merge only with proof that explicit Opus 4.8 configuration remains unchanged while new setup selects Opus 5 intentionally.

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

Not applicable as a bug reproduction. The PR adds a newly released model contract, and its claimed live smoke evidence could not be independently inspected.

Is this the best way to solve the issue?

Unclear. The integration may be the intended path, but the required comparison with current model contracts, provider boundaries, upgrade paths, and failed checks was blocked.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a broad provider-model improvement with meaningful upgrade and setup impact, but the supplied context does not establish an active user regression.
  • add merge-risk: 🚨 compatibility: The patch advances the shared opus alias and onboarding defaults while retaining older explicit model references.
  • add merge-risk: 🚨 auth-provider: The patch changes model identity and request shaping across several credential-backed Anthropic provider routes.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body claims a live direct-Anthropic smoke and Testbox validation, but the workflow, output, and artifacts could not be inspected; retain or post redacted runtime output proving the exact Opus 5 request path 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.

Label justifications:

  • P2: This is a broad provider-model improvement with meaningful upgrade and setup impact, but the supplied context does not establish an active user regression.
  • merge-risk: 🚨 compatibility: The patch advances the shared opus alias and onboarding defaults while retaining older explicit model references.
  • merge-risk: 🚨 auth-provider: The patch changes model identity and request shaping across several credential-backed Anthropic provider routes.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body claims a live direct-Anthropic smoke and Testbox validation, but the workflow, output, and artifacts could not be inspected; retain or post redacted runtime output proving the exact Opus 5 request path 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:

  • Review environment blocked inspection: The first read-only command failed before repository files, skills, history, or artifacts could be opened: the sandbox could not configure loopback networking.
  • Compatibility-sensitive stated scope: The provided PR context says the branch changes the shared opus alias, Anthropic and Claude CLI onboarding defaults, request restrictions, and behavior across direct Anthropic, Vertex, Bedrock, Bedrock Mantle, and Foundry routes. (src/config/defaults.ts:32, 3a9343668f95)

Likely related people:

  • steipete: The supplied context identifies steipete as the author of the only implementation commit; current-main history could not be inspected to identify shared-model or provider-area owners. (role: feature contributor; confidence: low; commits: 3a9343668f95; files: extensions/anthropic/register.runtime.ts, packages/llm-core/src/model-contracts/anthropic.ts)

Rank-up moves

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

  • Provide inspectable redacted live output for the direct Anthropic Opus 5 request path.
  • Resolve or explain the check-docs and QA Smoke CI profile 2/4 failures.
  • Re-run a complete current-main contract and upgrade-safety review.

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.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jul 24, 2026
@steipete

steipete commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready proof for rebased head 4631f5143d0eae7f8cfb70b0f671599cd19171e3:

Known proof gaps: none.

@steipete
steipete force-pushed the steipete/anthropic-opus-5-support-286440 branch from 1ba66e9 to 4631f51 Compare July 24, 2026 21:41
@steipete steipete changed the title feat(models): add Claude Opus 5 support feat(anthropic): complete Claude Opus 5 rollout Jul 24, 2026
@clawsweeper

clawsweeper Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(anthropic): complete Claude Opus 5 rollout This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit 5bea268 into main Jul 24, 2026
134 checks passed
@steipete
steipete deleted the steipete/anthropic-opus-5-support-286440 branch July 24, 2026 21:55
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations docs Improvements or additions to documentation extensions: amazon-bedrock extensions: anthropic extensions: anthropic-vertex extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: teams-meetings Teams Meetings plugin plugin: zoom Zoom plugin rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL 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