Skip to content

fix(baseten): keep generated models out of ordinary setup config - #141552

Merged
obviyus merged 2 commits into
mainfrom
fix/baseten-registered-setup
Sep 7, 2026
Merged

obviyus merged 2 commits into
mainfrom
fix/baseten-registered-setup

Conversation

@obviyus

@obviyus obviyus commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #141531.

What Problem This Solves

Fixes an issue where ordinary provider onboarding copied bundled catalog models into saved configuration, making generated inventory indistinguishable from authored settings.

Why This Change Was Made

Registered setup uses a private callback that adds no catalog rows in ordinary mode. Keep the shared configuration applier, authored rows, aliases and caller-specific defaults. Explicit replace mode and the public configuration helper still seed the catalog.

User Impact

Ordinary onboarding preserves authored configuration without saving generated inventory. Explicit replacement and public-helper behavior remain available.

Consumers: registered provider setup becomes passive about catalog rows; explicit replacement retains seeding.

Evidence

The public onboarding regression saved nine unwanted rows before the fix. Sixteen candidate tests and a plugin build passed. Source-mode setup and public-helper checks covered authored, repeated and replace modes. Real Gateway checks covered failure, empty results, recovery and authored-row retention without external inference.

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

clawsweeper Bot commented Sep 7, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: baseten Extension: baseten size: S maintainer Maintainer-authored PR labels Sep 7, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 5:16 PM ET / 21:16 UTC.

ClawSweeper review

What this changes

Baseten setup stops adding generated model rows in ordinary mode while preserving existing rows, explicit replace-mode seeding, and the public catalog helper.

Merge readiness

✅ Ready for maintainer review

The fix remains useful: current main still seeds generated models during ordinary Baseten setup. No introduced correctness or security defect was found, and the previous review recorded no outstanding findings.

Priority: P2
Reviewed head: 3e8ede3851ba72384ac332d16d24f5452ec02ba4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful setup coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The authoritative repository state identifies a MEMBER-authored PR, so the external-contributor gate does not apply. The captured body reports source-mode setup and Gateway discovery results relevant to this callback; those runs were not independently executed here.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The authoritative repository state identifies a MEMBER-authored PR, so the external-contributor gate does not apply. The captured body reports source-mode setup and Gateway discovery results relevant to this callback; those runs were not independently executed here.
Evidence reviewed 9 items Introduced setup change: The complete host-pinned introduction delta changes only Baseten onboarding, registration, tests, and provider documentation. The setup callback supplies an empty catalog outside replace mode; the public helper still supplies the bundled catalog.
Current main still needs the repair: The fetched main implementation unconditionally passes buildStaticBasetenModels() to the onboarding preset. The same implementation is present at the supplied latest-release commit, so neither inspected revision contains this setup separation.
Latest release comparison: The supplied v2026.9.2 release revision also seeds the static catalog unconditionally.
Findings None None.
Security None None.

How this fits together

Baseten onboarding converts authentication choices into saved provider configuration. Runtime catalog discovery then supplies available models, except in replace mode, which uses explicitly configured models.

flowchart TD
  A[Baseten setup] --> B[Existing configuration]
  B --> C{Replace mode?}
  C -->|No| D[Preserve existing model rows]
  C -->|Yes| E[Add bundled catalog]
  D --> F[Saved provider settings]
  E --> F
  F --> G[Runtime model selection]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +10, Tests +128, Docs +2. Total +140 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 17 7 +10
Tests 1 131 3 +128
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 150 10 +140

Review metrics

Metric Value Why it matters
Generated setup rows Ordinary setup: 9 → 0; replace mode and public preset: 9 retained This separates discovered inventory from saved configuration without removing the explicit catalog-seeding paths.

Technical review

Best possible solution:

Keep generated inventory owned by runtime discovery while retaining operator-authored rows and the existing explicit catalog preset.

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

Yes, from source: current-main registered onboarding invokes the preset that unconditionally adds the bundled model rows. No runtime reproduction was executed during this review.

Is this the best way to solve the issue?

Yes. The private setup callback reuses the existing merge owner, preserves the public helper, and accounts for replace mode disabling discovery.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded Baseten setup repair that prevents generated inventory from becoming saved configuration.
  • 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 authoritative repository state identifies a MEMBER-authored PR, so the external-contributor gate does not apply. The captured body reports source-mode setup and Gateway discovery results relevant to this callback; those runs were not independently executed here.

Evidence

What I checked:

  • Introduced setup change: The complete host-pinned introduction delta changes only Baseten onboarding, registration, tests, and provider documentation. The setup callback supplies an empty catalog outside replace mode; the public helper still supplies the bundled catalog. (extensions/baseten/onboard.ts:21, 3e8ede3851ba)
  • Current main still needs the repair: The fetched main implementation unconditionally passes buildStaticBasetenModels() to the onboarding preset. The same implementation is present at the supplied latest-release commit, so neither inspected revision contains this setup separation. (extensions/baseten/onboard.ts:13, 7e12d9712488)
  • Latest release comparison: The supplied v2026.9.2 release revision also seeds the static catalog unconditionally. (extensions/baseten/onboard.ts:13, 3928bad9badf)
  • Existing merge and public API contracts: The shared catalog applier preserves existing rows first and adds only missing catalog IDs; alias merging preserves saved aliases. The public api.ts continues exporting applyBasetenConfig, while the new setup callback remains plugin-private. (src/plugin-sdk/provider-onboard.ts:586, 3e8ede3851ba)
  • Replace-mode runtime contract: The runtime explicitly skips implicit provider discovery in replace mode. Existing focused tests cover replace, merge, and omitted mode, supporting the patch's decision to retain catalog seeding for replace mode. (src/agents/models-config.plan.ts:174, 3e8ede3851ba)
  • Fresh and repeated setup coverage: Five added parameterized cases exercise registered interactive/noninteractive setup, ordinary versus replace mode, authored rows, saved aliases, fallback preservation, repeated setup, and input immutability. Tests were inspected, not executed in this read-only review. (extensions/baseten/index.test.ts:118, 3e8ede3851ba)

Likely related people:

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

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-07T20:57:24.355Z sha e8367df :: needs maintainer review before merge. :: none

@obviyus
obviyus merged commit f166d5c into main Sep 7, 2026
143 checks passed
@obviyus
obviyus deleted the fix/baseten-registered-setup branch September 7, 2026 21:22
@obviyus

obviyus commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Landed in f166d5c.

  • Ordinary Baseten setup now saves zero generated model rows. It previously saved nine.
  • Authored rows, aliases, defaults and auth settings remain intact. Replace mode and the public catalog helper retain catalog seeding.
  • Independent behavior validation passed all seven clauses through CLI and Gateway checks with synthetic provider responses. Consent remembrance is covered by merged fix(setup): retain consent choices through roster reconciliation #141531.
  • The retained 16 tests and plugin build passed. After the first CI run found two incomplete test contexts, all five affected fixture cases passed; the corrected head passed CI and local ClawSweeper review with no findings.
  • The proof does not claim vendor inference or later wizard prompt suppression. Earlier failed setup, oracle and CI results remain in the retained evidence.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
…nclaw#141552)

Ordinary registered Baseten onboarding copied the bundled catalog into saved provider model rows. Generated inventory then became indistinguishable from operator-authored configuration.

Bind registered setup to a private callback that supplies no new catalog rows in ordinary mode. Keep the shared config applier, authored rows, aliases and caller-specific defaults. Explicit replace mode and the public `applyBasetenConfig` helper retain catalog seeding.

Validation:
- The original public onboarding regression saved nine unwanted rows. The retained 16 candidate tests and single-plugin build passed; production and docs remain unchanged.
- Source-mode ordinary, authored, repeated and replace onboarding plus six public-helper cases preserve their config, auth, default and alias contracts.
- Real Gateway checks cover current results, failure, valid empty, fresh recovery, replace-mode discovery suppression and authored-row retention. Public model status resolves the default with no saved generated rows. No vendor inference was used.
- Independent behavior validation passes all seven observable clauses. The consent prerequisite is merged in openclaw#141531 and included in this base. Focused formatting, lint, boundary guards and ratchets pass.
- The first CI test-type check found two missing required option bags in new test contexts. Both fixtures now supply the valid no-option context; all five affected cases pass without changing expectations. The failed CI run and earlier proof are retained.

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: baseten Extension: baseten maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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