Follow the shared release procedure and devkit's release guide. This page records oxide-code's versioning, release preparation, and publication contracts.
- Through 0.1.0: tag
v0.1.0-alpha.Nfrommainfor each user-visible batch or fix. Once the rc gates pass, tagv0.1.0-rc.1(no beta stage). - Soak: each rc starts a seven-day soak. Any bug found joins the next rc's milestone, ships in the next rc, and restarts the soak. After a soak ends without a new bug, tag
mainasv0.1.0. - Main during a soak: merge only
fix,docs,test, andchore(release)PRs so the stable commit matches the soaked rc plus its fixes, holding feature and refactor PRs until after the tag. Disable Renovate automerges by setting"enabled": falsein.github/renovate.jsonat soak start and reverting after the stable tag (both viaci(renovate)PRs). - After 0.1.0: breaking changes to the stability surface bump the minor version, and other changes bump the patch version. Prereleases of the next minor (
v0.2.0-alpha.N) follow the same rules. - Milestones: each planned release batch (including patches and prereleases) gets its own milestone, such as
v0.2.0orv0.2.0-alpha.1. - Breaking changes: mark stability-surface breaks with
!in the PR title both before and after 0.1.0 (before 0.1.0, versions still advance within prereleases). - MSRV: CI's MSRV job checks
rust-version. Bumps affectcargo install, so ship them as normal changes naming the new floor in the PR title.
Within a minor version, stable releases keep these compatible:
- CLI flags, subcommands, and exit codes
- Config keys and file locations, plus environment variables
- The flake's
packages,overlays.default, andhomeModules.defaultoutputs, and the module's options - Persisted formats: the session store, versioned by its schema revision and each session's content format, the session export that
ox exportwrites, and theme TOML - Output from headless mode (
-p), as defined in the compatibility notes - Release asset names, which install scripts and the Homebrew formula depend on
The TUI layout, prompt text, slash-command output wording, and log format are outside the surface.
Before 0.1.0, config, environment variable, and session formats may break freely with no migration hints, legacy fallbacks, or compatibility shims.
Use devkit's shared changelog configuration. Security fixes describe the gap, affected releases, and published advisory as SECURITY.md promises (add later-published advisories to every affected changelog section via a correction PR).
-
Set
[workspace.package].versioninCargo.toml, then runcargo update --workspace. -
Set the
VERSION=line indocs/guide/install.mdto the release tag. -
For a stable tag, add the two session resume fixtures by stripping insta headers (
sedthrough the second---) from the SQL dump and export snapshots, then record them withINSTA_UPDATE=unseen(still failing if an earlier release's fixture resumes differently):session=crates/ox-core/src/session snapshot="$session/snapshots/ox_core__session__handle__tests__session_format" mkdir -p "$session/fixtures" sed '1,/^---$/d' "${snapshot}__writes_every_row_kind.snap" >"$session/fixtures/vX.Y.Z.sql" sed '1,/^---$/d' "${snapshot}__exports_every_row_kind.snap" >"$session/fixtures/vX.Y.Z.jsonl" INSTA_UPDATE=unseen cargo test -p ox-core --lib session_format::resumes_from_every_release_fixture
Include session compatibility checks in the verification block for stable releases.
After the Release workflow completes, verify:
- Every target archive and its
.sha256sidecar are attached, andgh attestation verify <archive> --repo hakulab/oxide-codepasses for one of them. nix run github:hakulab/oxide-code/vX.Y.Z -- --versionprints the version on one host.
Successful publication notifies the Homebrew tap. Check its formula update PR.
Asset rebuilds use the original commit for the same tag. A source change requires a new version and release PR.
Before tagging v0.1.0-rc.1:
- All planned prerelease work is complete, and the
v0.1.0milestone holds no open issue except the release work for these gates. - CI on
mainpasses the full test suite on Linux, macOS, and Windows (#127). - Each auth mode works live in a TUI turn that calls a tool and a
-prun: Claude Code OAuth login, a long-lived OAuth token (#121), an API key, and a gateway with a bearer token and custom headers (#122). Every Claude 5.5 model answers at least one turn. Record the matrix in the rc PR's Verification section. - The persisted formats are documented: the session store and export in
docs/design/persistence.md, config keys indocs/guide/configuration.mdanddocs/guide/permissions.md, and the theme TOML indocs/guide/theming.md. SECURITY.mdexists (#200), and every archive shipsTHIRD-PARTY-NOTICES(#207).
Before tagging v0.1.0:
- Every rc gate still holds, and
gh api repos/hakulab/oxide-code/milestones/1 --jq .open_issuesreports 0. - A whole-repo review at the rc commit has no open findings. Fix each finding or file it into the milestone.
- The rc serves as the daily driver for the full soak without a new bug.
The v0.1.0 release PR also switches the install snippets to releases/latest/download/, then removes the VERSION= lines and the Release Preparation step that pins them. Because it adds the first session resume fixtures, it also drops allow_empty_glob from the fixture test in crates/ox-core/src/session/handle.rs, so the test fails again when no fixture matches.
The build matrix in release.yml lists the targets. Each release attaches one archive per target with a .sha256 sidecar and a build provenance attestation, and release asset names belong to the stability surface.
- The release jobs read the platform floors from
docs/guide/install.md, so keep itsLinux with glibc <version> or laterand**macOS**: <version> or laterwording. The Linux job fails when the binary needs a newer glibc, which a runner image update can cause, so pin the previous image or raise the floor. The macOS job fails when the binary's minimum macOS differs from the floor, and raising it also changesMACOSX_DEPLOYMENT_TARGETinrelease.ymlanddepends_on macos:in the tap formula template. - Add a target by extending the matrix. Each target needs a runner that executes its binary, since every build job checks its archive there.