Skip to content

release

Terminal window
furca release plan [-C PATH] [--json]
furca release run [-C PATH] [--json]
furca release resume [-C PATH] [--json]
furca release verify [TAG] [--install] [-C PATH] [--json]

plan reads release.toml at the root of the repository and says what the next release is, what stands in its way and what a run would do. It changes nothing: no file, no tag, no commit.

run makes the same plan and carries it out - bump, changelog, gate, commit, push, CI, tag, publish, verify, install, deploy, notes, record - and stops at the first step that is not green. resume carries on a run that stopped after its commit. See Run below.

verify checks the shop windows of a release that went out - its page and files, the registries, the links - for any tag. See Verify.

Terminal window
$ furca release plan
furca 0.2.0 -> 0.3.0, a minor step, from the record
stage v0.3.0 "Release engine: plan"
pass number v0.3.0 is free: a minor step after v0.2.0
the commits alone would give v0.2.1
pass commits 1 commit since v0.2.0: 1 other
pass stack updated today
297fbea chore(deps): update the toolchain and dependencies on 2026-10-04
pass manifests 7 fields say 0.2.0, the bump rewrites them
pass readme one README, its links absolute
pass descriptions 3 packages describe themselves
pass texts 1 follows the bump, 3 name a later version
later: crates/furca-core/benches/budgets.json:25: v0.7.0
pass changelog the new section goes under the header of CHANGELOG.md
warn registries furca-release is not published yet: the first publish is by hand
crates.io `furca-core`: 0.2.0
crates.io `furca-release` is not published yet: the first publish is by hand, and only then can a tag publish it
crates.io `furca`: 0.2.0
pass trigger pushing v0.3.0 starts publish.yml
pass installers 2 installers ask for 3 targets the release page carries
pass record stage v0.3.0 "Release engine: plan"
The run would
bump Cargo.toml workspace.package.version: 0.2.0 -> 0.3.0
crates/furca-cli/Cargo.toml dependencies.furca-core.version: 0.2.0 -> 0.3.0
package.json version: 0.2.0 -> 0.3.0
README.md line 50: v0.2.0 -> v0.3.0
changelog a section for 0.3.0 in CHANGELOG.md
gate cargo fmt --all --check
cargo test --workspace
commit chore(release): v0.3.0
ci wait for ci.yml on GitHub
tag v0.3.0, which starts publish.yml
publish crates.io furca-core (0.2.0 now)
crates.io furca-release (not there yet: the first publish is by hand)
crates.io furca (0.2.0 now)
verify release page: furca-v0.3.0-x86_64-pc-windows-msvc.zip
crates.io: furca-core
the links the manifests show
install furca from the release, proven by its hash
Ready: nothing stands in the way.

Lists are shortened here; the command prints every line.

The plan proposes one number, from the first source that has one:

  1. The record. When rigger is installed and keeps this project at this path, the stage it says is being built names the version - v0.3.0, or v1.15 for 1.15.0. The record is only asked; furca never writes to it.
  2. The commits since the last release tag, read as Conventional Commits: a breaking change (! or a BREAKING CHANGE: footer) is a major step, a feat a minor one, anything else a patch. Before 1.0 a breaking change is a minor step.
  3. The manifests, for a first release with no tag and nothing in any registry yet.

Whatever the source, the number has to be the next free one. Taken means a tag or any version a registry has ever held - crates.io keeps yanked versions and npm never reuses an unpublished one. A number that skips one (0.7.0 after 0.5.0) is refused, and so is a number smaller than the commits ask for (a patch over a feature). A stage that names another number is renamed, not followed: the release takes the next free number.

