Rename document format from Codex to CDX#117
Merged
Merged
Conversation
Track the upstream spec rename of the document format from "Codex" to
"CDX" (Content-addressed Document eXchange). The spec PR is merged; this
makes cdx-core consistent with the new name across functional
identifiers, internal code symbols, and documentation.
Functional / wire-format identifiers:
- Manifest spec-version key: JSON "codex" -> "cdx". The Manifest struct
field is renamed `codex` -> `cdx`; it carries no serde rename, so the
serialized key follows the field name and manifests round-trip on the
new key.
- MIME type: application/vnd.codex+json -> application/vnd.cdx+json.
- Built-in extension IDs: codex.{academic,semantic,forms,security,
collaboration,presentation,phantoms,legal} -> cdx.<same>, including the
has_extension/get_extension matchers.
Internal Rust symbols:
- Lowercase field/variable identifiers codex -> cdx (e.g. the swift
bridge `codex_version` -> `cdx_version`).
Docs / metadata:
- Brand prose Codex -> CDX across README, CHANGELOG, docs, code comments,
Cargo.toml descriptions/keywords.
- LICENSE copyright lines: "Codex Document Format Contributors" ->
"CDX Document Format Contributors".
Preserved unchanged: the upstream spec repo path `codex-file-format-spec`
(GitHub URLs and the spec submodule), and the unrelated test fixture
agent name "codex-tool/2.0".
Verified: cargo build, cargo test (1082 passed, incl. manifest
round-trip), and cargo fmt all pass; cdx-swift-bridge builds. clippy
-D warnings has pre-existing failures on main unrelated to this change
(identical diagnostics before and after the rename).
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tracks the upstream
codex-file-format-specrename Codex → CDX ("Content-addressed Document eXchange"). Full-scope rename across functional identifiers, Rust code symbols, docs, and LICENSE. 68 files, +204/−204 (symmetric).Changes
Manifest.codex→Manifest.cdx(serde-derived wire key is now"cdx"; manifest round-trip tests pass)application/vnd.codex*→application/vnd.cdx*codex.*→cdx.*cdx-swift-bridge:codex_version→cdx_versionProtected (intentionally unchanged)
codex-file-format-spec— the upstream spec repo path (incl. thespec/submodule and.gitmodulesURL); to be updated separately if/when that repo is renamedcodex-tool/2.0— a fictional third-party authoring-tool agent name in a collaboration test fixture (not the format brand)Test plan
cargo build --workspace --all-featurescargo test --workspace --all-features— 1082 passed, 0 failed (incl. manifest round-trip)cargo fmt --all -- --checkcargo clippy --workspace --all-features -- -D warnings(the CI gate) — cleancdx-swift-bridge(workspace-excluded crate) builds + tests cleanNote: a stricter
clippy --all-targetssurfaces 41 lints in test/bench code — present identically onmain, unrelated to this rename, and outside the CI gate.