From 733d2aa019c50f8fafe43733ad00782dcd339bb1 Mon Sep 17 00:00:00 2001 From: Mohammad Lareb Zafar Date: Fri, 4 Dec 2026 05:06:26 +0530 Subject: [PATCH 1/2] A final release tags only a commit whose image scan passed, and no step deletes a tag (#2074) * A release tags only a commit whose image scan passed, and no step deletes a tag docker-smoke treats the runs a release relies on alike: the release pull request, its merge commit, a release/X.Y line, weekly and dispatched runs build uncached and fail their scans on a finding, named by scripts/gates/docker_smoke_gate.sh. The release skill pushes the final tag itself, once that run passed on the exact commit. check_tag, make_latest and the release process no longer say to delete a tag, which the tag rules refuse: a tag whose run published nothing stays, goes in UNRELEASED, and the next patch ships. prepare.py bump moves every install command in the docs (Pin.every). Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release tooling: a scan fix is tagged after a gating run, and the scan gate fails closed Only a gating docker-smoke run counts before a tag; after a scan fix the target is dispatched and that run's commit tagged. A missing gate output keeps the scans strict. The skill prints a push the command rules refuse for the owner. A stray candidate after a partly published final ships the rest as the next patch. Tests cover a doc pin naming two versions or none. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release tooling: the tag check reads the run's title, and a later tag refreshes the notes The squash title is the commit's subject for a one-commit pull request, so the merge commit's push run gates only when its title reads Release X.Y.Z (#N); the check reads displayTitle and dispatches otherwise. A tag past the release pull request refreshes its notes. The release line merges into main with a merge commit, named in the skill as the exception to squash-merging. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release tooling: the release PR merges with its gating subject, and the merge-back reason is stated The skill merges the release PR with --subject "Release X.Y.Z (#N)", so the merge commit's push run always gates; a dispatch is left for a scan fix or another title. The gate qualifier comes before the tag commands. loom-ship-pr names the release-line merge into main as its one exception to squashing, and the release process gives the merge's real effect and cuts the line from the commit that should ship, including a final check-tag refused. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * The standalone-skills bump test reads a pin through _matches Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release tooling: the final after a soak takes a fresh gating run, and the merge-back is for main's own line A dispatch on the highest candidate's tag gates the final, whose images are built again, uncached. The release line merges into main only when main still names the dead version; an older line's dead tag needs nothing there. The line starts from the commit that should ship in every place that says so. A unit test fails on an install pin in the docs that the bump does not move, and the extras class takes a comma. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release docs: a dead tag's UNRELEASED entry always reaches main, and a soaked final's patch soaks main's next release reads main's UNRELEASED, so a dead patch on its own line that only the line lists would start the notes and the upgrade rehearsal. The merge-back comes from a branch at release/X.Y's head and never deletes the line. The soak steps match between the skill and the page, the next patch goes from the commit that should ship, and the checks table names the install-pin guard. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release docs: only the final waits for a gating scan, and every line push is spelled from a tag A candidate whose scan fails publishes nothing and costs only its number, so it is tagged on its merge commit without a gating run; the final keeps the fresh dispatch on the highest candidate's tag. The line's first push after a dead final is spelled from the tag of the commit that should ship, as after a published one. On main only the release title gates a merge commit's scan; every push to the line does. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release docs: a dead tag enters UNRELEASED before the patch's bump, and only the tag push is refused prepare.py bump and the tag run's version job read UNRELEASED from the checkout, so the patch's release PR adds the dead tag before the bump. The committed rules refuse the tag push; the release/X.Y push the request covers is not matched by them. After a scan fix the skill dispatches docker-smoke on the target, as the page does. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Release docs: the notes refresh before a tag past the release PR, and a weekly scan run gates Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * Format the install-pin test's line count Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * A test bumps to a longer version, and the dead-tag and final-tag rows name what they mean The bump rewrites a file's pins from its end; a test now bumps to a version of another length and fails without that order. The dead-tag bullet is a final's, and the final tag's row names a later commit a gating run passed on. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * The doc pin scan reads tracked pages, and three comments say what the code does Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * The pin test's target is always longer, and the smoke test pins the gate's inputs Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * A stray candidate leaves the final's failed jobs re-runnable, and the gate's titles are named as it matches them Step 3 and the skill's default give one bullet per path. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * check_tag names the final's run that published part as the one to re-run Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * The tag commands read the dispatched run's commit, and a patch's scan is its release pull request's Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * A dispatched scan is read by the commit named before the dispatch, and the page merges the release pull request with its title gh workflow run returns before the run exists, so a listing by branch could show an older dispatch whose commit names the previous version. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): read the soak dispatch by the candidate's commit, reflow the release paragraphs Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): fetch the candidate tag before the soak read, say what a failed or missing dispatch means Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * fix(release): read a dispatch by commit and time, say what a re-run cannot finish Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): re-run a flaky job on the merge commit's run, split the scan-fix steps, word the re-run limits exactly Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * chore(release): let the release skill tag and dispatch the release itself The committed rules no longer deny an agent the version tag, the release dispatch or gh release create; the skill drops the owner hand-off. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): drop the approval and owner hand-off text, give the right reason a re-run still gates Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): write the dispatch time in, wait a minute before a re-dispatch, name the scan steps Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): tell a CVE finding from a scan that could not run, cap a gating run's age, rewrap Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * fix(release): word check_tag's refusal by the version job, age a gating run by createdAt Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * fix(release): lead check_tag's refusal with the nothing-published case, give the environment rule its own row Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * docs(release): name the release run in check_tag's refusal, add the too-old case to the code block Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: state the six-hour gate once, name the n8n environment rule The age limit now covers every gating run, dispatched runs included; npm-n8n deploys only from v* and n8n-v* tags and the n8n publish fails until the package's first publish; the merge-commit exception is for a dead tag; the next-patch message is rewrapped. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: list what a re-run cannot publish before saying where it ships The next-patch message and the stray-candidate passage name the same causes, and the version table names the extras install pins. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: name the gate output gates_release, keep v* tag deletion denied The docker-smoke gate output no longer reads as the ClickHouse release. Deleting a v* tag with --delete or -d stays denied now that the tag push is allowed, and the skill warns that a hand-made GitHub Release keeps its own notes. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: deny every spelling of a v* tag deletion A delete flag before or after the tag, the tag keyword and a :vX.Y.Z refspec are all refused; the test comment states why gh release create stays allowed. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: say the tag ruleset refuses what the local rules miss The local deny rules catch the plain spellings of a v* tag deletion; the organization's tag ruleset refuses every deletion and move. A tag --dry-run is recorded as refused. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * test: keep the reason for gh release create, not who decided Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: list the gating runs beside the true case; pre-check doc pins Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * release: a dead final holds Latest until a higher final ships A higher release on another line also takes Latest, not only the next patch of the dead final's line. A branch deletion after a merge is pinned as not denied. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * test: pin deleting a merged prep/release branch as not denied Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * test: spell the release line case as the skill does Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar * test: put the tag-deletion note beside its cases; name the extras pin Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --------- Signed-off-by: Lareb Zafar Co-authored-by: Claude Opus 5.5 (cherry picked from commit 34d4cf9226d77de555576fcd97d829ef81850575) Signed-off-by: Lareb Zafar --- .claude/settings.json | 6 +- .claude/skills/loom-investigate-ci/SKILL.md | 2 +- .claude/skills/loom-pre-push/SKILL.md | 2 +- .claude/skills/loom-release/SKILL.md | 33 +++- .claude/skills/loom-ship-pr/SKILL.md | 2 +- .github/workflows/docker-smoke.yml | 33 ++-- AGENTS.md | 4 +- docs/development/release-process.md | 195 +++++++++++++------- docs/guides/issue-code-pointers.md | 2 +- docs/reference/environment.md | 7 +- scripts/gates/docker_smoke_gate.sh | 21 +++ scripts/release/make_latest.py | 5 +- scripts/release/prepare.py | 70 ++++--- tests/unit/test_agent_instructions.py | 21 ++- tests/unit/test_docker_quickstart_smoke.py | 76 ++++++++ tests/unit/test_release_prepare.py | 89 +++++++-- tests/unit/test_standalone_skills.py | 2 +- 17 files changed, 424 insertions(+), 146 deletions(-) create mode 100755 scripts/gates/docker_smoke_gate.sh diff --git a/.claude/settings.json b/.claude/settings.json index 0e8f7d13119..cb80a3eb9ca 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -86,14 +86,15 @@ "Bash(git push * *:refs/heads/main)", "Bash(git push --tags*)", "Bash(git push * --tags*)", - "Bash(gh workflow run release*)", - "Bash(gh release create*)", "Bash(docker * loom-blue*)", "Bash(docker * loom-green*)", "Bash(docker * loom-proxy*)", "Bash(docker * loom-server*)", "Bash(docker * loom-workers*)", "Bash(git push *refs/tags/*)", + "Bash(git push *-d* v*.*)", + "Bash(git push * v*.* *-d*)", + "Bash(git push *:v*.*)", "Bash(git push *--follow-tags*)", "Bash(git push * main *)", "Bash(git push *refs/heads/main*)", @@ -114,7 +115,6 @@ "Bash(git push * --mirror*)", "Bash(git push --all*)", "Bash(git push * --all*)", - "Bash(git push * v*.*)", "Bash(git -C * push*)", "Bash(git -c * push*)", "Bash(git * --output*)", diff --git a/.claude/skills/loom-investigate-ci/SKILL.md b/.claude/skills/loom-investigate-ci/SKILL.md index 00b12a6e6d0..270088bb4e1 100644 --- a/.claude/skills/loom-investigate-ci/SKILL.md +++ b/.claude/skills/loom-investigate-ci/SKILL.md @@ -31,7 +31,7 @@ gh run list --workflow ci.yml --branch main -L 5 --json conclusion,headSha,creat | Job | Usual cause | Reproduce / fix | | --- | --- | --- | | `the ClickHouse release this run tests` (`ci.yml`, `docker-smoke.yml`) | the release lookup in `dev/clickhouse_release.sh` or the registry it reads | rerun once; if it fails again, run the script locally and read its error | -| `Quickstart ()` (`docker-smoke.yml`, on PRs and pushes to `main` or a `release/X.Y` line touching its `paths:`, weekly and on dispatch) | the image or its bundle, the quickstart stack, then the one-line installer in clean containers (`scripts/gates/installer_rehearsal.py`; its FAIL lines name the distribution they ran on); on a weekly or dispatched run, a scan step: a critical CVE with a fixed release in the image | the dashboard test dependencies CI installs first (`npm --prefix frontend ci && npx --prefix frontend playwright install chromium`, after `loom-dev-setup` §6's link check), `docker build -t "loom:smoke-$(basename "$PWD")" .`, then `python3 scripts/gates/docker_quickstart_smoke.py --image "loom:smoke-$(basename "$PWD")" --clickhouse-image ` (a tag per worktree: two sessions share the image store; `docker rmi` it afterwards), with the image from `bash dev/clickhouse_release.sh`. The rehearsal, with the tags fetched and Docker on `/var/run/docker.sock`: `python3 scripts/release/build_stack_bundle.py build --version --clickhouse-image --output-dir `, then `python3 scripts/gates/installer_rehearsal.py --release-dir --upgrade --image --extractor-image `. A scan: build with `docker build --no-cache` (a cached apt layer keeps a fixed package), then `trivy image --severity CRITICAL --ignore-unfixed` on it names the package; move the pin that brings it in (a `Dockerfile` `ARG`, the base-image digest for a package the base image carries, or a lock file) | +| `Quickstart ()` (`docker-smoke.yml`, on PRs and pushes to `main` or a `release/X.Y` line touching its `paths:`, weekly and on dispatch) | the image or its bundle, the quickstart stack, then the one-line installer in clean containers (`scripts/gates/installer_rehearsal.py`; its FAIL lines name the distribution they ran on); on a run `scripts/gates/docker_smoke_gate.sh` gates (weekly, dispatched, a `Release X.Y.Z` PR or its merge commit, a `release/X.Y` line), a scan step: a critical CVE with a fixed release in the image | the dashboard test dependencies CI installs first (`npm --prefix frontend ci && npx --prefix frontend playwright install chromium`, after `loom-dev-setup` §6's link check), `docker build -t "loom:smoke-$(basename "$PWD")" .`, then `python3 scripts/gates/docker_quickstart_smoke.py --image "loom:smoke-$(basename "$PWD")" --clickhouse-image ` (a tag per worktree: two sessions share the image store; `docker rmi` it afterwards), with the image from `bash dev/clickhouse_release.sh`. The rehearsal, with the tags fetched and Docker on `/var/run/docker.sock`: `python3 scripts/release/build_stack_bundle.py build --version --clickhouse-image --output-dir `, then `python3 scripts/gates/installer_rehearsal.py --release-dir --upgrade --image --extractor-image `. A scan: build with `docker build --no-cache` (a cached apt layer keeps a fixed package), then `trivy image --severity CRITICAL --ignore-unfixed` on it names the package; move the pin that brings it in (a `Dockerfile` `ARG`, the base-image digest for a package the base image carries, or a lock file) | | `Repository-job sandbox under the shipped profiles` (`docker-smoke.yml`) | the AppArmor or seccomp profile, or a sandbox change the profile blocks | the profiles row of `loom-pre-push` §3 | | `ruff + mypy-gate` (lint) | a generator `--check` is stale (the plugin sync also compares executable bits); ruff; function-length or mypy ratchet | `make lint`, `make typecheck`; run the named generator without `--check` and commit its output; split the long function | | `pytest unit part k` | order dependence; two tests sharing a file or port while they run side by side; a fake that drifted; a snapshot; a migration number `main` took since your base (renumber per the `migrations` rule) | the reproduction in [`tests/README.md`](../../../tests/README.md), with the part's `LOOM_TEST_SHARD=k/6` on the commands that name `tests/unit`; update a snapshot only for an intended change | diff --git a/.claude/skills/loom-pre-push/SKILL.md b/.claude/skills/loom-pre-push/SKILL.md index ebde0bedbb0..08f39c077a7 100644 --- a/.claude/skills/loom-pre-push/SKILL.md +++ b/.claude/skills/loom-pre-push/SKILL.md @@ -52,7 +52,7 @@ Use this map to select local checks and inspect the matching CI jobs. Full integ | `sdk/python/` | CI's "python sdk wheel" steps (job `sdk-python-package` in `.github/workflows/ci.yml`): `uv build sdk/python --out-dir dist`, a fresh Python 3.11 virtualenv with the wheel and its `Requires-Dist` installed at `--resolution lowest-direct`, then `scripts/gates/sdk_wheel_smoke.py dist/*.whl` in it; the server's 3.12 venv hides an undeclared dependency or a 3.12-only API | | the files the hostile sandbox suite runs: `server/code/app/index/` `sandbox.py`, `egress.py`, `egress_relay.py`, `compiler_tier.py`, `gitrepo.py`, `server/core/hosts.py`, and `tests/unit/test_repo_job_sandbox*.py` | `LOOM_TEST_REQUIRE_SANDBOX=1 .venv/bin/python -m pytest tests/unit/test_repo_job_sandbox.py tests/unit/test_repo_job_sandbox_hostile.py -q` on a host where bubblewrap can create namespaces; without it the test fails here, as in CI. On a host where it cannot, push and read CI's `repository-job sandbox (real bubblewrap)` job; never install bubblewrap or change the user-namespace sysctl on a shared host | | `deploy/apparmor/`, `dev/seccomp/`, `dev/docker-compose.colour.yml` | push and read `docker-smoke.yml`'s "Repository-job sandbox under the shipped profiles" job, which builds the image, loads the profile and runs the two sandbox suites in the container; the host test above never applies a profile. Reproduce that job only on a disposable VM: `apparmor_parser -r` replaces the profile host-wide, under any deployment's running repository jobs, and its sysctl changes every session's sandbox on that host | -| `docs/`, any `.md` | `.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py` | +| `docs/`, any `.md` | `.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py`, with `tests/unit/test_release_prepare.py` for a page with an install command that names a version (`clickhouse-loom==`, `clickhouse-loom[]==`, `@clickhouse/loom@`, `--ref v`) | ## 4. Read the regenerated diff diff --git a/.claude/skills/loom-release/SKILL.md b/.claude/skills/loom-release/SKILL.md index 39cfc7fa36a..eb4aeedc2d9 100644 --- a/.claude/skills/loom-release/SKILL.md +++ b/.claude/skills/loom-release/SKILL.md @@ -8,28 +8,41 @@ metadata: # Releasing Loom -"Release X.Y.Z" is the entry point. Publish the final as soon as the required checks pass. Use a candidate soak only when the owner asks for one. Keep GitHub's review, CI and environment rules. The owner's release request authorizes routine publication and verification for that version. Ask separately before a rollback, a public announcement or a deployment. The repository's settings keep tag pushes and `release.yml` dispatches with the owner: print the exact command and wait for the owner to run it. +"Release X.Y.Z" is the entry point. Publish the final as soon as its gating image scan passes. Use a candidate soak only when the owner asks for one. The owner's release request authorizes routine publication and verification for that version: the release's tag and `release/X.Y` pushes, its `release.yml` dispatches (a dry run, a recovery) and the registry jobs. Ask separately before a rollback, a public announcement or a deployment. Run each `git push` as its own command, never inside a script, so the command rules see it; print a push they refuse for the owner to run. ## Prepare the release - Read [release process](../../../docs/development/release-process.md) and [supported versions](../../../docs/operations/supported-versions.md). Check remote tags and open PRs for this version. Resume existing work when its target and version match. - Start a major or minor from `origin/main`. Start a patch from `origin/release/X.Y`; backport any selected fixes to that line through PRs first. Use `prep/release-X.Y.Z` for the release PR unless the owner specifies a name. A repository rule that refuses a branch or tag update needs a resolution under that rule. -- Check the latest CI on the target and a passing container scan from the past week. Have the owner start a dry build (`gh workflow run release.yml -R ClickHouse/loom --ref -f dry_run=true`) in parallel with preparing the PR. On a patch line, dispatch `docker-smoke.yml` on that line, and have the owner start the dry build there. Read the dry run's prerequisite warnings. -- Use `.venv/bin/python scripts/release/prepare.py bump X.Y.Z` in the release worktree. The tool bumps the server, images, dashboard, Python SDK, npm SDK, Helm chart and root skills and writes `release-notes.md`. If the Rust SDK has changes since its last published version, bump its independent SemVer in `sdk/rust/Cargo.toml` and check it with `scripts/release/rust_sdk.py check-version`. A final release publishes that crate version if it is absent from crates.io. +- Check the latest CI on the target and a passing container scan: on `main`, a weekly or dispatched docker-smoke run from the past week; for a patch, the release PR's own docker-smoke run, which gates as a pull request into `release/X.Y`. Start the dry build (`gh workflow run release.yml -R ClickHouse/loom --ref -f dry_run=true`) in parallel with preparing the PR, and read its prerequisite warnings when it runs; it is not a gate. +- Use `.venv/bin/python scripts/release/prepare.py bump X.Y.Z` in the release worktree. The tool bumps the server, images, dashboard, Python SDK, npm SDK, Helm chart, root skills and the install commands in the docs, and writes `release-notes.md`. If the Rust SDK has changes since its last published version, bump its independent SemVer in `sdk/rust/Cargo.toml` and check it with `scripts/release/rust_sdk.py check-version`. A final release publishes that crate version if it is absent from crates.io. - Check the release notes with [loom-writing](../loom-writing/SKILL.md#release-notes-and-announcements). Resolve uncategorized entries and remove items that name no operator action. Surface upgrade steps and client breaks before details. Check whether any shipped plugin changes require raising `MIN_SERVER_VERSION` and bumping the plugin versions. -- Open `Release X.Y.Z` using [loom-ship-pr](../loom-ship-pr/SKILL.md). Include the reviewed notes in the PR body, from the `## Release notes for vX.Y.Z` heading to the `` line `prepare.py` writes; a final's run fails without them. Other PRs enter the release by merging into its target branch before the release PR. Refresh the notes if the base moves. Merge on green when the required reviews and threads are settled. +- Open `Release X.Y.Z` using [loom-ship-pr](../loom-ship-pr/SKILL.md). Include the reviewed notes in the PR body, from the `## Release notes for vX.Y.Z` heading to the `` line `prepare.py` writes; a final's run fails without them. Other PRs enter the release by merging into its target branch before the release PR. Refresh the notes if the base moves. Merge on green when the required reviews and threads are settled, with `gh pr merge --squash --subject "Release X.Y.Z (#)"`: a one-commit pull request's squash title is otherwise its commit's subject, and on `main` only a title `Release X.Y.Z`, with or without ` (#)`, makes the merge commit's docker-smoke run gate (every push to `release/X.Y` gates). ## Tag and monitor -- **Default**. As soon as the checks pass, the owner pushes the final `vX.Y.Z` tag on the release PR's merge commit (`git tag vX.Y.Z && git push origin vX.Y.Z`). If a candidate tag already exists, the final must use the highest candidate's commit. -- **Release with a soak**. The owner pushes `vX.Y.Z-rc.1` on the release PR's merge commit; watch its run and soak it for at least two days. The owner tags any fix as the next candidate after it merges to the release target, and the soak restarts. The final goes on the highest candidate's commit. During a Kubernetes soak, set both `image.tag` and `extractor.image.tag` to the candidate. -- Watch the exact tag's release run through the [registry and external checks](../../../docs/development/release-process.md#what-the-release-workflow-does). The tag starts publication to GHCR, GitHub Releases, PyPI, npm, crates.io and the MCP Registry. Candidates publish to PyPI and npm, and leave moving image tags and the MCP Registry listing alone. -- When the run waits on environments, query `repos/ClickHouse/loom/actions/runs//pending_deployments`. Approve the release's pending environments with the active account when `current_user_can_approve` is true. GitHub's required reviewers take over any environments this account cannot approve. Use `gh run view` to track every job and [loom-investigate-ci](../loom-investigate-ci/SKILL.md) for failures. Rerun failed jobs where the [recovery rules](../../../docs/development/release-process.md#a-failed-tag-or-signature) allow it. -- When the line's maintenance branch `release/X.Y` does not exist, its first final creates it: print `git push origin "vX.Y.Z^{commit}:refs/heads/release/X.Y"` for the owner to run. Wait for its required commit checks and honor its branch rules. Keep tags fixed once pushed. +A pushed `vX.Y.Z` tag is never moved or deleted, so a final goes only on a commit a gating docker-smoke run (`scripts/gates/docker_smoke_gate.sh`) passed on, created within the six hours before the tag (`createdAt`, which a re-run keeps): the tag run's scan reads a newer vulnerability database. A gating run is a push titled `Release X.Y.Z`, with or without ` (#N)`, a push to `release/X.Y`, a weekly run or a dispatch; any other push run only warns on a scan finding. + +- **Default**. Wait for the push run on the release PR's merge commit (`gh run list -R ClickHouse/loom --workflow docker-smoke.yml --commit --json status,conclusion,event,displayTitle,createdAt`), which builds and scans the exact commit as the tag run does. Once it passed, `git tag vX.Y.Z `, then `git push origin vX.Y.Z`; for a run too old, dispatch as below. After any failure other than a scan finding (a CVE the log names), `gh run rerun -R ClickHouse/loom --failed`: a re-run reads the same event and title, so the run still gates. + - After a scan finding, for a merge commit with another title, or for a run too old: + - Merge any fix to the target. Name its commit (`git fetch origin `, then `git rev-parse origin/`) and the time (`date -u +%Y-%m-%dT%H:%M:%SZ`), then run `gh workflow run docker-smoke.yml -R ClickHouse/loom --ref `. + - Tag that commit once `gh run list -R ClickHouse/loom --workflow docker-smoke.yml --event workflow_dispatch --commit --created ">=