Skip to content

feat: add live provider model catalog helper - #90029

Merged
steipete merged 32 commits into
openclaw:mainfrom
fuller-stack-dev:codex/opencode-go-live-model-catalog
Jun 7, 2026
Merged

steipete merged 32 commits into
openclaw:mainfrom
fuller-stack-dev:codex/opencode-go-live-model-catalog

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add openclaw/plugin-sdk/provider-catalog-live-runtime, a public SDK route for provider plugins that can discover live model catalogs from a provider /models API.
  • Route bundled providers with live model-list APIs through that SDK path: OpenCode Go, OpenAI, xAI, Chutes, Venice, DeepInfra, Vercel AI Gateway, and NVIDIA.
  • Keep provider-owned static rows as metadata and offline fallback for capabilities, pricing, media limits, endpoint family, and configured rows.
  • Fix models list --all --provider ... so provider runtime catalog hooks are tried before stale static manifest rows when the provider has a live runtime catalog.
  • Update plugin-builder docs, SDK subpath docs, package exports, API metadata, and the SDK API baseline hash.

How it works

Provider plugins keep static catalog rows as canonical metadata and fallback. A provider with a model-list API can call buildLiveModelProviderConfig(...) for OpenAI-style model IDs, or getCachedLiveProviderModelRows(...) / fetchLiveProviderModelRows(...) when it needs to project richer API rows into OpenClaw model definitions.

The SDK helper performs an SSRF-guarded fetch, composes caller abort signals with a bounded timeout, builds provider/discovery auth headers, parses OpenAI-style { data: [...] } and top-level array bodies by default, releases guarded fetch resources, caches successful live rows by provider/endpoint/credential with a bounded process-local TTL cache, throws structured LiveModelCatalogHttpError for HTTP fallback handling, and falls back to provider-owned static rows when live discovery is unavailable.

OpenAI stays scoped to the openai provider id; Azure hook aliases remain hook aliases only. OpenCode Go is marked runtime-discovered so model browsing loads the plugin runtime instead of stopping at the stale two-row manifest catalog. xAI OAuth discovery uses the Grok CLI proxy /v1/models endpoint. Chutes preserves its bounded token/fallback cache while using the SDK fetch route. DeepInfra, Venice, Vercel AI Gateway, NVIDIA, and OpenCode Go share the guarded live-model fetch path while retaining provider-specific parsing.

Maintainer decision surface

Landing this PR intentionally publishes the new openclaw/plugin-sdk/provider-catalog-live-runtime subpath as a plugin SDK contract and intentionally lets authenticated live catalogs win over static rows for provider-filtered model listing when a provider has a runtime catalog hook. Static fallback remains available when live discovery is unavailable.

Verification

  • node scripts/run-vitest.mjs extensions/openai/openai-provider.test.ts extensions/xai/index.test.ts extensions/opencode-go/index.test.ts src/commands/models/list.provider-catalog.test.ts src/commands/models/list.source-plan.test.ts src/commands/models/list.list-command.forward-compat.test.ts src/plugin-sdk/provider-auth-runtime.test.ts src/plugin-sdk/provider-catalog-live-runtime.test.ts src/plugin-sdk/provider-catalog-shared.test.ts extensions/deepinfra/provider-models.test.ts src/plugin-sdk/qa-runner-runtime.integration.test.ts
  • corepack pnpm plugin-sdk:api:check
  • corepack pnpm run lint:tmp:no-raw-channel-fetch
  • git diff --check upstream/main..HEAD
  • corepack pnpm openclaw models list --all --provider openai --json
  • corepack pnpm openclaw models list --all --provider xai --json
  • corepack pnpm openclaw models list --all --provider opencode-go --json
  • Live endpoint smoke against code head 8221079caf2bfc05e34e2f6f889d82b1ee5a2e70 for OpenAI OAuth, xAI OAuth, and OpenCode Go auth, using the PR checkout's provider catalog mappers for the model-list calls. Current PR head 90c49c85fec1a4045e1dfb8d58524bfc0c01836d is an empty CI-rerun commit on top of that code, so the tested code is identical. Credential values, account/profile IDs, local paths, and process details are redacted.

Real behavior proof

Behavior addressed: provider plugins now have a reusable SDK route for live model discovery, bundled providers with model-list APIs use it, and user-facing models list reaches runtime catalog hooks instead of stopping at stale static manifest rows.

Real environment tested:

  • Local OpenClaw checkout on code head 8221079caf2bfc05e34e2f6f889d82b1ee5a2e70; current PR head 90c49c85fec1a4045e1dfb8d58524bfc0c01836d is an empty CI-rerun commit.
  • Crabbox AWS Linux smoke on earlier PR head fc7007e82b983bbdbc77818ef877eb767b8a3ac7, run run_4d0150612794, for public unauthenticated live providers.
  • Local authenticated provider smoke with local auth profiles or existing runtime OAuth credentials. OpenCode Go uses API-key/token auth; OpenAI and xAI use OAuth-style local auth.

Sanitization applied before posting: token values, bearer headers, account IDs, auth profile IDs, email/account text, local filesystem paths, raw machine targets, and process identifiers are omitted or redacted. Logs preserve provider names, endpoint URLs, HTTP statuses or command exit status, durations, returned counts, auth modes, and model IDs.

Exact steps or command run after this patch:

node scripts/run-vitest.mjs extensions/openai/openai-provider.test.ts extensions/xai/index.test.ts extensions/opencode-go/index.test.ts src/commands/models/list.provider-catalog.test.ts src/commands/models/list.source-plan.test.ts src/commands/models/list.list-command.forward-compat.test.ts src/plugin-sdk/provider-auth-runtime.test.ts src/plugin-sdk/provider-catalog-live-runtime.test.ts src/plugin-sdk/provider-catalog-shared.test.ts extensions/deepinfra/provider-models.test.ts src/plugin-sdk/qa-runner-runtime.integration.test.ts
corepack pnpm plugin-sdk:api:check
corepack pnpm run lint:tmp:no-raw-channel-fetch
git diff --check upstream/main..HEAD
corepack pnpm openclaw models list --all --provider openai --json
corepack pnpm openclaw models list --all --provider xai --json
corepack pnpm openclaw models list --all --provider opencode-go --json
pnpm exec tsx <<'TS'
# resolve local OpenAI OAuth, xAI OAuth, and OpenCode Go credentials; values redacted
# call PR checkout provider catalog builders with a logging fetch guard
# log sanitized endpoint, auth mode, HTTP status, duration, row count, mapped ids, and composer presence
TS

Evidence after fix:

{
  "codeHead": "8221079caf2bfc05e34e2f6f889d82b1ee5a2e70",
  "currentPrHead": "90c49c85fec1a4045e1dfb8d58524bfc0c01836d",
  "currentPrHeadNote": "empty CI-rerun commit; code is identical to codeHead",
  "focusedVerification": [
    { "command": "node scripts/run-vitest.mjs <focused model catalog files>", "exitCode": 0 },
    { "command": "corepack pnpm plugin-sdk:api:check", "exitCode": 0, "result": "OK docs/.generated/plugin-sdk-api-baseline.sha256" },
    { "command": "corepack pnpm run lint:tmp:no-raw-channel-fetch", "exitCode": 0 },
    { "command": "git diff --check upstream/main..HEAD", "exitCode": 0 }
  ],
  "cliModelList": [
    {
      "provider": "openai",
      "command": "corepack pnpm openclaw models list --all --provider openai --json",
      "exitCode": 0,
      "count": 3,
      "available": 0,
      "keys": ["openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.5"]
    },
    {
      "provider": "xai",
      "command": "corepack pnpm openclaw models list --all --provider xai --json",
      "exitCode": 0,
      "count": 5,
      "available": 0,
      "keys": [
        "xai/grok-4.20-beta-latest-non-reasoning",
        "xai/grok-4.20-beta-latest-reasoning",
        "xai/grok-4.3",
        "xai/grok-build-0.1",
        "xai/grok-composer-2.5-fast"
      ]
    },
    {
      "provider": "opencode-go",
      "command": "corepack pnpm openclaw models list --all --provider opencode-go --json",
      "exitCode": 0,
      "count": 18,
      "available": 18,
      "keys": [
        "opencode-go/deepseek-v4-flash",
        "opencode-go/deepseek-v4-pro",
        "opencode-go/glm-5",
        "opencode-go/glm-5.1",
        "opencode-go/hy3-preview",
        "opencode-go/kimi-k2.5",
        "opencode-go/kimi-k2.6",
        "opencode-go/mimo-v2-omni",
        "opencode-go/mimo-v2-pro",
        "opencode-go/mimo-v2.5",
        "opencode-go/mimo-v2.5-pro",
        "opencode-go/minimax-m2.5",
        "opencode-go/minimax-m2.7",
        "opencode-go/minimax-m3",
        "opencode-go/qwen3.5-plus",
        "opencode-go/qwen3.6-plus",
        "opencode-go/qwen3.7-max",
        "opencode-go/qwen3.7-plus"
      ]
    }
  ],
  "liveEndpointCatalog": [
    {
      "provider": "openai",
      "testedCode": "PR checkout extensions/openai/openai-provider.ts",
      "auth": "oauth",
      "profileId": "<redacted>",
      "endpoint": "https://chatgpt.com/backend-api/codex/models?client_version=1.0.0",
      "httpStatus": 200,
      "durationMs": 329,
      "bodyShape": "{models:[]}",
      "rawRows": 5,
      "baseUrl": "https://chatgpt.com/backend-api/codex",
      "api": "openai-chatgpt-responses",
      "mappedCount": 4,
      "ids": ["gpt-5.5", "gpt-5.4", "gpt-5.4-mini", "gpt-5.3-codex-spark"]
    },
    {
      "provider": "xai",
      "testedCode": "PR checkout extensions/xai/provider-catalog.ts",
      "auth": "oauth",
      "profileId": "<redacted>",
      "endpoint": "https://cli-chat-proxy.grok.com/v1/models",
      "httpStatus": 200,
      "durationMs": 195,
      "bodyShape": "{data:[]}",
      "rawRows": 2,
      "baseUrl": "https://cli-chat-proxy.grok.com/v1",
      "api": "openai-responses",
      "mappedCount": 2,
      "ids": ["grok-composer-2.5-fast", "grok-build"],
      "hasComposer25": true
    },
    {
      "provider": "opencode-go",
      "testedCode": "PR checkout extensions/opencode-go/provider-catalog.ts",
      "auth": "api-key",
      "profileId": "<redacted>",
      "endpoint": "https://opencode.ai/zen/go/v1/models",
      "httpStatus": 200,
      "durationMs": 198,
      "bodyShape": "{data:[]}",
      "rawRows": 18,
      "baseUrl": "https://opencode.ai/zen/go/v1",
      "api": "openai-completions",
      "mappedCount": 18,
      "ids": [
        "deepseek-v4-pro",
        "deepseek-v4-flash",
        "glm-5",
        "glm-5.1",
        "hy3-preview",
        "kimi-k2.5",
        "kimi-k2.6",
        "mimo-v2-omni",
        "mimo-v2.5",
        "mimo-v2-pro",
        "mimo-v2.5-pro",
        "minimax-m2.5",
        "minimax-m2.7",
        "minimax-m3",
        "qwen3.5-plus",
        "qwen3.7-max",
        "qwen3.7-plus",
        "qwen3.6-plus"
      ]
    }
  ]
}

Crabbox public-provider live catalog proof:

[smoke] deepinfra
[smoke] chutes
[smoke] venice
[smoke] nvidia
[smoke] vercel-ai-gateway
OPENCLAW_LIVE_CATALOG_PUBLIC_SMOKE_RESULT={"ok":true,"results":[{"provider":"deepinfra","rawRows":147,"mappedModels":93,"sampleIds":["stepfun-ai/Step-3.5-Flash","zai-org/GLM-5.1","MiniMaxAI/MiniMax-M2.5","moonshotai/Kimi-K2.5","nvidia/NVIDIA-Nemotron-3-Super-120B-A12B"]},{"provider":"chutes","rawRows":12,"mappedModels":12,"sampleIds":["Qwen/Qwen3-32B-TEE","google/gemma-4-31B-turbo-TEE","Qwen/Qwen3.5-397B-A17B-TEE","zai-org/GLM-5.1-TEE","moonshotai/Kimi-K2.5-TEE"]},{"provider":"venice","rawRows":85,"mappedModels":85,"sampleIds":["zai-org-glm-5-1","zai-org-glm-5","z-ai-glm-5-turbo","z-ai-glm-5v-turbo","olafangensan-glm-4.7-flash-heretic"]},{"provider":"nvidia","rawRows":4,"mappedModels":4,"sampleIds":["nvidia/nemotron-3-super-120b-a12b","z-ai/glm-5.1","minimaxai/minimax-m2.7","moonshotai/kimi-k2.5"]},{"provider":"vercel-ai-gateway","rawRows":283,"mappedModels":283,"sampleIds":["alibaba/qwen-3-14b","alibaba/qwen-3-235b","alibaba/qwen-3-30b","alibaba/qwen-3-32b","alibaba/qwen-3.6-max-preview"]}]}
command complete in 8.718s total=2m31.274s
run details provider=aws run=run_4d0150612794 label="pr90029-live-catalog-public-aws-repo-script" type=c7a.8xlarge

Observed result after fix: focused tests passed, SDK API metadata is current after merging main, no conflict markers/whitespace issues remain, OpenAI/xAI/OpenCode Go model-list commands return the expected OpenClaw row shape, OpenAI OAuth maps 4 live Codex/ChatGPT models, OpenCode Go returns 18 available live rows, and xAI OAuth live /v1/models returns grok-composer-2.5-fast through the PR provider catalog mapper.

What was not tested: authenticated completion calls for every discovered model were not run; this proof is scoped to live model-list discovery and OpenClaw catalog row mapping.

@openclaw-barnacle openclaw-barnacle Bot added extensions: opencode-go size: M triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 3, 2026
@clawsweeper

clawsweeper Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed June 7, 2026, 7:15 AM ET / 11:15 UTC.

Summary
Adds a public openclaw/plugin-sdk/provider-catalog-live-runtime subpath, routes several bundled provider catalogs through live /models discovery with static fallback, and changes provider-filtered model listing to prefer runtime catalog hooks.

PR surface: Source +1062, Tests +1363, Docs +142, Config +7, Generated 0, Other +10. Total +2584 across 46 files.

Reproducibility: no. bug reproduction is applicable for the feature itself. The current merge blocker is source-reproducible: git merge-tree reports a content conflict in src/agents/sandbox/registry.ts against current main.

Review metrics: 3 noteworthy metrics.

  • Public SDK surface: 1 subpath added. The PR publishes openclaw/plugin-sdk/provider-catalog-live-runtime, which third-party plugins may start depending on after release.
  • Provider discovery modes: 2 manifest discovery entries changed to runtime. OpenAI and OpenCode Go move from manifest/static-style discovery to runtime discovery, changing provider-filtered model listing behavior.
  • Live catalog adopters: 8 bundled providers affected. The PR routes OpenCode Go, OpenAI, xAI, Chutes, Venice, DeepInfra, Vercel AI Gateway, and NVIDIA through live catalog behavior, so one SDK contract now spans multiple auth and endpoint shapes.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🦐 gold shrimp
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Resolve the current-main conflict in src/agents/sandbox/registry.ts.
  • Refresh real behavior proof on current head e20b12e233be0c4d902293c1ba429e790cae565f with redacted CLI/live endpoint output.
  • Get explicit maintainer acceptance for publishing the new SDK subpath and changing auth-scoped provider list precedence.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR includes useful live logs and Crabbox proof for earlier heads, but the current head is e20b12e233be0c4d902293c1ba429e790cae565f and the posted proof does not show after-fix behavior on that head; contributors should add current-head terminal/live output or redacted logs, then update the PR body to trigger re-review.

Risk before merge

  • [P1] The PR currently cannot be merged cleanly: git merge-tree reports a content conflict in src/agents/sandbox/registry.ts.
  • [P2] Landing publishes a new plugin SDK subpath and contract for cache-key, TTL, auth-header, HTTP-error, and fallback semantics, so maintainer API acceptance is still required.
  • [P1] Existing users with provider credentials can see provider-filtered model-list output change from static manifest rows to auth-scoped live provider rows for OpenAI, xAI, OpenCode Go, and other bundled providers.
  • [P1] The supplied live proof is strong for earlier heads but does not prove current head e20b12e233be0c4d902293c1ba429e790cae565f after later commits and conflict-producing branch drift.

Maintainer options:

  1. Rebase, prove, then decide SDK acceptance (recommended)
    Resolve the src/agents/sandbox/registry.ts conflict against current main, refresh current-head live catalog proof, and have a maintainer explicitly accept the new SDK contract before merge.
  2. Accept the SDK contract risk
    Maintainers can intentionally accept that provider-catalog-live-runtime becomes public API and that authenticated live catalogs supersede static rows for affected providers.
  3. Pause if the API surface is too broad
    If the permanent SDK contract is not desired, pause or close this branch and replace it with a narrower provider-local or existing-SDK repair path.

Next step before merge

  • [P1] The remaining action is maintainer API/product acceptance plus conflict resolution and current-head proof, not a narrow automated repair.

Security
Cleared: No concrete security or supply-chain regression was found in the current diff; the live fetch helper uses the existing SSRF guard and the current PR diff does not add lockfile or dependency changes.

Review findings

  • [P1] Resolve the sandbox registry conflict against main — src/agents/sandbox/registry.ts:125-127
Review details

Best possible solution:

Land only after maintainer acceptance of the public SDK surface, a clean rebase/merge conflict resolution, and refreshed current-head live catalog proof; otherwise narrow the change back to provider-local catalog repair.

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

No bug reproduction is applicable for the feature itself. The current merge blocker is source-reproducible: git merge-tree reports a content conflict in src/agents/sandbox/registry.ts against current main.

Is this the best way to solve the issue?

Unclear as a merge-ready solution: the owner-boundary shape is plausible and uses a generic SDK seam, but it is not currently mergeable and the public API/default-output change needs maintainer acceptance plus current-head proof.

Full review comments:

  • [P1] Resolve the sandbox registry conflict against main — src/agents/sandbox/registry.ts:125-127
    Current main already has optionalPayloadString(...) for this fallback normalization, while this PR adds an overlapping getRegistryPayloadString(...) helper and rewrites the same call sites. A read-only git merge-tree reports a content conflict in this file, so the branch needs to be rebased or manually resolved before it can merge.
    Confidence: 0.95

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 66b91d78feb3.

Label changes

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This is a normal-priority feature/API change with meaningful provider compatibility risk but no evidence of emergency data loss, security bypass, or core runtime outage.
  • merge-risk: 🚨 compatibility: The PR adds a public plugin SDK subpath and changes provider-filtered list precedence from static rows toward live runtime catalogs.
  • merge-risk: 🚨 auth-provider: The changed catalog paths depend on API-key/OAuth profile resolution and can alter which provider models authenticated users see.
  • 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 includes useful live logs and Crabbox proof for earlier heads, but the current head is e20b12e233be0c4d902293c1ba429e790cae565f and the posted proof does not show after-fix behavior on that head; contributors should add current-head terminal/live output or redacted logs, then update the PR body to trigger re-review.
Evidence reviewed

PR surface:

Source +1062, Tests +1363, Docs +142, Config +7, Generated 0, Other +10. Total +2584 across 46 files.

View PR surface stats
Area Files Added Removed Net
Source 22 1489 427 +1062
Tests 16 1444 81 +1363
Docs 2 142 0 +142
Config 2 7 0 +7
Generated 1 2 2 0
Other 3 10 0 +10
Total 46 3094 510 +2584

What I checked:

  • Root policy read: Root AGENTS.md was read fully and applied; it treats plugin SDK changes, provider routing, auth, fallback behavior, and public SDK surfaces as compatibility-sensitive review areas. (AGENTS.md:17, 66b91d78feb3)
  • Scoped policy read: Scoped SDK and extensions guidance was read; both require public SDK subpaths to stay narrow, documented, exported, baseline-checked, and aligned across bundled plugins. (src/plugin-sdk/AGENTS.md:1, 66b91d78feb3)
  • Public SDK surface: The PR adds the ./plugin-sdk/provider-catalog-live-runtime package export, making this a published plugin SDK contract rather than a private bundled-provider helper. (package.json:1216, e20b12e233be)
  • Live catalog helper implementation: The new helper centralizes SSRF-guarded fetches, auth headers, TTL cache keys, HTTP errors, row parsing, and static fallback behavior for provider model catalogs. (src/plugin-sdk/provider-catalog-live-runtime.ts:111, e20b12e233be)
  • Model list source precedence: Provider-filtered list planning now checks runtime catalog availability before supplemental manifest/provider-index/static runtime fallback paths, which is the central user-visible behavior change. (src/commands/models/list.source-plan.ts:129, e20b12e233be)
  • Provider catalog runtime path: The provider catalog list path resolves bundled provider plugins, runs live catalog hooks first when present, catches live failures, and falls back to static catalogs when available. (src/commands/models/list.provider-catalog.ts:269, e20b12e233be)

Likely related people:

  • steipete: Peter Steinberger force-pushed the head ref, authored the latest PR commits including fix: satisfy catalog lint gates, fix: fall back to openai api key catalog, and the cache refactor, and requested review in the PR timeline. (role: recent branch maintainer and likely follow-up owner; confidence: high; commits: e20b12e233be, d2726d46c22d, a3d847eefeb4; files: src/plugin-sdk/provider-catalog-live-runtime.ts, extensions/openai/openai-provider.ts, src/agents/sandbox/registry.ts)
  • vincentkoc: Current main and blame for the affected provider catalog/listing files in this shallow checkout point to Vincent Koc's recent mainline work, and the merge conflict is against current-main code. (role: current-main adjacent owner; confidence: medium; commits: 66b91d78feb3, 9fb8d87f91f8; files: src/plugin-sdk/provider-catalog-shared.ts, src/commands/models/list.source-plan.ts, src/commands/models/list.provider-catalog.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@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. labels Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L and removed size: M labels Jun 3, 2026
@fuller-stack-dev fuller-stack-dev changed the title feat: refresh OpenCode Go model catalog feat: add live provider model catalog helper Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: dirty-candidate Candidate: broad unrelated surfaces; may need splitting or cleanup. proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 3, 2026
@clawsweeper clawsweeper Bot added 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 Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added extensions: openai extensions: venice extensions: nvidia extensions: vercel-ai-gateway extensions: deepinfra extensions: chutes extensions: xai size: XL triage: mock-only-proof Candidate: PR proof only shows tests, mocks, snapshots, lint, typecheck, or CI. gateway Gateway runtime agents Agent runtime and tooling and removed size: L proof: supplied External PR includes structured after-fix real behavior proof. labels Jun 3, 2026
@steipete

steipete commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Land-ready proof for bf714f1338ffd8091e99a576cc9d52bec5da358b.

Summary:

  • Adds the shared SDK live provider catalog runtime at openclaw/plugin-sdk/provider-catalog-live-runtime.
  • Routes live model discovery through it for OpenAI, xAI, OpenCode Go, Chutes, DeepInfra, Venice, NVIDIA, and Vercel AI Gateway.
  • Removes duplicated provider-local live catalog cache code from Chutes, DeepInfra, and NVIDIA.
  • Preserves OpenAI OAuth/API-key fallback/static precedence, strips secret-ref markers from live request headers/cache keys, retries empty live ID results, and skips OpenAI live discovery for custom OpenAI-compatible base URLs.

Local proof:

  • node scripts/run-vitest.mjs extensions/openai/openai-provider.test.ts src/plugin-sdk/provider-catalog-live-runtime.test.ts src/commands/models/list.source-plan.test.ts extensions/opencode-go/index.test.ts extensions/nvidia/provider-catalog.test.ts passed.
  • pnpm plugin-sdk:api:check passed.
  • pnpm lint --threads=8 passed.
  • pnpm run lint:extensions:bundled passed.
  • pnpm run test:extensions:package-boundary:compile passed.
  • pnpm check:import-cycles passed.
  • pnpm exec oxfmt --check extensions/openai/openai-provider.ts extensions/openai/openai-provider.test.ts passed.
  • git diff --check origin/main...HEAD passed.

Autoreview:

  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main passed with autoreview clean: no accepted/actionable findings reported.
  • Accepted findings from earlier autoreview passes were fixed before this run: secret-ref marker leakage, empty live-ID caching, and OpenAI custom-base-url live discovery.

Crabbox proof:

  • Current-code focused remote AWS Crabbox run run_364680d1bff8, lease cbx_2456fffafe01, passed the focused test set remotely: provider-catalog-live-runtime, list.source-plan, opencode-go, openai-provider, and nvidia provider-catalog. The run then stopped at the final live smoke because the unhydrated remote environment did not have the required provider keys.
  • Hydrated AWS Crabbox attempt run_01ff7e7b9edc, lease cbx_da83ebf2c9e9, slug brisk-krill, could not complete secret profile hydration. Hydrate workflow runs 27104281368 and 27104368594 failed on runner Corepack/pnpm permissions; 27104410216 timed out before writing the profile. The lease was stopped and no secrets were printed.
  • Earlier same-PR live AWS Crabbox proof covered the live provider path before the final OpenAI custom-base-url guard: run_1f05ccab368e, lease cbx_7375c79fcf9b, passed with OpenAI live models, LIVE_NVIDIA_MODELS=7, and MISTRAL_MODELS=8. Earlier runs also covered source-plan, OpenCode Go, and live provider counts.

CI:

  • GitHub checks are green for bf714f1338ffd8091e99a576cc9d52bec5da358b; merge state is CLEAN.

Known proof gap:

  • Final current-code true live-provider smoke could not run because Crabbox secret hydration did not produce a profile. The final code path is covered by focused local tests, focused current-code remote Crabbox tests, and prior same-PR live Crabbox provider-count proof.

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: chutes extensions: deepinfra extensions: nvidia extensions: openai extensions: opencode-go extensions: venice extensions: vercel-ai-gateway extensions: xai gateway Gateway runtime 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. proof: supplied External PR includes structured after-fix real behavior proof. 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. triage: dirty-candidate Candidate: broad unrelated surfaces; may need splitting or cleanup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants