Releases#

SuperGLM uses deliberate 0.x.y releases. Feature and fix pull requests never touch the version files (pyproject.toml’s version, superglm.__version__, uv.lock’s own pin) and never carry version-record commits. Each pull request declares an impact, and that declaration is advice to the next release, never a version change.

The authoritative machine-operational policy is .codex/agents/release_manager.toml. It defines classification, evidence, authority, failure recovery, and publication checks. This page explains how to invoke that policy; it does not replace it.

Impact summary#

  • release:none: no independent packaged-runtime or public-contract impact.

  • release:patch: a compatible and limited fix, stability, performance, memory, packaging, or implementation improvement.

  • release:minor: a material capability, behavior, numerical semantics, compatibility, dependency-floor, or migration change.

The code diff is authoritative. Impact declarations and labels are evidence, and ambiguous materiality blocks preparation for a human decision. None of the three changes any version field: the exact version is chosen at release time.

One release, one act#

A release is one deliberate act after merging: a bump-only pull request whose single commit’s message is the consolidated changelog since the previous release, rebase-merged under the master linear-history rule, then the tag vX.Y.Z bound to that rebased bump commit, then release.yml publishing through PyPI Trusted Publishing. The version file, the tag, and PyPI move together and can never disagree. Tags remain release-only, and a merge never authorizes a tag or publication.

The one-act shape means the release assessor always works from merged history: the impact of everything since the last published tag is reconstructed from the release-tag..master-head diff, taking the highest declared-and-verified impact. The previous convention argued the opposite — that a catch-up release “is the recovery, not an alternative route”, precisely because reconstructing materiality from merged history costs the reviewer the original diff. That position is reversed here, deliberately: the reconstruction cost is accepted in exchange for never minting phantom versions on master, and it is mitigated by the advisory impact declaration every pull request still makes at review time, when the diff is in front of the reviewer.

Version history notes#

0.16.2 was never released. It was prepared on the branch that became PR #174 and merged to master, but no tag was pushed, so it existed only as an unpublished candidate. PR #176 then declared release:minor and bumped master to 0.17.0, which subsumes it: a minor release carries everything the skipped patch would have. The gap between 0.16.1 on PyPI and 0.17.0 on master is therefore expected, and 0.16.2 should never be published.

This is the ordinary consequence of merging without tagging. A merged release-bearing pull request leaves master carrying a version that is not on PyPI, and the next release-bearing pull request either waits for it to publish or, as here, supersedes it.

0.19.0 was prepared as a standalone release pull request, PR #240, which is not the shape this page describes. PR #235 added OrderedCategorical(specials=...), and PR #238 changed how a declared level’s identity is matched against the spelling in the column. Both are material, and neither declared an impact or carried a version bump, so master reached three publishable changes while still reading 0.18.0.

0.22.0 through 0.24.0 were recorded on master under the former per-PR convention and never published. They remain as changelog commits — the version history their messages carry is real, but no tag or PyPI release exists for any of them. The next release consolidates everything since the last published tag; the numbers themselves are skipped, exactly as 0.16.2 was.

Invoke the specialist#

The release specialist is a spawned Codex subagent. It does not replace the current agent and never starts automatically.

One instruction that names an exact version and says to release it, using the word “release” (“release 0.40”, “release 0.40.1”), authorizes all three steps below for exactly that version, in order. Asking only to assess, prepare or draft a release, or “ship”, “deploy” or “finish” with a version, does not qualify. A version given as 0.x means 0.x.0. Each step still runs its own checks: the assessment must recommend the named version and preparation uses its ID; the root agent rebase-merges the bump-only pull request only once it is green, origin/master is still at the assessed head, the Claude and Codex reviews have completed on its head commit (after a push, the root agent asks Codex again with “@codex review”; a Codex review with no findings counts as completed when its summary comment records that commit), every review thread on it is resolved and every finding without a thread has its reply; and the tag, Release and PyPI version must not already exist. If master has moved, the bump-only pull request is closed and the run restarts from the assessment under the same instruction. The three separate instructions remain for a release taken one step at a time. An instruction to release that names no version (“release it”, “cut a release”) authorizes nothing.

Assessment of the unreleased changes on master is read-only:

Use the release_manager agent to assess the unreleased changes as a release candidate.

The assessment is bound to the latest published release and the exact origin/master head SHA; its authoritative diff is release-tag to master head.

The assessment also runs the release differential against that release, through benchboard: benchmarks/release_differential.py release vX.Y.Z --out <dir>. It fits one seeded corpus (every family, link, term kind and route of SuperGLM, and every SuperLSS family) on the release and on the head, plus cases that reproduce every break found across earlier releases. A fit the release converged to a sensible answer that the head refuses, leaves unconverged, or fits worse beyond the harness’s tolerances is a regression. The comparison also counts, by error, the cases the release itself errored on or timed out, which it could not compare. A case both sides refuse is a standing decision, like the history cases refused by design. When the head runs a case the release could not, the comparison lists those cases under “K of them ran on the candidate”, flagged or not: either the head fits what the release refused, or the harness did not run on that release, and a large count is the second until shown otherwise. Either way they are explained before the run is read as clean. A finished comparison exits 0 only when nothing is flagged and no such case exists, and 1 otherwise. A traceback also exits 1, so the assessment reads the printed lines whatever the exit status. A regression blocks the release until a fix restores the old result without losing what the change bought; otherwise it goes to the owner as a one-screen decision. tests/test_userspace_040.py holds the harness’s compact subset to v0.40.0’s outcomes in every full suite, and models saved by earlier releases to loading and predicting as they did.

After approving the exact version and that SHA-bound assessment (under the single instruction, the assessment it produced):

Use the release_manager agent to prepare the approved 0.x.y.

The specialist updates versions through scripts/bump_version.py, refreshes uv.lock, writes the single bump commit whose message is the consolidated changelog, and opens the bump-only pull request. It merges nothing and holds no tag or publication authority.

The bump-only pull request is rebase-merged only once it is green, origin/master is still at the assessed head, the Claude and Codex reviews have completed on its head commit (after a push, ask Codex again with “@codex review”), every review thread on it is resolved and every finding without a thread has its reply. If master has moved, the pull request is closed and the release starts again from a fresh assessment, which needs its own approval (under the single instruction above, the run restarts from the assessment under the same instruction). After that merge, publication requires a new exact instruction, or the single instruction above:

Use the release_manager agent to publish v0.x.y and monitor PyPI deployment.

The specialist pushes the approved annotated tag at the rebased bump commit on master. The existing release workflow builds and verifies the wheel and sdist, publishes them through PyPI Trusted Publishing, then creates the GitHub Release. Direct uploads, reused versions, moved tags, and inferred publication authority are forbidden.

Failure handling#

An assessment expires as soon as origin/master moves. Ambiguous impact, partial publication, uncertain provenance, or an existing tag blocks automation and requires a human decision. Published corrections use a new patch version.