Repository navigation
fix(venice): preserve authoritative model pricing - #129694
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 9:45 PM ET / August 30, 2026, 01:45 UTC. ClawSweeper reviewWhat this changesThis PR preserves manifest-defined Venice costs in static catalogs, live discovery, and repeat onboarding, and documents the pricing behavior safely. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main still replaces known Venice prices with zeroes; this owner-local fix preserves the manifest row and appears correct. Member authorship and the protected Priority: P2 Review scores
Verification
How this fits togetherThe Venice provider turns manifest rows and public model discovery into model records used by setup and usage-cost estimates. Those records feed provider configuration and model selection. flowchart LR
A[Venice plugin manifest] --> B[Static model catalog]
C[Public model discovery] --> D[Known or unknown model projection]
B --> D
D --> E[Onboarding configuration]
D --> F[Usage cost estimates]
Decision needed
Why: The current-main bug and repair are clear, but the protected maintainer label and member authorship require an explicit human merge decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource -6, Tests +53, Docs +12. Total +59 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the owner-local preservation fix after exact-head checks pass, keeping the manifest as the price source for known models and zero estimates only for newly discovered unknown models. Do we have a high-confidence way to reproduce the issue? Yes. Current main assigns zero cost in the Venice decorator, and the added static-catalog, live-discovery, and onboarding cases isolate the resulting behavior; this read-only review did not execute them. Is this the best way to solve the issue? Yes. Preserving the already normalized manifest entry at the Venice decorator is the narrow canonical repair, while the shared onboarding merger continues to retain explicit operator prices. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a151c1e0d350. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Preserve the canonical manifest model definition without redundant input copying, use a neutral unknown-model fixture, and cover fresh onboarding prices plus existing zero/custom overrides. Document pricing ownership and remove the API-key-printing troubleshooting example. The full candidate has three failing-before pricing regressions and 90 passing focused tests. Full build, changed-file gates, and fresh isolated P0-scoped Codex review pass. Real catalog/discovery and usage-estimator probes preserve all 19 known base prices and 92 unknown zero estimates; synthetic token totals render $3.31 instead of $0.0000. No inference or provider-billing claim is made.
437f2ef to
1adf377
Compare
|
Published the reviewed candidate 1adf37728b82. The Venice producer now preserves the normalized manifest row; production LOC is +1/-7. Existing explicit zero/custom rates and unknown-model defaults remain unchanged. The requested redacted public-endpoint comparison covers all 19 bundled rows (USD per million tokens, base rates): {
"checkedAt": "2026-08-29T23:58:41.710596+00:00",
"endpoint": "https://api.venice.ai/api/v1/models",
"manifestRows": 19,
"matchedBasePriceRows": 19,
"missingRows": 0,
"baseFieldMatches": {
"input": 19,
"output": 19,
"cacheRead": 19,
"cacheWrite": 19
}
}Real unauthenticated source-runtime discovery returned 111 rows: known static/onboarding/live prices improved from 0/19 to 19/19 matches, with all 92 unknown estimates still zero. Independent verification first hit a real discovery timeout with correct fallback prices, then returned all 111 rows on an unchanged-limit retry. These are metadata and usage-estimate checks, not inference or billing verification. Extended-context rates for two bundled models remain a separately tracked data gap; base-rate matching does not establish complete billing-tier coverage. Local proof: 90 owner/sibling tests, the final 3-case onboarding rerun, full build, and all changed-file/type/lint guards passed. Fresh isolated full-candidate Codex autoreview was clean within its P0 scope. The PR body records commands and limits; hosted CI and native preparation were pending when this proof was first posted; their completed results follow below. Final pre-merge verificationCI run 33286183632 completed successfully on the exact published head, including the required openclaw/ci-gate. No CI reruns or source changes were needed. Native review artifacts validated, then The fresh ClawSweeper review has no actionable code/security finding. Its exact-head-green-CI request is now satisfied. The maintainer-requested landing can proceed through the native merge workflow; no merge has yet been performed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(venice): preserve authoritative model pricing * test(venice): verify pricing through setup and explicit overrides Preserve the canonical manifest model definition without redundant input copying, use a neutral unknown-model fixture, and cover fresh onboarding prices plus existing zero/custom overrides. Document pricing ownership and remove the API-key-printing troubleshooting example. The full candidate has three failing-before pricing regressions and 90 passing focused tests. Full build, changed-file gates, and fresh isolated P0-scoped Codex review pass. Real catalog/discovery and usage-estimator probes preserve all 19 known base prices and 92 unknown zero estimates; synthetic token totals render $3.31 instead of $0.0000. No inference or provider-billing claim is made.
Use complete native OpenCode and Venice pricing schedules while preserving authored zero, partial, flat and tiered costs across preparation and lookup. Avoid generated price pins during fresh merge-mode Venice onboarding. Follow-up to #133349 (cached long-context accounting) and #129694 (Venice runtime pricing); related to #113549 (broader OpenCode catalog drift).
Use complete native OpenCode and Venice pricing schedules while preserving authored zero, partial, flat and tiered costs across preparation and lookup. Avoid generated price pins during fresh merge-mode Venice onboarding. Follow-up to #133349 (cached long-context accounting) and #129694 (Venice runtime pricing); related to #113549 (broader OpenCode catalog drift).
* fix(models): refresh native pricing without pinning defaults Use complete native OpenCode and Venice pricing schedules while preserving authored zero, partial, flat and tiered costs across preparation and lookup. Avoid generated price pins during fresh merge-mode Venice onboarding. Follow-up to #133349 (cached long-context accounting) and #129694 (Venice runtime pricing); related to #113549 (broader OpenCode catalog drift). * fix(pricing): preserve native schedules through resolution Merge prepared costs beneath authored display prices, retain validated native free schedules under exact owner policy, and compile OpenRouter overrides with strict thresholds and source-order inheritance for each price key. Preserve zero, partial, flat and tiered user pricing without new settings or storage. Follow-up repairs for #133695.
…w#133695) * fix(models): refresh native pricing without pinning defaults Use complete native OpenCode and Venice pricing schedules while preserving authored zero, partial, flat and tiered costs across preparation and lookup. Avoid generated price pins during fresh merge-mode Venice onboarding. Follow-up to openclaw#133349 (cached long-context accounting) and openclaw#129694 (Venice runtime pricing); related to openclaw#113549 (broader OpenCode catalog drift). * fix(pricing): preserve native schedules through resolution Merge prepared costs beneath authored display prices, retain validated native free schedules under exact owner policy, and compile OpenRouter overrides with strict thresholds and source-order inheritance for each price key. Preserve zero, partial, flat and tiered user pricing without new settings or storage. Follow-up repairs for openclaw#133695.
What Problem This Solves
Venice's model decorator replaced the plugin manifest's known model prices with zeroes. Fresh provider configuration and known models returned by live discovery therefore lost their input, output, and cache prices, producing zero-dollar usage estimates despite correct upstream catalog data.
Why This Change Was Made
Preserve the normalized manifest row and apply only Venice's streaming compatibility decoration. The shared manifest builder already clones costs, input modalities, and supported metadata, so the decorator no longer reconstructs a partial row or copies the input array again. The current batch manifest builder stays in place. No manifest, core, configuration, or fallback changes are needed.
User Impact
Fresh/generated Venice catalogs retain known prices. Unknown discovered models still have zero estimates; that does not prove the models are free. Existing explicit zero/custom prices remain authoritative, and onboarding does not overwrite existing entries. The provider docs explain how to back up configuration and correct only obsolete cost fields, and remove a nearby API-key-printing troubleshooting instruction.
Release-note context: preserve manifest pricing for known Venice models in generated configuration and live discovery, preventing zero-dollar estimates caused by lost catalog metadata; retain intentional operator pricing overrides.
Evidence
node scripts/run-vitest.mjs extensions/venice extensions/together/onboard.test.ts src/plugin-sdk/provider-catalog-shared.test.ts src/plugin-sdk/provider-catalog-live-projection.test.ts src/utils/usage-format.test.tspassed 90 tests across 9 files and 3 shards.e8406570015f70e0a98e39d4408503668c12e115. Default P0 scope: scoped-clean, no findings, no retained lower-priority findings.GET https://api.venice.ai/api/v1/models; the published model catalog also retains those 19 correct base-price rows.Local validation also passed
pnpm build,node scripts/check-changed.mjs -- extensions/venice/models.ts extensions/venice/models.test.ts extensions/venice/onboard.test.ts docs/providers/venice.md(including extension source/test typechecks, lint, and all final guards),pnpm docs:list, and the staged-content guard. The final onboarding-test rerun passed all 3 cases after expectation refinements. The build had no ineffective-dynamic-import warnings; dependency eval and plugin-timing warnings were nonfatal.Candidate:
1adf37728b82b32d7597ca092aa81b3aa9ab8e43, whose tree exactly matches the final local review/test freeze. Hosted CI and native preparation must still pass for the published head before landing; local proof is not a claim that those gates have completed.