| 1 | # Release Checklist |
| 2 | |
| 3 | Follow this sequence from the canonical checkout on `main`. Agent-owned |
| 4 | preparation is built in a short-lived agent worktree and lands as verified |
| 5 | slices on `main`; it |
| 6 | needs no release branch, nested clone or preparation PR. Freezing, tagging and |
| 7 | publication run from the clean canonical `main`. Treat any unchecked required gate as a release blocker. |
| 8 | |
| 9 | For deeper context on the underlying tools (preflight scripts, npm smoke, |
| 10 | publish-crates), see [`RELEASE_RUNBOOK.md`](RELEASE_RUNBOOK.md). |
| 11 | For larger milestone releases, add any version-specific acceptance matrix to |
| 12 | the existing release packet before tagging; use it for provider routes, feature |
| 13 | gates, GUI/runtime smoke, remote-workbench decisions, and credit hygiene that the |
| 14 | generic checklist does not enumerate. Record its candidate SHA, owners, local |
| 15 | check results, hosted run URLs, artifact inventory, install/provider receipts, |
| 16 | known limitations and publication approval. These proofs are separate. |
| 17 | |
| 18 | ## 0. Reconcile the canonical checkout |
| 19 | |
| 20 | - [ ] Inspect the branch, status, upstream and alternate checkouts before editing: |
| 21 | ```bash |
| 22 | git branch --show-current |
| 23 | git status --short --branch |
| 24 | git log -5 --oneline |
| 25 | git worktree list |
| 26 | git fetch origin main |
| 27 | git log --left-right --oneline main...origin/main |
| 28 | ``` |
| 29 | - [ ] The canonical checkout is on `main`. Recover stranded work only after |
| 30 | preserving dirty/untracked files and comparing commits with current |
| 31 | `origin/main`. Keep a recoverable backup and unresolved inventory; do not |
| 32 | reset away work, stash it indefinitely or create another development lane. |
| 33 | - [ ] Uncommitted work found in the checkout is yours (founder, 2026-10-22): |
| 34 | read it, prove it, and commit it by explicit path. A file changed in the |
| 35 | last 15 minutes or held by a live session is mid-edit: ask that writer |
| 36 | to commit first. Check status before staging; never `git add -A`. |
| 37 | Historical branches/checkouts are inventoried; |
| 38 | deleting them requires explicit Hunter approval even if a helper calls |
| 39 | their tips safe to delete. |
| 40 | |
| 41 | ## 1. CHANGELOG entry exists for the version |
| 42 | |
| 43 | - [ ] `CHANGELOG.md` has a `## [X.Y.Z] - YYYY-MM-DD` heading at the top |
| 44 | - [ ] The entry credits every external contributor, integrated contributor, |
| 45 | linked issue reporter, reproduction/log provider, reviewer, and |
| 46 | verification helper whose work materially shaped this version. Get the |
| 47 | commit list with: |
| 48 | ``` |
| 49 | git log vPREV..HEAD --no-merges --format="%h %an <%ae> %s" \ |
| 50 | | grep -v '<your-email@…>' |
| 51 | ``` |
| 52 | For each contributor, link both their display name and (when known) |
| 53 | `@github-handle`. Then inspect linked issues and Contribution issues so |
| 54 | reporters/helpers are not lost just because they did not author commits. |
| 55 | Keep `docs/CONTRIBUTORS.md` and `web/lib/release-credits.ts` consistent. |
| 56 | - [ ] The entry uses the Keep a Changelog headers — `Added`, `Changed`, |
| 57 | `Fixed`, `Security`, `Removed`, `Deprecated`. Add `Known issues` only |
| 58 | if there is something material the user must work around. |
| 59 | - [ ] The entry mentions all referenced issue/PR numbers as `#NNNN` so the |
| 60 | auto-linker on GitHub picks them up. |
| 61 | - [ ] Run `scripts/sync-changelog.sh` to regenerate `crates/tui/CHANGELOG.md` |
| 62 | (the recent-releases slice embedded in the binary for `/change`). Do |
| 63 | not edit that file by hand, and do not copy the full root changelog |
| 64 | into it — older entries live in `docs/CHANGELOG_ARCHIVE.md`. |
| 65 | - [ ] Run `scripts/release/check-feature-release-notes.sh vPREV HEAD`. Every |
| 66 | issue-linked `feat` commit must leave a receipt in `CHANGELOG.md` or the |
| 67 | archive; the Version drift CI gate runs the same check with full history. |
| 68 | - [ ] Stamp `docs/features.toml`: every row with `since = "unreleased"` whose |
| 69 | feature is in this release's binary or tagged tree gets |
| 70 | `since = "X.Y.Z"`, decided row by row against the code and this |
| 71 | CHANGELOG entry. Leave `unreleased` only for rows the release does not |
| 72 | ship (for example website-only or Desktop-only surfaces). Then run |
| 73 | `node web/scripts/derive-facts.mjs` and |
| 74 | `cargo test -p codewhale-tui --test feature_registry`. The website labels |
| 75 | every `unreleased` row "In source, not yet released" even after the tag |
| 76 | is published; the tagged baseline does not override it. |
| 77 | `prepare-release.sh` lists the rows still unstamped. |
| 78 | - [ ] Drop X.Y.Z from the milestone lists: `PROJECT_RELEASES` in |
| 79 | `web/lib/content/project.ts` (the `/contribute` page) and the Releases |
| 80 | table in `docs/ROADMAP.md`. Mark the next release in progress. The tag |
| 81 | redeploys the website from `main`, so a release left there is published |
| 82 | as unfinished. |
| 83 | |
| 84 | ## 2. Version pins are in sync |
| 85 | |
| 86 | - [ ] Use `./scripts/release/prepare-release.sh X.Y.Z` when version pins or |
| 87 | generated sources need preparation. Reuse a valid preparation receipt |
| 88 | when those sources are already current. The helper bumps the |
| 89 | workspace version, every per-crate dependency pin, the npm wrapper |
| 90 | (`version` + `codewhaleBinaryVersion`), Runtime SDK, VS Code extension |
| 91 | and lock, public source-candidate facts, and README |
| 92 | install-tag examples; it refreshes the Cargo/npm locks, regenerates |
| 93 | `crates/tui/CHANGELOG.md` and `web/lib/facts.generated.ts`, and ends |
| 94 | by running the version and OHOS gates. Write the CHANGELOG entry |
| 95 | **before** running it. The helper is safe to rerun at the requested |
| 96 | workspace version; it skips replacements but refreshes both generated |
| 97 | files and reruns the gates. |
| 98 | - [ ] Legacy `npm/deepseek-tui/` is retired from the repository; npmjs |
| 99 | `deepseek-tui` stays deprecated and is **not** republished. |
| 100 | - [ ] `./scripts/release/check-versions.sh` reports |
| 101 | `Version state OK: workspace=X.Y.Z, npm=X.Y.Z, npm-binary=X.Y.Z, lockfile in sync.` |
| 102 | - [ ] `./scripts/release/check-ohos-deps.sh` reports that the OpenHarmony |
| 103 | Windows linker keeps the target/sysroot flags, the target enables the |
| 104 | `rquickjs-sys` bindgen edge, and its graph does not pull the unsupported |
| 105 | `nix` 0.28/0.29, `portable-pty`, `starlark`, `arboard`, or `keyring` |
| 106 | crates. |
| 107 | |
| 108 | ## 3. Verify and land preparation slices |
| 109 | |
| 110 | - [ ] Run the existing checks appropriate to each changed surface once; batch |
| 111 | coherent Rust edits before compiling. During implementation, use the |
| 112 | smallest local check or running-product observation that proves the |
| 113 | change. After implementation and product review, freeze the candidate |
| 114 | commit and run final validation once, including |
| 115 | `npm ci --ignore-scripts && npm --prefix web ci && npm --prefix crates/engine/extension-host ci --ignore-scripts && npm test && npm run check:web` |
| 116 | from the repository root (root `npm test` also installs |
| 117 | `crates/engine/extension-host` with `npm ci --ignore-scripts` when |
| 118 | missing or stale). Hosted CI owns |
| 119 | exhaustive workspace and platform coverage at that final step. Rerun |
| 120 | only checks invalidated by a fix. Record actual results and failures in |
| 121 | commit messages. |
| 122 | - [ ] Commit verified owned paths directly to `main` and push normally. Resolve |
| 123 | push rejection with the other writer while preserving dirty work; never |
| 124 | force-push. Reuse valid receipts instead of rebuilding merely to commit |
| 125 | or push. |
| 126 | - [ ] The live milestone, Contribution issues and PR queue no longer contain work intended for this |
| 127 | version: |
| 128 | ``` |
| 129 | gh issue list --repo codewhale-hq/CodeWhale --milestone "vX.Y.Z" --state open |
| 130 | gh issue list --repo codewhale-hq/CodeWhale --label contribution --state open |
| 131 | gh pr list --repo codewhale-hq/CodeWhale --state open --limit 100 |
| 132 | ``` |
| 133 | - [ ] Any remaining same-theme work is explicitly retargeted to a later |
| 134 | version or called out as a known issue. Do not freeze/tag while still |
| 135 | planning to merge more same-version fixes. |
| 136 | - [ ] The release tag does not already point at an older source SHA, or the |
| 137 | maintainer has deliberately chosen to publish exactly that older SHA: |
| 138 | ``` |
| 139 | git ls-remote origin refs/heads/main refs/tags/vX.Y.Z |
| 140 | gh release view vX.Y.Z --repo codewhale-hq/CodeWhale |
| 141 | ./scripts/release/check-published.sh X.Y.Z |
| 142 | ``` |
| 143 | - [ ] If `vX.Y.Z` exists with no GitHub Release/packages and `main` has moved |
| 144 | on, stop. Choose one of: publish the existing tag as-is, bump the later |
| 145 | work to the next patch version, or explicitly approve deleting/recreating |
| 146 | the unpublished tag. Publishing older source after canonical `main` has |
| 147 | advanced needs a separately authorized recovery plan; do not silently |
| 148 | move tags or switch the shared checkout. An absent release/unpublished |
| 149 | packages are expected at this stage, not permission to alter a tag. |
| 150 | - [ ] Freeze the final source: all intended work is committed and pushed; |
| 151 | clean local `HEAD`, `main` and freshly fetched `origin/main` agree. |
| 152 | Record the full 40-character SHA/version and coordinate with shared |
| 153 | writers to preserve that source through packaging and publication. |
| 154 | - [ ] `./scripts/release/check-versions.sh --require-dated-release` and |
| 155 | `python3 scripts/check-contributor-credit.py` pass for the candidate. |
| 156 | - [ ] `./scripts/release/publish-crates.sh dry-run` passes for the frozen |
| 157 | candidate. Cargo 1.90+ verifies every release tarball and its real size |
| 158 | without uploading. CI/RC does not replace this check. Retain the receipt; |
| 159 | do not repeat it for unchanged source just to commit or push. Publish mode |
| 160 | necessarily verifies the packages again before uploading. |
| 161 | |
| 162 | ## 4. Exact-SHA full CI and release candidate |
| 163 | |
| 164 | ### Regression pass before freezing |
| 165 | |
| 166 | - [ ] Read the **Regression report** job summary of the latest release |
| 167 | candidate run on `main` (the nightly one is enough): the |
| 168 | provider-free list of fix/feat/perf/refactor commits since the last |
| 169 | release with no `Behaviour:` or `No-behaviour-change:` line, and of |
| 170 | feature rows whose owner changed without their summary or docs. It never |
| 171 | fails the candidate; use it to choose the slices below. |
| 172 | - [ ] Optional: run a review pass per slice, not as one release-wide diff |
| 173 | (a local `--base` run is capped by `--max-chars`, and `--max-passes` is |
| 174 | refused outside `--pr`). A release does not require a review receipt. |
| 175 | ```bash |
| 176 | last_release="$(git describe --tags --abbrev=0)" |
| 177 | codewhale review --base "${last_release}" --path crates/skills --write-receipt |
| 178 | codewhale review --base "${last_release}" --path crates/engine --write-receipt |
| 179 | codewhale review --check-receipt --receipt-path <receipt> |
| 180 | ``` |
| 181 | One receipt per crate or path. The pass answers one question: *which |
| 182 | documented behaviours did this slice change, and which of those changes |
| 183 | are unstated?* |
| 184 | - [ ] If you wrote receipts, a maintainer reads any non-empty |
| 185 | `unresolved_risk` before freezing and records the decision on the issue. |
| 186 | `--check-receipt` reads a receipt without a provider; `--write-receipt` |
| 187 | costs a model call and stays a maintainer action, not a bot. |
| 188 | - [ ] Per-path receipts do not prove that separately reviewed changes work |
| 189 | together; the full-suite run below is the gate. |
| 190 | |
| 191 | - [ ] If the frozen SHA already has a green `Nightly release candidate` run |
| 192 | of `release-candidate.yml`, that run is its RC receipt; do not dispatch |
| 193 | another. |
| 194 | - [ ] Dispatch full CI and the build-only release candidate against frozen |
| 195 | `main` with the same independent SHA guard: |
| 196 | ```bash |
| 197 | candidate_sha="$(git rev-parse HEAD)" |
| 198 | gh workflow run ci.yml --ref main -f expected_sha="${candidate_sha}" |
| 199 | gh workflow run release-candidate.yml --ref main -f expected_sha="${candidate_sha}" |
| 200 | ``` |
| 201 | - [ ] The two macOS shipping builds run on the self-hosted `codewhale-mac` |
| 202 | runner only for a `v*` tag push or a dispatch in this repository, and |
| 203 | only with `-f macos_runner=self-hosted` (release candidate) or the |
| 204 | `CW_SELF_HOSTED_MAC` repository variable set to `true`; anything else |
| 205 | builds on hosted `macos-latest`. There each |
| 206 | build installs a fresh rustup, toolchain and Cargo home under the job's |
| 207 | temp directory, starts from an empty `target/`, skips rust-cache, holds |
| 208 | the machine build lock and builds with six Cargo jobs. Set the variable |
| 209 | to `false` (or dispatch with `macos_runner=hosted`) to build on hosted |
| 210 | Macs again. |
| 211 | - [ ] Both runs resolve to that SHA and all required jobs execute and succeed. |
| 212 | A green workflow badge alone is insufficient: confirm that the required |
| 213 | jobs ran for the exact candidate SHA. `main-landing.yml` dispatches full |
| 214 | exact-SHA CI on every push to `main` unless that SHA already has a green |
| 215 | full `ci.yml` dispatch (for example from its `ci/*` branch), which is |
| 216 | then its full-CI receipt; a landing CI receipt does not |
| 217 | replace release-candidate acceptance. |
| 218 | - [ ] The candidate's Parity job succeeds, and its artifact jobs report all eight |
| 219 | targets and the complete 38-file asset inventory, including Android |
| 220 | arm64, Windows arm64, native HarmonyOS arm64, `codew`, the NSIS installer, |
| 221 | archives, checksum manifests, and eight compatibility-only |
| 222 | `codewhale-tui-*` release filenames that are not installed commands. The |
| 223 | packed npm wrapper installs against those assets and runs its delegated |
| 224 | entrypoints. Keep run URLs and |
| 225 | required evidence before the Actions artifacts expire; these are not a |
| 226 | public release. |
| 227 | - [ ] Windows static import receipts cover x64/ARM64 CLI, shim and compatibility |
| 228 | assets, any optional host, and the NSIS setup plus its actual embedded PE |
| 229 | plugins. Verify the selected architecture profile and its conservative |
| 230 | limits in [ENVIRONMENTS.md](ENVIRONMENTS.md#windows-support-and-release-qualification). |
| 231 | Preserve the generated candidate Uninstall.exe import/SHA receipt. Static |
| 232 | import/profile PASS does not replace final release startup/install on the |
| 233 | promised oldest x64 OS, native ARM64 package acceptance, or packaged/native |
| 234 | app owner-crash recovery. Record or explicitly resolve these remaining |
| 235 | runtime gates before tagging. |
| 236 | - [ ] Complete the version-specific acceptance packet. Cross-building Android |
| 237 | does not prove a real Termux/device session. Local install, actual provider |
| 238 | calls and customer acceptance need separate receipts; provider spend still |
| 239 | requires authorization. Required unproven acceptance blocks release; |
| 240 | disclose an explicitly accepted limitation as such. |
| 241 | - [ ] A `ci/*` release-candidate run counts only when its SHA equals the tag SHA. |
| 242 | - [ ] The `ci.yml` npm wrapper smoke on Windows runs with sccache off. |
| 243 | - [ ] A real Windows Terminal check on the candidate build is recorded with who |
| 244 | ran it: Ctrl+V pastes text once each into the composer and the `/provider` |
| 245 | API key field, Ctrl+V pastes an image as one attachment, and Chinese |
| 246 | input works. |
| 247 | - [ ] `codewhale update` upgrades the previous release installed in the |
| 248 | installer's default directory. |
| 249 | - [ ] Count the release crate names new to crates.io (the sparse index answers |
| 250 | 404); each one beyond the first five costs about ten minutes of rate limit. |
| 251 | - [ ] The telemetry publication gate holds: the served ingest accepts the tagged |
| 252 | build's schema before publication. |
| 253 | - [ ] Every security fix scheduled for this release has landed with two |
| 254 | independent reviews. Record confidential counts only in the private |
| 255 | release record; keep detail confidential until publication is approved. |
| 256 | - [ ] If source changes or `main` moves before tagging, deliberately choose the |
| 257 | new candidate and replace affected proofs. Tag only a SHA with its exact |
| 258 | CI/RC evidence. Do not duplicate hosted exhaustive gates locally. |
| 259 | |
| 260 | ## 5. Publication approval |
| 261 | |
| 262 | - [ ] Hunter explicitly approves the exact version/SHA and publication targets: |
| 263 | tag, GitHub Release, npm, website (`codewhale.net`), GHCR, CNB release |
| 264 | tag and legacy Homebrew automation, plus Cargo or other downstream |
| 265 | publication where intended. Source readiness and build-only CI/RC do not |
| 266 | authorize a tag, registry write, deployment or public launch. |
| 267 | |
| 268 | ## 5a. Prerelease checkpoints (`X.Y.Z-prerelease`) |
| 269 | |
| 270 | A semver prerelease such as `0.11.0-beta.1` is prepared and tagged like a stable |
| 271 | version, but it publishes only a GitHub prerelease and the npm `next` dist-tag. |
| 272 | The support stays in the tree for an optional checkpoint that the founder |
| 273 | requests. Routine engine releases do not use it; each ships as the |
| 274 | full `X.Y.Z`. The plain `X.Y.Z` path is unchanged and remains the |
| 275 | authority. |
| 276 | |
| 277 | - [ ] Write the CHANGELOG section as `## [X.Y.Z-prerelease] - YYYY-MM-DD` with a |
| 278 | compare link from the last published tag, for example |
| 279 | `[0.11.0-beta.1]: https://github.com/codewhale-hq/CodeWhale/compare/v0.10.3...v0.11.0-beta.1`. |
| 280 | - [ ] Prepare the workspace with |
| 281 | `./scripts/release/prepare-release.sh X.Y.Z-prerelease`, commit the bump |
| 282 | on `main`, and check `./scripts/release/check-versions.sh --require-dated-release` |
| 283 | says `Version state OK`. The tagged SHA itself must carry the prerelease |
| 284 | version, and the work after the tag restores `X.Y.Z` (last item below). |
| 285 | - [ ] Exact-SHA full CI and `release-candidate.yml` must be green as in §4; the |
| 286 | same RC receipt gates the tag, and §5 approval still applies. |
| 287 | - [ ] Tag `vX.Y.Z-prerelease` from that `main` SHA as in §6. The Release |
| 288 | workflow publishes a GitHub prerelease and the npm `next` tag, and skips |
| 289 | GHCR, CNB, GitCode, Homebrew, the web release record, the website deploy |
| 290 | and Cargo. It does not publish crates: publish crates only for the stable |
| 291 | `X.Y.Z`. |
| 292 | - [ ] Verify `npm view codewhale@X.Y.Z-prerelease version codewhaleBinaryVersion` |
| 293 | and `npm view codewhale dist-tags.next`; `latest` must still name the last |
| 294 | stable release. |
| 295 | - [ ] Restore the workspace with `./scripts/release/prepare-release.sh X.Y.Z`, |
| 296 | drop the prerelease CHANGELOG entry once it should no longer be current, |
| 297 | and re-run `./scripts/release/check-versions.sh --require-dated-release` |
| 298 | before further work. Deferred checkpoint items stay tracked separately. |
| 299 | |
| 300 | ## 6. Tag and publish the approved source |
| 301 | |
| 302 | - [ ] Fetch `origin/main` again and verify that clean canonical `main`, |
| 303 | `origin/main` and the approved SHA still agree. |
| 304 | - [ ] The release source is reachable from `main`: |
| 305 | `./scripts/release/ensure-release-on-main.sh HEAD` |
| 306 | - [ ] Create `vX.Y.Z` from the final `main` SHA using the **Create release tag** |
| 307 | workflow, or create and push a signed local tag: |
| 308 | `git tag -s vX.Y.Z -m "vX.Y.Z" && git push origin vX.Y.Z` |
| 309 | Tagging can start public automation immediately. If no run appears, |
| 310 | first exclude a queued/active tag-triggered run, then dispatch only the |
| 311 | existing tag: `gh workflow run release.yml --ref vX.Y.Z -f version=X.Y.Z`. |
| 312 | Do not dispatch `release.yml` from `main` or start duplicate runs. |
| 313 | - [ ] The Release workflow succeeds: it repeats parity/build gates, verifies |
| 314 | the draft asset inventory before GitHub publication, then runs dependent |
| 315 | npm, GHCR, CNB and Homebrew publication. It requires an exact-SHA green |
| 316 | RC receipt. Its `crates` job waits for Hunter's `release` environment |
| 317 | approval before it publishes Cargo crates. |
| 318 | - [ ] The public GitHub Release assets are proven to match the tag commit |
| 319 | before publishing Cargo or npm: |
| 320 | ``` |
| 321 | git fetch origin tag vX.Y.Z |
| 322 | ./scripts/release/verify-release-assets.sh X.Y.Z |
| 323 | ./scripts/release/require-release-tag-checkout.sh X.Y.Z |
| 324 | ``` |
| 325 | This checks the local tag, remote tag, successful Release workflow SHA, |
| 326 | full binary/archive/installer asset set, and both checksum manifests. If |
| 327 | it fails, stop publication and follow the runbook's recovery gates. |
| 328 | Publish from the same clean canonical checkout on `main` when `HEAD` |
| 329 | matches the immutable remote tag. Do not create a detached worktree, |
| 330 | switch release lanes or force-fetch a conflicting tag. If `main` advanced, |
| 331 | coordinate with Hunter for a new candidate or separately authorized |
| 332 | recovery plan. |
| 333 | - [ ] Approve the `release` environment for the Release run's `crates` job |
| 334 | (**Review deployments**), within the approved scope. It runs after the |
| 335 | GitHub Release and npm jobs, verifies every package, skips |
| 336 | already-published versions, waits out crates.io rate limits and ends with |
| 337 | `check-published.sh`. If it fails or times out, re-run the failed job; it |
| 338 | resumes. If the `release` environment has no `CARGO_REGISTRY_TOKEN` |
| 339 | secret, the job fails naming it. Fallback: publish by hand with the |
| 340 | [runbook's step 5 block](RELEASE_RUNBOOK.md#rust-crates-release), never |
| 341 | while the job runs for the same tag. npm normally uses Trusted |
| 342 | Publishing; crates.io trusted publishing is the intended replacement for |
| 343 | the stored token (see the runbook) and is not set up. Manual recovery |
| 344 | keeps the same clean-source and public-asset guards. |
| 345 | |
| 346 | ## 7. Verify public results |
| 347 | |
| 348 | - [ ] The live GitHub Release body has its own `## Contributors` or |
| 349 | `## Credits` section; do not rely on "see CHANGELOG" alone. Verify with: |
| 350 | ``` |
| 351 | gh release view vX.Y.Z --repo codewhale-hq/CodeWhale --json body \ |
| 352 | --jq '.body | test("## (Contributors|Credits)")' |
| 353 | ``` |
| 354 | - [ ] Releases from 0.10.5 on are signed: the release assets include |
| 355 | `codewhale-artifacts-sha256.txt.sig`. The tag release fails when the |
| 356 | signing key secret is absent; a candidate run may still be unsigned. A |
| 357 | missing `.sig` on a published release is a release blocker. |
| 358 | - [ ] `npm view codewhale@X.Y.Z version codewhaleBinaryVersion --json` |
| 359 | reports the new version on the npm registry. |
| 360 | - [ ] `npm view deepseek-tui deprecated` is non-empty. The legacy npm package |
| 361 | is deprecated and must not receive an `X.Y.Z` publish. |
| 362 | - [ ] Distribution channels are canonical-first: the website install page |
| 363 | (codewhale.net/install) shows Codewhale-native commands first (`npm install -g |
| 364 | codewhale`, `curl .../install.sh | sh`); Homebrew is labeled as legacy |
| 365 | compatibility; the shell installer uses codewhale-native names as documented |
| 366 | in `docs/REBRAND.md#homebrew`. |
| 367 | - [ ] Every release crate has the new version on crates.io (`codewhale-ratatui` |
| 368 | has its own version); the `crates` job's final step checks this. Partial publication is incomplete. |
| 369 | - [ ] `ghcr.io/codewhale-hq/codewhale:vX.Y.Z` and `:latest` are updated. |
| 370 | - [ ] The CNB release tag and approved downstream results are verified |
| 371 | separately; a successful GitHub Release does not prove them. |
| 372 | - [ ] The final registry verification passes: |
| 373 | ``` |
| 374 | ./scripts/release/check-published.sh X.Y.Z |
| 375 | ``` |
| 376 | - [ ] Record every registry's verified result in the release packet: npm, |
| 377 | crates.io, GHCR, CNB and Homebrew, including any still missing. |
| 378 | - [ ] Confirm `release.yml`'s `Deploy website` (`web_deploy`) job succeeded and |
| 379 | `https://codewhale.net/en` names the released version (`curl -fsSL https://codewhale.net/en | grep -F "Version X.Y.Z is released"`). |
| 380 | Manual fallback if `web_deploy` did not run or needs recovery after a fix |
| 381 | on `main`: `gh workflow run web.yml --repo codewhale-hq/Codewhale --ref main -f expected_sha="$(git rev-parse origin/main)"`, |
| 382 | then re-verify `https://codewhale.net/en`. |
| 383 | - [ ] Re-record the site's terminal captures (`web/lib/terminal-captures/released`) |
| 384 | from the published binary; the live provider key step is Hunter's. |
| 385 | - [ ] Published install/upgrade smoke has its own receipt; candidate installs |
| 386 | do not prove public delivery. Deployment/customer acceptance remain |
| 387 | separate gates where required. |
| 388 | |
| 389 | ## 8. Handoff and tracking |
| 390 | |
| 391 | - [ ] Edit the GitHub release notes to expand any CVE-style or attack |
| 392 | details within the approved publication scope. |
| 393 | - [ ] Re-run the GitHub Release body check after any release-workflow rerun; |
| 394 | workflows can overwrite notes and accidentally remove contributor credit. |
| 395 | - [ ] Note any deferred items in the next release's tracking issue. |
| 396 | - [ ] Close any issues that this release fixed. |
| 397 | - [ ] Update existing tracking with evidence and follow the current contributor |
| 398 | communication rules in [AGENTS.md](../AGENTS.md). Handle the existing |
| 399 | `sync-release-record` workflow's |
| 400 | metadata proposal after publication: it currently opens a bot PR, not a |
| 401 | required preparation branch. Pull requests do not run the test suite, so |
| 402 | dispatch `ci.yml` on that branch's head, then fast-forward the same commit |
| 403 | to `main` within 24 hours of publication; after that |
| 404 | `check:latest-release` fails. Other bot PRs in this repository land the |
| 405 | same way. A source record does not prove deployment. |
| 406 | - [ ] Report canonical path, branch, SHA, upstream state and dirty/stranded |
| 407 | work. Historical branch/checkout removal needs explicit cleanup approval |
| 408 | and does not block a release whose source is already reconciled. |
| 409 | |
| 410 | --- |
| 411 | |
| 412 | If a step fails, **fix the underlying cause** rather than skipping it. Pre-commit |
| 413 | hooks, signing, and CI are all here to catch real problems. Do not skip hooks or |
| 414 | signing, force-push shared refs, replace public assets or move release tags to |
| 415 | make the checklist look green. |
| 416 |