mjdi docsv0.10.0latest
Release metadata and versioning (P0-01)
mjdi has one canonical release manifest: release/manifest.json.
Source: mjdi/docs/release-metadata.md
mjdi has one canonical release manifest: release/manifest.json.
Every other version declaration in the repository either derives from it or is
validated against it, so release metadata cannot drift silently.
What the manifest holds
version/previous_version/title/released— the release identity.target_compiler— the compiler mjdi is developed and verified against (name, version, exact build), mirrored bydocs/compiler-compatibility.md.doc_versions— every documentation version the website serves, newest first, with its status (latest/archived), release date, and title. Historical versions are never rewritten or dropped.compiler_matrix— the evidence tiers per platform (P0-02).
The synced locations
| Location | What must agree |
|---|---|
CHANGELOG.md | a ## <version> — <title> (<released>) section heading |
website/package.json | version |
website/src/lib/docs-versions.ts | the DOC_VERSIONS list (versions, statuses, dates, titles) |
website/src/lib/docs-server.ts | a NAV_BY_VERSION mapping per doc version |
docs/index.md | the release line (**mjdi <version>**) and compiler build |
README.md | the Status: v<version> line |
llms.txt / llms-full.txt | the versioned-URL fragment /docs/<version>/ |
diagnostics/catalog.json | the mjdi.diagnostics/1 schema marker |
scripts/validate_metadata.py checks the whole set in one pass and exits
non-zero on any drift; CI runs it on every push (the metadata job), and the
release workflow runs it a second time with --tag v<x.y.z> so a release
cannot publish under a version the manifest does not declare.
Intentional mismatches are controlled: the archived documentation snapshots
under website/content/docs/<old-version>/ are historical and are never
rewritten; the validator does not compare them to the current version.
The release-version update workflow
- Edit
release/manifest.json: bumpversion, setprevious_version,title,released, add the newdoc_versionsentry, and update the compiler matrix if the target changed. - Run
python3 scripts/release_update_docs.py. It rewrites the mechanical, derivable locations (website package version,DOC_VERSIONSdemotion and insertion, the nav mapping, the docs index release line, the README status line) and inserts a CHANGELOG heading stub. - Write the CHANGELOG section body and the README release summary by hand — every entry must describe implemented, tested behavior.
- Regenerate
llms.txt/llms-full.txt(they embed the versioned URL). - Run
python3 scripts/validate_metadata.py— it must pass before commit. - Tag
v<version>to publish; the release workflow verifiestag == v<manifest version>before packaging.
Why a manifest instead of a single version constant
The repository has multiple independently-consumed artifacts (a Python
ecosystem file for the website, TypeScript version lists for the docs
router, a changelog, LLM index files). The manifest makes the dependency
explicit and machine-checked instead of relying on humans remembering ten
files: the validator's unit tests (tests/python/test_metadata.py) prove
that an intentional mismatch is detected, including a perturbed copy of the
manifest in a temporary tree.