Check Fails when
number The number is taken, skips one, or is too small for the commits.
commits Nothing has been committed since the last release. Commits outside the convention are a warning.
stack The last chore(deps) commit is seven days old or more: the stack is updated before a new version, at most once a week. With none in the history the first commit stands in for it - a project is born on the stack of its day - until that too is a week old.
manifests The files in manifests disagree, or say neither the last release nor the next. A Cargo workspace brings in its members and the version of every path dependency between them. A package’s manifest must be among the files the bump rewrites, name the package as release.toml does and allow publishing.
readme There is no README.md at the root, a published package’s directory keeps a README of its own, a crate’s readme is not the root one, or a link in it is relative (it breaks on crates.io and npm).
descriptions A package has no description, or a wrapper describes the product in other words than the package it wraps.
texts A text names a stale version of the product - see below.
changelog The changelog already has a section for the new number while the manifests still carry the old one - the run would write it twice. Once the manifests carry the new number, the section is the release’s own. A missing section for the last release is a warning.
registries A registry could not be asked, so the number is not proven free. A package no registry has seen is a warning: the first publish is by hand, and only then can a tag publish it.
trigger Pushing the tag would not start ci.publish: its tag filter leaves the tag out, it starts on pushed branches only, or it cannot be read. A held trigger - no push event at all - is a warning, and the bump puts it back (see below).
installers tools/install.ps1 or tools/install.sh asks for a target - x86_64-unknown-linux-musl, or the tail of one built from a variable - that no file of [page] assets is built for. An installer whose targets cannot be read, or [page] missing, is a warning.
record Never fails. A warning when there is no stage to read.

warn is worth reading and does not stop the release; fail does.

A version the bump would rewrite on a Markdown table row is a texts warning: a row is as likely a record (“since v1.4.0”) as a sample, and rewriting a record turns it into a lie. If it is history, put it in a historical-versions block.

A new repository’s first publish is by hand - a tag cannot create a package its registry has never seen - and the habit was to hold the publish workflow’s tag trigger until then, and to forget to put it back. A run never tags before every package is in its registry, so the hold protects nothing. When the publish workflow has no push event, the bump writes one into its on: - on: workflow_dispatch, on: [a, b] and a block map are all rewritten, every other line kept - and the release commit carries it:

on:
push:
tags: ['v*']
workflow_dispatch:

The workflow is read with a YAML parser and the tag matched against its filters as GitHub matches them (*, **, ?, +, [0-9], !), so a tags: in a comment is no trigger. A comment that explains the hold stays, and is worth deleting.

Every tracked file that carries samples and examples - Markdown, workflows, installers, JSON, TOML, HTML, scripts - is read for versions of the product: v1.2.3, or a version after one of its names (furca 1.2.3, furca@1.2.3). A bare 1.2.3 is left alone; in prose it is as often a dependency’s number. Lockfiles and source code are not read.

Each one is:

  • the last release - the bump rewrites it to the new number, and the plan lists it under bump;
  • the new number - already written;
  • a later version - a plan for the future, listed and allowed;
  • history - inside a block that says so;
  • stale - anything else, and the release stops.

An example that means “some version” writes the shape, vX.Y.Z, which is no version at all and never goes stale. A number that is history - the release that first did a thing - goes inside a block whose end is stated:

<!-- historical versions -->
| Since | Command |
| --- | --- |
| v0.1.0 | `status` |
<!-- /historical versions -->

In files that are not markup the same words go in a # or // comment. A block left open is reported, so an exemption cannot quietly cover the rest of the file. Whole files whose numbers stay as written - ADRs, pages of examples

  • are listed in as_written.
Terminal window
$ furca release run
plan v0.4.0 is ready
bump Cargo.toml workspace.package.version: 0.3.0 -> 0.4.0
bump Cargo.lock package.furca-core.version: 0.3.0 -> 0.4.0
changelog ## [0.4.0] - 2026-10-11
gate cargo fmt --all --check
gate cargo test --workspace
commit 4c3ea3f chore(release): v0.4.0
push 4c3ea3f to origin refs/heads/main
ci ci.yml running
ci ci.yml passed
tag v0.4.0 on 4c3ea3f
publish publish.yml running, release.yml running
publish publish.yml passed, release.yml passed
publish 0.4.0 is in crates.io; the release page has 6 files
verify page, registries, links pass
install tools/install.ps1 for v0.4.0
install comparing C:\Users\ada\AppData\Local\Programs\furca\furca.exe with the release's own build
install furca 0.4.0 is installed, the release's own build
record v0.4.0 shipped
furca v0.4.0 is out.
done plan furca 0.3.0 -> 0.4.0
done bump 8 places say 0.4.0
...
done install furca 0.4.0 is installed, the release's own build
skipped deploy release.toml asks for no deploy
done record the record has v0.4.0 as shipped

Each step is printed on standard error as it happens; the report goes to standard output at the end. Lists are shortened here.

Step What it does It stops when
plan Makes the plan. The branch must follow a remote, the working tree must be clean, and the remote must have nothing the branch lacks. A check fails.
bump Rewrites every place in steps.bump and nothing else, keeping each file’s formatting: comments, key order, line endings. A Cargo workspace’s tracked Cargo.lock is bumped with it, so a build does not change it later. A held tag trigger is put back. Then runs bump.after from the root, as the gate runs its commands, and takes the tracked files they changed into the release’s edits: they go into the release commit, or back with the rest. A file no longer says what the plan saw, or a command after the bump fails or makes a file git does not track.
changelog Renders the release’s section with git-cliff from the repository’s cliff.toml (git-cliff’s default without one) and puts it under the changelog’s header. Everything already in the file stays byte for byte. -
gate Runs gate.commands one by one from the root, through cmd /C on Windows and sh -c elsewhere, their output on the terminal. A command fails, or the gate changed a tracked file: a gate checks, it does not edit.
commit Commits the release’s edits as chore(release): vX.Y.Z with your own git, hooks and all. git refuses.
push Pushes the branch to its remote. The remote moved on.
ci Waits for ci.workflow on the pushed commit, as push –wait-ci does. It fails, is skipped, never starts, or is still running after two hours.
tag Makes the annotated tag on the green commit and pushes it. Every package must already be in its registry: a tag cannot create one. A package was never published, or the tag already names another commit, here or on the remote.
publish Waits for the workflows the tag starts, ci.publish among them, then for each registry to hold the version. A release with no packages waits for ci.publish all the same: it is what puts the release page out. A workflow fails, or a registry still lacks the version ten minutes after.
verify Checks the shop windows of the tag, as verify does: the page and its files, the registries, the links. Any of them fails.
install With [post.install]: runs tools/install.ps1 (Windows) or tools/install.sh with {APP}_VERSION pinned to the tag, then proves it - see The install proof. Skipped without it. The installer fails, or the proof does.
deploy With [post.deploy]: runs turnout deploy --foreground from the root. turnout’s own configuration names the stand; it checks the stand’s health and rolls a failed deploy back. Skipped without it. turnout exits non-zero or is not installed.
notes Ticks the first box of the ### Checked live list the release’s notes end with, if they do: the install and the deploy have just proved it. The boxes after it stay for a person. Skipped when the run did neither, or there is nothing to tick. Never: a list it cannot tick is said, and left to tick by hand.
record Writes the release into the owner’s record as shipped - tag, registries, the release page as it stands now, install, deploy - when rigger keeps this project here. Without one it says so and carries on. -

An installer that exits 0 has not proven anything: an alias can keep the old binary, a self-update can say it updated and not have, and a local build of the same number prints the same --version. So the install step checks what is on the machine afterwards:

  1. found - the program, by the name post.install.bin, is on the PATH. A first install adds its directory to the user PATH, which the running process does not see: open a new terminal and resume.
  2. version - its --version names the release’s number as a word of its own.
  3. build - its SHA-256 equals that of the program inside the release page’s archive for this machine’s target (x86_64-pc-windows-msvc, …), downloaded and unpacked by the system tar (unzip for a zip outside Windows). Where post.install.files names a file for the target, it is that file, and a file that is not an archive is hashed as it is. This is what tells the release’s own bytes from anything else.
  4. aliases - every name in post.install.aliases is on the PATH with the same hash.

On Windows the installer renames a running furca.exe aside before it copies the new one, so a furca can install its own release.

Before the release commit the steps are local, and a stop there is undone rather than resumed: a red gate puts every edited file back as it was. Fix the problem, commit the fix, and run again - a fix made on top of uncommitted release edits would ride into chore(release) and miss the changelog section written before it.

One run goes at a time, whichever door it came through. A run holds a lock on .git/furca-release.lock, which the system lets go of when the process ends, however it ended; a second run stops at plan and says one is going (ADR 0018).

After the commit the steps are remote and slow, and a stop there keeps its place in a checkpoint, .git/furca-release.json. resume carries on from the step that stopped:

  • CI is red. Fix it with a new commit. resume pushes it, waits for CI on it and tags it - the tag always names a commit whose CI is green.
  • A package was never published. A tag cannot create a package its registry has not seen. Publish it by hand from the commit about to be tagged (cargo publish -p NAME), then resume.
  • The publish workflow failed. The tag is out and stays. Fix the workflow and run it again for the tag, or publish by hand; resume then finds the version in the registries, which is what counts. The tag’s other workflows - the release page among them - still have to end green.
  • A shop window is out of order. The tag is out and stays. Mend it - run the release workflow again for a missing file, fix the site for a dead link - then resume, which verifies again.
  • The install or the deploy failed. Fix it, then resume: a step that passed is not repeated, so a red deploy does not install again.
  • The run was killed. resume picks up the step it was in. A run killed before its commit has its edits taken back by the next run.

run refuses to start while a release is under way past its commit, and resume with nothing under way says so. Nothing pushed is ever rewritten and a tag is never moved.

Terminal window
$ furca release run --json
{
"project": "furca",
"version": "0.4.0",
"tag": "v0.4.0",
"released": true,
"steps": [
{ "name": "plan", "status": "done", "summary": "furca 0.3.0 -> 0.4.0", "details": [] }
],
"commit": "4c3ea3f…",
"registries": ["crates.io"],
"page": { "draft": false, "assets": ["furca-v0.4.0-x86_64-pc-windows-msvc.zip"], "url": "https://github.com/lacodda/furca/releases/tag/v0.4.0" },
"git": [
{ "args": ["push", "--quiet", "origin", "HEAD:refs/heads/main"], "code": 0, "millis": 1840, "at": 1794021295042, "input": "", "said": "" }
]
}

Lists are shortened here to one entry each. With --json the gate’s own output goes to standard error, so standard output stays one document.

The window runs the same engine: see Releasing.

Field Meaning
released true once the release is tagged, published, in every shop window, installed and deployed where release.toml asks, and recorded.
steps[].name plan, bump, changelog, gate, commit, push, ci, tag, publish, verify, install, deploy, notes, record, always in this order.
steps[].status done; skipped - nothing to do, or done before a resume; stopped - the run stopped here; ahead - not reached.
steps[].details For verify and install, one line per check: pass build: ..., its details indented under it.
registries The registries that hold the version.
page The release page the tag’s workflows put out; null when there is none.
git Every git command the run made, in order: at is when it started, in milliseconds since the Unix epoch, input what it was given on standard input, and said what it printed on standard error, with any password in an address taken out.

The CLI runs anywhere a release archive does, GitHub Actions included. The repository carries an action that installs it by tag:

- uses: actions/checkout@v7
with:
fetch-depth: 0 # the tags: without them every release looks like the first
- uses: lacodda/furca@vX.Y.Z
- run: furca release plan

A run in CI pushes with the job’s token, so it needs contents: write, and commits as whoever git config user.name and user.email name there.

Terminal window
$ furca release verify v0.4.0 --install
furca v0.4.0
pass page out with every file release.toml lists (3 of 6)
https://github.com/lacodda/furca/releases/tag/v0.4.0
pass registries 0.4.0 is in crates.io
crates.io `furca-core`: 0.4.0
crates.io `furca-release`: 0.4.0
pass links 2 links answer
https://lacodda.github.io/furca/: 200
https://github.com/lacodda/furca: 200
pass installer tools/install.ps1 installed v0.4.0
pass found C:\Users\ada\AppData\Local\Temp\.tmpXj4gTa\furca.exe
pass version C:\Users\ada\AppData\Local\Temp\.tmpXj4gTa\furca.exe says `furca 0.4.0`
pass build the release's own build, as in furca-v0.4.0-x86_64-pc-windows-msvc.zip
sha256 e4591bf9a6ff4c89b20ce593d1c59de6968ab15bd5f903cc1f1f007b305c7af4
Every shop window is in order.

