mjdi

Search documentation

Search the mjdi v0.10.0 documentation

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 by docs/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

LocationWhat must agree
CHANGELOG.mda ## <version> — <title> (<released>) section heading
website/package.jsonversion
website/src/lib/docs-versions.tsthe DOC_VERSIONS list (versions, statuses, dates, titles)
website/src/lib/docs-server.tsa NAV_BY_VERSION mapping per doc version
docs/index.mdthe release line (**mjdi <version>**) and compiler build
README.mdthe Status: v<version> line
llms.txt / llms-full.txtthe versioned-URL fragment /docs/<version>/
diagnostics/catalog.jsonthe 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

  1. Edit release/manifest.json: bump version, set previous_version, title, released, add the new doc_versions entry, and update the compiler matrix if the target changed.
  2. Run python3 scripts/release_update_docs.py. It rewrites the mechanical, derivable locations (website package version, DOC_VERSIONS demotion and insertion, the nav mapping, the docs index release line, the README status line) and inserts a CHANGELOG heading stub.
  3. Write the CHANGELOG section body and the README release summary by hand — every entry must describe implemented, tested behavior.
  4. Regenerate llms.txt / llms-full.txt (they embed the versioned URL).
  5. Run python3 scripts/validate_metadata.py — it must pass before commit.
  6. Tag v<version> to publish; the release workflow verifies tag == 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.