Repository navigation
feat(models): publish v2 catalog beside unchanged v1 - #156530
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 23, 2026, 10:28 AM ET / 14:28 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds an optional v2 model-catalog output with inline pricing alongside the existing v1 output, generated from the same upstream snapshot. Merge readiness✅ Ready for maintainer review Keep open: the publisher remains necessary, and the reviewed patch has no blocking correctness findings. Verified artifact contents and unchanged source bytes support carrying the prior proof forward. Priority: P2 Review scores
Verification
How this fits togetherThe catalog publisher combines provider-plugin manifests with public model metadata and pricing feeds. It produces versioned JSON artifacts for hosting and subsequent OpenClaw catalog refreshes. flowchart TD
A[Provider manifests] --> C[Catalog publisher]
B[Public metadata and prices] --> C
C --> D[Shared snapshot and pricing selection]
D --> E[Existing v1 artifact]
D --> F[Optional v2 artifact]
E --> G[Catalog hosting]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +243, Other +124. Total +367 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one publisher and pricing-selection policy, with explicitly versioned artifacts that preserve existing v1 consumers. Do we have a high-confidence way to reproduce the issue? Not applicable to a defect: this adds a versioned publication capability, and the supplied real generation is corroborated by inspected artifacts. Is this the best way to solve the issue? Yes. Extending the existing publisher and recording its pricing decisions avoids a second enrichment policy while preserving the v1 contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a5fe21a5e742. LabelsLabel changes: No label 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)
|
c959f02 to
62b245c
Compare
|
@clawsweeper re-review Final head: 62b245c. This is a mechanical restack onto merged schema 6b3eb02. The full-index publisher patch and all schema/publisher source and test bytes match reviewed c959f023611659b06fd556aa93ce75b16dcafb16; independent restack review is clean. The PR body retains the real paired-artifact proof and measured single-worker timing. Please review this final head; no repair or merge automation is requested. |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
* feat(models): publish v2 catalog beside unchanged v1 * test(models): satisfy catalog publisher fixture lint
Apply explicitly requested #158863 / 09a6051, crediting Ayaan Zaidi (obviyus). Reuse Vincent Koc's dormant parser (#156518) and opt-in paired generator (#156530). Retain only the optional wire-schema and negative-test compatibility from #156535, not runtime/client/store activation, StandalonePricing infrastructure or billing policy. Provider recommendations preserve order and trim/validate IDs against the same provider. Invalid optional manifest lists are omitted; strict v2 rejects invalid remote lists. V1 output excludes the field and keeps its released contract. No bundled manifest or runtime/picker activates recommendations. Fix the review-exposed paired-output failure: prepare both candidate/previous sets before replacing final paths and retain cross-referenced recovery after interruption or uncertain publication. Do not automatically roll back over foreign replacements. Cleanup after success warns without claiming failure. This is recoverability, not multi-file atomicity or power-loss durability. Fixed-input actual default/priced v1 output remains byte-identical; v2 output remains identical across the settlement repair, and the parser matches the requested upstream source. 59 focused and165 caller cases pass; settlement adds real boundary/interruption proof,13 paired tests and73 publisher tests. Affected types, lint, format, MDX/docs links and frozen eb377ac ratchets pass. Final independent P0-P2 review is scoped-clean on exact tree 2e67a78. No SQLite schema, package version, dependency, runtime activation or public publication change. Version remains2026.9.6 and fs-safe0.20.0. Requested npm preflight/stable FRV still require their separate source/version/admission gates; no CI run or platform clearance is claimed by this commit. ## Work sessions - Original discussion, review and integration: https://team.openclaw.ai/chat/roboclaw/dashboard/db4d78ac-b19b-4f64-adfb-0ca7973a62e4 - Dormant catalog implementation and verification: https://team.openclaw.ai/chat/roboclaw/subagent/5bc0e124-d2e6-4193-9f9b-d2767d326b30 - Paired-output correction and verification: https://team.openclaw.ai/chat/roboclaw/subagent/90593a20-97bf-4134-9221-ff30d55a618a Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: jalehman <[email protected]>
What Problem This Solves
The publisher only emits v1's provider-nested catalog and detached pricing map. This adds an optional
--out-v2 <file>beside the existing--out <v1-file>, producing both versions from one assembly and cached upstream snapshot.User Impact
v1 output remains byte-for-byte unchanged for identical inputs. v2 contains supported metadata rows with native
idfirst, explicitprovider, and inline USD-per-million-token pricing. It preserves partial rates and context tiers, distinguishes authoritative free prices from zero placeholders, and keeps unknown or withdrawn-price models without inventing rates.Unmatched lookup-only prices are omitted from v2. The frozen audit of 1,062 metadata rows preserves all 764 resolvable catalog tuples; 298 remain without known pricing. It excludes 14,458 additional lookup keys, without claiming those keys have observed usage. v1 keeps them.
Why This Change Was Made
Pricing provenance is recorded where the existing enrichment policy selects it. Source identifiers remain extensible; hydrated prices are never mislabeled as manifest prices. Both outputs validate and pass size checks before writes, and missing output directories are created. Paired publication belongs to the hosting commit/deployment.
Depends on the merged schema in #156518 (squash 6b3eb02). Related to #156507. v1 keeps its existing minimum client version. v2 omits a release floor until its first supporting release is assigned;
schemaVersion: 2identifies its compatibility boundary. This change does not switch clients or deploy a catalog.Evidence
395e6fc484b842318bc1bb45136e189a9d73aaa3e2437b9e1b03558b95cd5127; independent review confirmed all four schema/publisher source and test files are byte-identical. Existing focused proof applies. Final-head CI passed all 107 jobs with 18 intentional skips: https://github.com/openclaw/openclaw/actions/runs/35873576038. Both requiredopenclaw/ci-gatechecks passed; exact head 62b245c was squash-merged as a87f01c.pnpm test test/scripts/publish-model-catalog-v2.test.ts --maxWorkers=1passed all 4 tests in 2.663 seconds wall time (Vitest duration 1.53s). The 14 schema tests also passed in 2.541 seconds wall time. Measured on Blacksmith Testbox, Linux/Node24.19.0, at exact published head c959f023611659b06fd556aa93ce75b16dcafb16, with all source/test/package/lock hashes verified before and after. Setup/hydration excluded. Run: https://github.com/openclaw/openclaw/actions/runs/35871382280. This addresses the ClawSweeper timing rank-up item; merge CI remains separate.generatedAt: 1790174816318(2026-09-23T14:46:56.318Z). This is newer than the immutable consumer build at 2026-09-23T14:25:49.105Z in the still-unmerged feat(models): use the v2 catalog and price each route by who bills it #156535. Native Blacksmith Testbox run: https://github.com/openclaw/openclaw/actions/runs/35876085332. Clean source and publisher/schema/package/lock/workspace/workflow/loader hashes were verified before and after; no commit or timestamp override was used.66c21b02feac782df4817fe3d6f9eb6e2feb7c42a023495de72f4de7558be05e; v264557847de7598c0a7a72cf08c8fff187794238a0697f8c7888d6ec98e69799f. Native download hashes match; the hosting owner receives the unchanged bytes.