verify reads what a stranger sees of a release that went out. TAG defaults to the newest release tag. Nothing is changed.

Check Fails when
page The tag has no release page, it is still a draft, or it lacks a file [page] assets lists. Other files on it are fine.
registries A package’s registry does not hold the version. One that never saw the package says how the first publish goes by hand.
links A homepage, documentation or repository link a manifest shows does not answer with a success after its redirects. No links at all is a warning.

--install also installs the release into a temporary directory with the repository’s installer - {APP}_INSTALL_DIR set to it, {APP}_NO_PATH=1 so the PATH is left alone - and proves it as the run’s install proof does, there instead of on the PATH. It needs [post.install].

The run’s verify step is the same check without --install; its install step proves the owner’s own install.

[project]
name = "turnout"
changelog = "CHANGELOG.md"
manifests = ["Cargo.toml", "npm/package.json"]
as_written = ["docs/adr/"]
[bump]
after = ["cargo run --quiet -- export --to tests/fixtures/export.json"]
[gate]
commands = [
"cargo fmt --all --check",
"cargo clippy --all-targets -- -D warnings",
"cargo test",
]
[ci]
provider = "github"
workflow = "ci.yml"
publish = "publish.yml"
[[package]]
registry = "crates"
name = "turnout"
manifest = "Cargo.toml"
[[package]]
registry = "npm"
name = "turnout-cli"
manifest = "npm/package.json"
wraps = "turnout"
[page]
assets = [
"turnout-{tag}-x86_64-pc-windows-msvc.zip",
"turnout-{tag}-x86_64-unknown-linux-gnu.tar.gz",
"turnout-{tag}-aarch64-apple-darwin.tar.gz",
]
[post.install]
aliases = ["tn"]
[post.deploy]

Paths are relative to the root and use /. Every problem in the file is reported at once; an unknown key is a problem, not something to ignore.

Key Meaning
project.name The product’s name: the word its own output prints before a version, and the name the record knows it by.
project.changelog The changelog the release adds a section to, under its header.
project.manifests Every file that carries the version: a Cargo.toml (a package, or a workspace root that brings in its members) or a JSON file with a top-level "version".
project.as_written Files, or directories ending in /, whose versions are left as written. The changelog always is.
bump.after Shell commands run from the root once the new number is written and before the gate, in order: what only the new version can make, such as a fixture its own binary writes. The tracked files they change are committed with the bump. A file they make that git does not track stops the run - nothing would commit it - so commit it once by hand first.
gate.commands Shell commands run from the root, in order; the first to fail stops the release before anything is committed. Keep it to what takes seconds: what needs a build is CI’s, and the ci step waits for it before the tag.
ci.provider github or forgejo.
ci.workflow The workflow that has to be green on the release commit before it is tagged, as a file in .github/workflows/ or .forgejo/workflows/.
ci.publish The workflow a tag starts to publish the packages, if there is one.
package[].registry crates or npm.
package[].name The name the registry knows the package by; it has to match the manifest.
package[].manifest The manifest that describes the package.
package[].wraps The package of another registry this one ships the binary of - an npm wrapper around a crate’s CLI, which may share its name. The two must describe the product the same way.
page.assets The files the tag’s release page has to carry, {tag} and {version} filled in. verify checks the page has them; installers checks every target an installer asks for is among them.
post.install Install the release for the owner after the publish with tools/install.ps1 and tools/install.sh, which must exist, and prove it.
post.install.bin The program the installers put on the PATH; the project’s name when left out. Upper-cased, it prefixes the installers’ variables: FURCA_VERSION.
post.install.aliases Other names the installers make for it, such as tn for turnout; each must be the same build.
post.install.files The file of the release page that holds the program for a target, by target, where the file’s name does not say: a desktop release’s app_{version}_amd64.AppImage. Written as page.assets writes it, and it has to be one of them. A file that is not an archive is the program itself. A target it does not name goes by an archive with the target in its name, as before.
post.deploy Deploy with turnout after the install. It takes no keys: the stand is turnout’s own configuration.

