# Release procedure This repository publishes source-only CalVer distributions. The authoritative remote is `origin`, `ssh://git@forge.maximumdirect.net:22222/eric/schemas.git`; the release branch is `main`. Publication requires an explicit release request. ReleaseKit adoption is deferred. ## Prepare Select a fresh `YYYY.MM.MICRO` tag using the UTC publication year and month, with a counter starting at zero each month. Check existing authoritative tags; `2026.11.0` below illustrates the initial release. Select the actual unused version when preparing each subsequent publication. Update `VERSION` and `docs/releases/.md`. Record the exact UTC publication date in that note during actual release preparation. Identify changed schema versions and compatibility/migration information. Unchanged schema directories, IDs, and markers stay unchanged. A schema change gets a new independent version and inventory record under [compatibility](compatibility.md). Keep all published version directories and records. Prepare Go 1.27.4 and `go mod download`. Review and commit the intended source. Run `GOTOOLCHAIN=go1.27.4 sh scripts/check.sh` for that exact candidate. The command validates locally and from an unpacked committed source archive. Prepare dependencies separately; normal tests are offline. ## Publication guards Before creating a tag: 1. Confirm a clean worktree and index on `main`, with HEAD unchanged since validation, and a version-matched release note. 2. Fetch authoritative branch and tag state: `git fetch origin main --tags`. 3. Confirm `git merge-base --is-ancestor origin/main HEAD` succeeds. 4. Confirm the chosen tag is absent locally and on origin using `git tag --list 2026.11.0` and `git ls-remote --tags origin refs/tags/2026.11.0`. Stop if either lists it. 5. Run `GOTOOLCHAIN=go1.27.4 go run ./cmd/check-published -remote origin`. It reads authoritative CalVer tags, verifies fetched tag identities, and compares their inventories and every retained directory file against HEAD. Additions outside those directories are allowed. The initial release has no published baseline. This history/network check is separate from offline archive checks. For the example version, after every guard passes: ```sh git tag -a 2026.11.0 -F docs/releases/2026.11.0.md git push --atomic origin HEAD:refs/heads/main refs/tags/2026.11.0 ``` Publish only those refs. Publication completes when the push succeeds; CI, consumer installs, and live website tests are not completion gates. On an ambiguous result inspect the exact remote branch and tag before retrying. Published tags and contents are immutable; corrections use a new version. ## Source distribution and hosting The forge supplies the immutable archive, for example after publication: `https://forge.maximumdirect.net/eric/schemas/archive/2026.11.0.tar.gz`. It includes the catalog, complete versioned contracts with semantics/examples, license/attribution, and optional pinned Go tools and fixtures. A local preview of the validated committed candidate is: ```sh mkdir -p dist git archive --format=tar.gz --prefix=schemas-2026.11.0/ \ --output=dist/schemas-2026.11.0.tar.gz HEAD ``` Hosting serves raw repository paths from `main` without a release selector. For example, glossary's canonical ID and hosted path are `https://schemas.maximumdirect.net/glossary/v0.1.0/schema.json`. Candidates may be visible before publication. Tags and their catalogs establish release status. Local static-serving tests verify path/byte correspondence; optional inspection of live URLs after publication verifies delivery. Hosting provisioning and backend changes remain separately maintained.