Skip to content

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].version and crates/hya-backend/Cargo.toml),
    • packages/hya-tui/frontend-version.ts (frontendVersion),
    • README.md, and
    • # <version> (exact first heading of CHANGELOG.md, no leading v).
  • versions.toml (minimum_backend_version): Mirrored as minimumBackendVersion in packages/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 /v2 backend contract.
  • versions.toml (abi_version): The independent Native Runtime ABI v2 SemVer, mirrored in hya_runtime_abi::ABI_SEMVER. The four boundary crates (hya-proto, hya-provider, hya-runtime-abi, and hya-tool) use 0.0.0 with [package.metadata.hya] version-reference = "abi". CI runs cargo run -p xtask -- check-abi to check abi-contract.lock against the ABI contract, cross-boundary dependency versions and features, and pinned Rust toolchain. For an intentional change to that contract, advance abi_version and ABI_SEMVER, then run cargo run -p xtask -- update-abi-lock and commit the lockfile. Host releases can advance independently while the ABI stays compatible.
  • Placeholder 0.0.0 everywhere else: All other Rust workspace crates use 0.0.0 with [package.metadata.hya] version-reference = "hya", and frontend/adapter package.json files use 0.0.0 with "hya": { "version-reference": "hya" }. @hya/tui-sdk maintains its own independent SemVer version (2.1.0 in packages/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 previous CHANGELOG.md to docs/changes/CHANGELOG_<old-version>.md and write fresh notes under # <new-version> in CHANGELOG.md. Historical docs/changes/CHANGELOG_BACKEND_*.md and CHANGELOG_FRONTEND_*.md files remain untouched as archive history.
  • Do NOT bump the version or touch CHANGELOG.md for 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 default install.sh and hya update).
    • Pre-release: v0.53.0-dev.1 or v0.53.0-rc.1 → publishes a GitHub Pre-release (installed only when pinned with --version v0.53.0-dev.1).
  • Independent ABI SDK release (^abi-v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$). The tag must match abi_version. For example, abi-v2.0.0 publishes 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 without v (0.53.0), and + build metadata are rejected by xtask and CI and must never exist locally or on origin.

3. Release Checklist

  1. Run pre-tag verification:
    Terminal window
    cargo test -p xtask -p hya-bundle -p hya-bundle-tooling
    actionlint .github/workflows/release.yml # if installed
    bash tests/hya_install_script.sh
    cargo run -p xtask -- release-rehearsal \
    --version <semver> \
    --target "$(rustc -vV | sed -n 's/^host: //p')" \
    --no-publish
  2. Push the version + CHANGELOG.md commit to main first, then tag and push:
    Terminal window
    git push origin main
    git tag -a v0.53.0 -m "release v0.53.0"
    git push origin v0.53.0
    For an independent ABI SDK release, push the commit containing the ABI version and lockfile first, then tag that commit:
    Terminal window
    git tag -a abi-v2.0.0 -m "release ABI SDK v2.0.0"
    git push origin abi-v2.0.0
  3. What CI publishes (.github/workflows/release.yml):
    • Unified release archives: hya-<version>-<target>.tar.gz for x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, and aarch64-apple-darwin, containing bin/hya, bin/hya-migration, pinned Bun (1.4.2), lib/hya/bun-adapter, lib/hya/claude-adapter, lib/hya/tui, lib/hya/tui-web, and lib/hya/tui-sdk. (No .hyabundle packages are embedded in the core archive; scripts/hya-install.sh installs the official default profile from the registry unless --bare or --profile <name> is passed.)
    • ABI manifests: Both tag types publish abi-manifest-<target>.json for 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 bundle hya-abi-sdk-<abi_id>-<target>.tar.gz.sigstore.json, and ABI-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-abi dispatches hya-abi-changed to chrono-foundry/hya-bundles when 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.sh serves scripts/hya-install.sh from main.)

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:

Terminal window
gh release delete v0.53.0-dev.1 --cleanup-tag --yes
git tag -d v0.53.0-dev.1
git fetch --prune --prune-tags origin