Skip to content

fix(release): the package version and the tag that installs it must agree - #261

Merged
Polichinel merged 1 commit into
developmentfrom
fix/version-matches-the-tag
Aug 13, 2026
Merged

fix(release): the package version and the tag that installs it must agree#261
Polichinel merged 1 commit into
developmentfrom
fix/version-matches-the-tag

Conversation

@Polichinel

Copy link
Copy Markdown
Collaborator

Tag 1.1.0 was cut at main today while pyproject.toml still said 1.0.0. An install from that tag reports the previous release — and views-models#294's capability assert reads exactly that number to decide what the installed build can honour.

Caught before either launcher pinned, which is the only reason re-pointing the tag is cheap.

Why it ships with a guard, not just a bump

Third time in this arc a version has been declared in two places with a check on only one copy — same shape as the appwrite_env docstring edition and the blob-URL sha, both fixed in #249.

Two checks, in the two directions that differ:

check when it runs catches
tag matches the file only when HEAD carries a release tag a tag cut at a commit with the wrong number
newest tag not ahead of the file every commit the direction that actually bit — tag moved, file didn't

The reverse (file ahead of tag) is an ordinary pre-release bump and stays silent. Firing there would be the false alarm that gets a guard deleted (ADR-014 §3).

Mutation-proven both ways: reverting the file to 1.0.0 fails with the exact sentence describing today; setting it to 1.2.0 passes.

After merging

The tag needs re-pointing at the new main — nothing has pinned to it yet, so the window is clean:

git checkout main && git pull
git tag -f -a 1.1.0 -m "views-postprocessing 1.1.0 — the cross-repo guard surface"
git push --force origin 1.1.0
ruff check .    # clean
pytest -q       # 422 passed, 2 skipped, 40 xfailed

The second skip is the tag check on an untagged HEAD — correct here, and it will run once the tag is re-pointed.

🤖 Generated with Claude Code

…gree

Tag 1.1.0 was cut at main on 2026-08-13 while pyproject.toml still said 1.0.0. An
install from that tag reports the PREVIOUS release, and views-models#294's capability
assert reads exactly that number to decide what the installed build can honour. Caught
before either launcher pinned, which is the only reason re-pointing the tag is cheap.

Third time in this arc a version has been declared in two places with a guard on one
copy — the same shape as the appwrite_env docstring edition (#249) and the blob URL sha
(#249). So this ships with the guard, not just the bump.

TWO CHECKS, IN THE TWO DIRECTIONS THAT DIFFER.

`test_a_release_tag_declares_the_version_the_package_declares` fires only when HEAD
carries a release tag, and demands the numbers match. Silent on every untagged commit,
because firing there would be the false alarm that gets a guard deleted (ADR-014 §3).

`test_the_newest_release_tag_is_not_ahead_of_the_declared_version` runs everywhere and
is the direction that actually bit: a tag moved and the file did not. The reverse — file
ahead of tag — is an ordinary pre-release bump and stays silent.

Mutation-proven both ways: reverting the file to 1.0.0 fails with the exact sentence
describing what happened today; setting it to 1.2.0 passes.

Suite 422 passed / 2 skipped / 40 xfailed, ruff clean. The second skip is the tag check
on an untagged HEAD, which is correct here and will run on the re-pointed tag.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Polichinel
Polichinel merged commit 2bf99c0 into development Aug 13, 2026
4 checks passed
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