Skip to content

feat(hosting): publish versioned v2 catalog - #6

Merged
vincentkoc merged 4 commits into
mainfrom
feat/catalog-v2-hosting
Sep 23, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
feat/catalog-v2-hosting

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Serve /models/v2/catalog.json alongside v1 and its byte-identical unversioned alias. One publisher invocation generates both versions from the same source snapshot; semantic changes to either version commit the pair together. The explicit asset allowlist, cache policy, preview isolation, and exact-main deployment guards are preserved.

Prerequisites are landed: alias #5, schema openclaw/openclaw#156518, and publisher openclaw/openclaw#156530. This PR now targets main and contains only the hosting slice plus its generated pair. Related: openclaw/openclaw#156507. Consumer openclaw/openclaw#156535 remains unmerged.

The generated files are unchanged output of one genuine paired publisher invocation on actual OpenClaw main d9bf2a328ebed9db90912baf868b52da65dae3fb, a descendant of the landed publisher. The publisher source is unchanged from the reviewed implementation. Native generation run: 44 providers and 1,065 matching model rows, with shared generatedAt=1790174816318 (2026-09-23 14:46:56.318 UTC). This is later than the immutable consumer build's real builtAt (14:25:49.105 UTC), allowing live remote-catalog activation to be tested without rebuilding that consumer. No timestamp or catalog content was hand-edited.

Generated artifact Bytes SHA-256
V1 2,475,651 66c21b02feac782df4817fe3d6f9eb6e2feb7c42a023495de72f4de7558be05e
V2 566,752 64557847de7598c0a7a72cf08c8fff187794238a0697f8c7888d6ec98e69799f

V1 retains minVersion=2026.7.0; v2 leaves the release floor unset. Independent validation confirms provider defaults, model metadata, tuple and known-price parity; v2 contains 767 known prices (including one free model), 289 unknown, and nine unavailable.

Validation:

  • Four focused Node tests passed for the unchanged hosting code, covering all three URLs, exact staged assets, malformed-input preservation, and HTTP failure detection.
  • The exact workflow commit block passed five isolated repository scenarios: metadata-only no-op, v1-only change, v2-only change, missing v2, and invalid v2 before mutation.
  • The unchanged hosting code passed three-route HTTP smoke under local Wrangler 4.131.1 emulation before this final data refresh. Actual refreshed-pair build, staged asset identity, shared metadata, model/pricing projection, privacy, and digest checks passed independently.
  • Final-head hosting CI, CodeQL, independent artifact review, and exact-head review passed. Squash merge 0d7deb90eb3d7d6d7d76855e28cc3057b0b732b0 has the identical reviewed tree.
  • After production deployment, ordinary Node and Python urllib requests using normal DNS independently passed all three public routes: exact bytes, alias equality, GET/HEAD headers, conditional 304 responses, ETag precedence, and private-path 404 responses. Current main and public artifacts match the table above.

Production version 19979c9a-a198-41f9-877e-c8207d65d519 deployed at 2026-09-23 15:03:59.779 UTC from the merge commit. Native push deployment remains failed: attempt 1 uploaded the preview but its verification process exited 143; one reviewed failed-job retry passed preview verification and deployed production, then the runner's production verification was canceled without an assertion result. The termination cause is unproven. No further rerun, source change, regeneration, or security change was made; the independent public checks above establish current live behavior without claiming green deployment CI.

Diff size: production/workflow/header +33/-10, tests/smoke +54/-19, documentation +20/-10. Generated data is separate: +25,485/-149, including the new 25,074-line v2 artifact.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 10:57 AM ET / 14:57 UTC (Revision 3).

ClawSweeper review

What this changes

Publishes a versioned v2 model catalog alongside v1, generates and commits both together, and extends staging, HTTP checks, and rollback documentation.

Merge readiness

✅ Ready for maintainer review

The previous prerequisite blocker is resolved, and no introduced correctness or security defect was found. This remains useful work absent from main; the member-authored draft stays open for normal landing.

Priority: P2
Reviewed head: 27d56375fada481b35dcff7dfcf5e2cee6f501c6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, compatible hosting extension with matching generated artifacts and no remaining actionable review findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor-proof gate is exempt for this MEMBER-authored PR. Reported Wrangler smoke exercises the changed static routes; independent inspection verifies artifact identity and pair consistency without claiming a production deployment. Existing-state compatibility is sufficient because v2 is additive and both existing URLs retain the v1 format.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor-proof gate is exempt for this MEMBER-authored PR. Reported Wrangler smoke exercises the changed static routes; independent inspection verifies artifact identity and pair consistency without claiming a production deployment. Existing-state compatibility is sufficient because v2 is additive and both existing URLs retain the v1 format.
Evidence reviewed 9 items Introduced hosting changes: Reviewed the pinned base-to-head changes. The publisher invokes --out-v2, validates both candidate JSON files before replacement, and commits both versions when either changes. Staging preserves the v1 alias and adds a separate v2 asset.
Previous prerequisite blocker resolved: GitHub confirms openclaw/openclaw#156530 merged at 2026-09-23T14:37:24Z as a87f01c46ccbc62b8195b74c629a6dfa39ce70ed. The schema prerequisite openclaw/openclaw#156518 also merged. This resolves the concrete blocker retained in the previous review.
Authoritative publisher contract: The target workflow directly executes this dependency. At the catalog's recorded source revision, the publisher accepts --out-v2, derives both outputs from one assembly, validates both before writing, and creates output directories. GitHub comparison confirms this revision descends from the merged publisher.
Findings None None.
Security None None.

