Repository navigation
fix(models): report failed bundled catalog refreshes - #139649
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. |
|
Landed as d141dc6 from reviewed head 5e0ecef. Bug: Bundled discovery could hide failed requests behind starter models or refill successful empty inventories. Fix: One guarded acquisition path publishes real outcomes. The shared publication owner preserves compatible inventory or degraded starters, with captured static-hook ownership and no extra auth lookup. Shipped external advisory APIs remain compatible. Proof: Exact-head CI is green; the final independent review has no findings. Built CLI/Gateway and public API checks cover failure, recovery, empty results, fresh/upgrade starters and the complete seven-clause downstream integration, including same-profile account replacement. Controlled clock advancement and fixture-rejected background requests are disclosed; no real-vendor inference or UI claim. Production +199; tests/support +313; docs +34; ratchet metadata -1; generated/lockfiles unchanged. No rebase, CI bypass or deployment. The larger source PR #136257 remains draft and untouched. |
…ure (#139749) Related: #136257, #139357, #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 `4bb95eb02cede3b2677aa7274c4f574431531c92`: 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: openclaw#136257. Builds on merged openclaw#139357. Make all bundled shared-helper catalog callers report actual acquisition failures and authoritative empty results. Preserve shipped external advisory defaults through the same transport/cache implementation. The existing publication owner retains compatible learned inventory or degraded provider-owned starters. Static preparation consumes registered hooks with their authoritative plugin identity, without activating unknown runtimes or widening successful empty membership. No operator option, persistence schema, new cache, or auth re-observation is introduced. Proof: retained built baseline failure, packaged CLI/Gateway fault/recovery/empty checks, public SDK/provider API compatibility, fresh/upgrade starter checks, and the decisive seven-clause downstream composite on exact shared head 5e0ecef. Composite 296bfa19ec7663044ce50b8ebb3652555900d531 adds only the unchanged separate DeepInfra/NVIDIA producer patch; that patch is not part of this PR. Controlled clock advancement and fixture-rejected background inference are disclosed. No real vendor inference or UI claim. Production net +199; tests/support +313; docs +34; ratchet metadata -1; generated/lockfile delta zero. Growth preserves shipped API and shared failure/empty/ownership contracts rather than adding parallel provider policy. Co-authored-by: Ayaan Zaidi <[email protected]>
…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.
What Problem This Solves
Failed model discovery could appear successful after substituting starter rows. Successful empty results could also turn back into starters, preventing accurate refresh status and retention.
Why This Change Was Made
All 36 bundled providers using shared discovery select strict acquisition. Shared transport, cache, and outcome owners preserve failures, empty results, and request profiles. Prior inventory and starters retain failure outcomes. External helpers stay advisory. Captured hooks cover runtime providers without another discovery path.
User Impact
Failures remain visible, healthy providers can advance, and successful empty membership stays empty. Explicit configured models remain. Catalog rejection does not invalidate execution credentials; anonymous metadata has no sign-in attribution. No operator option or schema change is added.
Consumers: bundled discovery, publication, and static preparation preserve real outcomes; external helpers remain compatible.
Evidence
The built baseline replaced failure with starters. Packaged Gateway checks covered faults, pagination, retention, recovery, and empty results. Public exports preserved strict/advisory behavior. Fresh-install and upgrade checks verified starters and empty retention; integration covered account replacement. Focused regressions and final continuous integration passed. Endpoints were synthetic; live inference and UI behavior were not tested.