Repository navigation
fix(models): preserve DeepInfra and NVIDIA catalogs on discovery failure - #139749
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 6, 2026, 1:23 AM ET / 05:23 UTC. ClawSweeper reviewWhat this changesThe PR routes DeepInfra and NVIDIA discovery failures through shared catalog retention, preserves successful empty results, and keeps DeepInfra’s public builder advisory. Merge readiness✅ Ready for maintainer review This PR remains necessary: main has the shared retention infrastructure but still hides these providers’ discovery failures. The prior public-API blocker and both rank-up requests are addressed; no new blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherProvider plugins fetch model inventory and metadata, then supply acquisition results to OpenClaw’s shared catalog publisher. The publisher combines compatible retained inventory with current configured models for model-selection surfaces. flowchart TD
A[Provider credentials] --> B[Provider discovery hooks]
C[Public model feeds] --> B
B --> D{Acquisition result}
D -->|Success including empty| E[Replace discovered inventory]
D -->|Failure| F[Retain compatible inventory]
E --> G[Published model choices]
F --> G
H[Configured models] --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -96, Tests -236, Docs +7, Other 0. Total -325 across 16 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one shared publication owner for failure retention and authoritative empty results while preserving the released advisory API and explicitly configured models. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure path: main converts failed discovery into fallback success, and NVIDIA can discard learned featured models. The supplied baseline observations corroborate it; this read-only review did not execute a reproduction. Is this the best way to solve the issue? Yes. The patch repairs the acquisition producers and reuses existing retention, with an advisory public adapter preserving the released DeepInfra contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bcef3b3526dd. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles) |
|
Addressed the public builder finding and both rank-up moves in e36e4468b86.
Earlier baseline and NVIDIA/composite evidence retain their original build identities. Final exact-head CI and the guarded landing gate remain required. |
|
landpr-approve-unrelated-red |
|
Landed in e10a556a1fb0 from reviewed head e36e4468b86b. Landed provider, test and documentation bytes match the reviewed head; Ayaan attribution is verified. Bug: DeepInfra and NVIDIA could hide acquisition failures, replace learned choices during an outage, or refill a successfully empty catalog. Fix: One strict registered acquisition path reports truthful outcomes to the existing publication owner. It preserves compatible inventory and authoritative empty results. DeepInfra's shipped public builder remains advisory; duplicate augmentation and obsolete auth policy are removed. Proof: 52 focused owner/registration cases, four exact-build public API/Gateway clauses, retained seven-clause composite acceptance, and clean exact-head review. Same-process public default/strict calls preserve cache separation. Real HTTPS fault responses exercise retention, empty and recovery; no inference or picker-appearance claim. Net −96 production / −236 test-support / +7 docs = −325 lines, with net-zero assertion metadata. Approved unrelated CI exception: The only failed child was
The frozen extraction source remains unchanged. All earlier failures and original build identities are retained. |
…ure (openclaw#139749) Related: openclaw#136257, openclaw#139357, openclaw#139649. ## What Problem This Solves Fixes an issue where operators refreshing DeepInfra or NVIDIA model choices could lose previously discovered models or see catalog failures reported as success. DeepInfra also restored bundled rows after a successful empty response. NVIDIA could drop a learned model when its featured metadata feed failed while its inference inventory still listed the model. ## Why This Change Was Made Both plugins now publish through the existing shared acquisition outcome owner. This removes duplicate chat augmentation fetches and NVIDIA's duplicate live builder. DeepInfra caches validated surface metadata and preserves original HTTP failures for strict registered discovery. Its published builder keeps its advisory default; the registered hook explicitly selects strict acquisition. The existing media fallback remains separate. ## User Impact - Failed refreshes retain compatible last-good inventory. On a cold outage, the existing publication owner exposes non-retired starters with an explicit failed acquisition outcome. - Successful empty inventories in registered discovery remove discovered membership, even if pricing or featured metadata is unavailable. A later failure does not restore starters over that successful empty result. - Existing public DeepInfra builder callers retain advisory choices during outages and unknown-cost live metadata when native pricing fails. This does not turn a failed registered acquisition into success. - Public catalog failures do not reject inference credentials or attach credential-profile provenance. A changed account cannot inherit the previous account's learned inventory. - Explicit configured models, static metadata, native pricing, and NVIDIA's request defaults keep their existing owners. No new configuration, schema, dependency, or static model dataset. ## Evidence - Built baseline `4aa060878864581f072df427648af32c9d1495be`: actual HTTPS failures produced no provider failure outcomes; an empty DeepInfra response still exposed twelve rows; a featured-only NVIDIA failure lost a learned model while its sibling advanced. - Reviewed producer build `b5caac408a761f302d9b1f0a25a0e384ceb18c08`: focused owner/registration checks and type-aware lint pass. Independent review is clean through P2 after reproducing and fixing HTTP-status erasure and malformed tag arrays. Source-blind acceptance covers malformed metadata, HTTP rejection, socket disconnects, empty with failed pricing, recovery, configured rows, supported logout, and NVIDIA retirement/republishing. - Final composite build `296bfa19ec7663044ce50b8ebb3652555900d531`: all seven supplemental independent clauses pass, including cold starters, exact warm retention, successful empty through failure, and supported same-profile account credential replacement under failed feeds. All 36 catalog requests across nine model-list calls were anonymous; outcomes carried no profile provenance. - NVIDIA and shared acquisition/preparation owners remain unchanged from the tested composite. The later DeepInfra correction preserves the shipped public builder contract, removes its now-unused augmentation-only auth helper, and narrows optional metadata descriptions. Original build identities and both earlier failed composite reports are retained. - Published-package reproduction confirmed the DeepInfra API gap: the stable public builder resolved advisory data on metadata/pricing failures while the first candidate rejected. Four new regression cases failed before repair; all 52 affected owner/registration cases now pass and incremental independent review is clean through P2. Exact corrected build `e36e4468b86b8cc41103e14aa930418f13146847` passes all four independent public API/Gateway clauses. Same-process default/strict probes verify cache separation, native price fields, HTTP failures and authoritative empty; all 41 catalog requests were anonymous. - Public-feed checks: built DeepInfra acquisition returned 104 chat models, including 97 with positive native prices and seven unknown/qualified estimates. NVIDIA's existing public inventory/featured live test passed. No real inference credentials or real-provider inference calls were used. - Net change: **96 production lines removed, 236 test/support lines removed, seven documentation lines added; 325 lines removed overall.** Two assertion-baseline counts shrink with the deleted casts; this metadata change is net zero lines. Proof uses an isolated built Gateway and controlled HTTPS responses. Cache expiry uses disclosed process-wall-clock advances, not real multi-day elapsed time. A separately configured DeepInfra default remains when discovered membership is empty. Numeric prices and private request defaults have owner coverage; picker appearance and real inference are outside the public API proof. Separate fixture-rejected background inference attempts and a timeout cooldown remain disclosed in the retained evidence. AI-assisted. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #136257, #139357, #139649. AI-assisted.
What Problem This Solves
Two catalog providers could lose learned models or report success after failed refreshes. Empty discovery could restore starters, and an optional featured feed could remove a model still present in inference inventory.
Why This Change Was Made
Both plugins use the shared acquisition owner, removing duplicate fetches and a live builder. Validated metadata retains original HTTP failures for strict discovery, while the published builder keeps its advisory defaults. Optional pricing and featured metadata remain separate from membership.
User Impact
Failures retain compatible inventory with an explicit outcome. Successful empty results stay empty through later failure. Account changes retire old learned rows. Public metadata neither rejects credentials nor claims profile attribution. Explicit models and request defaults remain unchanged.
Consumers: both registered catalog hooks and their metadata caches now distinguish failure, empty membership, and optional enrichment.
Evidence
Regressions reproduced hidden failures, restored starters, and featured-feed loss. Compiled checks covered retention, recovery, empty results, account changes, and helper compatibility. The final correction passed 52 checks. Public feeds returned inventory and pricing; request records confirmed anonymous discovery. Cache expiry used controlled clock changes. Picker appearance and real inference were not tested.