Skip to content

feat(catalog): add a direct v1 catalog alias - #5

Merged
vincentkoc merged 1 commit into
mainfrom
feat/catalog-v1-default-alias
Sep 23, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
feat/catalog-v1-default-alias

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Add /models/catalog.json as a direct, byte-identical alias of /models/v1/catalog.json. The build copies both assets from the same source bytes, so the alias stays in v1 format and refreshes with the versioned catalog.

Apply the same exact-path cache/CORS headers and run the existing HTTP smoke checks against both URLs. Keep repository-only assets excluded, and document the alias contract.

Validation:

  • node --test scripts/hosting.test.mjs — 4 tests passed, including refreshed-byte staging and independent stale-content, header, validator, and redirect failures at either URL.
  • node scripts/build.mjs — both staged assets match the 2,468,498-byte source exactly.
  • Node syntax checks for the three scripts and git diff --check passed.

@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 P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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, 8:52 AM ET / 12:52 UTC.

ClawSweeper review

What this changes

Adds a direct v1 catalog alias with identical bytes, cache and CORS headers, documentation, and HTTP smoke coverage.

Merge readiness

✅ Ready for maintainer review

The alias remains absent from current main, and this focused PR has no identified blocking defect. Member-authored work also remains outside automatic cleanup.

Priority: P3
Reviewed head: 6a1c423b66b92a0199565862d9c3227f78d08775

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused additive implementation with relevant regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER author is exempt from the external-contributor proof gate. Reported build validation covers asset staging, while HTTP tests use a fixture server and do not establish deployed Cloudflare behavior; no authority or stored-data contract changes require additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER author is exempt from the external-contributor proof gate. Reported build validation covers asset staging, while HTTP tests use a fixture server and do not establish deployed Cloudflare behavior; no authority or stored-data contract changes require additional proof.
Evidence reviewed 6 items Introduced implementation: The pinned delta adds one asset write using the same catalog buffer; the versioned asset remains unchanged. Both exact URL paths receive identical response headers.
Still necessary on main: Main stages only models/v1/catalog.json and its header policy; the requested direct alias is absent. The live main API returned the same pinned main SHA.
Regression coverage and validation boundary: Tests cover identical headers, refreshed bytes at both paths, retained output after invalid input, and independent stale-content, CORS, validator, and redirect failures. The body reports four passing tests and a successful real-catalog build; these were not rerun because this review prohibits artifact-producing execution. git diff --check passed.
Findings None None.
Security None None.

How this fits together

The catalog build stages generated model metadata for Cloudflare Static Assets. OpenClaw clients fetch the published JSON to refresh model information.

flowchart LR
  A[Generated v1 catalog] --> B[Static asset build]
  B --> C[Versioned catalog URL]
  B --> D[Direct catalog alias]
  E[Cache and CORS headers] --> C
  E --> D
  C --> F[Client model refresh]
  D --> F
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

None.

Technical review

Best possible solution:

Keep the alias permanently tied to v1 bytes through the existing asset build and shared deployment checks.

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

Not applicable: this adds a URL alias rather than repairing a reported failure; source inspection confirms main does not stage that alias.

Is this the best way to solve the issue?

Yes: writing the same buffer to both asset paths is a narrow implementation that avoids redirects, request-time code, and a second catalog source.

AGENTS.md: not found in the target repository.

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

Labels

Label changes:

  • add P3: This additive URL convenience preserves the existing catalog endpoint and format.
  • 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 author is exempt from the external-contributor proof gate. Reported build validation covers asset staging, while HTTP tests use a fixture server and do not establish deployed Cloudflare behavior; no authority or stored-data contract changes require additional proof.

Label justifications:

  • P3: This additive URL convenience preserves the existing catalog endpoint and format.
  • 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 author is exempt from the external-contributor proof gate. Reported build validation covers asset staging, while HTTP tests use a fixture server and do not establish deployed Cloudflare behavior; no authority or stored-data contract changes require additional proof.

Evidence

What I checked:

  • Introduced implementation: The pinned delta adds one asset write using the same catalog buffer; the versioned asset remains unchanged. Both exact URL paths receive identical response headers. (scripts/build.mjs:10, 6a1c423b66b9)
  • Still necessary on main: Main stages only models/v1/catalog.json and its header policy; the requested direct alias is absent. The live main API returned the same pinned main SHA. (scripts/build.mjs:9, dd268235eb8a)
  • Regression coverage and validation boundary: Tests cover identical headers, refreshed bytes at both paths, retained output after invalid input, and independent stale-content, CORS, validator, and redirect failures. The body reports four passing tests and a successful real-catalog build; these were not rerun because this review prohibits artifact-producing execution. git diff --check passed. (scripts/hosting.test.mjs:16, 6a1c423b66b9)
  • Deployment integration: The existing publish workflow builds once, smoke-checks the isolated preview before production deployment, and checks production afterward. Extending the shared smoke script therefore covers both URLs in the existing deployment sequence. (.github/workflows/publish.yml, 6a1c423b66b9)
  • Merged hosting history: GitHub verifies fix(hosting): serve catalog with Cloudflare static assets #4 as merged at 704c332. Current-main blame ties the build to that commit; its raw parent is 534f18d, whose tree lacks scripts/build.mjs. (scripts/build.mjs:9, 704c33227c08)
  • Related work and release check: The repository-wide REST listing returned five PRs and no separate issue or replacement for this alias. The merged hosting PR supplies the underlying infrastructure, not the alias. No GitHub releases or local tags were listed.

Likely related people:

  • Vincent Koc: Raw commit 704c332 adds scripts/build.mjs:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 704c33227c08; files: scripts/build.mjs)

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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 23, 2026 14:02
@vincentkoc
vincentkoc merged commit b2bdaa5 into main Sep 23, 2026
9 checks passed
@vincentkoc
vincentkoc deleted the feat/catalog-v1-default-alias 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

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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