Repository navigation
feat(catalog): add a direct v1 catalog alias - #5
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, 8:52 AM ET / 12:52 UTC. ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Add
/models/catalog.jsonas 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.git diff --checkpassed.