Skip to content

fix(hosting): serve catalog with Cloudflare static assets - #4

Merged
vincentkoc merged 1 commit into
mainfrom
fix/cloudflare-static-hosting
Sep 23, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/cloudflare-static-hosting

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Serve the model catalog through Cloudflare Workers Static Assets with explicit JSON, revalidation, CORS, and nosniff headers. Stage only the catalog and header rules; native asset handling supplies ETags, conditional 304s, and 404s without request-time Worker code.

Keep generation and deployment in the same serialized main-only workflow, including unchanged-content retries. Verify the actual post-commit main SHA, smoke-test an isolated preview before production, and add secretless pull-request validation. Forward-deployment rollback preserves the newest catalog data.

Validation at 14d46cd288971ec0f67e3047c020cfe6cac24458: 3 Node tests; workflow syntax checks; Wrangler 4.131.1 dry-run and local/public-preview smoke; green hosting and CodeQL checks; fresh independent autoreview with no actionable findings. The smoke covers exact bytes, GET/HEAD headers, CORS, ETag 304, ETag precedence over If-Modified-Since, and missing/private-path 404s.

The hosting owner authorized the production transition. Both repository deployment secrets are configured. On September 23, 2026, the existing catalog.openclaw.ai CNAME was replaced by the native Custom Domain for openclaw-catalog after Cloudflare rejected attaching it while the CNAME existed. The Worker already held the reviewed version; no source or asset reupload was needed. Authoritative and ordinary client DNS now resolve to Cloudflare. Production smoke passes with unmodified Node and Python urllib clients over normal DNS: exact 2,468,348 bytes (SHA-256 c2c61a49d1be08b31c41f3a7a4290cfa2f2a1562c81981e69742b99d4967ea57), all HTTP/cache/CORS checks, ETag 304, validator precedence, and four missing/private-path 404s.

A hostname-scoped Configuration Rule disables only Browser Integrity Check for catalog.openclaw.ai, preserving inherited security otherwise. This corrects the observed default Python-client 403 / error 1010; the identical request then returned 200 with exact bytes. Security analytics/settings pages were unavailable, so the cause is established by Cloudflare's documented error contract and this before/after result.

Recovery remains available: GitHub Pages is still built from main:/, with the same custom hostname and HTTPS enforcement. The prior DNS record was catalog.openclaw.ai CNAME openclaw.github.io, DNS-only, TTL 300, with comment GitHub Pages: openclaw/catalog (model catalog). No other zone record or Worker route was changed.

Production/config: +38 lines; tests and smoke: +142; workflow: +103 net. This adds static hosting and deployment verification without request-time Worker code.

@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: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. 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: blocked before merge. Reviewed September 23, 2026, 7:22 AM ET / 11:22 UTC.

ClawSweeper review

What this changes

The branch adds Cloudflare static hosting for the model catalog, preview-first deployment, HTTP smoke checks, and recovery documentation.

Merge readiness

⛔ Blocked before merge - 3 items remain

This remains useful work absent from current main, with no concrete correctness finding. The member-authored PR should remain open while its explicitly pending production cutover is coordinated.

Priority: P2
Reviewed head: 14d46cd288971ec0f67e3047c020cfe6cac24458
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with useful validation and no concrete patch finding; pending cutover authorization does not reduce patch quality.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored PR is exempt from ordinary contributor proof. Its body reports real preview checks covering the changed static responses, but the review proxy prevented independent inspection; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from ordinary contributor proof. Its body reports real preview checks covering the changed static responses, but the review proxy prevented independent inspection; no stored-data contract changes.
Evidence reviewed 9 items Introduced change and safeguards: Reviewed the complete pinned nine-file delta. Asset staging copies only catalog JSON and header rules; deployment retains serialization, checks main before deployment, and verifies preview before production.
Current-main necessity and related work: Main remains at the pinned base and contains catalog generation and Pages configuration, without the proposed Cloudflare hosting files. The repository’s other merged PRs concern publishing repair, licensing, and the Node runtime; none replaces this hosting change. The releases API returned no releases.
Explicit rollout boundary: The complete supplied body, also confirmed by GitHub, reports local and public-preview smoke success but explicitly leaves production cutover and deployment credentials pending. The README requires recording DNS/Pages settings and retaining recovery capability. This is a proposed rollout, not an accepted availability tradeoff.
Findings None None.
Security None None.

How this fits together

The catalog repository publishes model metadata generated from OpenClaw’s plugin manifests. This change stages the committed JSON for Cloudflare and verifies its HTTP responses before serving it to OpenClaw clients.

