Skip to content

feat: discover models from live provider catalogs - #112412

Merged
fuller-stack-dev merged 19 commits into
mainfrom
codex/google-live-model-catalog
Jul 22, 2026
Merged

fuller-stack-dev merged 19 commits into
mainfrom
codex/google-live-model-catalog

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

Closes #112405

AI-assisted implementation. No agent transcript is attached.

What Problem This Solves

Users cannot select newly published provider models until OpenClaw ships a static catalog update, even when the configured provider exposes a model-list endpoint using the same inference credentials.

Why This Change Was Made

This adds one guarded, cached live-catalog path for OpenAI-compatible providers and provider-specific adapters where the vendor schema differs. Live chat/text IDs are merged with trusted static metadata, obvious specialist media/embedding models are excluded, and any authentication, network, parsing, or pagination failure retains the provider-owned static catalog.

The provider audit covers all bundled text providers with a usable same-credential list endpoint. Control-plane-only discovery, media-only providers, providers without a working list route, and ClawRouter remain out of scope.

User Impact

Users can see newly available chat/text models through openclaw models list without waiting for an OpenClaw release. Existing known models remain available when live discovery is unavailable. Custom provider base URLs do not send credentials to a fixed vendor catalog endpoint.

Maintainer SDK Contract Decision

Approved: liveModelDiscovery is a supported public Plugin SDK contract for provider-owned, same-credential model discovery. The contract is documented in docs/plugins/sdk-provider-plugins.md and covers credential selection, custom/fixed endpoint isolation, the 60-second credential-scoped cache, bounded guarded pagination, conservative chat/text filtering, and static fallback.

Focused compatibility coverage lives in src/plugin-sdk/provider-catalog-live-runtime.test.ts, with provider-specific auth and schema coverage in the affected plugin tests.

Current-Main Gate Repair

GHSA-v2hh-gcrm-f6hx temporarily made the required security-fast gate fail on unchanged main. The canonical fast-uri 3.1.4 repair is now merged independently on main via #112444/#112443. This branch includes that repaired base and no longer carries a dependency graph delta.

Evidence

  • Exact pushed head a37420aadce is based on canonical upstream/main 0f066eec811.
  • Exact-head Testbox run 29882599356: 191 focused tests passed across the shared SDK, static agent catalog, and affected provider shards.
  • The same exact-head run passed all four core/extension production/test TypeScript lanes, all 750 MDX files, and docs formatting across 734 files.
  • Exact-head local git diff --check upstream/main...HEAD passed; the Testbox wrapper's final nonzero status came only from the delegated checkout not having an upstream/main ref for that final Git-only command.
  • Remote Linux Crabbox run run_4d11107f0b53: 210 focused tests passed across 13 requested files and 5 Vitest shards, covering the shared catalog runtime and affected provider integrations.
  • Black-box CLI probe against Novita's public live catalog: 140 chat-capable models listed, live-only novita/moonshotai/kimi-k3 present, upstream specialist gpt-image-2-oai absent, and repeated listings stable.
  • Black-box fallback probe with an unauthorized DeepSeek catalog request: command exited successfully with 4 static models and deepseek/deepseek-chat present.
  • Earlier exact-head proof passed 248 focused tests, all 82 generated npm shrinkwrap checks, the production audit with no high-or-higher advisories, packaged pnpm build, all 140 public Plugin SDK subpaths, and Control UI performance budgets.
  • Fresh autoreview reported no accepted/actionable findings after the API-contract repairs and again after the contract documentation correction.

Hosted exact-head CI remains required before merge.

@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat: discover models from live provider catalogs 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.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Maintainer decision for the ClawSweeper rank-up move: approved.

liveModelDiscovery may ship as a supported public Plugin SDK contract for provider-owned, same-credential model discovery. The approved boundary is now documented in docs/plugins/sdk-provider-plugins.md: resolved discovery credentials, effective-base and fixed-endpoint credential isolation, a 60-second credential-scoped cache, bounded guarded pagination, conservative chat/text filtering, and static fallback on unavailable or unusable live catalogs.

Compatibility coverage is concentrated in src/plugin-sdk/provider-catalog-live-runtime.test.ts (30 contract tests) plus affected provider tests, including MiniMax auth/header behavior. Exact head a37420aadce passed 191 focused tests, all four TypeScript lanes, all 750 MDX files, and formatting across 734 docs files in Testbox run https://github.com/openclaw/openclaw/actions/runs/29882599356.

@clawsweeper

clawsweeper Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat: discover models from live provider catalogs 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.

@fuller-stack-dev

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up disposition for exact head a37420aadce:

  • Plugin SDK sign-off: satisfied. The maintainer approval above adopts the documented liveModelDiscovery contract and audited bundled-provider scope. .github/CODEOWNERS has no src/plugin-sdk owner entry, and ClawSweeper labels its suggested owner with low confidence, so this PR is not waiting on a guessed personal mention.
  • Hosted checks: satisfied. Exact-head GitHub state is 84 passing, 32 intentionally skipped, zero pending, and zero failing/cancelled.

The latest ClawSweeper artifact reports no review findings and clears the security review. Proceeding through the repository-native prepare and merge gates.

@fuller-stack-dev
fuller-stack-dev merged commit 55cf952 into main Jul 22, 2026
124 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the codex/google-live-model-catalog branch July 22, 2026 01:30
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 22, 2026
* feat: discover models from live provider catalogs

* fix(provider-catalog): satisfy current catalog contracts

* fix(deps): update fast-uri past new advisory

* fix(deps): refresh fast-uri shrinkwraps

* fix(openrouter): satisfy provider catalog lint

* fix(agents): preserve refreshable catalog metadata

* test(agents): keep catalog fallback proof within lint budget

* fix(provider-catalog): honor live model contracts

* fix(minimax): type discovery headers explicitly

* docs(plugin-sdk): define live model discovery contract
lee-xydt added a commit to lee-xydt/openclaw that referenced this pull request Jul 28, 2026
… catalog consumers

Fix openclaw#103532. PR openclaw#112412 introduced refreshable provider discovery mode
for Novita (live catalog with static fallback), but every static-authoritative
consumer required discovery === 'static' exactly, which filtered out all
refreshable manifest rows.

- manifest-planner: selection 'static' now accepts 'static' or 'refreshable'
- model.static-catalog: refreshable entries no longer gate behind
  includeRuntimeDiscovery — they ship manifest rows as static fallback
- list.manifest-catalog: uses planEffectiveModelCatalogRows with
  selection 'static', which now includes refreshable rows
- novita/index.test: regression test asserts discovery mode is 'refreshable'

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment