Files
schemas/docs/release.md

3.8 KiB

Release procedure

This is a source-only schema distribution. The authoritative remote is origin at ssh://git@forge.maximumdirect.net:22222/eric/schemas.git, branch main. Publication requires an explicit release request. Implementing the repository does not publish the initial candidate.

Prepare the candidate

  1. Select a fresh Semantic Versioning tag under the compatibility rules.
  2. Update VERSION, each schema's raw-tag $id, release-specific README examples, and references between schemas to that version. Contract markers change only when their major domain contract changes.
  3. Write docs/releases/<version>.md with the changes, compatibility assessment, and migration instructions where needed. Include links to COPYRIGHT, LICENSE, and ATTRIBUTION at the intended immutable tag. The initial candidate note is v1.0.0.
  4. Prepare Go 1.27.4 and go mod download. Commit the intended source with a short descriptive message. Review the diff for unintended data or credentials.

Run sh scripts/check.sh on that committed candidate. It performs the same checks as CI, including offline compilation and validation from the unpacked tagged-source archive format. Validation dependencies are prepared separately; tests need no network, consumer applications, provider credentials, or LLM calls.

Distribution

The forge's immutable tagged source archive is the distribution:

https://forge.maximumdirect.net/eric/schemas/archive/v1.0.0.tar.gz

It contains the complete schema directory, semantic documentation, examples, license and attribution, release note, and pinned optional Go harness and fixtures. A consumer can bundle the schemas and semantic documents, register each $id against its local file, and resolve all references offline. The harness is not a runtime dependency. No binaries or separate registry are published.

To inspect the candidate distribution locally before publication:

mkdir -p dist
git archive --format=tar.gz --prefix=schemas-v1.0.0/ \
  --output=dist/schemas-v1.0.0.tar.gz HEAD

Individual schema/editor URLs use the raw tag route, for example:

https://forge.maximumdirect.net/eric/schemas/raw/tag/v1.0.0/schemas/glossary.schema.json

The forge's raw-commit route was checked against the initial repository revision; the public raw-tag JSON route was checked against a released sibling JSON document. The exact URLs above become available only after this tag is published. Optional post-publication inspection can use curl --fail on them and decode the response as JSON, not an HTML forge page. It does not delay source-release completion.

Publish when requested

Start from a clean main whose HEAD is the validated candidate. Fetch origin and verify that advancing origin/main to HEAD is fast-forward. Check that the selected tag is absent locally and on origin. Publish only the intended branch and fresh annotated tag. For the initial candidate:

git fetch origin main --tags
git merge-base --is-ancestor origin/main HEAD
git status --short
git tag --list v1.0.0
git ls-remote --tags origin refs/tags/v1.0.0
git tag -a v1.0.0 -F docs/releases/v1.0.0.md
git push --atomic origin HEAD:refs/heads/main refs/tags/v1.0.0

The status and tag checks must be empty before creating the tag. Stop if the branch is not main, the candidate changed, the worktree is dirty, the version is already used, or validation failed. Publication completes when the push succeeds; do not wait for CI. The forge supplies the tagged source archive.

Published tags and contents are immutable. A defect is corrected in a new version. On an ambiguous push result, inspect the exact upstream branch and tag before reporting success or retrying. Preserve already-published tags. Routine releases do not require installed-consumer checks or a new external approval gate.