Skip to content

feat(providers): keep registered setup connection-only - #142202

Merged
obviyus merged 1 commit into
mainfrom
feat/public-provider-connection-presets
Sep 8, 2026
Merged

obviyus merged 1 commit into
mainfrom
feat/public-provider-connection-presets

Conversation

@obviyus

@obviyus obviyus commented Sep 8, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Provider setup saved copies of built-in catalogs into configuration, duplicating plugin-owned inventory and obscuring the distinction between a connection and authored model settings.

Why This Change Was Made

Eleven provider registrations use shared connection-only presets. Shared descriptors remove duplicate decisions while explicit replace mode keeps its existing catalog merge and required-default rules. Published helper APIs retain catalog-seeding behavior.

User Impact

Ordinary setup saves the connection while preserving authored rows, defaults, fallbacks, and aliases. The new plugin imports require a matching host release; they are not compatible with older hosts.

Consumers: the migrated provider setup registrations stop seeding built-in rows during ordinary setup.

Evidence

All 128 focused provider and plugin-development checks passed. Real registered setup saved seven generated rows before the change and zero afterward while preserving authored settings. Compiled setup passed fresh, authored-merge, and authored-replace cases. A real Gateway listed the default and delivered a synthetic reply without changing saved configuration. Required continuous integration passed. Two representative providers were exercised; no live provider request or package publication occurred. An unrelated standalone plugin dependency-link failure remains outside these successful checks.

@obviyus obviyus self-assigned this Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 8, 2026, 9:59 AM ET / 13:59 UTC.

ClawSweeper review

What this changes

Adds connection-only provider setup helpers and migrates eleven provider registrations while preserving existing catalog-seeding APIs and explicit replace-mode behavior.

Merge readiness

⛔ Blocked before merge - 3 items remain

The PR remains useful: current main still seeds catalogs through these registrations. No concrete introduced correctness defect was found, and the protected maintainer label rules out automatic cleanup.

Priority: P2
Reviewed head: d26fae6f79aa51b0e0d9b9d7bf39e6658549f10a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with meaningful contract coverage and no concrete correctness finding; package-boundary acceptance remains useful before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The host classifies this as member-authored, so the external-contributor proof gate does not apply. The captured body reports real NVIDIA setup and saved-config observations for the changed preset path, while explicitly leaving compiled runtime acceptance pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The host classifies this as member-authored, so the external-contributor proof gate does not apply. The captured body reports real NVIDIA setup and saved-config observations for the changed preset path, while explicitly leaving compiled runtime acceptance pending.
Evidence reviewed 10 items Introduced implementation: The pinned merge-base-to-head diff adds three SDK exports. They reuse the existing catalog/default merge algorithms and evaluate generated rows only in explicit replace mode.
Current-main necessity: The fetched main revision still registers applyNvidiaConfig, which uses the catalog-seeding default-model preset. The representative setup path therefore remains different from the proposed connection-only registration.
Latest-release comparison: The supplied latest release, v2026.9.2, also builds NVIDIA setup with createDefaultModelsPresetAppliers and supplies the selectable catalog.
Findings None None.
Security None None.

How this fits together

Provider setup combines connection details with saved model preferences. These SDK helpers prepare configuration for the authentication flow, while provider catalogs supply the available models.

flowchart TD
  A[Provider setup] --> B[Connection details and saved preferences]
  B --> C{Explicit replace mode?}
  C -->|No| D[Preserve authored model rows]
  C -->|Yes| E[Merge generated model rows]
  D --> F[Save connection and aliases]
  E --> F
  F --> G[Provider catalog and model selection]
Loading

Before merge

  • Resolve merge risk (P1) - Eight independently published plugins now import new host exports; publishing them without the documented paired version synchronization would make older hosts fail to load them.
  • Resolve merge risk (P1) - The reported setup observations cover saved configuration, but compiled runtime acceptance remains explicitly pending.
  • Complete next step (P2) - Complete the pending compiled runtime acceptance for fresh and existing provider configurations, including the paired host/plugin package boundary.
Agent review details

Security

None.

PR surface

Source +161, Tests +170, Docs +23. Total +354 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 23 261 100 +161
Tests 1 170 0 +170
Docs 1 26 3 +23
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 457 103 +354

Review metrics

Metric Value Why it matters
SDK contract expansion 3 new public helper exports; 0 new configuration options The change adds explicit setup APIs while preserving the existing catalog-seeding APIs.
Independent publication 8 migrated plugins publish separately Their new imports depend on paired host and plugin compatibility metadata.

Merge-risk options

Maintainer options:

  1. Validate the paired package boundary (recommended)
    Complete compiled setup acceptance with the matching host and confirm published plugin compatibility ranges exclude hosts lacking the new exports.

Technical review

Best possible solution:

Keep setup connection-only, retain authored preferences and legacy helper contracts, and validate the migrated plugins with their paired host release.

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

Not applicable as a defect reproduction: this changes setup policy and adds SDK capabilities. Current source confirms the existing catalog-seeding behavior, and the PR reports before/after registered CLI observations.

Is this the best way to solve the issue?

Yes: the helpers reuse existing merge owners, retain public seeding behavior, and preserve the distinct replace-mode algorithms. Compiled package acceptance is the remaining validation boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7b2058c2ecc4.

Labels

Label changes:

  • add P2: This is a bounded provider setup improvement without evidence of an urgent user-facing outage.
  • add merge-risk: 🚨 compatibility: Separately published provider plugins gain imports unavailable on older hosts, requiring the documented paired release contract.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The host classifies this as member-authored, so the external-contributor proof gate does not apply. The captured body reports real NVIDIA setup and saved-config observations for the changed preset path, while explicitly leaving compiled runtime acceptance pending.

Label justifications:

  • P2: This is a bounded provider setup improvement without evidence of an urgent user-facing outage.
  • merge-risk: 🚨 compatibility: Separately published provider plugins gain imports unavailable on older hosts, requiring the documented paired release contract.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The host classifies this as member-authored, so the external-contributor proof gate does not apply. The captured body reports real NVIDIA setup and saved-config observations for the changed preset path, while explicitly leaving compiled runtime acceptance pending.

Evidence

What I checked:

  • Introduced implementation: The pinned merge-base-to-head diff adds three SDK exports. They reuse the existing catalog/default merge algorithms and evaluate generated rows only in explicit replace mode. (src/plugin-sdk/provider-onboard.ts:599, d26fae6f79aa)
  • Current-main necessity: The fetched main revision still registers applyNvidiaConfig, which uses the catalog-seeding default-model preset. The representative setup path therefore remains different from the proposed connection-only registration. (extensions/nvidia/index.ts:20, 7b2058c2ecc4)
  • Latest-release comparison: The supplied latest release, v2026.9.2, also builds NVIDIA setup with createDefaultModelsPresetAppliers and supplies the selectable catalog. (extensions/nvidia/onboard.ts:9, 3928bad9badf)
  • Behavioral contract coverage: The new tests cover absent/merge mode, authored rows and preferences, provider-only setup, independent ownership of generated rows, no-op resolvers, distinct replace-mode membership rules, and retained public helper behavior. These tests were read, not executed. (src/plugin-sdk/provider-onboard.connection.test.ts:37, d26fae6f79aa)
  • Existing implementation boundary: Other provider-local onboarding implementations already condition catalog seeding on replace mode. The proposed generic helpers centralize that policy without replacing the published catalog-seeding contract; no Codex dependency contract determines this change. (extensions/cerebras/onboard.ts:18, d26fae6f79aa)
  • Public API compatibility: The documentation explicitly preserves old helper behavior and requires independently published consumers to use the paired host release. The existing version-sync implementation advances declared pluginApi ranges with the core release. Public docs: docs/plugins/sdk-provider-plugins/model-catalogs.md. (docs/plugins/sdk-provider-plugins/model-catalogs.md:358, d26fae6f79aa)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Agustin Rivera: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Complete the pending compiled setup acceptance for fresh and existing configurations with the paired host/plugin artifacts.

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.

