Release process
Loom follows SemVer: the server, the Python and TypeScript SDKs, the web app, the root skills (loom, loom-memory, loom-code, loom-status), the Cursor plugin…
Loom follows SemVer: the server, the Python and TypeScript SDKs, the web app, the root skills (loom, loom-memory, loom-code, loom-status), the Cursor plugin and the Agent Plugins package that ship them, and the Gemini CLI extension share one version X.Y.Z. The Claude Code and Codex plugins share their own version, bumped on a behaviour change to any file the plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json): installed clients pick up a hook change only through a new plugin version. MIN_SERVER_VERSION in the plugins’ lib/server-version.mjs names the oldest server their hooks support: when the server’s GET /v1/health reports an older version, SessionStart prints one loom: line asking for a server upgrade, and says nothing when the version cannot be read. It rises with a release (cutting the release, step 2).
Where the version lives
.venv/bin/python scripts/release/prepare.py bump X.Y.Z bumps each of these in the release commit, except the Rust SDK and the Claude Code and Codex plugins, and writes the release notes:
| Component | Files |
|---|---|
| Server | server/__init__.py (__version__), pyproject.toml, uv.lock and server.json |
| Python SDK | sdk/python/pyproject.toml and sdk/python/loom/_version.py |
| TypeScript SDK | sdk/typescript/package.json, sdk/typescript/package-lock.json, sdk/typescript/src/version.ts |
| Web app | frontend/package.json and frontend/package-lock.json |
| Root skills | .claude-plugin/plugin.json, .cursor-plugin/plugin.json, plugin.json and the metadata.version of skills/loom/SKILL.md, skills/loom-memory/SKILL.md, skills/loom-code/SKILL.md and skills/loom-status/SKILL.md; the last three also state it under the title |
| Gemini CLI extension | gemini-extension.json |
| Helm chart | deploy/helm/loom/Chart.yaml: appVersion (the default tag of the server and extractor images, and the chart’s app.kubernetes.io/version label) and the chart’s own version: a minor for a major or minor release, a patch for a patch release |
| Rust SDK | sdk/rust/Cargo.toml (its own version; bump it by hand when sdk/rust/ has changed since the last published crate, and check it with scripts/release/rust_sdk.py check-version) |
| Claude Code and Codex plugins | integrations/claude-code-plugin/.claude-plugin/plugin.json, integrations/codex-plugin/.codex-plugin/plugin.json (their own version; bump it on a behaviour change to any file the plugin ships: hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) |
The server reads its version from server/__init__.py only; the OpenAPI document, MCP serverInfo, loom report and GET /v1/health (checked by tests/unit/test_health_problems.py) report it. These checks keep the numbers consistent:
| Check | Asserts |
|---|---|
tests/unit/test_release_version.py |
every surface reports the server’s version, and server.json keeps the registry listing’s shape |
npm run check:version (TypeScript SDK) |
its four version sources agree |
tests/unit/test_codex_plugin.py |
both plugin manifests carry one version, and MIN_SERVER_VERSION is no newer than the server’s version |
tests/unit/test_release_prepare.py |
every file prepare.py bumps names the server’s version |
prepare.py check, check-tag, check-chart |
the release’s version job (step 1): one version everywhere, the candidate order, the chart moved |
Two plugin pull requests that bump to the same number merge without a conflict, and the second ships nothing to clients the first already updated. Check the plugin version on main before bumping.
Branches and tags
Use prep/release-X.Y.Z for the preparation pull request unless the release owner specifies a
branch name. Keep all three version components in the branch name. The pull request’s base depends on the release:
| Purpose | Branch or tag | Starts from | Pull request base |
|---|---|---|---|
| Major or minor release preparation | prep/release-X.Y.Z |
origin/main |
main |
| Patch release preparation | prep/release-X.Y.Z |
origin/release/X.Y |
release/X.Y |
Backport of a fix merged on main |
fix/X.Y-<description> |
origin/release/X.Y |
release/X.Y |
| Maintained release line | release/X.Y |
Final vX.Y.0 commit |
Receives backport and patch preparation pull requests |
| Release candidate tag | vX.Y.Z-rc.N |
Release pull request’s merge commit, or a subsequent candidate fix | — |
| Final release tag | vX.Y.Z |
Release pull request’s merge commit, or the highest candidate’s soaked commit | — |
Reserve release/ for maintained release/X.Y lines. Check the repository’s branch rules before
creating a preparation branch. A refused update requires resolution under those rules; renaming a
branch or changing its target does not resolve the refusal.
Create the maintained line after publishing its first final release. Preparation branches carry the version bump and notes through their pull request; they do not become maintained lines. Keep published tags fixed. Select backports according to the supported release lines.
Release notes
The run that creates the GitHub Release generates its notes from the commits since the previous final
release’s tag (prepare.py previous), so a final on its candidate’s commit lists them too;
a re-run keeps the published notes. What commits cannot say goes in a
“Release notes” section of the release pull request’s description, so it is reviewed before the tag.
The run puts that section above the generated notes; when the two would pass GitHub’s limit of
125,000 characters for a release body, the generated list gives way to its compare link. It reads the section from the merged pull
request titled exactly Release X.Y.Z whose merge commit is in the tag’s history, from the line
## Release notes for vX.Y.Z to the line <!-- end release notes -->, which prepare.py writes.
A title can be edited after merge, so only a pull request from a branch of this repository counts,
which needs write access, and two such pull requests count as none.
A tag’s run checks it in its version job, before any image is tagged: a final without such a
section fails there, and a candidate only warns. Add the section to the merged pull request’s
description, then use “Re-run failed jobs” on that run. A dispatch on the tag skips the check, and
github-release reads the section again as it creates the GitHub Release.
The section is written from release-notes.md (not committed), which prepare.py writes from the
squash merges since the highest final tag below the release, and holds every operator step (new
settings, backfills, table rebuilds) and client-visible wire change, including every removed request
field and retired flag. No registry of removed fields exists, so the release notes are where a
client learns of one. A pull request’s description holds at most 65,536 characters, so where
release-notes.md is longer the changelog entries are condensed into highlights; the operator
steps and client breaks stay whole. release-notes.md holds:
- each pull request’s changelog entry under its category, in the template’s order, or its title when the entry is empty; one whose description names no single category is listed under “Unclassified” for the author to place;
- each “Operator steps” item, as written, under its pull request’s number, from every pull request,
including one in a category that needs no entry; an item that says there are none (
none,N/A,No operator steps.) or is the template’s own text is left out, and the author prunes the rest that name no step; - the wire diff (code generation).
A fix that a patch release of an older line already shipped is listed again, and so is a pull request reverted in the same range, beside its revert; the author drops them.
It fetches the upstream repository’s tags itself, reads the pull requests with gh and the wire
diff through the server’s registry, so it needs a signed-in gh and the project’s environment
(uv sync). .venv/bin/python scripts/release/prepare.py notes X.Y.Z prints the section again
without bumping anything: run it after rebasing the release pull request just before it merges,
and again at the commit the final tag will name if more changes have landed, updating the
section in the merged pull request’s description from its output and keeping the edits, since the
final’s run reads it there.
Cutting the release
-
Check that a scheduled run of
.github/workflows/docker-smoke.ymlonmainfrom the past week passed:gh run list -R ClickHouse/loom --workflow docker-smoke.yml --event schedule --branch main -L 1 --json conclusion,createdAt,headShaOr start a fresh one with
gh workflow run docker-smoke.yml -R ClickHouse/loom --ref mainand read it with--event workflow_dispatchin place of--event schedule. It scans both images as the release does, and a scheduled run’s failure notifies only the last editor of its schedule. A red scan names the package: move the pin that brings it in (aDockerfileARGor base-image digest, or a lock file) onmainfirst. The base image’s own packages move only with a new base-image digest; a package anapt-get installlayer adds moves with any uncached build. -
On
prep/release-X.Y.Zfromorigin/main, run.venv/bin/python scripts/release/prepare.py bump X.Y.Z, and open a pull request with its changes and the release notes section, written fromrelease-notes.md, in its description; edit the notes where an entry needs it. CI must pass, includingmake schema-checkand the strict migration dry run. When a merged pull request’s changelog entry says it needs the next server release, the same pull request raisesMIN_SERVER_VERSIONinintegrations/claude-code-plugin/lib/server-version.mjsto this version, syncs it into the Codex plugin and bumps both plugin versions: clients get it only through a new plugin version. -
After the release pull request merges, push the final tag once the checks pass. For a requested candidate soak, push
vX.Y.Z-rc.1first and publish the final on the highest candidate’s commit after the soak.git tag vX.Y.Z <merge commit> git push origin vX.Y.Z -
Follow the tag run. It publishes both images and the signed GitHub Release with the notes from the merged release pull request. After the outside installer and signature checks pass, the same run publishes PyPI, npm, crates.io and the MCP Registry. Approve pending deployments under the configured environments and watch the SDK install checks finish. The crate uses the independent version in
sdk/rust/Cargo.toml. Change that version in the release pull request when the source has changed since the last published crate.
A release candidate is a vX.Y.Z-rc.N tag, and makes a GitHub pre-release; the release refuses any
other prerelease tag. The first candidate goes on the release pull request’s merge commit, whose
files name X.Y.Z, so the candidate’s server already reports X.Y.Z; a later one, after a fix,
goes on a later commit of main. The final vX.Y.Z tag goes on the highest-numbered candidate’s
commit after the soak. The final’s bundle keeps the ClickHouse release of the highest-numbered
candidate on that commit with a published bundle; its images are built again from the same
commit, uncached, so an OS package may be newer than in the soaked image. A run of a
candidate tag after its final is refused. One on the final’s commit is told to run the final. One
numbered below the highest-numbered candidate on the final’s commit has nothing to run, and its
tag stays. Any other is a stray: it
also fails the final’s later runs until it is deleted. The chart’s appVersion names X.Y.Z too,
so a soak on Kubernetes sets image.tag and extractor.image.tag to X.Y.Z-rc.N.
Only the highest final version becomes the repository’s Latest release (releases/latest serves the
installer) and moves :latest: a prerelease or a patch to an older line leaves both where they are.
The versions are read from the repository’s tags, so delete a final tag that will not ship, or
Latest stays below it.
Rehearsing a release
A dry run builds, verifies and smoke-tests everything a release would, on any branch, and publishes nothing: no image push, GitHub Release or registry upload.
gh workflow run release.yml --ref <branch> -f dry_run=true
It runs at the version server/__init__.py names, and keeps its artifacts one day (a release keeps
them 30 days, as long as a run can be re-run). Its images go to run artifacts instead of ghcr.io,
without the provenance and SBOM attestations that only a registry keeps, and docker-smoke loads
them from there. The preflight job reports each missing prerequisite
as a warning instead of failing. What only a published release exercises, a dry run does not:
docker-tag (joining each image’s two digests, the Latest decision, :latest), sign, the GitHub
Release and its files’ signatures, the registry publishes, release-check, the published-images
check (scripts/release/published_images.sh) with the skipped-build path it selects, the
candidate-order check (prepare.py check-tag, which a dry run of a branch skips with a notice),
the chart check when the version is already tagged on another commit, and the reviewed release
notes, which only a run on a tag reads.
Before the first release
A release publishes public packages, and a registry version can never be reused, so the workflow
refuses a release from a private repository. The preflight job checks what only an owner can grant,
in seconds, before any build, and names the fix for each one it finds missing:
| Prerequisite | Checked by |
|---|---|
| The repository is public | preflight |
ghcr.io/clickhouse/loom and loom-extractor give this repository Write access |
preflight (an upload session it opens and cancels) |
| Both packages are public, since an install pulls without signing in | preflight (an anonymous pull token) |
A pypi environment and a PyPI trusted publisher for release.yml |
the pypi job |
An npm environment and an npm trusted publisher for release.yml |
the npm job |
A crates-io environment with the same protection rules as pypi and npm, and a crates.io trusted publisher for ClickHouse/loom, release.yml and crates-io |
the crates-io job |
An mcp-registry environment with the same protection rules as pypi and npm |
the mcp-registry job |
| The repository’s artifact retention is at least 30 days (Settings > Actions) | nothing |
release/** branches protected like main (required checks, no direct pushes) |
nothing |
Only a push creates a ghcr.io package, and it creates it private. For an image no release has pushed
yet, preflight warns instead of failing, and that run’s docker-smoke jobs fail to pull it: set
the package’s visibility to public in its settings, then re-run the failed jobs.
Until a release has been signed, make the next tag a release candidate (vX.Y.Z-rc.1). Its run
signs the images and verifies them from outside, and a candidate never moves :latest, so a fault
there costs a candidate number, not a final version.
What the release workflow does
.github/workflows/release.yml builds once, verifies the exact files, and publishes those files.
On a tag push (v*):
versiontakes the version from the tag (vX.Y.Z→X.Y.Z) and refuses a ref that is not av*tag (unless the run is a dry run) or notX.Y.ZorX.Y.Z-rc.N. It fails when any of these is false (forvX.Y.Z-rc.N, againstX.Y.Z):prepare.py check:server/__init__.pyreads__version__ = "X.Y.Z", and every other version file,server.jsonincluded, names that version;prepare.py check-tag: a candidatevX.Y.Z-rc.NbeforevX.Y.Zis tagged, and a finalvX.Y.Zon the commit of its highest-numbered candidate;prepare.py check-chart: the chart’s version is above the previous release’s;- on a tag push,
scripts/release/reviewed_notes.sh: the merged release pull request holds the release notes (a candidate only warns);
preflightfails the run on a missing prerequisite;clickhousenames the ClickHouse release the Compose bundle runs (scripts/release/release_clickhouse.sh), migrates a fresh server of that release and runsmake schema-checkbeforebuildmay pin it, and refuses a ClickHouse downgrade (see step 8), so such a run stops before it builds and pushes images (when it stops). The release is the first of:- the one this version’s published bundle already names, so running the install command again
for a version never moves ClickHouse (a release without a bundle resolves anew, as
github-releasenever replaces one, so nobody can have installed it); - a dispatch’s
clickhouse_image, which for a final is used in place of any release its candidates on the same commit published; - for a final, the one the highest-numbered candidate on the same commit with a published bundle was soaked with;
- the release
clickhouse/clickhouse-server:latestnames now (dev/clickhouse_release.sh);
- the one this version’s published bundle already names, so running the install command again
for a version never moves ClickHouse (a release without a bundle resolves anew, as
buildwrites the version into the Python SDK sources (in its PEP 440 form,X.Y.ZrcNfor a candidate) and the TypeScript SDK sources, runs the TypeScript SDK’snpm run check, and builds the Python SDK wheel and sdist, the npm tarball (after itscheck:dist), and zips of the two plugins (loom-claude-code-plugin-vX.Y.Z.zip,loom-codex-plugin-vX.Y.Z.zip) and of the generated root skills (loom-memory.zip,loom-code.zip,loom-status.zipandloom-skills.zip, which holds all three;scripts/codegen/standalone_skills.py --zip); it also builds the source-free Compose bundle and its SHA-256 file (naming that ClickHouse release), the release’sinstall.sh, which installs this version, andagent-setup.txt, the agent setup contract with this version and commit filled in (scripts/release/agent_setup.py);verifychecks those exact files: their names and embedded versions, the plugin manifests, no tests in the Claude Code zip, the executable bits git records, that the skill zips hold what the tag’s plugin skills generate, and that the bundle names the ClickHouse release theclickhousejob checked,install.shinstalls this version andagent-setup.txtpins it, and smoke-tests the wheel in a clean venv (scripts/gates/sdk_wheel_smoke.py);rust-packagepacks the Rust SDK crate at its own version fromsdk/rust/Cargo.toml(cargo package --locked, from the lockfile it resolves), checks the crate names the tag’s commit (scripts/release/rust_sdk.py verify-package) and refuses a version crates.io lists as yanked;dockerbuildsghcr.io/clickhouse/loom(with the tag’s commit asLOOM_BUILD_COMMIT, what/v1/healthreports asbuild_commit) andghcr.io/clickhouse/loom-extractor(the document extractor service), each for linux/amd64 and linux/arm64 on that architecture’s own runner and without the build cache (so from the package archives as they are that day), with provenance and an SBOM, pushes each by digest and scans it;docker-tagjoins each image’s two digests under its tags, and tags neither image until all four builds andrust-packagehave passed (a failure there can leave one tagged, and re-running it tags both);signthen signs, by digest, the indexdocker-tagmade for each image, with a keyless signature (cosign, with the run’s GitHub identity, so the certificate namesrelease.ymland the tag); a run on a tag whose images are out signs nothing. Every run then verifies both images’ signatures as users do, so the GitHub Release, PyPI, npm, crates.io and the MCP Registry wait for a signature that checks (a failed tag or signature);docker-smokeinstalls the bundle with those images, on the ClickHouse release it names, on amd64 and arm64, checks the server image names the tag’s commit, then runs the release’s owninstall.shand bundle as the one-liner in clean Debian, Ubuntu and Alpine containers (install, round trip, re-run, a refused downgrade under each one’s ownshandawk, and an upgrade over the previous final release’s installer, or, in a dry run of a commit after its version’s release, over that release’s own;scripts/gates/installer_rehearsal.py);github-releasecreates the GitHub Release once both images exist and are verified andrust-packagehas passed, with the reviewed release notes above notes generated from the commits since the previous final release (prepare.py previous, an output ofversion; a candidate’s notes start there too;scripts/release/release_body.sh), or updates it on a re-run, keeping its notes as they are, and attaches the verified files. A bundle the release already carries is kept, and so is its checksum (one the release lost is written again from it): replacing an asset deletes it first, and a failed upload would leave an installed version without its bundle. A new bundle never names an older ClickHouse release than the bundles of the 30 newest releases (prereleases included) do, since an install upgrading to it would start an older server on data a newer one wrote; the job fails instead, unless the dispatch adds-f allow_clickhouse_downgrade=true. This job runs for one tag at a time, so two tags released together cannot both pass the check against the same older bundle. Only one more such job waits: a third tag’s publish cancels the waiting one, which must then be re-run by hand (Re-run failed jobs). A refusal here comes afterdocker-tagpushed the tag’s image tags (and:latestwhen it is the highest final version). A re-run keeps the run’s inputs and fails again, so dispatch the tag instead, which goes on to publish the SDKs and the MCP Registry listing as the tag’s run would. Dispatch it either with the newer release the error names, when that release dumps the tag’sschemas/schema.sql:gh workflow run release.yml --ref vX.Y.Z -f clickhouse_image=clickhouse/clickhouse-server:A.B.C.D; or accepting the downgrade:gh workflow run release.yml --ref vX.Y.Z -f allow_clickhouse_downgrade=true. When neither is taken, move:latest(if it moved) and, for a final,:X.Yback to the previous release on both images, as in a failed tag or signature;sign-filesdownloads every file the release now serves, as users do (scripts/release/download_release_files.sh), and signs each one that is byte-identical to this run’s build with a keyless signature like the images’, into a Sigstore bundle<file>.sigstore.json(scripts/release/sign_release_files.sh). The stack bundle and checksum the release kept from an earlier run keep their Sigstore bundles when those verify; any other file that is not this run’s build fails the job, signing nothing (a failed tag or signature). It then verifies each file as users do (scripts/release/verify_release_files.sh). It holds the run’s OIDC token in a job of its own, with read-only contents;attach-signaturesthen uploads the Sigstore bundles it made (a kept one stays as it is, since replacing an asset deletes it first). A dispatch builds the files again, andgithub-releasereplaces them, so until its ownsign-filesandattach-signaturesfinish, the tag run’s Sigstore bundles do not verify the replaced files;release-checkruns.github/workflows/release-check.ymlagainst what was just published, signed in to nothing: the one-liner from github.com in the same clean containers, pulling both images anonymously, and verifies the signatures of both images and of every release file, which must come fromrelease.ymlon that tag, as a user does (container images, release files); a file without its.sigstore.jsonfails. A release published before the release workflow signed its images, or its files, lacks those signatures, so a check of it fails itssignaturesjob.
The server and extractor images are published before the GitHub Release, so an installer shown on the release page never points at a missing image.
After release-check verifies the signed files and rehearses a clean install and upgrade,
the same tag run publishes:
| Publisher | Publishes | How |
|---|---|---|
pypi |
clickhouse-loom to PyPI |
Publishes the verified wheel and sdist with OIDC. Skips files already accepted. |
npm |
@clickhouse/loom to npm |
Publishes the verified tarball with OIDC and provenance. Uses latest for the highest final, next for a candidate and release-X.Y for an older line’s patch. |
crates-io |
clickhouse-loom to crates.io |
Publishes the independent version in sdk/rust/Cargo.toml with OIDC and the verified dependency lock. Skips versions already published and runs only on finals. |
mcp-registry |
server.json to the MCP Registry |
Uses GitHub OIDC and a pinned publisher. Skips listed versions and runs only on finals. |
The sdk-check job installs the SDKs from their registries. A manual dispatch on a tag
runs the same workflow for recovery.
The images are already published by the tag run: a dispatch on a tag whose images carry the
version builds and tags none (scripts/release/published_images.sh), smoke-tests the published
ones, and goes on to the registries. Release images build without the cache, so a rebuild would
move the version’s tags onto other bytes.
Never move a published X.Y.Z tag: published_images.sh fails when a published image was built
from another commit than the run’s, and a fix needs a new version.
A re-run after a partial publish is safe: each publish job skips what already exists. The one exception is a tag run whose file signing failed, which a failed tag or signature recovers.
Why publish the verified files. A job that rebuilt its own artifact could ship unchecked bytes. Publishing what verify passed means the GitHub Release and the registries carry the same bytes. The crate is the exception: cargo publish packs it again from the tag’s source and the lockfile rust-package resolved, and a crate version crates.io already has is skipped, so a change under sdk/rust/ reaches crates.io only with a new crate version.
Why the server is not on PyPI. The server is deployed against ClickHouse, not imported as a library; it ships as the image. The root pyproject.toml is marked Private :: Do Not Upload, and PyPI carries only the SDK. The pypi and npm jobs need trusted publishers registered for this repository (their GitHub environments).
A failed tag or signature
A failed docker-tag (one image tagged, not the other) or a failed sign (Sigstore down, say):
- Use “Re-run failed jobs” on the run that tagged the images (the tag push, or the dispatch that
built and tagged them), within 30 days of it; the run’s artifacts are kept as long, unless the
repository’s artifact retention limit is shorter. That attempt keeps its
preflightresult anddocker-tag’s digests, so it tags the same build and signs what it tagged. - Once the tagging run has signed, a failed dispatch or second push on the tag recovers with its own “Re-run failed jobs”, or a new dispatch.
- Never re-run a run that failed before tagging once another run has tagged: its
preflightsaw no images, so it rebuilds and would move the published tags. - Once “Re-run all jobs” has replaced the tagging run’s attempt, or the 30 days have passed, no
run can tag or sign that build: a run on a half-tagged version fails its
preflight, and a run on a published tag verifies signatures but cannot make them. Release a new version.
Until that version is out, the build’s moving tags still name it. Point :latest (if it moved) and,
for a final, :X.Y back at the previous release that carried each, for both images. An X.Y.0 has
no earlier release carrying :X.Y, which names this build until X.Y.1 is out. When the build is
also the Latest release, point Latest at the highest final below it
(gh release edit v<previous> -R ClickHouse/loom --latest), and from then on never dispatch or
re-run the bad tag: its github-release job makes it Latest again until a higher final is
tagged. With
<previous> that release’s version, the tag moves only once that release’s signature verifies:
digest=$(docker buildx imagetools inspect ghcr.io/clickhouse/<image>:<previous> \
--format '{{json .Manifest}}' | jq -re .digest)
cosign verify "ghcr.io/clickhouse/<image>@$digest" \
--certificate-identity https://github.com/ClickHouse/loom/.github/workflows/release.yml@refs/tags/v<previous> \
--certificate-oidc-issuer https://token.actions.githubusercontent.com >/dev/null \
&& docker buildx imagetools create -t ghcr.io/clickhouse/<image>:<tag> "ghcr.io/clickhouse/<image>@$digest"
For a <previous> published before the release workflow signed, which carries no signature, run
the digest= line, then the docker buildx imagetools create command without the
cosign verify … && before it. Either way, check that the tag names the digest:
[ -n "$digest" ] && [ "$(docker buildx imagetools inspect ghcr.io/clickhouse/<image>:<tag> --format '{{json .Manifest}}' | jq -re .digest)" = "$digest" ] \
|| { echo "<tag> does not name $digest" >&2; false; }
A failed sign-files or attach-signatures (Sigstore or the GitHub API down, say) leaves files on
the release without a Sigstore bundle that verifies them. Any later run signs them again while the
stack bundle and checksum on the release carry Sigstore bundles that verify: “Re-run failed jobs” on
the run that failed. When they carry none, because the tag run’s own signing failed, only “Re-run
failed jobs” on the tag run signs them, while its artifacts are kept (30 days, unless the
repository’s artifact retention limit is shorter) and before any dispatch: a dispatch, “Re-run all
jobs” or a second push of the tag rebuilds the stack bundle and checksum but keeps the ones the
release carries, which then no run can sign. Past that, release a new version.
A release-check that fails on a listing or a download: “Re-run failed jobs”. To check a published
release again, dispatch it: gh workflow run release-check.yml -R ClickHouse/loom -f version=X.Y.Z -f previous_version=<the release before>, with -f installer=false or -f sdks=false to skip
those checks and -f rust_sdk_version=<crate version> to install the crate from crates.io. One that finds a
Sigstore bundle that does not verify after the latest release run’s sign-files and
attach-signatures passed means the release changed after it was signed: a security incident
(SECURITY.md). A run whose signing failed is recovered as above instead.
sign-files refuses any file that is not this run’s build, except a kept stack bundle or checksum
whose Sigstore bundle verifies. A file attached to the release by hand: delete it from the release
when the workflow does not make it, then “Re-run failed jobs”. A kept stack bundle or checksum with
no Sigstore bundle was never signed (above). Any other refusal, and a kept file whose Sigstore
bundle does not verify outside a Sigstore outage, means the file was changed outside the workflow:
a security incident, not a signing failure.
When the clickhouse job stops
A run that stopped in clickhouse published nothing.
latestnames a bad release: dispatch the tag with an exact one,gh workflow run release.yml --ref vX.Y.Z -f clickhouse_image=clickhouse/clickhouse-server:A.B.C.D. A bundle already published keeps its own, and the run warns that it ignored the input.- The release does not dump the tag’s
schemas/schema.sql: regenerate it on that release (the schema dump commands withLOOM_CLICKHOUSE_IMAGE=clickhouse/clickhouse-server:A.B.C.D) and commit it. For a candidate, tag the next-rc.Non the fix’s commit. For a final (one with no candidate on its commit that published a bundle, as only that one resolveslatest), delete its tag (git push origin :refs/tags/vX.Y.Z, andgit tag -d vX.Y.Zin every clone that fetched it, as a fetch never removes a tag), then tag a new candidate on the fix’s commit. Either way dispatch the new candidate with the same-f clickhouse_image=..., as its tag push resolveslatestagain; soak it, and tag the final there, which keeps that release. - A downgrade during the soak: a final carrying its candidate’s release is checked too, so a
patch to an older line published during the soak with a newer release stops it. Two ways out:
- delete the final’s tag as above (it published nothing), tag a new candidate on that commit,
soak it, and tag the final there again. The candidate’s tag push resolves
latest; when that is older than the release the error names, dispatch the candidate with that release:gh workflow run release.yml --ref vX.Y.Z-rc.N -f clickhouse_image=clickhouse/clickhouse-server:A.B.C.D; - or dispatch the final with
-f allow_clickhouse_downgrade=trueand accept the downgrade for that patch’s installs.
- delete the final’s tag as above (it published nothing), tag a new candidate on that commit,
soak it, and tag the final there again. The candidate’s tag push resolves
A recovery dispatch reaches the same registry jobs after the outside checks pass. GitHub environment approvals govern each registry upload.
A bad SDK
A registry never takes a version back, and a version number is never reused: the fix is a new patch. Until it is out, keep pinned installs working and steer new ones away:
- PyPI: yank the release in the project’s settings (the release, then Yank, with the reason).
- npm:
npm deprecate @clickhouse/loom@X.Y.Z "<reason>; use <fixed version>", and move each dist-tag it took back to the version that held it before (npm dist-tag add @clickhouse/loom@<that version> latest, orrelease-X.Yfor a patch line). - crates.io:
cargo yank --version <crate version> clickhouse-loom. crates.io never takes a yanked version again, sorust-packagerefuses it: the next release bumps the version insdk/rust/Cargo.toml.
Installing from a GitHub Release
When the registries have not been published, install from the release assets:
gh release download vX.Y.Z --repo ClickHouse/loom --pattern 'clickhouse_loom-*.whl'
pip install ./clickhouse_loom-*.whl
gh release download vX.Y.Z --repo ClickHouse/loom --pattern 'clickhouse-loom-*.tgz'
npm install ./clickhouse-loom-*.tgz
The coding-agent plugins install from the repository’s marketplaces (claude plugin marketplace add ClickHouse/loom, codex plugin marketplace add ClickHouse/loom). The zips are for machines without access to the repository.
The skill zips are for a client without the plugin: skills without the plugin has the install steps.
Listings
Agents and people find Loom through these listings. Each reads files in this repository:
| Listing | Reads | How it updates |
|---|---|---|
| MCP Registry, and the directories that copy it | server.json: its metadata and a remote at https://{loom_host}/mcp with an optional secret Authorization header |
the mcp-registry job on each final release |
PyPI page of clickhouse-loom |
the [project] metadata of sdk/python/pyproject.toml, and sdk/python/README.md as the page body |
the pypi job on each release; the page shows the highest final version, or the highest candidate before the first final |
npm page of @clickhouse/loom |
the metadata of sdk/typescript/package.json, and sdk/typescript/README.md as the page body |
the npm job on each release; the page shows the version tagged latest, which the job sets only for the highest final |
crates.io page of clickhouse-loom |
the [package] metadata of sdk/rust/Cargo.toml, and sdk/rust/README.md as the page body |
the crates-io job on each final release whose crate version crates.io does not have |
| Claude plugin directory | integrations/claude-code-plugin/.claude-plugin/plugin.json (displayName, description, keywords, icon, documentationUrl, supportUrl, privacyPolicyUrl) and the README |
submitted once in the developer portal; later versions are picked up from the tracked branch. The icon is read only on the first submission |
| Claude Code plugin suggestions | the relevance block of the loom entry in .claude-plugin/marketplace.json: the loom command, Loom’s config files, an SDK dependency in a manifest |
read from the marketplace on the default branch; shown only where an administrator allowlists the marketplace (pluginSuggestionMarketplaces) |
| Cursor Marketplace | .cursor-plugin/plugin.json (displayName, description, keywords, logo, variables), .cursor-plugin/marketplace.json |
not submitted; a submission at cursor.com/marketplace/publish is reviewed by hand, and so is each update |
| Awesome Copilot marketplace | the root plugin.json and mcp.json (the Agent Plugins package), at the release tag and commit the submission names |
not submitted; a submission goes through the external-plugin issue form of github/awesome-copilot, which checks the package and installs it with Copilot CLI; a new version is a pull request to that repository’s plugins/external.json |
| Codex plugin directory | integrations/codex-plugin/.codex-plugin/plugin.json (interface) |
submitted in the plugin portal; a plugin with lifecycle hooks is not eligible there, so the public listing needs a build without them |
| Docs index for coding agents | context7.json |
refreshed from the default branch after the repository is added once |
| Agent Skills index | the root skills/ and the Claude Code plugin’s skills; the contributor skills are marked internal in their frontmatter and are not offered |
ranked by npx skills add ClickHouse/loom installs; nothing to submit |
The mcp-registry job runs in the mcp-registry environment. Give it the same protection rules as pypi and npm before the first release. Set the same protections on crates-io before registering its trusted publisher. GitHub creates a missing environment without protection rules.
After changing the Claude manifest or the marketplace entry, and before pushing, run claude plugin validate integrations/claude-code-plugin --profile directory --strict for the plugin and claude plugin validate . for the marketplace: they run the directory’s structural checks, and the plugin’s must pass with no warning.
After the release
- Deploy it (upgrades). The release notes’ operator steps are the deploy checklist.
- Client plugins update through each client’s plugin manager, not through a server deploy.
- Move the SDK API checks to the published release: the tag’s commit in
.github/workflows/rust-api.ymland.github/workflows/go-api.yml, and@clickhouse/loom@X.Y.Zwith its integrity in.github/workflows/typescript-api-report.yml.
Related
- Unknown and removed fields: how a client sees a field a release removed
- Contributing