flowchart TD
  A[Scheduled catalog generation] --> B[Committed catalog on main]
  B --> C[Allowlisted static assets]
  C --> D[Isolated Cloudflare preview]
  D --> E{HTTP checks pass and main unchanged?}
  E -->|Yes| F[Production catalog endpoint]
  E -->|No| G[Stop deployment]
  F --> H[OpenClaw model refresh]
Loading

Decision needed

Question Recommendation
Are the Cloudflare credentials and catalog.openclaw.ai cutover ready to activate this deployment workflow? Keep draft until cutover readiness is confirmed: Confirm deployment credentials, record DNS/Pages recovery settings, and authorize the first production transition before marking the PR ready.

Why: Repository source cannot establish account permissions, domain readiness, or operational authorization for the pending production transition.

Before merge

  • Resolve merge risk (P1) - Production credentials and the DNS/Pages cutover remain explicitly pending; activating the new deployment path before the hosting owner confirms readiness could interrupt catalog refreshes.
  • Complete next step (P2) - Obtain hosting-owner confirmation of deployment credentials and the DNS/Pages cutover and recovery arrangements before marking this PR ready.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Code and validation growth Runtime/config +38 lines; tests/smoke +142; workflows +103 net The growth implements static hosting and deployment verification without adding request-time Worker code.

Merge-risk options

Maintainer options:

  1. Complete the cutover prerequisites (recommended)
    Have the hosting owner confirm credentials and domain readiness while preserving the documented Pages recovery path.

Technical review

Best possible solution:

Preserve the existing catalog URL and bytes through a preview-verified cutover with recorded Pages recovery settings and forward-deployment rollback.

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

Not applicable: this proposes a hosting transition, and the report does not establish a failing current-main request.

Is this the best way to solve the issue?

Yes: native static assets, allowlisted staging, and preview verification provide a focused implementation; production readiness remains an operational decision.

AGENTS.md: not found in the target repository.

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

Labels

Label changes:

  • add P2: This is a bounded hosting improvement without evidence of an active production outage.
  • add merge-risk: 🚨 availability: The first production deployment changes the catalog hosting path while credentials and domain cutover readiness remain pending.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR is exempt from ordinary contributor proof. Its body reports real preview checks covering the changed static responses, but the review proxy prevented independent inspection; no stored-data contract changes.

Label justifications:

  • P2: This is a bounded hosting improvement without evidence of an active production outage.
  • merge-risk: 🚨 availability: The first production deployment changes the catalog hosting path while credentials and domain cutover readiness remain pending.
  • 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 member-authored PR is exempt from ordinary contributor proof. Its body reports real preview checks covering the changed static responses, but the review proxy prevented independent inspection; no stored-data contract changes.

Evidence

What I checked:

  • Introduced change and safeguards: Reviewed the complete pinned nine-file delta. Asset staging copies only catalog JSON and header rules; deployment retains serialization, checks main before deployment, and verifies preview before production. (.github/workflows/publish.yml:77, 14d46cd28897)
  • Current-main necessity and related work: Main remains at the pinned base and contains catalog generation and Pages configuration, without the proposed Cloudflare hosting files. The repository’s other merged PRs concern publishing repair, licensing, and the Node runtime; none replaces this hosting change. The releases API returned no releases. (.github/workflows/publish.yml:1, 534f18d6b19c)
  • Explicit rollout boundary: The complete supplied body, also confirmed by GitHub, reports local and public-preview smoke success but explicitly leaves production cutover and deployment credentials pending. The README requires recording DNS/Pages settings and retaining recovery capability. This is a proposed rollout, not an accepted availability tradeoff. (README.md:68, 14d46cd28897)
  • Security and compatibility boundary: Pull-request validation has read-only repository permission and disables persisted checkout credentials. Deployment secrets are confined to main-only deployment steps. The builder preserves catalog bytes, and the diff does not change the catalog schema, client settings, or provider authority. (.github/workflows/hosting-check.yml:13, 14d46cd28897)
  • Dependency contract signal: The workflow directly executes Wrangler 4.131.1 and parses its deployment receipt; the hosting configuration delegates HTTP responses to Cloudflare Static Assets. These establish the relevant workers-sdk dependency boundary. (.github/workflows/publish.yml:106, 14d46cd28897)
  • Pinned Wrangler receipt contract: Resolved the [email protected] tag to this dependency commit. Its deployment implementation emits type=deploy, worker_name, and targets, matching the proposed parser. (packages/deploy-helpers/src/deploy/deploy.ts:150, 00ae21fa8375)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. 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