Skip to content

fix(registry): restore canonical schema identity#15

Merged
OgeonX-Ai merged 1 commit into
mainfrom
fix/canonical-schema-identity-v1.1.1
Jul 5, 2026
Merged

fix(registry): restore canonical schema identity#15
OgeonX-Ai merged 1 commit into
mainfrom
fix/canonical-schema-identity-v1.1.1

Conversation

@OgeonX-Ai

Copy link
Copy Markdown
Contributor

Summary

  • restore canonical schema $id values to https://schemas.coding-autopilot.dev/ across all published schema lines
  • restore example/test/library references to canonical schema identity while keeping GitHub Pages registry/ URLs as the live distribution endpoint
  • add a regression test that proves schema identity stays canonical independent from the hosting URL and prep the changelog for v1.1.1

Root cause

A prior fix migrated schema identity from the stable canonical namespace to the GitHub Pages hosting URL. That coupled schema identity to distribution location and regressed the public contract.

Validation

  • npm test
  • npm run validate
  • npm run build:registry -- --all
  • npm run validate:registry -- --registry registry

@OgeonX-Ai OgeonX-Ai added the compatibility-reviewed Intentional review-required schema changes accepted label Jul 5, 2026
@OgeonX-Ai OgeonX-Ai merged commit 0b35b98 into main Jul 5, 2026
6 of 7 checks passed
@OgeonX-Ai OgeonX-Ai deleted the fix/canonical-schema-identity-v1.1.1 branch July 5, 2026 07:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7e7a860085

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://coding-autopilot-system.github.io/cas-contracts/registry/v1.0/prompt-envelope.schema.json",
"$id": "https://schemas.coding-autopilot.dev/v1.0/prompt-envelope.schema.json",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep hosted schemas dereferenceable from Pages

When a consumer fetches this schema from the documented live Pages URL, the relative $ref below resolves against this new canonical $id, so common.schema.json#... becomes https://schemas.coding-autopilot.dev/v1.0/common.schema.json#... instead of the Pages registry copy. docs/DISTRIBUTION.md says that canonical domain is not activated yet and consumers should use the Pages registry as the fetch location, so validators that load a single hosted schema and resolve remote refs will fail to fetch shared definitions unless they pre-bundle every schema by canonical id.

Useful? React with 👍 / 👎.

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

Labels

compatibility-reviewed Intentional review-required schema changes accepted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants