Repository navigation
chore: prepare the v2.2.0 release - #33
Merged
Merged
Conversation
Set the version to 2.2.0 and update uv.lock with uv 0.13.12, the version that wrote it. Point the README's installation command at the v2.2.0 tag of this repository: `pip install -U heretic-llm` installs the original project's 2.1.0 from PyPI, and this release is published on GitHub only (decision 1 in the roadmap). Tick the release item in the roadmap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
redchupa
force-pushed
the
chore/release-v2.2.0
branch
from
December 4, 2026 01:00
6f4aa8d to
75e484e
Compare
3 of 4 tasks
3 of 4 tasks
redchupa
added a commit
that referenced
this pull request
Dec 4, 2026
Start the next development version after the v2.2.0 release, which is tagged on the merge of #33, as the original project did after each release. Without it, models made from master would say in their model cards and in reproduce.json that they were made with v2.2.0, although they can contain later changes. uv.lock is updated with uv 0.13.12, the version that wrote it; only the version line of heretic-llm changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Prepares the v2.2.0 release, the last open item of stage 2 in the roadmap. Following decision 1, this is a GitHub release only; PyPI is deferred. This PR does not create the tag or the release.
pyproject.toml: version2.2.0.dev0→2.2.0. The distribution name staysheretic-llm.uv.lock: updated withuv lock, using uv 0.13.12, the version that wrote the current lock in build: require Python 3.11 and PEFT 0.22 #30. Apart from the version line, uv put one marker line in a different place in fourresolution-markerslists; no package, version or hash changed. (The older uv 0.11.8 would have rewritten the lock asrevision = 3.)README.md: the Usage section saidpip install -U heretic-llm, which installs the original project's 2.1.0 from PyPI. It now installs this release from its tag,pip install git+https://github.com/redchupa/ai-security@v2.2.0, says that this needs Git, and says what the PyPI package is. Nothing else in the README ordocs/tells users to install from PyPI, andSECURITY.md("included in the next release") needs no change.docs/ROADMAP.md: ticks the release item, whose text already says that the tag and the GitHub release follow the merge.Why a Git URL. Heretic records how it was installed. For a Git installation,
reproduce.jsonrecords the repository, the tag and the commit, the uploaded reproduction instructions tell readers to install that exact commit, andheretic --reproducecompares it with the installed version. An installation from an archive or wheel URL is recorded as an unknown source instead, and--reproducethen fails (see Follow-ups).Does the version reach the reproducibility hashes? No. The Heretic version appears in the startup banner, in the heading of the model card (
README.md, "made using Heretic v2.2.0", written on every save since #19), and in thereproduce/files written on upload.tests/*/SHA256SUMS.*hash only the weights,config.json,generation_config.json,processor_config.json,chat_template.jinja,tokenizer.jsonandtokenizer_config.json, and the tests don't upload. To check, I rantests/run_tests.pyon master and on this branch on the same machine and compared every file the 11 tests wrote: all hashed files are byte-identical, the model cards differ only inv2.2.0.dev0→v2.2.0, and the three adapter tests'adapter_config.json(not hashed) list the sametarget_modulesin a different order (PEFT keeps them in a set, whose order changes from one Python process to the next). NoSHA256SUMSfile changes.Release notes
Ready to paste into the GitHub release
v2.2.0(titlev2.2.0, like upstream's). They cover everything sincev2.1.0: the upstream commits after it up tocd315cband this repository's merged pull requests. Like upstream's notes for v2.0.0 and v2.1.0, they are grouped by what users notice and credit contributors by name. Upstream kept no changelog file ([project.urls] Changelogpoints to the releases page), so they are here rather than in the repository. They are in a code block so that this PR doesn't notify everyone credited; in the release,@name,#Nandp-e-w/heretic#Nbecome links.Notes on the release notes:
SECURITY.mdcovers. No advisory was published. If you'd rather not call it a security fix, move it to Fixes.Co-authored-by:trailer (feat: add logger plugins and a JSON Lines logger #23 and feat: determine batch sizes while running instead of benchmarking at startup #24). The GitHub handles were checked against the authors of the upstream PRs.After merging
v2.2.0and publish the release with the notes above. Upstream also attached a source zip with a Sigstore bundle (heretic-2.1.0.zip,heretic-2.1.0.zip.sigstore.json), which no workflow in the repository produces. I'd attach nothing besides GitHub's own source archives, and in particular no wheel, until the archive-URL bug below is fixed, because a model made from such an installation can't be reproduced.masterto2.3.0.dev0in a small PR right after tagging (chore: bump version to 2.3.0.dev0, withuvx uv@0.13.12 lock). Upstream did this every time: chore: bump version to 2.1.0.dev0 p-e-w/heretic#558 (2.1.0.dev0) was the first change after v2.0.0, and chore: bump version to 2.2.0.dev0 p-e-w/heretic#573 (2.2.0.dev0) was merged the day v2.1.0 was tagged. Without it, models made from master after the tag would say "v2.2.0" in their model cards and inreproduce.json.uv.lock. If it is merged first, rebase this PR and lock again with uv 0.13.12 rather than resolving the conflict by hand.Testing
tests/*/SHA256SUMS.*file changes, or the description explains why model outputs are meant to change.On Windows 11 with CPU PyTorch:
uv sync --all-extras --dev,uv run ruff format --check .,uv run ruff check --extend-select I .anduv run ty check --error-on-warning .pass;uv lock --checkpasses with uv 0.13.12 and 0.11.8.uv run tests/run_tests.py: deepseek-v4, deepseek-v4-ara, gemma-3, gemma-4e and qwen3.5-moe differ from the committed hashes on this machine, and they differ in exactly the same way on master (same files, byte-identical outputs). The other 6 pass. CI runs them on the reference platform.uv buildbuildsheretic_llm-2.2.0.tar.gzandheretic_llm-2.2.0-py3-none-any.whl. The wheel's metadata saysVersion: 2.2.0andRequires-Python: >=3.11, and its description has the new install command.Follow-ups (not in this PR)
get_heretic_version_info()records them withmetadata.type = "unknown", andformat_version_information()inreproduce.pyraisesValueError: unknown metadata.type value in version informationfor that type, soheretic --reproducefails on such an installation, or for a model made with one. That includespip installof the release's own "Source code" archive. Pre-existing (upstream has the same code), listed under Known issues.made using [Heretic](https://heretic-project.org) v2.2.0. That site describes the original project, which has no 2.2.0. Whether to link this repository instead is an attribution decision for the roadmap; the card is not hashed, so it would not change any test.AI use declaration
Check either of the following:
understand it, and can answer questions about it without relying on the AI.
🤖 Generated with Claude Code