Skip to content

fix: migrate schema $id base to live github pages registry#14

Open
OgeonX-Ai wants to merge 1 commit into
mainfrom
fix/id-migrate-github-pages
Open

fix: migrate schema $id base to live github pages registry#14
OgeonX-Ai wants to merge 1 commit into
mainfrom
fix/id-migrate-github-pages

Conversation

@OgeonX-Ai

Copy link
Copy Markdown
Contributor

Summary

Migrates every JSON-Schema $id (and $ref) off the phantom domain schemas.coding-autopilot.dev and onto the live, org-controlled GitHub Pages registry base that actually resolves:

https://coding-autopilot-system.github.io/cas-contracts/registry/${version}/${name}.schema.json

Verified live before migrating: GET .../registry/index.json → 200 and GET .../registry/v0.1/common.schema.json → 200. The served path layout (registry/<line>/<name>.schema.json) matches the new $id base exactly, so each $id now dereferences directly to the schema it identifies.

This is a rewrite-in-place: the v0.1 / v1.0 / v1.1 version lines and the immutable releases/ tree are unchanged — only the domain moves.

Changes

  • All 22 schema files under schemas/** (v0.1, v1.0, v1.1) — $id and internal $refs.
  • scripts/lib.mjs — the $id base used by schemaIdForExample for the example validator.
  • examples/v0.1|v1.0/artifact-manifest.json — the vendored uri fields that point at schema locations.
  • tests/contracts.test.mjs, tests/goal-contract.test.mjs — contract-test $id expectations.
  • docs/DISTRIBUTION.md — the canonical-namespace / custom-domain guidance is superseded now that $id == hosting URL.

The gitignored registry/ build artifacts were regenerated via npm run build:registry to confirm manifests carry the new content hashes; they are rebuilt by the Pages workflow at publish time, not committed.

Validation

  • npm ci && npm test35 passing
  • npm run validate:registry3 releases / 3 stable lines validated
  • npm run validate7 lifecycle examples validated

🤖 Generated with Claude Code

Rewrite every JSON-Schema $id and $ref off the phantom domain
schemas.coding-autopilot.dev to the live, org-controlled GitHub Pages
registry base that actually resolves 200:
https://coding-autopilot-system.github.io/cas-contracts/registry/

The version paths (v0.1/v1.0/v1.1 and the immutable releases/ tree) are
unchanged; only the domain moves, so each $id now dereferences directly to
the schema it identifies. Updates the scripts/lib.mjs $id base used by the
example validator, the vendored example artifact uris, the contract test
expectations, and docs/DISTRIBUTION.md (the canonical-namespace/custom-domain
guidance is superseded now that $id == hosting URL).

npm ci && npm test (35 pass), validate:registry (3 releases / 3 lines) and
validate (7 examples) all green after regenerating the registry manifests
with the new content hashes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants