Versioning & Release Guide
Backend, migration tool, TUI, WebUI, and bundled adapters share one unified release version tracked in root versions.toml. Official bundles are maintained and released independently with their own SemVer versions in chrono-foundry/hya-bundles and distributed via chrono-foundry/hya-registry.
1. Where versions live
versions.toml(version): The unified aggregate release version (e.g."0.53.0"or"0.53.0-dev.1"). Mirrored in:Cargo.toml([workspace.package].versionandcrates/hya-backend/Cargo.toml),packages/hya-tui/frontend-version.ts(frontendVersion),README.md, and# <version>(exact first heading ofCHANGELOG.md, no leadingv).
versions.toml(minimum_backend_version): Mirrored asminimumBackendVersioninpackages/hya-tui/frontend-version.ts. Declares the oldest backend daemon or remote server this frontend accepts. Bump it only when a frontend change requires a newer/v2backend contract.versions.toml(abi_version): The independent Native Runtime ABI v2 SemVer, mirrored inhya_runtime_abi::ABI_SEMVER. The four boundary crates (hya-proto,hya-provider,hya-runtime-abi, andhya-tool) use0.0.0with[package.metadata.hya] version-reference = "abi". CI runscargo run -p xtask -- check-abito checkabi-contract.lockagainst the ABI contract, cross-boundary dependency versions and features, and pinned Rust toolchain. For an intentional change to that contract, advanceabi_versionandABI_SEMVER, then runcargo run -p xtask -- update-abi-lockand commit the lockfile. Host releases can advance independently while the ABI stays compatible.- Placeholder
0.0.0everywhere else: All other Rust workspace crates use0.0.0with[package.metadata.hya] version-reference = "hya", and frontend/adapterpackage.jsonfiles use0.0.0with"hya": { "version-reference": "hya" }.@hya/tui-sdkmaintains its own independent SemVer version (2.1.0inpackages/hya-tui-sdk/package.json).
When to bump the version
- Bump once whenever a change modifies shipped behavior (
crates/,proto/,packages/hya-tui*, adapters, or installer). Archive the previousCHANGELOG.mdtodocs/changes/CHANGELOG_<old-version>.mdand write fresh notes under# <new-version>inCHANGELOG.md. Historicaldocs/changes/CHANGELOG_BACKEND_*.mdandCHANGELOG_FRONTEND_*.mdfiles remain untouched as archive history. - Do NOT bump the version or touch
CHANGELOG.mdfor documentation-only changes (docs/,*.md, code comments,AGENTS.md,.plan/), CI-only changes (.github/), or test-only changes that leave shipped code untouched.
2. Git Tag Rules (Strict Contract)
Releases are published exclusively by .github/workflows/release.yml when a canonical v<version> or abi-v<abi_version> tag is pushed. Main-branch pushes, the daily schedule, and workflow_dispatch refresh dependency caches.
- Host release (
^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$):- Stable release:
v0.53.0→ publishes a GitHub Release (Latest, picked up by defaultinstall.shandhya update). - Pre-release:
v0.53.0-dev.1orv0.53.0-rc.1→ publishes a GitHub Pre-release (installed only when pinned with--version v0.53.0-dev.1).
- Stable release:
- Independent ABI SDK release (
^abi-v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$). The tag must matchabi_version. For example,abi-v2.0.0publishes SDK assets and ABI manifests as a non-latest GitHub Release. A prerelease suffix in the ABI version marks the release as a GitHub Pre-release. - Forbidden tags: Split prefixes (
backend/*,frontend/*), milestone tags (phase*), bare versions withoutv(0.53.0), and+build metadata are rejected byxtaskand CI and must never exist locally or onorigin.
3. Release Checklist
- Run pre-tag verification:
Terminal window cargo test -p xtask -p hya-bundle -p hya-bundle-toolingactionlint .github/workflows/release.yml # if installedbash tests/hya_install_script.shcargo run -p xtask -- release-rehearsal \--version <semver> \--target "$(rustc -vV | sed -n 's/^host: //p')" \--no-publish - Push the version +
CHANGELOG.mdcommit tomainfirst, then tag and push:For an independent ABI SDK release, push the commit containing the ABI version and lockfile first, then tag that commit:Terminal window git push origin maingit tag -a v0.53.0 -m "release v0.53.0"git push origin v0.53.0Terminal window git tag -a abi-v2.0.0 -m "release ABI SDK v2.0.0"git push origin abi-v2.0.0 - What CI publishes (
.github/workflows/release.yml):- Unified release archives:
hya-<version>-<target>.tar.gzforx86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu, andaarch64-apple-darwin, containingbin/hya,bin/hya-migration, pinned Bun (1.4.2),lib/hya/bun-adapter,lib/hya/claude-adapter,lib/hya/tui,lib/hya/tui-web, andlib/hya/tui-sdk. (No.hyabundlepackages are embedded in the core archive;scripts/hya-install.shinstalls the officialdefaultprofile from the registry unless--bareor--profile <name>is passed.) - ABI manifests: Both tag types publish
abi-manifest-<target>.jsonfor each target. - Native ABI SDK assets: Independent ABI releases and host releases with a changed ABI publish
hya-abi-sdk-<abi_id>-<target>.tar.gz, its keyless Cosign Sigstore bundlehya-abi-sdk-<abi_id>-<target>.tar.gz.sigstore.json, andABI-SDK-SHA256SUMS. Host releases compare the ABI digest with the matching independent ABI release and the previous host release. A match skips SDK republication and bundle dispatch. - Host checksums and attestations: Host releases publish
SHA256SUMS. CI generates GitHub build provenance attestations. - Bundle repo notification: On ABI SDK publication,
notify-bundles-abidispatcheshya-abi-changedtochrono-foundry/hya-bundleswhen the dispatch token is configured, so official native bundles can rebuild against the published ABI. - (The installer script itself is never attached to releases;
https://hya.ed-aisys.com/install.shservesscripts/hya-install.shfrommain.)
- Unified release archives:
Retracting a bad release tag cleanly
If you ever have to retract a tag that already created a GitHub Release, never delete only the Git ref (which leaves an orphaned untagged-* draft Release on GitHub). Run:
gh release delete v0.53.0-dev.1 --cleanup-tag --yesgit tag -d v0.53.0-dev.1git fetch --prune --prune-tags origin