Repository navigation
fix(hosting): serve catalog with Cloudflare static assets - #4
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: blocked before merge. Reviewed September 23, 2026, 7:22 AM ET / 11:22 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Decision needed
Why: Repository source cannot establish account permissions, domain readiness, or operational authorization for the pending production transition. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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.aiCNAME was replaced by the native Custom Domain foropenclaw-catalogafter 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-256c2c61a49d1be08b31c41f3a7a4290cfa2f2a1562c81981e69742b99d4967ea57), 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-client403 / error 1010; the identical request then returned200with 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 wascatalog.openclaw.ai CNAME openclaw.github.io, DNS-only, TTL 300, with commentGitHub 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.