Skip to content

A final release tags only a commit whose image scan passed, and no step deletes a tag (1.4) - #2114

Merged
zlareb1 merged 2 commits into
release/1.4from
fix/1.4-release-one-command
Dec 4, 2026
Merged

zlareb1 merged 2 commits into
release/1.4from
fix/1.4-release-one-command

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Backport of #2074 to release/1.4.

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

A final release is tagged only on a commit whose image scan passed, and the release's version bump moves the install commands in the docs.

Why

The line's prepare.py still prints a tag-deletion command, which the tag rules refuse. Its docker-smoke push and pull request runs build with the cache (their scans already fail on a finding), and its skill tags a final without a gating, uncached run on that commit within the six hours before the tag. A 1.4.x patch released from this line needs the gated flow #2074 put on main: the commit the final names passes an uncached, blocking scan before the tag, and a dead tag ships as the next patch instead of being deleted.

Scope and risk

  • git cherry-pick -x of A final release tags only a commit whose image scan passed, and no step deletes a tag #2074's merge commit (34d4cf9), which applied without conflicts. Its 17 files:

    • the docker-smoke gate: scripts/gates/docker_smoke_gate.sh, .github/workflows/docker-smoke.yml and tests/unit/test_docker_quickstart_smoke.py;
    • scripts/release/prepare.py's refusals and every pins, with tests/unit/test_release_prepare.py and the one-line tests/unit/test_standalone_skills.py change (a pin read through _matches), and the scripts/release/make_latest.py docstring;
    • the local deny rules, which now allow the version tag push, the release.yml dispatch and gh release create, and refuse the plain spellings of a v* tag deletion: .claude/settings.json and tests/unit/test_agent_instructions.py;
    • the release instructions: .claude/skills/loom-release/SKILL.md, docs/development/release-process.md, AGENTS.md, the loom-investigate-ci and loom-pre-push rows and the loom-ship-pr merge bullet;
    • docs/reference/environment.md and docs/guides/issue-code-pointers.md, below.

    A final release tags only a commit whose image scan passed, and no step deletes a tag #2074's description has the detail. Two doc changes it carries hold on the line too: docs/reference/environment.md names the Dockerfile's NPM_VERSION build argument, which the line's Dockerfile has, and docs/guides/issue-code-pointers.md names 1.4.1 as the first installable SDK with those methods, since v1.4.0 published nothing.

  • The install commands in docs/features/integrations/frameworks.md (17) and mcp-clients.md (1) name 1.4.2, the line's version: the 1.4.2 bump ran the line's old prepare.py, which did not move them, and the new prepare.py check 1.4.2 refuses them at 1.4.1. 1.4.2 is published on PyPI and npm.

  • Every docker-smoke run on this line gates, so each builds both images uncached.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert; nothing is stored.

Tests

  • At the head, 674 focused tests pass: test_release_prepare.py, test_release_version.py, test_docker_quickstart_smoke.py, test_agent_instructions.py, test_doc_links.py, test_public_copy.py and test_standalone_skills.py. Before the pin commit, six test_release_prepare.py tests failed on the 1.4.1 pins.
  • prepare.py check 1.4.2 passes, and so does make format-check.

AI assistance in the code (leave one; writing this description with AI is fine):

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 2 commits December 4, 2026 05:06
…ep 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* The standalone-skills bump test reads a pin through _matches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* Format the install-pin test's line count

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* The doc pin scan reads tracked pages, and three comments say what the code does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* The pin test's target is always longer, and the smoke test pins the gate's inputs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* check_tag names the final's run that published part as the one to re-run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* docs(release): read the soak dispatch by the candidate's commit, reflow the release paragraphs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* fix(release): read a dispatch by commit and time, say what a re-run cannot finish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* fix(release): word check_tag's refusal by the version job, age a gating run by createdAt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* test: keep the reason for gh release create, not who decided

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* release: list the gating runs beside the true case; pre-check doc pins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* 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 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* test: pin deleting a merged prep/release branch as not denied

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* test: spell the release line case as the skill does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

* test: put the tag-deletion note beside its cases; name the extras pin

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

---------

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 34d4cf9)
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The pins the bump now moves were last moved by hand to 1.4.1; 1.4.2 is
the line's published version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 3, 2026 11:41pm UTC
loom-telemetry Ready Ready Preview Dec 3, 2026 11:41pm UTC

Request Review

@zlareb1
zlareb1 merged commit 65498b0 into release/1.4 Dec 4, 2026
76 checks passed
@zlareb1
zlareb1 deleted the fix/1.4-release-one-command branch December 4, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant