Release workflow for lessence — the owner starts a release and approves publishing it; the agent runs every step between: version bump, changelog, release-check, dry run. Use when preparing a release, checking whether one is ready, fixing a release that went wrong, or understanding how versions are managed.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Release?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/air-gapped-release)
---
name: release
description: >-
Release workflow for lessence — the owner starts a release and approves
publishing it; the agent runs every step between: version bump, changelog,
release-check, dry run. Use when
preparing a release, checking whether one is ready, fixing a release that
went wrong, or understanding how versions are managed.
---
# Release Workflow
**The owner decides twice; the agent runs every step between.** The owner
says when a release starts (step 0) and when it goes public (before step 7).
There is no bot. release-please
was removed on 2026-09-22 after it produced two tagged-but-unpublished
versions and a stale changelog; nothing opens a PR against this repo any
more.
A release is a tag plus a published GitHub release. Pushing `main` does
**not** start one — push freely, but remember the repo is public and
everything pushed is visible.
## The sequence
Nothing here is optional and the order matters: the tag is a public claim
and must never point at a commit that failed a check.
```bash
# 0. OWNER STOP: the owner says a release starts. Without that, stop here.
# 1. Everything intended for the release is committed and on main.
git status --short # clean
git log --oneline <last-tag>..HEAD
# 2. Decide the version from what is IN that range, not from habit.
# feat: -> minor. fix:/perf: -> patch. A changed or removed --format json
# field, flag or exit code is BREAKING: minor while 0.x, major after 1.0.
# 3. Bump the version and write the changelog section BY HAND.
# Users read this. Say what changed for them, not what moved in the code.
# Read each line of the notes as a CLI user. A line a user would not
# notice (tests, CI, refactors, internal cleanup) is dropped.
$EDITOR Cargo.toml CHANGELOG.md
cargo build --release # refresh Cargo.lock
make gate # the pre-commit hook wants it for Cargo.toml
git commit -am "chore: release X.Y.Z"
# 4. Refresh the README compression table AFTER the bump: its freshness
# check compares src/ and Cargo.toml, so a table measured before the
# bump is stale by definition. Needs a release binary built from HEAD.
cargo build --release
./scripts/readme-compression.sh --write vX.Y.Z
git commit -am "docs: README compression table measured for vX.Y.Z"
# The agent skill needs no step here: the commit-msg hook made every
# user-facing src/ commit update it or say `Skill-Unchanged: <reason>`.
# 5. The gate: it decides whether the build passes its checks.
make release-check # ~20 min
# 6. Dry run of the release on every platform: the whole test suite, the
# build, the smoke tests and the packaging, natively on macOS and
# Windows and under qemu for aarch64. Nothing is tagged or published.
# Manual only — nothing builds on push.
git push origin main
gh workflow run release-build.yml --ref main
gh run watch "$(gh run list --workflow release-build.yml --limit 1 --json databaseId -q '.[0].databaseId')" --exit-status
# OWNER STOP: report the release-check and dry-run results and the
# changelog section to the owner, and wait for his go-ahead to publish.
# Without it, stop here: step 7 makes the release public.
# 7. The release, only after both passed and the owner said go. The same jobs run again, and only
# if every one is green does the workflow create the tag and the GitHub
# release at the tested commit (notes: the version's CHANGELOG.md
# section), and only after that publish the crate. A perf delta over the
# gate's threshold is the owner's call; once accepted, that gate line is
# the one FAIL release-check may carry, and the handoff states it.
gh workflow run release-build.yml --ref main -f tag=vX.Y.Z
gh run watch "$(gh run list --workflow release-build.yml --limit 1 --json databaseId -q '.[0].databaseId')" --exit-status
# 8. After the release run, by hand: read gh run view <run id>; fix any
# deprecation in its ANNOTATIONS section, and report runner migrations to
# the PM.
gh run view "$(gh run list --workflow release-build.yml --limit 1 --json databaseId -q '.[0].databaseId')"
```
Never tag by hand and never `gh release create` by hand: the workflow
creates both, after the matrix. That order is the fix for 0.8.0, which was
released first and built second, and whose crate reached crates.io while
macOS was failing to compile (yanked). It follows astral-sh/uv and ruff:
a manual workflow whose default input is a dry run, `release` needing
every build, `publish-crate` needing `release`.
## What release-check proves
`scripts/release-check.sh`, writing `target/gate/release.json`:
| Check | Meaning |
|---|---|
| gate vs the last **published** release | not the last tag — a tag can exist with no release behind it, and comparing to it hides what the upgrade costs |
| mutants `--in-diff` | the tests kill the mutants the diff introduced |
| `make ci` | fmt, clippy, doc, tests, deny |
| slow tests | the wall-clock profile the default profile excludes |
| README compression table | generated at a commit whose `src/` equals today's |
| agent skill moved with the behaviour | every user-facing `src/` commit after `sources.md`'s `verified-at:` updates the skill or carries `Skill-Unchanged:` |
| release targets | `cargo check --release --target` for every shipped target: a Linux-only API is caught here, not on the release runners |
The skill check used to be a GitHub check on the release-please PR branch. With
no PR to hang it on it moved into `release-check`, because a check that only
fires on a branch nobody creates is a check that never runs.
**Perf against the last published release** is measured by `make
release-check`, which runs the gate against that release's build; state the
cumulative number in the handoff.
## Version rules
- `Cargo.toml` is edited by hand now. Nothing rewrites it.
- The tag is `vX.Y.Z`; `Cargo.toml` carries `X.Y.Z`.
- **The version string is `CARGO_PKG_VERSION`** (`src/cli.rs`) plus the
short commit sha from `git rev-parse --short=9` (`build.rs`). It does not
come from the tag: a build past a release reports the `Cargo.toml` version
with its own sha, so bump `Cargo.toml` in the release commit.
- A tag is public the moment it is pushed. Do not push one speculatively.
## If something goes wrong
- **A build or test fails in the release run**: nothing is public — the tag
is created only after the whole matrix passes. Fix on main, push, and run
the release again.
- **The crate did not publish** (release created, `publish-crate` red):
`gh run rerun <run-id> --failed` retries only that job. crates.io
publishes are immutable; never publish from a laptop to work around it.
- **A published version is broken**: yank it on crates.io (the owner holds
the login), turn its GitHub release back into a draft, and supersede it —
a yanked version can never be reused.
## History worth keeping
Two releases, `v0.6.0` and `v0.7.0`, were tagged and drafted but never
published, while users stayed on `v0.5.0`. That is the failure this process
exists to prevent: the drafts were deleted, the tags kept (they are true —
those commits were tagged), and the next release supersedes them.