How this fits together

This repository publishes OpenClaw model metadata and pricing as static JSON assets. Its workflow invokes the upstream publisher, commits changed catalogs, and deploys verified assets for clients to fetch.

flowchart TD
  A[Upstream model metadata and pricing] --> B[Paired catalog publisher]
  B --> C{Either catalog changed?}
  C -->|Yes| D[Commit both versions]
  C -->|No| E[Stage committed assets]
  D --> E
  E --> F[Verify isolated preview]
  F --> G[Publish v1, alias, and v2]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Source versus validation delta Production/workflow/header +33/-10; tests/smoke +54/-19 The bounded production growth adds paired publication and a third static route.
Generated catalog pair 44 providers and 1,065 matching model identities; v2 566,752 bytes The large generated diff preserves model identity across versions and remains below the upstream 4 MiB limit.

Technical review

Best possible solution:

Publish v2 as an additive endpoint while retaining v1 compatibility, paired generation, and the existing preview-to-production verification gates.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this adds a versioned publication capability rather than repairing a reported runtime failure; current main's staging code confirms the capability is absent.

Is this the best way to solve the issue?

Yes. Reusing the landed upstream publisher and existing static hosting pipeline is a narrow additive solution that preserves the v1 contract.

AGENTS.md: not found in the target repository.

Codex review notes: model internal, reasoning medium; reviewed against b2bdaa5c4983.

Labels

Label changes:

  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded catalog publication improvement with preserved v1 compatibility and no demonstrated urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor-proof gate is exempt for this MEMBER-authored PR. Reported Wrangler smoke exercises the changed static routes; independent inspection verifies artifact identity and pair consistency without claiming a production deployment. Existing-state compatibility is sufficient because v2 is additive and both existing URLs retain the v1 format.

Evidence

What I checked:

  • Introduced hosting changes: Reviewed the pinned base-to-head changes. The publisher invokes --out-v2, validates both candidate JSON files before replacement, and commits both versions when either changes. Staging preserves the v1 alias and adds a separate v2 asset. (.github/workflows/publish.yml:57, 27d56375fada)
  • Previous prerequisite blocker resolved: GitHub confirms feat(models): publish v2 catalog beside unchanged v1 openclaw#156530 merged at 2026-09-23T14:37:24Z as a87f01c46ccbc62b8195b74c629a6dfa39ce70ed. The schema prerequisite feat(catalog): define the model-first v2 feed contract openclaw#156518 also merged. This resolves the concrete blocker retained in the previous review. (a87f01c46ccb)
  • Authoritative publisher contract: The target workflow directly executes this dependency. At the catalog's recorded source revision, the publisher accepts --out-v2, derives both outputs from one assembly, validates both before writing, and creates output directories. GitHub comparison confirms this revision descends from the merged publisher. (scripts/publish-model-catalog.mts:109, d9bf2a328ebe)
  • Generated artifact identity: Both committed files match the captured PR body's SHA-256 values: v1 66c21b02feac782df4817fe3d6f9eb6e2feb7c42a023495de72f4de7558be05e; v2 64557847de7598c0a7a72cf08c8fff187794238a0697f8c7888d6ec98e69799f. (models/v2/catalog.json:1, 27d56375fada)
  • Paired data consistency: Read-only parsing verified 1,065 identical provider/model identities, matching known prices, and shared generation time and source commit across both artifacts. (models/v2/catalog.json:2, 27d56375fada)
  • Existing-client compatibility: The existing versioned URL and unversioned alias still receive the same v1 bytes. The v1 schema and 2026.7.0 minimum version remain intact; v2 occupies a new URL. No existing client state or configuration is migrated. (scripts/build.mjs:12, 27d56375fada)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-23T13:38:16.670Z sha 0d7d5d5 :: blocked before merge. :: none
  • reviewed 2026-09-23T14:10:16.073Z sha 0d7d5d5 :: blocked before merge. :: none

@vincentkoc
vincentkoc changed the base branch from feat/catalog-v1-default-alias to main September 23, 2026 14:05
@vincentkoc
vincentkoc force-pushed the feat/catalog-v2-hosting branch from 0d7d5d5 to 27d5637 Compare September 23, 2026 14:48
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the final head 27d5637. The alias, schema, and publisher prerequisites are merged. The refreshed generated pair is unchanged publisher output from landed main, generated after the fixed consumer build; independent provenance, tuple, pricing, and staged-asset checks passed. The consumer PR remains unmerged.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. label Sep 23, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 23, 2026 15:00
@vincentkoc
vincentkoc merged commit 0d7deb9 into main Sep 23, 2026
7 of 8 checks passed
@vincentkoc
vincentkoc deleted the feat/catalog-v2-hosting branch September 25, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant