Skip to content

21 โ€” Versioning & release policy

Status: ๐ŸŸก Partly built. Built and tested: the next version is worked out from the changelog, a weekly agent cuts it into a Release PR, and merging that PR tags and publishes it (draft first, so immutable releases work). It was green on paper while no release had ever been published; it turns green when v0.3.0 is out. What the lights mean

How SecuRAX is versioned and released โ€” the discipline a professional software product follows (the same shape as Mattermost, Grafana, etc.), sized to this project.

Semantic Versioning

We follow SemVer 2.0: MAJOR.MINOR.PATCH. - MAJOR โ€” incompatible/breaking changes to a public interface or behaviour. - MINOR โ€” new, backward-compatible capability. - PATCH โ€” backward-compatible bug/security fixes.

While in 0.x the product is in initial development: the surface may still change between minor versions, and only the latest 0.x is supported (SECURITY.md). We cut 1.0.0 when the standard interfaces in 17-ENTERPRISE-ARCHITECTURE.md are considered stable.

Single source of truth

The product version is the top-level VERSION file. It is surfaced at runtime by the gateway's GET /version endpoint (with the git commit, when built in CI). Long-lived components may also carry their own component version (e.g. the gateway's OpenAPI version, the Guiding Map PWA's service-worker cache tag) โ€” those are deliberate and independent of the product version.

Every visible version label must derive from VERSION โ€” never be typed by hand. The Command Center and the gateway read it at runtime; the Guiding Map's header badge is stamped from it by guiding-map/build.js (so after bumping VERSION, run cd guiding-map && node build.js). A CI test (test_version_badge_matches_VERSION_file) fails if the badge drifts or a hardcoded version returns. (The badge once read "v13.0.2" โ€” a legacy string from before the app joined the estate.)

Release number and build: two different things

The release (VERSION, e.g. 0.1.0) changes only when a release is cut, on purpose. The build changes with every commit, by itself. Every start (./securax up, so also go and update) runs governance/buildinfo.py write:

Where Shows
Life OS header badge v0.1.0+74 ยท 21006c7: release 0.1.0, 74 changes since it, commit 21006c7 (hover for the date)
Command Center, gateway GET /version (build) the same label
./securax version the same label
./securax doctor warns when the running estate is an older build than your code (pulled but not restarted)

The Life OS service worker is registered per build (sw.js?b=<commit>) and names its cache after it, so a new build installs a new worker, drops the old cache and reloads the page once, with no cache version to bump by hand.

Getting each build onto the laptop without asking: the nightly-update routine (3:15 am, installed by ./securax go with the other schedules) runs ./securax update --auto. It acts only when main has new commits and the code folder has no local edits; it backs up, updates, checks health, rolls back by itself on failure, and sends the outcome to your phone. Turn it off by setting "enabled": false for nightly-update in routines/jobs.json.

Why the old checks missed "v0.1.0 never changes": they proved the badge matched VERSION (consistency), not that it showed which code was running (freshness). A label that is consistent but carries no build identity passes every consistency test. The fix is a test of the property people rely on: governance/tests/test_buildinfo.py makes two commits in a scratch repository and fails unless the label changes between them without touching VERSION, and it fails if a hand-bumped cache version returns to sw.js.

Conventional Commits

Commit messages use Conventional Commits: type(scope): summary โ€” feat, fix, docs, refactor, test, ci, deps, chore. feat โ†’ a MINOR bump, fix โ†’ a PATCH bump, and a ! or BREAKING CHANGE: footer โ†’ a MAJOR bump. This makes the changelog and the next version mechanical rather than a judgement call.

Changelog

Every user-visible change is recorded in CHANGELOG.md under [Unreleased] as part of its PR, in Keep a Changelog format (Added / Changed / Deprecated / Removed / Fixed / Security).

Cutting a release

Small and often, cut by an agent. Well-run open projects publish small releases every week or two, each with its own notes (Open WebUI shipped 0.12.0 to 0.12.3 in two weeks). SecuRAX had the whole pipeline but had never published a release: the steps below were left to a person, and nobody did them, so 135 changes piled up under [Unreleased] and the stable channel had nothing to follow. Now an agent does the steps, and a person only decides.

Step Who How
Work out the next version agent ./securax release reads [Unreleased]: only Fixed or Security entries make a patch (0.3.0 to 0.3.1), anything else a minor (0.3.1 to 0.4.0). A line marked BREAKING makes a major from 1.0 on
Cut it agent every Monday, when main's nightly sandbox is green and the last release is at least a week old, the release-cut workflow moves [Unreleased] under ## [X.Y.Z] - date, bumps VERSION, refreshes every label that shows it, and opens a Release vX.Y.Z PR whose text is the notes. By hand: ./securax release cut, then a PR
Decide to publish you merge the Release PR (doc 102 keeps publishing for the owner)
Tag and publish agent release-tag tags the merge commit vX.Y.Z (a lightweight tag on the commit GitHub signed, so it shows as Verified) and runs the release workflow

The release workflow (.github/workflows/release.yml) runs the full test suite again, builds the gateway image and its SBOM, and publishes a GitHub Release whose notes are that version's CHANGELOG.md section. It attaches: - the source as .tar.gz and .zip - install.sh and install.ps1, with the repository's name written in - SHA256SUMS, which install.sh --offline checks - the SBOM - a signed build provenance for every file (gh attestation verify FILE --repo OWNER/REPO)

It creates the release as a draft, attaches every file, and only then publishes it. That is the order GitHub's immutable releases need: once that repository setting is on, a published release and its tag cannot be changed or moved, and GitHub adds its own signed release attestation.

Two settings only you can turn on, once (Settings > Actions > General, and Settings > General > Releases): 1. "Allow GitHub Actions to create and approve pull requests", so the Monday agent can open the Release PR. 2. "Enable release immutability".

Doc 75 covers installing and the channels.

Tags are immutable; a mistake is fixed by a new patch release, never by moving a tag.

Supported versions & deprecation

See SECURITY.md for which versions get security fixes. A feature slated for removal is first marked Deprecated in the changelog for at least one minor release before it is removed in a subsequent (minor while 0.x, major once 1.0) release.