The file is public and holds nothing private - no machine paths, no stand names, no tokens. What belongs to the owner’s machine is asked of the tool that keeps it.

Terminal window
$ furca release plan --json
{
"project": "furca",
"released": "0.2.0",
"proposed": { "version": "0.3.0", "tag": "v0.3.0", "source": "record", "bump": "minor" },
"stage": { "version": "0.3.0", "title": "Release engine: plan" },
"changes": [
{ "id": "297fbea…", "subject": "chore(deps): update the toolchain and dependencies", "kind": "chore", "scope": "deps", "breaking": false }
],
"tally": { "total": 1, "breaking": 0, "features": 0, "fixes": 0, "other": 1, "unconventional": 0 },
"checks": [
{ "name": "number", "status": "pass", "summary": "v0.3.0 is free: a minor step after v0.2.0", "details": ["the commits alone would give v0.2.1"] }
],
"steps": {
"bump": [
{ "path": "Cargo.toml", "at": "workspace.package.version", "from": "0.2.0", "to": "0.3.0" },
{ "path": "README.md", "at": "line 50", "from": "v0.2.0", "to": "v0.3.0" }
],
"after_bump": [],
"changelog": "CHANGELOG.md",
"gate": ["cargo fmt --all --check"],
"commit": "chore(release): v0.3.0",
"ci": { "provider": "github", "workflow": "ci.yml", "publish": "publish.yml" },
"tag": "v0.3.0",
"publish": [
{ "registry": "crates", "name": "furca-release", "latest": null, "first": true }
],
"verify": ["release page: furca-v0.3.0-x86_64-pc-windows-msvc.zip", "crates.io: furca-core", "the links the manifests show"],
"post": { "install": { "bin": null, "aliases": [] }, "deploy": null }
},
"would": [
{ "step": "bump", "what": "Cargo.toml workspace.package.version: 0.2.0 -> 0.3.0" }
],
"ready": true
}

Lists are shortened here to one entry each.

Field Meaning
released The last version released, by tags and registries; null before the first release.
proposed.source record, commits or manifests - where the number came from.
proposed.bump patch, minor or major from released; null for a first release.
stage The stage the record says is being built; null without a record.
changes Commits since the last release tag, newest first. kind is null for a message outside the convention.
checks[].name number, commits, stack, manifests, readme, descriptions, texts, changelog, registries, trigger, installers, record - stable identifiers.
checks[].status pass, warn, fail, or skip for a source that was not asked.
steps.bump Every edit the bump makes: a manifest key, or a line of a text.
steps.after_bump The commands bump.after runs once the new number is written.
steps.publish[].first true when the registry has never seen the package.
steps.verify What the verify step looks at.
steps.post install and deploy as release.toml has them; null for one it does not ask for.
ready true when no check fails.

plan: 0 when the release is ready, 1 when something stands in its way. run and resume: 0 when the release is out, 1 when the run stopped - the report says where and why. verify: 0 when every check passes, 1 when one fails. All four: 2 when there is no answer at all - no release.toml, a problem in it, no repository, no forge behind the remote, or a forge or registry that could not be asked.

Option Meaning
-C, --repo <PATH> A path inside the repository. Defaults to ..
--json Print JSON instead of text.
  • ADR 0006 - why the engine is a crate of its own.
  • ADR 0007 - why a run is redone before its commit and resumed after it.
  • ADR 0008 - why the steps after the tag prove what they did.
  • push - how the forge is asked and with which token.
  • ADR 0003 - the pipeline and the invariants it holds.