Repository navigation
fix(baseten): keep generated models out of ordinary setup config - #141552
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 5:16 PM ET / 21:16 UTC. ClawSweeper reviewWhat this changesBaseten 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 Review scores
Verification
How this fits togetherBaseten 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +128, Docs +2. Total +140 across 4 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Landed in f166d5c.
|
…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]>
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.