@obviyus
obviyus merged commit 0f3db48 into main Sep 8, 2026
200 checks passed
@obviyus
obviyus deleted the feat/public-provider-connection-presets branch September 8, 2026 14:52
@obviyus

obviyus commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @obviyus!

Proof: Registered setup saves connection/default facts without copying the built-in catalog. The pinned NVIDIA baseline saved seven generated rows; the candidate saved zero. Authored merge and replace settings remain intact. The matching compiled Mistral host/plugin completed fresh and existing setup, then a real Gateway returned the synthetic provider reply for the configured default with matching requested/effective/response model identities. Saved configuration remained unchanged through catalog and inference.

  • Change: Eleven provider registrations now use the shared connection-only presets. Public helper behavior and explicit replace rules remain intact.
  • Validation: 128 focused checks, five independent retained-artifact acceptance clauses, exact-head local review, and required CI.
  • Release boundary: The new SDK imports require the paired host/plugin release and normal compatibility-range synchronization. No old-host compatibility, real vendor response, or npm-install proof is claimed.
Before After
Ordinary setup copied generated catalog rows into saved configuration. Ordinary setup preserves authored model preferences and saves the connection without generated rows.
Provider registrations used catalog-seeding helpers. Registrations use one shared connection-only policy while published helper APIs retain their contracts.

Earlier fixture and standalone archive-validation failures remain recorded. Their successful operations were preserved; only the fully verified Mistral dependency path supplies the compiled runtime claim.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
Registered provider setup now saves a connection without pinning a copy of the built-in model catalog. Add shared connection-only presets and move the Cloudflare AI Gateway, Featherless, Hugging Face, LongCat, Meta, Mistral, NVIDIA, Synthetic, Together, regular Xiaomi, and Z.AI registrations to them.

Ordinary setup preserves authored rows, defaults, fallbacks, and aliases. Explicit replace mode keeps the existing catalog-merge and required-default rules. Published helper APIs keep their catalog-seeding behavior. Shared descriptors remove duplicate provider decisions, and generated replace rows belong to the resulting config.

The new SDK imports require a paired host/plugin release. The existing version-sync and package builder update the plugin API and peer ranges with that release. This change does not claim compatibility between the new plugin imports and an older released host.

Validation:

- 128 focused SDK and provider checks pass. Four connection-only checks fail when the mode condition is deliberately removed; the correct source is restored.
- Real registered NVIDIA setup saves seven generated rows on the pinned baseline and zero on the candidate. Authored merge/replace settings and the available default remain intact.
- The required CI artifact passes compiled Mistral setup for fresh, authored merge, and authored replace configurations. A real Gateway lists the configured default and returns one synthetic provider reply with matching requested, effective, and response models. Catalog and inference leave saved configuration unchanged.
- Required CI passed on the exact candidate. Runtime proof uses its recorded CI merge build and matching compiled host/plugin, with existing dependencies and isolated synthetic state. No real vendor request or package publication occurred.
- Independent acceptance passed all five clauses for the retained NVIDIA/Mistral observations. It did not replay runtime or claim coverage beyond those representative scenarios.

The earlier fixture failure from comparing resolved configuration with raw saved JSON remains recorded. Its completed setup was preserved and was not repeated. The artifact's unrelated standalone GoogleChat dependency-link failure is also retained; the exercised Mistral dependency path completed successfully.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: cloudflare-ai-gateway extensions: featherless extensions: huggingface extensions: longcat LongCat provider plugin extensions: meta Extension: meta extensions: mistral extensions: nvidia extensions: synthetic extensions: together extensions: xiaomi extensions: zai maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant