Repository navigation
refactor(models): build provider catalogs as complete batches - #130564
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 9:49 PM ET / August 27, 2026, 01:49 UTC. ClawSweeper reviewWhat this changesThe PR replaces one-model manifest normalization in ten provider plugins with whole-provider catalog builders and removes the unused SDK row-builder helper. Merge readinessKeep open for explicit maintainer handling: the refactor preserves provider-wide normalization and plugin-owned decorations, with no concrete patch defect found. Exact-head CI is still running, and this review checkout could not fetch current-main source for the final rebase comparison. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherProvider plugins turn manifest catalog entries into offline model definitions used by onboarding and fallback model selection. The shared builder normalizes provider-wide metadata, then each plugin applies any provider-specific model policy. flowchart LR
A[Plugin manifest catalog] --> B[Shared provider catalog builder]
B --> C[Normalized provider models]
C --> D[Plugin-specific decorations]
D --> E[Offline fallback catalog]
E --> F[Onboarding and model selection]
Decision needed
Why: The PR carries the protected maintainer label, so automatic cleanup must not close or finalize it despite the absence of a discrete code finding. Before merge
Agent review detailsSecurityNone. PR surfaceSource -62, Tests -15. Total -77 across 12 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single whole-provider normalization path, preserve the provider-owned decorations, and land only after a current-main refresh and exact-head checks confirm the same catalog and onboarding contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is an internal behavior-preserving refactor, not a reported user-facing defect. Is this the best way to solve the issue? Yes, subject to the final current-main and CI refresh: the shared builder already owns whole-provider normalization, while each plugin keeps its own policy decoration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4e92ea645a89. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Addressed the final validation and rank-up items: exact-head CI is now green on 8b0fb83 (run), and native prepare accepted the hosted gates. I fetched and inspected current main through the native review workflow; no conflicting change to these owner paths requires a rebase. The full local build passed all 15 phases, and the actual built CLI successfully listed the five Cohere models. A separate all-model probe retains GLM 5.3 Flash with text+image and the expected context window. This supersedes the review worker's incomplete help/onboarding attempt; no authenticated inference is claimed for this internal refactor. Maintainer-directed landing is explicit in this task. The shared whole-provider builder and plugin-local policy boundary are retained; no concrete review defect remains. |
|
Merged via squash.
|
…aw#130564) * refactor(models): build provider catalogs as complete batches * refactor(models): decorate owned catalog rows in place
OpenClaw 2026.8.1 (openclaw/openclaw#130564) removed buildManifestModelDefinition from openclaw/plugin-sdk/provider-catalog-shared, so 0.1.0 fails to load on 2026.8.x and 2026.9.x hosts with `sdk-incompatible`. Build the static Telnyx rows with buildManifestModelProviderConfig and decorate the owned rows afterwards. - Raise the peer/minHostVersion/pluginApi floor to >=2026.8.1 and build against 2026.9.4. - Update the local SDK type shims to the current export. - State the host requirement in the README. - Release 0.2.0. Co-authored-by: Claude Fable 5.1 <[email protected]>
What Problem This Solves
Several provider plugins build their offline catalogs by repeatedly normalizing a one-model provider block. That duplicates the existing whole-provider construction path and adds an SDK adapter whose only job is to wrap that path again.
Why This Change Was Made
Use the canonical whole-provider builder for Baseten, Cerebras, Chutes, Cohere, DeepSeek, Meta, Tencent, Together and Venice. Reuse Mistral's existing provider builder for its default model. Delete the row-by-row adapter and its self-comparison assertion; keep provider-specific decorators in their owning plugins.
Production: +48/-110 (net -62). Tests: +0/-15. No dependency, manifest metadata, config/default, transport, auth, discovery-cache or persistence change.
The removed SDK symbol was introduced in #113879 and is absent from the latest stable tag, v2026.7.1-2. Tags containing it are beta-only. The SDK subpath and all other provider exports remain unchanged; no compatibility shim is needed for this unreleased helper.
User Impact
No intended behavior change. Existing catalog order, pricing, input capabilities, default-model selection, explicit per-model APIs and vendor compatibility overrides remain intact. Live discovery continues using the same provider-owned projection and credential/cache boundaries. The manifest itself is unchanged, so there is no hosted catalog update to publish.
Evidence
zai/glm-5.3-flashwith text+image, 1,048,576 context andmissing: false. These are real CLI probes, not authenticated inference calls; no external API behavior changed..map(). The follow-up decorates those owned rows in place; exact-head CI passed on8b0fb83e06fe2e96a5b08fa4e6c9068cead062d8, including all 65 selected plugin test shards and the final CI gate.Follow-up from the broader audit: OpenCode Zen/Go have duplicated snapshot/lifecycle plumbing, but their dynamic-resolution policy differs intentionally (Go remains seed-only outside its authenticated catalog). A later snapshot refactor must preserve that account boundary. Their live-test model selection also needs updating: upstream metadata now marks Zen x-preview-f-free/deepseek-v4-flash-free and Go ox-alpha-free deprecated; production lifecycle filtering must not be weakened to satisfy stale tests.