The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(release): rename the nightly release channel to canary
etherneta9793b3ea6ea
diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/canary-release.ymlsimilarity index 73%rename from .github/workflows/nightly-release.ymlrename to .github/workflows/canary-release.ymlindex 81b1d34942d..cfad8bf89d9 100644--- a/.github/workflows/nightly-release.yml+++ b/.github/workflows/canary-release.yml@@ -1,26 +1,26 @@-name: Nightly Release+name: Canary Release-# Publishes the nightly prerelease channel: a dated prerelease versioned+# Publishes the canary prerelease channel: a dated prerelease versioned# NEXT-MINOR over the newest stable tag-# (v<stable.minor+1>.0-nightly.<YYYYMMDDHHMMSS>), so a nightly always+# (v<stable.minor+1>.0-canary.<YYYYMMDDHHMMSS>), so a canary always# outversions every stable build of the current line and loses to the# next stable minor — which is exactly how the electron-updater channel# switch works in both directions (see hermes_cli/update_channel.py).# Second-precision suffix: manual dispatches can publish several-# nightlies per day; the scheduled run publishes at most one because-# release.py skips when HEAD has no new commits since the last nightly.+# canaries per day; the scheduled run publishes at most one because+# release.py skips when HEAD has no new commits since the last canary.#-# ALL of it lives in scripts/release.py --nightly: the tag math, the+# ALL of it lives in scripts/release.py --canary: the tag math, the# skip gate, the draft release, and the dispatch of the desktop build.# This workflow only supplies a schedule and credentials, which is why-# `release.py --nightly --publish` by hand does exactly what the cron+# `release.py --canary --publish` by hand does exactly what the cron# does — same tag, same draft, same build, same auto-publish.## The desktop build uploads the installers to the Cloudflare R2 release# bucket and publishes the draft when the whole matrix is green. A failed# matrix leaves a draft: inspectable, re-runnable, and unreachable by# users. The prune job deletes both the GitHub releases+tags and the R2-# nightly objects older than 14 days.+# canary objects older than 14 days.## schedule: is the ONE sanctioned time trigger in this repo (nightly# exemption). Everything else stays event-driven.@@ -35,17 +35,17 @@ permissions:actions: write # release.py dispatches the desktop buildconcurrency:- group: nightly-release+ group: canary-releasecancel-in-progress: falsejobs:tag:- name: Tag, draft, and start the nightly build+ name: Tag, draft, and start the canary buildruns-on: ubuntu-24.04steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:- # The changelog walks commits since the previous nightly tag+ # The changelog walks commits since the previous canary tagfetch-depth: 0# the tag math reads the full tag listfetch-tags: true@@ -56,10 +56,10 @@ jobs:run: |git config user.name "github-actions[bot]"git config user.email "41898282+github-actions[bot]@users.noreply.github.com"- python3 scripts/release.py --nightly --publish --remote origin+ python3 scripts/release.py --canary --publish --remote originprune:- name: Prune nightlies older than 14 days+ name: Prune canaries older than 14 daysruns-on: ubuntu-24.04needs: tagenvironment: release-signing@@ -75,11 +75,11 @@ jobs:- name: Pruneenv:GH_TOKEN: ${{ github.token }}- run: python3 scripts/release.py --prune-nightlies --publish --remote origin- - name: Prune R2 nightly objects+ run: python3 scripts/release.py --prune-canaries --publish --remote origin+ - name: Prune R2 canary objectsenv:CLOUDFLARE_R2_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_R2_ACCOUNT_ID }}CLOUDFLARE_R2_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}CLOUDFLARE_R2_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}CLOUDFLARE_R2_BUCKET: ${{ vars.CLOUDFLARE_R2_BUCKET }}- run: node scripts/r2-release.mjs prune-nightlies --keep-days 14+ run: node scripts/r2-release.mjs prune-canaries --keep-days 14diff --git a/.github/workflows/desktop-bundled-release.yml b/.github/workflows/desktop-bundled-release.ymlindex 4e45e58707a..8b696c844e8 100644--- a/.github/workflows/desktop-bundled-release.yml+++ b/.github/workflows/desktop-bundled-release.yml@@ -13,21 +13,21 @@ name: Desktop Bundled Release# build-win32 (win32-x64 + win32-arm64) → stage to R2 + upload *.msix# build-darwin / build-linux → DISABLED for now (dummy skips)# publish-win32-updater → App Installer feed-# (needs build-win32): releases/win32/<stable|nightly>/*.appinstaller ++# (needs build-win32): releases/win32/<stable|canary>/*.appinstaller +# *.msixbundle (stage-msixbundle.mjs --variant bundled)# publish-win32-store → Windows Store submission# (needs build-win32, PARALLEL with the updater feed): bundle the two# Store-*.msix into one universal Store .msixbundle and submit via the-# MSStore CLI. Stable → production; nightly → package flight ring+# MSStore CLI. Stable → production; canary → package flight ring# (delete-then-replace, newest always wins). Gated on MS_STORE_PRODUCT_ID-# (+ MS_STORE_NIGHTLY_FLIGHT_ID for the nightly arm).+# (+ MS_STORE_CANARY_FLIGHT_ID for the canary arm).# publish-darwin-updater → DISABLED (dummy skip — the# darwin electron-updater arm was removed; nothing publishes a mac feed)## Feed layout (matches apps/desktop/electron/app-updater.ts's arms):-# releases/win32/<stable|nightly>/<ch>.appinstaller App Installer feed-# releases/win32/<stable|nightly>/*.msixbundle (publish-win32-updater)-# releases/darwin/<stable|nightly>/*-mac.yml electron-updater feed (dmg/zip)+# releases/win32/<stable|canary>/<ch>.appinstaller App Installer feed+# releases/win32/<stable|canary>/*.msixbundle (publish-win32-updater)+# releases/darwin/<stable|canary>/*-mac.yml electron-updater feed (dmg/zip)# — feed layout preserved for when the darwin updater returns; the job is# currently a dummy skip.# The publish jobs write the feeds ONCE after the whole build-win32 matrix is@@ -43,7 +43,7 @@ name: Desktop Bundled Release# the same command. This workflow adds caching and upload only.## Triggers: workflow_dispatch with an explicit tag. A tag push does not-# start this workflow (a bot-pushed nightly tag would never fire).+# start this workflow (a bot-pushed canary tag would never fire).## R2 secrets (repo-level or the release-signing environment): the R2# account id + an R2 API token (S3-compatible) with read/write on the@@ -57,10 +57,10 @@ name: Desktop Bundled Release# secrets: MS_STORE_TENANT_ID, MS_STORE_SELLER_ID, MS_STORE_CLIENT_ID,# MS_STORE_CLIENT_SECRET# vars: MS_STORE_PRODUCT_ID (the Partner Center product ID),-# MS_STORE_NIGHTLY_FLIGHT_ID (package flight for nightlies —-# optional; without it nightlies skip the store)+# MS_STORE_CANARY_FLIGHT_ID (package flight for canaries —+# optional; without it canaries skip the store)# msstore reconfigure → (delete pending) → msstore publish-# <Store-*.msixbundle> (-f <flightId> for nightlies) -id <productId>+# <Store-*.msixbundle> (-f <flightId> for canaries) -id <productId># The Store bundle is UNSIGNED on purpose — Partner Center re-signs on# ingestion (see sign-msix.mjs).@@ -68,7 +68,7 @@ on:workflow_dispatch:inputs:tag:- description: 'Release tag to bundle (vX.Y.Z or vX.Y.0-nightly.YYYYMMDDHHMMSS). Must exist on the repo.'+ description: 'Release tag to bundle (vX.Y.Z or vX.Y.0-canary.YYYYMMDDHHMMSS). Must exist on the repo.'required: truetype: stringupload_release:@@ -114,8 +114,8 @@ jobs:TAG: ${{ inputs.tag }}run: |case "$TAG" in- v[0-9]*.[0-9]*.[0-9]*-nightly.20[0-9][0-9][0-9][0-9][0-9][0-9]*)- echo "nightly tag: $TAG"+ v[0-9]*.[0-9]*.[0-9]*-canary.20[0-9][0-9][0-9][0-9][0-9][0-9]*)+ echo "canary tag: $TAG";;v[0-9]*.[0-9]*.[0-9]*)echo "tag: $TAG"@@ -126,7 +126,7 @@ jobs:fi;;*)- echo "::error::'$TAG' is not a release tag (vX.Y.Z or vX.Y.0-nightly.YYYYMMDDHHMMSS)"+ echo "::error::'$TAG' is not a release tag (vX.Y.Z or vX.Y.0-canary.YYYYMMDDHHMMSS)"exit 1;;esac@@ -268,12 +268,12 @@ jobs:} >> "$GITHUB_ENV"- name: Cache pm store- # Tag-dispatched runs (every nightly) scope actions/cache under the+ # Tag-dispatched runs (every canary) scope actions/cache under the# dispatch ref, which GitHub mangles to refs/heads/refs/tags/<tag> —# a different scope per tag, so an exact key can never be restored- # by a later nightly. The content key below is stable across tags+ # by a later canary. The content key below is stable across tags# when pm/lock.json + uv.lock are unchanged; the restore-keys prefix- # (which ignores the tag entirely) rescues the previous nightly's+ # (which ignores the tag entirely) rescues the previous canary's# store when the locks DID move.uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0with:@@ -513,7 +513,7 @@ jobs:with:# Privileged job: pin to the SHA validate admitted, not the tag.ref: ${{ needs.validate.outputs.sha }}- # stage-msixbundle derives the nightly MSIX build number as+ # stage-msixbundle derives the canary MSIX build number as# minutes-since-the-last-stable from git tags — must see them.fetch-tags: true@@ -612,22 +612,22 @@ jobs:# submits it to the Windows Store via the MSStore CLI.## stable tags → production submission (msstore publish -id)- # nightly tags → package flight ring (msstore publish -f <flightId>),+ # canary tags → package flight ring (msstore publish -f <flightId>),# delete-then-replace: any pending flight submission is- # deleted first so the newest nightly always wins the+ # deleted first so the newest canary always wins the# single-slot submission queue (chosen over skip-if-pending# — always ship the newest, at the cost of cert churn).## Gating: runs for stable whenever MS_STORE_PRODUCT_ID is set; runs for- # nightly only when MS_STORE_NIGHTLY_FLIGHT_ID is ALSO set (so the flight+ # canary only when MS_STORE_CANARY_FLIGHT_ID is ALSO set (so the flight# ring stays off until the flight exists in Partner Center).publish-win32-store:- name: Publish the Windows Store submission (production + nightly flight)+ name: Publish the Windows Store submission (production + canary flight)needs: [validate, build-win32]if: |inputs.upload_release == true&& vars.MS_STORE_PRODUCT_ID != ''- && (contains(inputs.tag, '-nightly.') == false || vars.MS_STORE_NIGHTLY_FLIGHT_ID != '')+ && (contains(inputs.tag, '-canary.') == false || vars.MS_STORE_CANARY_FLIGHT_ID != '')runs-on: windows-2025environment: release-signingtimeout-minutes: 60@@ -644,7 +644,7 @@ jobs:MS_STORE_CLIENT_ID: ${{ secrets.MS_STORE_CLIENT_ID }}MS_STORE_CLIENT_SECRET: ${{ secrets.MS_STORE_CLIENT_SECRET }}MS_STORE_PRODUCT_ID: ${{ vars.MS_STORE_PRODUCT_ID }}- MS_STORE_NIGHTLY_FLIGHT_ID: ${{ vars.MS_STORE_NIGHTLY_FLIGHT_ID }}+ MS_STORE_CANARY_FLIGHT_ID: ${{ vars.MS_STORE_CANARY_FLIGHT_ID }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:@@ -751,15 +751,15 @@ jobs:## delete-then-replace (chosen over skip-if-pending): Partner Center# allows ONE pending submission per app/flight at a time, so clear- # any in-flight draft before publishing — the newest nightly always+ # any in-flight draft before publishing — the newest canary always# wins the queue. A missing pending submission errors the delete,# which is fine (nothing to clear) — only the publish gates the job.bundle="${{ steps.storebundle.outputs.bundle }}"- if [[ "$HERMES_PAYLOAD_TAG" == *-nightly.* ]]; then- echo "nightly tag → package flight '$MS_STORE_NIGHTLY_FLIGHT_ID'"- msstore flights submission delete "$MS_STORE_PRODUCT_ID" "$MS_STORE_NIGHTLY_FLIGHT_ID" --no-confirm \+ if [[ "$HERMES_PAYLOAD_TAG" == *-canary.* ]]; then+ echo "canary tag → package flight '$MS_STORE_CANARY_FLIGHT_ID'"+ msstore flights submission delete "$MS_STORE_PRODUCT_ID" "$MS_STORE_CANARY_FLIGHT_ID" --no-confirm \|| echo "no pending flight submission to clear"- msstore publish "$bundle" -f "$MS_STORE_NIGHTLY_FLIGHT_ID" -id "$MS_STORE_PRODUCT_ID"+ msstore publish "$bundle" -f "$MS_STORE_CANARY_FLIGHT_ID" -id "$MS_STORE_PRODUCT_ID"elseecho "stable tag → production submission"msstore submission delete "$MS_STORE_PRODUCT_ID" --no-confirm \@@ -770,7 +770,7 @@ jobs:# ── macOS updater channel (DISABLED — dummy skip) ─────────────────────────# No macOS updater arm exists (darwin electron-updater was removed in# wt/darwin-updater), so there is no mac feed to publish. Kept as a dummy- # success so the dependency graph (builds-table, publish-nightly) stays+ # success so the dependency graph (builds-table, publish-canary) stays# green. Re-enable with the darwin arm: restore r2-release.mjs finalize# (merged *-mac.yml → releases/darwin/<channel>/<channel>-mac.yml).publish-darwin-updater:@@ -833,13 +833,13 @@ jobs:python3 scripts/render-builds-table.py \--tag "$HERMES_PAYLOAD_TAG" --repo "$GITHUB_REPOSITORY"- publish-nightly:- name: Publish the nightly release+ publish-canary:+ name: Publish the canary releaseneeds: [build-win32, build-darwin, build-linux, builds-table, publish-win32-updater, publish-darwin-updater]if: |always()&& inputs.upload_release == true- && contains(inputs.tag, '-nightly.')+ && contains(inputs.tag, '-canary.')&& needs.build-win32.result == 'success'&& needs.build-darwin.result == 'success'&& needs.build-linux.result == 'success'diff --git a/apps/desktop/electron-builder.config.cjs b/apps/desktop/electron-builder.config.cjsindex 3a101b70475..4d536ac9dc2 100644--- a/apps/desktop/electron-builder.config.cjs+++ b/apps/desktop/electron-builder.config.cjs@@ -171,12 +171,12 @@ module.exports = {displayName,publisher: store ? storeMsix.publisher : OUT_OF_STORE_PUBLISHER,publisherDisplayName: store ? storeMsix.publisherDisplayName : 'Nous Research',- // Nightly MSIX versions are `X.Y.Z.<minutes-since-stable>` (see+ // Canary MSIX versions are `X.Y.Z.<minutes-since-stable>` (see// scripts/msix-shared.mjs). setBuildNumber makes getVersionInWeirdWindowsForm// use the BUILD_NUMBER env (4th component) instead of hardcoding ".0" — a- // stable build sets no BUILD_NUMBER and stays X.Y.Z.0, a nightly build sets+ // stable build sets no BUILD_NUMBER and stays X.Y.Z.0, a canary build sets// it via build-bundled-desktop.mjs so App Installer updates over equal- // nightly-over-nightly versions instead of refusing them.+ // canary-over-canary versions instead of refusing them.setBuildNumber: true,// Floor Windows 11 22H2. Below build 18307 the manifest schema caps// AppExtension Name at 39 chars and Microsoft's owndiff --git a/apps/desktop/electron/app-updater.test.ts b/apps/desktop/electron/app-updater.test.tsindex c0cb2d4016f..325f98d6a10 100644--- a/apps/desktop/electron/app-updater.test.ts+++ b/apps/desktop/electron/app-updater.test.ts@@ -19,9 +19,9 @@ test('the feed base URL placeholder is a documented dead end', () => {test('win32 App Installer feed paths are per-channel and per-variant', () => {assert.equal(win32AppInstallerFeedPath('stable', false), 'win32/stable/')- assert.equal(win32AppInstallerFeedPath('nightly', false), 'win32/nightly/')+ assert.equal(win32AppInstallerFeedPath('canary', false), 'win32/canary/')assert.equal(win32AppInstallerFeedPath('stable', true), 'win32/light/stable/')- assert.equal(win32AppInstallerFeedPath('nightly', true), 'win32/light/nightly/')+ assert.equal(win32AppInstallerFeedPath('canary', true), 'win32/light/canary/')})// ── win32 arm (OS App Installer checker + trigger) ─────────────────@@ -85,13 +85,13 @@ test('win32 trigger opens ms-appinstaller with the channel .appinstaller after t])})-test('win32 trigger light+nightly targets the light nightly feed dir', async () => {+test('win32 trigger light+canary targets the light canary feed dir', async () => {const calls: string[] = []const shell = {openExternal: async (url: string) => void calls.push(url)}- await triggerAppInstallerUpdate('https://updates.example.com', 'nightly', true, shell as any)+ await triggerAppInstallerUpdate('https://updates.example.com', 'canary', true, shell as any)- assert.equal(calls[0], 'ms-appinstaller:?source=https%3A%2F%2Fupdates.example.com%2Fwin32%2Flight%2Fnightly%2Fnightly.appinstaller')+ assert.equal(calls[0], 'ms-appinstaller:?source=https%3A%2F%2Fupdates.example.com%2Fwin32%2Flight%2Fcanary%2Fcanary.appinstaller')})diff --git a/apps/desktop/electron/app-updater.ts b/apps/desktop/electron/app-updater.tsindex 39e06655056..b7fede7efe9 100644--- a/apps/desktop/electron/app-updater.ts+++ b/apps/desktop/electron/app-updater.ts@@ -38,7 +38,7 @@* <base>/win32/<channel>/ — App Installer feed dir (.appinstaller* + .msixbundle) for out-of-store MSIX.*- * `<channel>` is 'stable' or 'nightly'.+ * `<channel>` is 'stable' or 'canary'.*/export const PLACEHOLDER_FEED_BASE_URL = 'https://updates.invalid/hermes-desktop'@@ -50,7 +50,7 @@ export const PLACEHOLDER_FEED_BASE_URL = 'https://updates.invalid/hermes-desktop* packages.*/export function win32AppInstallerFeedPath(- channel: 'stable' | 'nightly',+ channel: 'stable' | 'canary',light: boolean): string {const variant = light ? 'light/' : ''@@ -120,7 +120,7 @@ export async function checkAppInstallerUpdate(*/export async function triggerAppInstallerUpdate(feedBaseUrl: string,- channel: 'stable' | 'nightly',+ channel: 'stable' | 'canary',light: boolean,shell: { openExternal: (url: string) => Promise<void> },beforeInstall?: () => void | Promise<void>diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 0383c31f5e0..3cb67bed530 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -3216,10 +3216,10 @@ function readUpdatesFeedBaseFromConfig(): string {}}-/** The updater channel from the baked install stamp ('nightly' vs 'stable'). */-function resolveUpdaterChannelFromStamp(): 'stable' | 'nightly' {+/** The updater channel from the baked install stamp ('canary' vs 'stable'). */+function resolveUpdaterChannelFromStamp(): 'stable' | 'canary' {const tag = INSTALL_STAMP?.tag || ''- return /-nightly\./.test(tag) ? 'nightly' : 'stable'+ return /-canary\./.test(tag) ? 'canary' : 'stable'}/** True when this artifact is the light (remote-only) variant. */diff --git a/apps/desktop/electron/payload-backend.ts b/apps/desktop/electron/payload-backend.tsindex 859780d8d4f..6120c524d05 100644--- a/apps/desktop/electron/payload-backend.ts+++ b/apps/desktop/electron/payload-backend.ts@@ -154,10 +154,10 @@ export function adoptPayloadVenv(//// The CLI owns the channel records; Electron only reads the install id for// `update.installs.<sha16>/` bookkeeping. Channel resolution itself lives in-// hermes_cli/update_channel.py — main.ts keys nightly/stable off the baked+// hermes_cli/update_channel.py — main.ts keys canary/stable off the baked// install stamp tag directly.-export type UpdateChannel = 'stable' | 'main' | 'nightly'+export type UpdateChannel = 'stable' | 'main' | 'canary'/*** The install id of the tree at `root`: sha16 of the canonical PATH,diff --git a/apps/desktop/electron/product-identity.test.ts b/apps/desktop/electron/product-identity.test.tsindex 678782cd193..9dd1d8a955b 100644--- a/apps/desktop/electron/product-identity.test.ts+++ b/apps/desktop/electron/product-identity.test.ts@@ -48,14 +48,14 @@ test('light identity is fully distinct from the full identity', async () => {}})-test('a nightly payload tag moves BOTH variants onto their nightly feed channel', async () => {- process.env.HERMES_PAYLOAD_TAG = 'v0.28.0-nightly.20260818'+test('a canary payload tag moves BOTH variants onto their canary feed channel', async () => {+ process.env.HERMES_PAYLOAD_TAG = 'v0.28.0-canary.20260818'const full = await identityForVariant(undefined)- assert.equal(full.channel, 'nightly')+ assert.equal(full.channel, 'canary')- process.env.HERMES_PAYLOAD_TAG = 'v0.28.0-nightly.20260818'+ process.env.HERMES_PAYLOAD_TAG = 'v0.28.0-canary.20260818'const light = await identityForVariant('light')- assert.equal(light.channel, 'light-nightly')+ assert.equal(light.channel, 'light-canary')})test('stable tags and tagless dev builds publish to the stable channels', async () => {diff --git a/apps/desktop/electron/updater/app-installer.ts b/apps/desktop/electron/updater/app-installer.tsindex 29ebaf957da..84b9b297d26 100644--- a/apps/desktop/electron/updater/app-installer.ts+++ b/apps/desktop/electron/updater/app-installer.ts@@ -27,7 +27,7 @@ export interface AppInstallerStrategyDeps {script: stringrun: PayloadPythonRunner['run']/** Channel + variant from the baked install stamp. */- channel: 'stable' | 'nightly'+ channel: 'stable' | 'canary'light: boolean/** The App Installer feed base URL; empty when nothing configured it. */feedBaseUrl: stringdiff --git a/apps/desktop/electron/updater/index.ts b/apps/desktop/electron/updater/index.tsindex 2cbdbd7e4f7..6d98e7ed8ea 100644--- a/apps/desktop/electron/updater/index.ts+++ b/apps/desktop/electron/updater/index.ts@@ -59,7 +59,7 @@ export interface UpdaterStatusWire {behind?: number | nullcurrentSha?: stringcurrentVersion?: string- channel?: 'stable' | 'nightly'+ channel?: 'stable' | 'canary'latestTag?: string | nulltargetSha?: stringcommits?: { sha: string; summary: string; author: string; at: number }[]diff --git a/apps/desktop/product-identity.cjs b/apps/desktop/product-identity.cjsindex 1ffed574aea..2345f3e452d 100644--- a/apps/desktop/product-identity.cjs+++ b/apps/desktop/product-identity.cjs@@ -35,12 +35,12 @@ const store = variant === 'store'const light = variant === 'light'const name = variants[store ? 'bundled' : (variant || '')]-// The electron-updater feed channel this build PUBLISHES to. A nightly-// tag (vX.Y.0-nightly.YYYYMMDDHHMMSS) writes nightly.yml / light-nightly.yml;+// The electron-updater feed channel this build PUBLISHES to. A canary+// tag (vX.Y.0-canary.YYYYMMDDHHMMSS) writes canary.yml / light-canary.yml;// stable tags write latest.yml / light.yml. Keyed on the payload tag so-// the one release workflow serves both channels — a nightly build can+// the one release workflow serves both channels — a canary build can// never overwrite the stable feed file, and vice versa.-const nightly = /-nightly\.20\d{6}(?:\d{6})?$/.test(process.env.HERMES_PAYLOAD_TAG || '')+const canary = /-canary\.20\d{6}(?:\d{6})?$/.test(process.env.HERMES_PAYLOAD_TAG || '')/** @typedef {import("./product-identity.d.cts")} ProductIdentity */@@ -52,7 +52,7 @@ const identity = {appId: `com.nousresearch.${name.kebab}`,// The store build never publishes to a release feed (the Store owns its// updates); null means "no feed" for its publish config.- channel: store ? null : light ? (nightly ? 'light-nightly' : 'light') : (nightly ? 'nightly' : 'latest'),+ channel: store ? null : light ? (canary ? 'light-canary' : 'light') : (canary ? 'canary' : 'latest'),appNamePascal: name.pascal,msixAppIdWithOrg: `NousResearch.${name.pascal}`,...(storediff --git a/apps/desktop/product-identity.d.cts b/apps/desktop/product-identity.d.ctsindex 01b1b0d6dad..c57bb3269ea 100644--- a/apps/desktop/product-identity.d.cts+++ b/apps/desktop/product-identity.d.cts@@ -12,7 +12,7 @@ interface ProductIdentity {/** OS-level app identity w/ org prefix. e.g. "NousResearch.HermesLight" */msixAppIdWithOrg: string/** electron-updater feed channel this build publishes to. Stable tags:- * "latest" | "light"; nightly tags: "nightly" | "light-nightly". Null+ * "latest" | "light"; canary tags: "canary" | "light-canary". Null* for a store build (the Store owns its updates; no release feed). */channel: string | null/** Store-submission MSIX packaging identity. Present only when `store`. */diff --git a/apps/desktop/scripts/after-pack.mjs b/apps/desktop/scripts/after-pack.mjsindex 75cb2a6e71b..f003e17c7b9 100644--- a/apps/desktop/scripts/after-pack.mjs+++ b/apps/desktop/scripts/after-pack.mjs@@ -91,6 +91,6 @@ export default async function afterPack(context) {// invalidate the signature. The product exe is excluded here and signed// per-file by the customSign hook (scripts/batch-sign-binaries.mjs) after// electron-builder's own rcedit + fuses pass. No-op with a loud warning when- // the AZURE_SIGN_* environment is absent (unsigned/fork/nightly lanes).+ // the AZURE_SIGN_* environment is absent (unsigned/fork/canary lanes).await batchSignAppTree(context.appOutDir, exe)}diff --git a/apps/desktop/scripts/batch-sign-binaries.mjs b/apps/desktop/scripts/batch-sign-binaries.mjsindex 0cd8317c3b9..789af4df9f2 100644--- a/apps/desktop/scripts/batch-sign-binaries.mjs+++ b/apps/desktop/scripts/batch-sign-binaries.mjs@@ -33,7 +33,7 @@// Gating matches the rest of the pipeline: this module only signs when the// Azure Trusted Signing variables are present (the same AZURE_SIGN_* set the// release-signing workflow arms provide). Without them — local builds, forks,-// unsigned nightly lanes — it is a no-op with a loud warning, exactly like+// unsigned canary lanes — it is a no-op with a loud warning, exactly like// stage-msixbundle.mjs. The dlib + signtool resolution reuses the// electron-builder cache walk from scripts/stage-msixbundle.mjs; nothing is// hardcoded to C:\Tools.diff --git a/apps/desktop/scripts/gen-appinstaller.mjs b/apps/desktop/scripts/gen-appinstaller.mjsindex a4964427396..8b360350c04 100644--- a/apps/desktop/scripts/gen-appinstaller.mjs+++ b/apps/desktop/scripts/gen-appinstaller.mjs@@ -2,7 +2,7 @@// gen-appinstaller.mjs — generate the Windows App Installer (.appinstaller)// file for an out-of-store MSIX channel feed.//-// The out-of-store distribution is App Installer owned: each stable/nightly+// The out-of-store distribution is App Installer owned: each stable/canary// channel dir under the feed host holds a universal .msixbundle plus an// .appinstaller that (a) installs the bundle and (b) records the .appinstaller// URI as the package's update source, so the OS can re-check it on launch.@@ -52,9 +52,9 @@ if (isCli) {process.exit(1)}- const nightly = /-nightly/.test(process.env.HERMES_PAYLOAD_TAG || '')+ const canary = /-canary/.test(process.env.HERMES_PAYLOAD_TAG || '')const variantDir = identity.light ? 'light/' : ''- const ch = nightly ? 'nightly' : 'stable'+ const ch = canary ? 'canary' : 'stable'const channelPath = `win32/${variantDir}${ch}`const xml = buildAppInstaller({diff --git a/apps/desktop/scripts/gen-appinstaller.test.mjs b/apps/desktop/scripts/gen-appinstaller.test.mjsindex 2c438935423..5ccd61c8c0b 100644--- a/apps/desktop/scripts/gen-appinstaller.test.mjs+++ b/apps/desktop/scripts/gen-appinstaller.test.mjs@@ -43,8 +43,8 @@ describe('buildAppInstaller', () => {})test('a variant channel path with a trailing slash still resolves under the host', () => {- const xml = buildAppInstaller({ ...base, variantChannelPath: 'win32/nightly/' })- assert.match(xml, /https:\/\/updates\.example\.com\/win32\/nightly\//)+ const xml = buildAppInstaller({ ...base, variantChannelPath: 'win32/canary/' })+ assert.match(xml, /https:\/\/updates\.example\.com\/win32\/canary\//)})test('reserved XML characters in identity values are escaped', () => {diff --git a/apps/desktop/scripts/gen-msix-manifest.mjs b/apps/desktop/scripts/gen-msix-manifest.mjsindex dc0d3ea2e02..da1a5972ce0 100644--- a/apps/desktop/scripts/gen-msix-manifest.mjs+++ b/apps/desktop/scripts/gen-msix-manifest.mjs@@ -86,7 +86,7 @@ const manifest = substituteManifestMacros(template, (m) => {case "publisher": return options.publishercase "publisherDisplayName": return options.publisherDisplayName// Same 4-part derivation the real build uses (msix-shared::appIdentity) —- // a nightly shows its minutes-since-stable component here too, so this+ // a canary shows its minutes-since-stable component here too, so this// inspection tool never disagrees with what electron-builder shipped.case "version": return appIdentity(desktop, process.env.HERMES_PAYLOAD_TAG).versioncase "applicationId": return resolvePackageApplicationId(options.applicationId, options.identityName, appInfoName, "MSIX")diff --git a/apps/desktop/scripts/msix-manifest-roundtrip.test.mjs b/apps/desktop/scripts/msix-manifest-roundtrip.test.mjsindex 0d930e5870c..ad8ab7a7985 100644--- a/apps/desktop/scripts/msix-manifest-roundtrip.test.mjs+++ b/apps/desktop/scripts/msix-manifest-roundtrip.test.mjs@@ -80,12 +80,12 @@ test('stable tag: appIdentity derivation round-trips into the manifest Version',assert.equal(identityVersion(xml), version)})-test('nightly tag: minutes-since-stable build number round-trips into the manifest Version', () => {+test('canary tag: minutes-since-stable build number round-trips into the manifest Version', () => {const app = makeFakeDesktop('0.27.1')- // Stable v0.27.1 committed 2026-08-01T00:00:00Z; nightly cut 2026-08-29T01:02:03Z.+ // Stable v0.27.1 committed 2026-08-01T00:00:00Z; canary cut 2026-08-29T01:02:03Z.const stableEpoch = Math.floor(Date.UTC(2026, 7, 1) / 1000)- gitMock(['v0.27.1', 'v0.27.2-nightly.20260829010203'], stableEpoch)- const { version, xml } = buildManifest(app, 'v0.27.2-nightly.20260829010203')+ gitMock(['v0.27.1', 'v0.27.2-canary.20260829010203'], stableEpoch)+ const { version, xml } = buildManifest(app, 'v0.27.2-canary.20260829010203')const expectedMinutes = Math.floor((Date.UTC(2026, 7, 29, 1, 2, 3) - Date.UTC(2026, 7, 1)) / 60000)assert.equal(version, `0.27.2.${expectedMinutes}`)assert.equal(identityVersion(xml), version)@@ -94,21 +94,21 @@ test('nightly tag: minutes-since-stable build number round-trips into the manifetest('manifest Version components are 16-bit (makeappx rejects anything larger)', () => {const app = makeFakeDesktop('0.27.1')const stableEpoch = Math.floor(Date.UTC(2026, 7, 1) / 1000)- gitMock(['v0.27.1', 'v0.27.2-nightly.20260829010203'], stableEpoch)- const { xml } = buildManifest(app, 'v0.27.2-nightly.20260829010203')+ gitMock(['v0.27.1', 'v0.27.2-canary.20260829010203'], stableEpoch)+ const { xml } = buildManifest(app, 'v0.27.2-canary.20260829010203')for (const part of identityVersion(xml).split('.')) {const n = Number(part)assert.ok(Number.isInteger(n) && n >= 0 && n <= 65535, `component ${part} outside 16 bits`)}})-test('a later nightly stamps a strictly larger BUILD_NUMBER than an earlier one', () => {- // The build number exists so Windows can order nightlies on the same+test('a later canary stamps a strictly larger BUILD_NUMBER than an earlier one', () => {+ // The build number exists so Windows can order canaries on the same// base version; monotonicity across the stamp is the actual contract.const app = makeFakeDesktop('0.27.1')const stableEpoch = Math.floor(Date.UTC(2026, 7, 1) / 1000)- const early = 'v0.27.2-nightly.20260815080000'- const late = 'v0.27.2-nightly.20260829010203'+ const early = 'v0.27.2-canary.20260815080000'+ const late = 'v0.27.2-canary.20260829010203'gitMock([early, late, 'v0.27.1'], stableEpoch)const earlyBuild = Number(buildManifest(app, early).version.split('.')[3])const lateBuild = Number(buildManifest(app, late).version.split('.')[3])diff --git a/apps/desktop/scripts/msix-shared.test.mjs b/apps/desktop/scripts/msix-shared.test.mjsindex dec4f6cdb23..f96175d42cf 100644--- a/apps/desktop/scripts/msix-shared.test.mjs+++ b/apps/desktop/scripts/msix-shared.test.mjs@@ -1,5 +1,5 @@// msix-shared — the 4-part MSIX version derivation (minutes-since-stable-// for nightlies). The git-backed lookup is deterministic here because+// for canaries). The git-backed lookup is deterministic here because// node:child_process.execFileSync is mocked; the math it feeds is the// contract App Installer compares.import assert from 'node:assert/strict'@@ -48,52 +48,52 @@ test('stable tag keeps the 3-part version plus .0', () => {assert.equal(fileVersion, '0.27.1')})-test('nightly version is tag base + minutes since the same-minor stable', () => {+test('canary version is tag base + minutes since the same-minor stable', () => {const desktop = makeFakeDesktop('0.27.1')- // Stable v0.27.1 committed 2026-08-01T00:00:00Z; nightly cut 2026-08-29T01:02:03Z.+ // Stable v0.27.1 committed 2026-08-01T00:00:00Z; canary cut 2026-08-29T01:02:03Z.const stableEpoch = Math.floor(Date.UTC(2026, 7, 1) / 1000)- gitMock(['v0.27.1', 'v0.27.2-nightly.20260829010203'], stableEpoch)- const { version, fileVersion } = msix.appIdentity(desktop, 'v0.27.2-nightly.20260829010203')+ gitMock(['v0.27.1', 'v0.27.2-canary.20260829010203'], stableEpoch)+ const { version, fileVersion } = msix.appIdentity(desktop, 'v0.27.2-canary.20260829010203')const expectedMinutes = Math.floor((Date.UTC(2026, 7, 29, 1, 2, 3) - Date.UTC(2026, 7, 1)) / 60000)assert.equal(version, `0.27.2.${expectedMinutes}`)- // The artifact FILENAME carries the full nightly string (appInfo.version),+ // The artifact FILENAME carries the full canary string (appInfo.version),// not the 4-part feed version.- assert.equal(fileVersion, '0.27.2-nightly.20260829010203')+ assert.equal(fileVersion, '0.27.2-canary.20260829010203')})-test('nightlyBuildMinutesFor is pure minutes math', () => {+test('canaryBuildMinutesFor is pure minutes math', () => {const base = Date.UTC(2026, 7, 1) / 1000- const minutes = msix.nightlyBuildMinutesFor('v0.27.2-nightly.20260829010203', base)+ const minutes = msix.canaryBuildMinutesFor('v0.27.2-canary.20260829010203', base)assert.equal(minutes, Math.floor((Date.UTC(2026, 7, 29, 1, 2, 3) - Date.UTC(2026, 7, 1)) / 60000))})-test('nightlyBuildMinutesFor returns null for a stable tag', () => {- assert.equal(msix.nightlyBuildMinutesFor('v0.27.1', 0), null)+test('canaryBuildMinutesFor returns null for a stable tag', () => {+ assert.equal(msix.canaryBuildMinutesFor('v0.27.1', 0), null)})-test('nightlyBuildMinutesFor rejects a stable base older than 45 days', () => {+test('canaryBuildMinutesFor rejects a stable base older than 45 days', () => {const base = Date.UTC(2026, 5, 1) / 1000 // 2026-06-01assert.throws(- () => msix.nightlyBuildMinutesFor('v0.27.2-nightly.20260829010203', base),+ () => msix.canaryBuildMinutesFor('v0.27.2-canary.20260829010203', base),/45 days|16-bit/i)})-test('legacy 8-digit nightly stamp still computes minutes (midnight of that day)', () => {+test('legacy 8-digit canary stamp still computes minutes (midnight of that day)', () => {const base = Date.UTC(2026, 7, 1) / 1000- const minutes = msix.nightlyBuildMinutesFor('v0.27.2-nightly.20260801', base)+ const minutes = msix.canaryBuildMinutesFor('v0.27.2-canary.20260801', base)assert.equal(minutes, 0)})test('buildAppInstaller pins the derived 4-part version everywhere', () => {const xml = msix.buildAppInstaller({baseUrl: 'https://updates.example.com',- variantChannelPath: 'win32/nightly',+ variantChannelPath: 'win32/canary',identityName: 'NousResearch.HermesBundled',version: '0.27.2.1234',bundleFilename: 'HermesBundled-0.27.2.1234-win.msixbundle'})- assert.match(xml, /Uri="https:\/\/updates\.example\.com\/win32\/nightly\/HermesBundled-0\.27\.2\.1234-win\.msixbundle"/)+ assert.match(xml, /Uri="https:\/\/updates\.example\.com\/win32\/canary\/HermesBundled-0\.27\.2\.1234-win\.msixbundle"/)const versionCount = (xml.match(/Version="0\.27\.2\.1234"/g) || []).lengthassert.equal(versionCount, 2)})diff --git a/apps/desktop/scripts/sign-msix.test.mjs b/apps/desktop/scripts/sign-msix.test.mjsindex 02f58bbdbe1..02825140a07 100644--- a/apps/desktop/scripts/sign-msix.test.mjs+++ b/apps/desktop/scripts/sign-msix.test.mjs@@ -23,16 +23,16 @@ test('shouldSignFile rejects the Store-submission variant (Partner Center re-sig// cannot customize CN and CA/B requires the legal entity name — so// SignerSign would fail 0x8007000B. Partner Center signs on ingestion.assert.equal(- shouldSignFile('release/Store-HermesBundled-0.28.0-nightly.20260828211829-win-x64.msix'),+ shouldSignFile('release/Store-HermesBundled-0.28.0-canary.20260828211829-win-x64.msix'),false)assert.equal(- shouldSignFile('release/Store-HermesBundled-0.28.0-nightly.20260828211829-win-arm64.msixbundle'),+ shouldSignFile('release/Store-HermesBundled-0.28.0-canary.20260828211829-win-arm64.msixbundle'),false)// The out-of-store artifacts keep the only signature Windows validates.assert.equal(- shouldSignFile('release/HermesBundled-0.28.0-nightly.20260828211829-win-x64.msix'),+ shouldSignFile('release/HermesBundled-0.28.0-canary.20260828211829-win-x64.msix'),true)})diff --git a/apps/desktop/scripts/windows-file-version.mjs b/apps/desktop/scripts/windows-file-version.mjsindex 5c97071b2f4..957cede6ca9 100644--- a/apps/desktop/scripts/windows-file-version.mjs+++ b/apps/desktop/scripts/windows-file-version.mjs@@ -1,14 +1,14 @@// windows-file-version.mjs — the Windows VERSIONINFO quad for a release tag.//-// Windows VERSIONINFO holds four 16-bit fields, so a nightly's semver+// Windows VERSIONINFO holds four 16-bit fields, so a canary's semver// string cannot go in it. resedit splits whatever it is handed on "." and-// clamps each token to [0, 65535], so `0.28.0-nightly.20260819171926`-// becomes 0.28.0.65535: "0-nightly" parses as NaN and falls to the min,-// and the timestamp saturates at the max. Every nightly of a minor then+// clamps each token to [0, 65535], so `0.28.0-canary.20260819171926`+// becomes 0.28.0.65535: "0-canary" parses as NaN and falls to the min,+// and the timestamp saturates at the max. Every canary of a minor then// shows the same meaningless quad on the Details tab.//// The timestamp is the only part worth showing there — the semver line is-// identical across a whole nightly series — so pack it as+// identical across a whole canary series — so pack it as// yyyy.mmdd.hhmm.ss. Every field stays under 65536, and the quad compares// in timestamp order, which is the order Windows sorts versions in.//@@ -16,7 +16,7 @@// extraMetadata, never on this quad./**- * The `yyyy.mmdd.hhmm.ss` quad for a nightly tag, or null for a stable tag+ * The `yyyy.mmdd.hhmm.ss` quad for a canary tag, or null for a stable tag* (whose version is already four legal fields or fewer, so app-builder-lib's* own handling is correct).*@@ -24,7 +24,7 @@* @returns {string | null}*/export function windowsFileVersion(releaseTag) {- const stamp = /-nightly\.(20\d{6}(?:\d{6})?)$/.exec(String(releaseTag))?.[1]+ const stamp = /-canary\.(20\d{6}(?:\d{6})?)$/.exec(String(releaseTag))?.[1]if (!stamp) {return null}diff --git a/apps/desktop/scripts/windows-file-version.test.mjs b/apps/desktop/scripts/windows-file-version.test.mjsindex 3dfaafbde24..835e04f236c 100644--- a/apps/desktop/scripts/windows-file-version.test.mjs+++ b/apps/desktop/scripts/windows-file-version.test.mjs@@ -8,7 +8,7 @@ test('stable tags leave VERSIONINFO to electron-builder', () => {assert.equal(windowsFileVersion('v0.28.0'), null)})-test('nightly tags pack the timestamp into a legal quad', () => {- assert.equal(windowsFileVersion('v0.28.0-nightly.20260819171926'), '2026.819.1719.26')- assert.equal(windowsFileVersion('v0.20.5-nightly.20260826'), '2026.826.0.0')+test('canary tags pack the timestamp into a legal quad', () => {+ assert.equal(windowsFileVersion('v0.28.0-canary.20260819171926'), '2026.819.1719.26')+ assert.equal(windowsFileVersion('v0.20.5-canary.20260826'), '2026.826.0.0')})diff --git a/apps/desktop/scripts/write-build-stamp.test.mjs b/apps/desktop/scripts/write-build-stamp.test.mjsindex f24dffd8a61..76ebfe866b4 100644--- a/apps/desktop/scripts/write-build-stamp.test.mjs+++ b/apps/desktop/scripts/write-build-stamp.test.mjs@@ -116,13 +116,13 @@ test('buildStampPayload without a variant keeps the legacy 5-field shape', () =>test('buildStampPayload with bundled variant stamps payload bundled, store false', () => {const payload = buildStampPayload(baseStamp, {HERMES_DESKTOP_VARIANT: 'bundled',- HERMES_PAYLOAD_TAG: 'v0.27.1-nightly.20260901072553'+ HERMES_PAYLOAD_TAG: 'v0.27.1-canary.20260901072553'})assert.equal(payload.payload, 'bundled')assert.equal(payload.store, false)assert.equal(payload.distribution, 'desktop-app')assert.equal(payload.updateMechanism, 'external')- assert.equal(payload.tag, 'v0.27.1-nightly.20260901072553')+ assert.equal(payload.tag, 'v0.27.1-canary.20260901072553')})test('buildStampPayload with store variant stamps payload bundled, store true', () => {diff --git a/apps/desktop/src/global.d.ts b/apps/desktop/src/global.d.tsindex f37b6f03f61..1ea449b0f41 100644--- a/apps/desktop/src/global.d.ts+++ b/apps/desktop/src/global.d.ts@@ -678,9 +678,9 @@ export interface DesktopUpdateStatus {currentSha?: string/** Backend only: the version string the backend reports for itself. */currentVersion?: string- /** Release feed the check read from ('stable'/'nightly'); when set, the+ /** Release feed the check read from ('stable'/'canary'); when set, the* update is a release and `latestTag` names it instead of a commit count. */- channel?: 'stable' | 'nightly'+ channel?: 'stable' | 'canary'/** The latest release tag on a release-feed channel, e.g. `v0.18.0`. */latestTag?: string | nulltargetSha?: stringdiff --git a/hermes_cli/main.py b/hermes_cli/main.pyindex 2a201db1758..8bb731eed0f 100644--- a/hermes_cli/main.py+++ b/hermes_cli/main.py@@ -10471,9 +10471,9 @@ def cmd_update(args):if getattr(args, "set_channel", None):from hermes_cli.config import detect_install_methodfrom hermes_cli.update_channel import (- CHANNEL_NIGHTLY,+ CHANNEL_CANARY,CHANNEL_STABLE,- nightly_normalized_note,+ canary_normalized_note,set_install_channel,)@@ -10484,26 +10484,26 @@ def cmd_update(args):sys.exit(1)print(f"✓ Channel '{args.set_channel}' recorded for install {sha16}.")install_method = detect_install_method(PROJECT_ROOT)- if args.set_channel == CHANNEL_NIGHTLY:+ if args.set_channel == CHANNEL_CANARY:if install_method == "git":- print(nightly_normalized_note())+ print(canary_normalized_note())else:- print("⚠ Nightly builds move fast: expect forward-incompatible")+ print("⚠ Canary builds move fast: expect forward-incompatible")print(" state — data written by newer code may not load in stable.")elif args.set_channel == CHANNEL_STABLE:- # Honest wait: a nightly build outversions today's stable, and+ # Honest wait: a canary build outversions today's stable, and# the updater never downgrades. Say when the switch takes# effect, and where the impatient path is.from hermes_cli.steward import read_install_stampversion = read_install_stamp(Path(PROJECT_ROOT)).get("displayVersion") or ""- if "-nightly." in version:- base = version.split("-nightly.")[0]+ if "-canary." in version:+ base = version.split("-canary.")[0]print(f"→ You are on {version}. Stable updates resume once a")print(f" stable release reaches v{base} — until then this install")print(" stays where it is. To switch now, reinstall stable:")print(" https://hermes-agent.nousresearch.com/")- print(" (Nightly state may not load in older stable builds.)")+ print(" (Canary state may not load in older stable builds.)")sys.exit(0)# Image-managed / package-managed admission gate (#91277 Phase 3): onediff --git a/hermes_cli/subcommands/update.py b/hermes_cli/subcommands/update.pyindex 4f8f2fa06dd..ae83f44d630 100644--- a/hermes_cli/subcommands/update.py+++ b/hermes_cli/subcommands/update.py@@ -114,14 +114,14 @@ def build_update_parser(subparsers, *, cmd_update: Callable) -> None:update_parser.add_argument("--set-channel",default=None,- choices=("main", "stable", "nightly"),+ choices=("main", "stable", "canary"),metavar="CHANNEL",help=("Persist the update channel for THIS install (recorded per ""install in config.yaml under update.installs). 'stable' tracks "- "tagged releases, 'main' the git main branch, 'nightly' the "- "nightly prereleases (desktop bundles only; source installs "- "normalize nightly to main). Installs whose updates an external "+ "tagged releases, 'main' the git main branch, 'canary' the "+ "canary prereleases (desktop bundles only; source installs "+ "normalize canary to main). Installs whose updates an external ""steward owns (nix, docker, app stores) have no channel."),)@@ -137,7 +137,7 @@ def build_update_parser(subparsers, *, cmd_update: Callable) -> None:update_parser.add_argument("--channel",default=None,- choices=("stable", "main", "nightly"),+ choices=("stable", "main", "canary"),metavar="CHANNEL",help=("Track CHANNEL for this run only (transient override; "diff --git a/hermes_cli/update_channel.py b/hermes_cli/update_channel.pyindex 1c8375e2d43..7167904d65a 100644--- a/hermes_cli/update_channel.py+++ b/hermes_cli/update_channel.py@@ -6,11 +6,11 @@ Channel storage — per install, never home-global::installs:a4f3b2c1d0e9f8a7: # install id (sha16 of thepath: /home/u/.hermes/hermes-agent # canonical install root)- channel: nightly+ channel: canaryOne config.yaml serves many installs (host + docker gateway + desktop allbind-mount one ``~/.hermes``), so a home-global ``update.channel`` key is-UNSAFE and does not exist: setting nightly for a dev checkout must not+UNSAFE and does not exist: setting canary for a dev checkout must notflip the desktop app's feed. The id is sha16 of the canonicalinstall-root PATH — the same key that names the ``installs/<sha16>/``state folder (``boot_bootstrap._install_key``; a byte-identical helper is@@ -22,8 +22,8 @@ same path, and the channel opt-in must survive that.(it knows its own id — the user never types a sha).* Shown by ``hermes update --install-id`` and the desktop About page.* Channels are meaningful ONLY where the mechanism is ``self`` (which git- ref: main / stable / nightly→main) or ``electron-updater`` (which feed:- latest.yml / nightly.yml). ``external`` installs have no channel; the+ ref: main / stable / canary→main) or ``electron-updater`` (which feed:+ latest.yml / canary.yml). ``external`` installs have no channel; thesteward owns updates.Pure-stdlib leaf module (plus hermes-internal imports done lazily): the@@ -43,35 +43,35 @@ logger = logging.getLogger(__name__)CHANNEL_MAIN = "main"CHANNEL_STABLE = "stable"-CHANNEL_NIGHTLY = "nightly"-VALID_CHANNELS = (CHANNEL_MAIN, CHANNEL_STABLE, CHANNEL_NIGHTLY)+CHANNEL_CANARY = "canary"+VALID_CHANNELS = (CHANNEL_MAIN, CHANNEL_STABLE, CHANNEL_CANARY)-# A nightly release tag: v<major>.<minor>.<patch>-nightly.<YYYYMMDDHHMMSS>,+# A canary release tag: v<major>.<minor>.<patch>-canary.<YYYYMMDDHHMMSS>,# or the legacy date-only shape. THIS is the single authority for the-# nightly tag shape — scripts/release.py (produces them) and+# canary tag shape — scripts/release.py (produces them) and# scripts/write_install_stamp.py (validates the feed key) import it rather-# than re-typing the rule. Nightlies are current-stable patch+1, so any+# than re-typing the rule. Canaries are current-stable patch+1, so any# patch is accepted here.-_NIGHTLY_TAG_RE = re.compile(r"^v(?:0|[1-9]\d{0,2})\.\d+\.\d+-nightly\.20\d{6}(?:\d{6})?$")+_CANARY_TAG_RE = re.compile(r"^v(?:0|[1-9]\d{0,2})\.\d+\.\d+-canary\.20\d{6}(?:\d{6})?$")-def is_nightly_tag(tag: Any) -> bool:- """True when ``tag`` is a nightly release tag."""- return isinstance(tag, str) and bool(_NIGHTLY_TAG_RE.match(tag.strip()))+def is_canary_tag(tag: Any) -> bool:+ """True when ``tag`` is a canary release tag."""+ return isinstance(tag, str) and bool(_CANARY_TAG_RE.match(tag.strip()))-def nightly_tag_for_date(version: str, date_utc: str) -> str:- """The nightly tag name for a UTC timestamp: next PATCH over ``version``+def canary_tag_for_date(version: str, date_utc: str) -> str:+ """The canary tag name for a UTC timestamp: next PATCH over ``version``(the newest stable's patch + 1), second-precision UTC suffix —- v0.27.5-nightly.20260818103000 when stable is v0.27.4. A nightly+ v0.27.5-canary.20260818103000 when stable is v0.27.4. A canaryoutversions every stable at or below its patch and loses to the nextstable patch, which is exactly the channel-switch upgrade path- (nightly→stable = wait for that patch bump to ship as stable).+ (canary→stable = wait for that patch bump to ship as stable)."""parts = version.lstrip("v").split(".")major, minor = int(parts[0]), int(parts[1])patch = int(parts[2]) if len(parts) >= 3 else 0- return f"v{major}.{minor}.{patch + 1}-nightly.{date_utc}"+ return f"v{major}.{minor}.{patch + 1}-canary.{date_utc}"def _install_key_sha16(project_root: Path) -> str:@@ -149,12 +149,12 @@ def default_channel(project_root: Optional[Path] = None) -> str:``self`` source installs follow main (historical behavior).``electron-updater`` bundles follow the channel their own artifact was- published to: a nightly artifact tracks nightly, every other bundle+ published to: a canary artifact tracks canary, every other bundletracks stable. The stamp's ``tag`` is the authority, the same factapps/desktop/product-identity.cjs keys the published feed name on — so- the feed a nightly artifact asks for and the feed it was published to+ the feed a canary artifact asks for and the feed it was published tocan never disagree. Deriving stable here instead would send a fresh- nightly install to look for its ``nightly.yml`` feed file under the+ canary install to look for its ``canary.yml`` feed file under thenewest STABLE release, where that file does not exist (404), leavingthe install unable to update at all."""@@ -162,7 +162,7 @@ def default_channel(project_root: Optional[Path] = None) -> str:stamp = _read_stamp(root)if stamp.get("updateMechanism") != "electron-updater":return CHANNEL_MAIN- return CHANNEL_NIGHTLY if is_nightly_tag(stamp.get("tag")) else CHANNEL_STABLE+ return CHANNEL_CANARY if is_canary_tag(stamp.get("tag")) else CHANNEL_STABLEdef resolve_update_channel(@@ -173,8 +173,8 @@ def resolve_update_channel(Resolution: the per-install record (``update.installs.<sha16>.channel``)when valid; otherwise the mechanism default (main for self-source,- stable/nightly for electron-updater bundles by artifact tag). Source- installs asking for nightly normalize to main — nightly builds are+ stable/canary for electron-updater bundles by artifact tag). Source+ installs asking for canary normalize to main — canary builds arerelease artifacts, and a git checkout tracks branches; callers printthe note."""@@ -184,19 +184,19 @@ def resolve_update_channel(else:channel = default_channel(project_root)- if channel == CHANNEL_NIGHTLY:+ if channel == CHANNEL_CANARY:root = Path(project_root) if project_root is not None else _default_root()if _read_stamp(root).get("updateMechanism") != "electron-updater":- # nightly→main normalization for source installs.+ # canary→main normalization for source installs.return CHANNEL_MAINreturn channel-def nightly_normalized_note() -> str:- """The one-line note callers print when nightly normalizes to main."""+def canary_normalized_note() -> str:+ """The one-line note callers print when canary normalizes to main."""return (- "→ Channel 'nightly' on a source install tracks main "- "(nightly builds are desktop release artifacts)."+ "→ Channel 'canary' on a source install tracks main "+ "(canary builds are desktop release artifacts).")diff --git a/hermes_cli/update_cmd.py b/hermes_cli/update_cmd.pyindex 5aafacef0b5..d3829084813 100644--- a/hermes_cli/update_cmd.py+++ b/hermes_cli/update_cmd.py@@ -1939,7 +1939,7 @@ def _stable_channel_active(args) -> bool:if transient:from hermes_cli.update_channel import CHANNEL_STABLE- # nightly on a source tree normalizes to main (not stable).+ # canary on a source tree normalizes to main (not stable).return transient == CHANNEL_STABLEtry:from hermes_cli.config import load_configdiff --git a/scripts/build-bundled-desktop.mjs b/scripts/build-bundled-desktop.mjsindex 8741f32b196..a6275b83416 100644--- a/scripts/build-bundled-desktop.mjs+++ b/scripts/build-bundled-desktop.mjs@@ -26,7 +26,7 @@ import { fileURLToPath } from 'node:url'import { CLI_LAUNCHER_SPECS, posixTrampolineScripts, renderWinWrapper } from './desktop-cli/cli-entrypoints.mjs'import { windowsFileVersion } from '../apps/desktop/scripts/windows-file-version.mjs'import { relativizePayloadLinks } from '../apps/desktop/scripts/materialize-payload-links.mjs'-import { nightlyBuildMinutes } from './msix-shared.mjs'+import { canaryBuildMinutes } from './msix-shared.mjs'const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')const PAYLOAD_DIR = path.join(REPO_ROOT, 'apps', 'desktop', 'build', 'agent-payload')@@ -182,8 +182,8 @@ if (!tag) {fail('no --tag=vX.Y.Z given and HEAD is not at an exact release tag')}}-if (!/^v(?:0|[1-9]\d{0,2})\.\d+\.\d+(?:-nightly\.20\d{6}(?:\d{6})?)?$/.test(tag)) {- fail(`'${tag}' is not a release tag (vX.Y.Z or vX.Y.0-nightly.YYYYMMDDHHMMSS)`)+if (!/^v(?:0|[1-9]\d{0,2})\.\d+\.\d+(?:-canary\.20\d{6}(?:\d{6})?)?$/.test(tag)) {+ fail(`'${tag}' is not a release tag (vX.Y.Z or vX.Y.0-canary.YYYYMMDDHHMMSS)`)}const pyprojectVersion = fs@@ -192,11 +192,11 @@ const pyprojectVersion = fsif (!pyprojectVersion) {fail('could not read version from pyproject.toml')}-const isNightly = tag.includes('-nightly.')-if (!isNightly && tag !== `v${pyprojectVersion}`) {+const isCanary = tag.includes('-canary.')+if (!isCanary && tag !== `v${pyprojectVersion}`) {fail(`tag ${tag} does not match pyproject.toml version ${pyprojectVersion}`)}-const artifactVersion = isNightly ? tag.slice(1) : pyprojectVersion+const artifactVersion = isCanary ? tag.slice(1) : pyprojectVersionconst fileVersion = windowsFileVersion(tag)const passes = {@@ -411,7 +411,7 @@ const env = {// msix.setBuildNumber is on; a stable build leaves it unset and ships// X.Y.Z.0. Computed here so the manifest, the .msixbundle /bv and the// .appinstaller feed all agree (same derivation, same value).- ...(isNightly ? { BUILD_NUMBER: String(nightlyBuildMinutes(tag, REPO_ROOT)) } : {})+ ...(isCanary ? { BUILD_NUMBER: String(canaryBuildMinutes(tag, REPO_ROOT)) } : {})}const desktop = path.join(REPO_ROOT, 'apps', 'desktop')diff --git a/scripts/bundle-store-msixbundle.mjs b/scripts/bundle-store-msixbundle.mjsindex 764c0056db2..9b358df7017 100644--- a/scripts/bundle-store-msixbundle.mjs+++ b/scripts/bundle-store-msixbundle.mjs@@ -53,7 +53,7 @@ const releaseDir = path.join(desktop, 'release')const { name, version, fileVersion } = appIdentity(desktop, tag)// Per-arch Store-submission packages: electron-builder names them with the-// Store- prefix + appInfo.version (the 3-part or full-nightly string), which+// Store- prefix + appInfo.version (the 3-part or full-canary string), which// appIdentity reports as `fileVersion` — same convention as the out-of-store// bundle in stage-msixbundle.mjs.const storeMsix = (arch) => path.join(releaseDir, `Store-${name}-${fileVersion}-win-${arch}.msix`)diff --git a/scripts/msix-shared.mjs b/scripts/msix-shared.mjsindex bd87fb00870..10e2f82104b 100644--- a/scripts/msix-shared.mjs+++ b/scripts/msix-shared.mjs@@ -119,7 +119,7 @@ function escapeAttr(value) {** @param {{* baseUrl: string // feed host root (no trailing slash)- * variantChannelPath: string // e.g. "win32/", "win32/light/", "win32/nightly/"+ * variantChannelPath: string // e.g. "win32/", "win32/light/", "win32/canary/"* identityName: string // package Identity Name (e.g. "NousResearch.HermesBundled")* version: string // 4-part MSIX version, e.g. "1.2.3.0"* bundleFilename: string // the universal .msixbundle filename in the feed dir@@ -149,16 +149,16 @@ export function buildAppInstaller(o) {].join('\n')}-// The nightly tag base + embedded UTC stamp: v0.27.2-nightly.20260829034013+// The canary tag base + embedded UTC stamp: v0.27.2-canary.20260829034013// (8- or 14-digit; the shorter legacy form is midnight of that day). The// base is the next PATCH over the newest stable, so the first three MSIX// components come from it (0.27.2) and outversion the stable line// structurally — cross-line monotonicity is free.-const NIGHTLY_TAG_RE = /^v(\d+\.\d+\.\d+)-nightly\.(20\d{6}(?:\d{6})?)$/+const CANARY_TAG_RE = /^v(\d+\.\d+\.\d+)-canary\.(20\d{6}(?:\d{6})?)$/const STABLE_TAG_RE = /^v\d+\.\d+\.\d+$/// MSIX version components are 16-bit (makeappx rejects >65535). Minutes-// since the last stable cross it at 45.5 days; a nightly cut more than 45+// since the last stable cross it at 45.5 days; a canary cut more than 45// days after its stable is a process failure worth surfacing loudly, not a// number to clamp (a clamped number would break monotonicity).const MAX_BUILD_MINUTES = 45 * 24 * 60@@ -179,27 +179,27 @@ export function gitTagCommitTime(gitRoot, tag) {return Number(execFileSync('git', ['log', '-1', '--format=%ct', tag], { cwd: gitRoot, encoding: 'utf8' }).trim())}-export function nightlyBuildMinutesFor(tag, stableEpoch) {- const m = NIGHTLY_TAG_RE.exec(String(tag || ''))+export function canaryBuildMinutesFor(tag, stableEpoch) {+ const m = CANARY_TAG_RE.exec(String(tag || ''))if (!m) return nullconst minutes = Math.floor((stampToEpoch(m[2]) - stableEpoch) / 60)if (minutes < 0) return 0if (minutes > MAX_BUILD_MINUTES) {throw new Error(- `nightly ${tag} is ${Math.floor(minutes / 1440)} days past its stable base — ` ++ `canary ${tag} is ${Math.floor(minutes / 1440)} days past its stable base — ` +`MSIX versions cap at 16 bits (45 days); cut a stable first`)}return minutes}-export function nightlyBuildMinutes(tag, gitRoot) {- const m = NIGHTLY_TAG_RE.exec(String(tag || ''))+export function canaryBuildMinutes(tag, gitRoot) {+ const m = CANARY_TAG_RE.exec(String(tag || ''))if (!m) return nullconst majorMinor = m[1].split('.').slice(0, 2).join('.')const stable = listGitTags(gitRoot, `v${majorMinor}.*`).find(t => STABLE_TAG_RE.test(t))if (!stable) return 0 // degenerate: no stable on this line; build number restarts- return nightlyBuildMinutesFor(tag, gitTagCommitTime(gitRoot, stable))+ return canaryBuildMinutesFor(tag, gitTagCommitTime(gitRoot, stable))}/**@@ -216,15 +216,15 @@ export function appIdentity(desktopDir, tag = process.env.HERMES_PAYLOAD_TAG ||const identity = require(path.join(desktopDir, 'product-identity.cjs'))const pkg = JSON.parse(fs.readFileSync(path.join(desktopDir, 'package.json'), 'utf8'))const repoRoot = path.resolve(desktopDir, '..', '..')- const nightly = NIGHTLY_TAG_RE.exec(String(tag))- if (nightly) {+ const canary = CANARY_TAG_RE.exec(String(tag))+ if (canary) {// Manifest + feed version: tag base (0.27.2) + minutes-since-stable.// The artifact FILENAME carries electron-builder's appInfo.version — the- // full nightly string (HermesBundled-0.27.2-nightly.X-win-x64.msix) — so+ // full canary string (HermesBundled-0.27.2-canary.X-win-x64.msix) — so// callers that look files up by name need that string separately.return {identity,- version: `${nightly[1]}.${nightlyBuildMinutes(String(tag), repoRoot)}`,+ version: `${canary[1]}.${canaryBuildMinutes(String(tag), repoRoot)}`,fileVersion: String(tag).slice(1),name: identity.appNamePascal,}diff --git a/scripts/r2-release.mjs b/scripts/r2-release.mjsindex 2c4957b092d..46d2a78a38c 100644--- a/scripts/r2-release.mjs+++ b/scripts/r2-release.mjs@@ -8,7 +8,7 @@// node scripts/r2-release.mjs put --tag vX.Y.Z --key <filename> --file <path>// node scripts/r2-release.mjs finalize --tag vX.Y.Z --dir <staging-dir>// node scripts/r2-release.mjs list [--prefix <p>]-// node scripts/r2-release.mjs prune-nightlies --keep-days 14 [--dry-run]+// node scripts/r2-release.mjs prune-canaries --keep-days 14 [--dry-run]//// Env (all required except where noted):// CLOUDFLARE_R2_ACCOUNT_ID → S3 endpoint https://<account>.r2.cloudflarestorage.com@@ -23,7 +23,7 @@// publish-win32-updater job)// releases/darwin/<channel>/<channel>-mac.yml electron-updater feed// releases/darwin/<channel>/*.{dmg,zip,blockmap}-// where <channel> is stable | nightly (from the tag: -nightly. → nightly).+// where <channel> is stable | canary (from the tag: -canary. → canary).// The publish-win32-updater job merges the win32 legs' staging into the// win32 feed; the darwin feed merge (r2 finalize) is currently DISABLED// (no macOS updater arm).@@ -212,9 +212,9 @@ async function retry(fn, tries = 3) {// Layout helpers (pure)// ----------------------------------------------------------------------------/** 'stable' for a stable tag, 'nightly' for a -nightly.<ts> tag. */+/** 'stable' for a stable tag, 'canary' for a -canary.<ts> tag. */export function channelForTag(tag) {- return /-nightly\.20\d{6}(?:\d{6})?$/.test(tag) ? 'nightly' : 'stable'+ return /-canary\.20\d{6}(?:\d{6})?$/.test(tag) ? 'canary' : 'stable'}// Content-Type for MSIX / App Installer artifacts lives in msix-shared.mjs@@ -232,7 +232,7 @@ export function feedDirFor(platform, channel) {/*** Merge per-leg electron-updater feed ymls (same channel + platform) into one.- * Each leg's yml (mac: latest-mac.yml / nightly-mac.yml) lists only its own+ * Each leg's yml (mac: latest-mac.yml / canary-mac.yml) lists only its own* arch's files[]; the merged yml keeps the top-level fields of the first leg* (version/releaseDate) and the trailing top-level path/sha512, with the* files[] entries concatenated and deduped by url. Idempotent: merging an@@ -475,10 +475,10 @@ async function cmdList({ prefix }) {for (const key of await listObjects(prefix)) console.log(key)}-/** Keys whose own nightly date (YYYYMMDD in the name) is before `cutoff`. */-export function nightlyDoomedKeys(keys, cutoff) {+/** Keys whose own canary date (YYYYMMDD in the name) is before `cutoff`. */+export function canaryDoomedKeys(keys, cutoff) {return keys.filter((key) => {- const m = key.match(/-nightly\.(\d{8})/)+ const m = key.match(/-canary\.(\d{8})/)return m && m[1] < cutoff})}@@ -491,13 +491,13 @@ async function cmdPrune({ keepDays, dryRun }) {const creds = { accessKeyId, secretKey }const base = s3Endpoint(accountId)- // Cutoff dated by the nightly suffix in the KEY (like release.py's- // --prune-nightlies: a re-uploaded old tag never resets its clock).+ // Cutoff dated by the canary suffix in the KEY (like release.py's+ // --prune-canaries: a re-uploaded old tag never resets its clock).const cutoff = new Date(Date.now() - keepDays * 86400_000).toISOString().slice(0, 10).replace(/-/g, '')const keys = await listObjects()- const doomed = nightlyDoomedKeys(keys, cutoff)+ const doomed = canaryDoomedKeys(keys, cutoff)if (doomed.length === 0) {- console.log(`✓ r2: no nightly objects older than ${keepDays} days`)+ console.log(`✓ r2: no canary objects older than ${keepDays} days`)return}const now = new Date().toISOString().replace(/[-:]/g, '').replace(/\.\d{3}/, '')@@ -522,7 +522,7 @@ function usage() {node scripts/r2-release.mjs put --tag vX.Y.Z --key <filename> --file <path> [--key-is-full]node scripts/r2-release.mjs finalize --tag vX.Y.Z --dir <staging-dir>node scripts/r2-release.mjs list [--prefix <p>]- node scripts/r2-release.mjs prune-nightlies --keep-days <n> [--dry-run]+ node scripts/r2-release.mjs prune-canaries --keep-days <n> [--dry-run]--key-is-full: the --key is a FULL object key (e.g. releases/win32/stable/…),not a filename to archive under releases/tag/<tag>/.`)@@ -555,7 +555,7 @@ export async function main(argv = process.argv.slice(2)) {await cmdFinalize({ tag: args.tag, dir: args.dir })} else if (cmd === 'list') {await cmdList({ prefix: args.prefix ?? '' })- } else if (cmd === 'prune-nightlies') {+ } else if (cmd === 'prune-canaries') {const keepDays = Number(args['keep-days'])if (!Number.isFinite(keepDays) || keepDays <= 0) usage()await cmdPrune({ keepDays, dryRun: Boolean(args.dryRun) })diff --git a/scripts/release.py b/scripts/release.pyindex b8c974c0929..cfa006d73ca 100755--- a/scripts/release.py+++ b/scripts/release.py@@ -32,11 +32,11 @@ from datetime import datetime, timedelta, timezonefrom pathlib import Path# Bootstrap the repo root onto sys.path so this script can import the-# nightly-tag authority from hermes_cli.update_channel (hermes_cli/__init__.py+# canary-tag authority from hermes_cli.update_channel (hermes_cli/__init__.py# is import-light: only os/sys + version constants).sys.path.insert(0, str(Path(__file__).resolve().parent.parent))-from hermes_cli.update_channel import _NIGHTLY_TAG_RE, nightly_tag_for_date # noqa: E402+from hermes_cli.update_channel import _CANARY_TAG_RE, canary_tag_for_date # noqa: E402REPO_ROOT = Path(__file__).resolve().parent.parentVERSION_FILE = REPO_ROOT / "hermes_cli" / "__init__.py"@@ -2159,10 +2159,10 @@ def dispatch_desktop_build(tag: str, gh_repo: str | None) -> bool:This is how EVERY release of either kind gets its installers. Theworkflow takes workflow_dispatch only, because that is one of the two- events GITHUB_TOKEN is allowed to raise: the scheduled nightly pushes+ events GITHUB_TOKEN is allowed to raise: the scheduled canary pushesits tag as github-actions[bot], and a bot-pushed tag starts noworkflow run at all. A tag-push trigger would therefore work for a- hand-cut stable release and silently do nothing for the nightly.+ hand-cut stable release and silently do nothing for the canary.Called after the draft release exists — its body is where thebuilds-pending / builds-table jobs splice the download tables (the@@ -2170,9 +2170,9 @@ def dispatch_desktop_build(tag: str, gh_repo: str | None) -> bool:only). The workflow FILE is taken from the repo's DEFAULT BRANCH (notthe tag): a tag-dispatched run scopes actions/cache underrefs/heads/refs/tags/<tag> — a mangled per-tag scope that can never be- restored by a later nightly, so every nightly rebuilt from cold. On a+ restored by a later canary, so every canary rebuilt from cold. On abranch ref the caches scope to refs/heads/<branch> and persist across- nightlies. The build CODE still comes from the tag via the `tag` input+ canaries. The build CODE still comes from the tag via the `tag` input(the workflow checks out ${{ inputs.tag }}), so an old-tag rebuildbuilds the old snapshot with the current workflow."""@@ -2261,12 +2261,12 @@ def remote_github_repo(remote: str) -> str | None:# The legacy CalVer tags (v2026.7.20) must never match as SemVer._SEMVER_TAG_RE = re.compile(r"v(?:0|[1-9]\d{0,2})\.\d+\.\d+$")_LEGACY_CALVER_TAG_RE = re.compile(r"v20\d{2}\.\d+\.\d+(?:\.\d+)?$")-# Nightly prerelease tags are matched with _NIGHTLY_TAG_RE, imported from-# hermes_cli.update_channel — the single authority for the nightly tag-# shape (v<major>.<minor>.<any patch>-nightly.<YYYYMMDDHHMMSS>, plus the+# Canary prerelease tags are matched with _CANARY_TAG_RE, imported from+# hermes_cli.update_channel — the single authority for the canary tag+# shape (v<major>.<minor>.<any patch>-canary.<YYYYMMDDHHMMSS>, plus the# legacy date-only form). The suffix keeps them out of every stable# selector (all of which require the no-suffix SemVer shape above).-# Second precision so manual fires can publish several nightlies per day;+# Second precision so manual fires can publish several canaries per day;# the identifier is pure numeric and fixed-length, so semver prerelease# comparison (numeric) and lexical sort both order it chronologically.@@ -2291,13 +2291,13 @@ def get_last_tag():return None-def get_last_nightly_tag():- """The newest nightly tag, or None. Date order == version order within+def get_last_canary_tag():+ """The newest canary tag, or None. Date order == version order withinone minor; across minors the -v:refname sort already ranks the newerminor first."""- tags = git("tag", "--list", "v[0-9]*-nightly.*", "--sort=-v:refname")+ tags = git("tag", "--list", "v[0-9]*-canary.*", "--sort=-v:refname")for tag in (tags.split("\n") if tags else []):- if _NIGHTLY_TAG_RE.fullmatch(tag):+ if _CANARY_TAG_RE.fullmatch(tag):return tagreturn None@@ -2674,11 +2674,11 @@ def generate_changelog(commits, tag_name, semver, repo_url="https://github.com/Nreturn "\n".join(lines)-def _nightly_timestamp(tag: str) -> str | None:- """The YYYYMMDD[HHMMSS] UTC stamp embedded in a nightly tag, or None."""- if not _NIGHTLY_TAG_RE.fullmatch(tag):+def _canary_timestamp(tag: str) -> str | None:+ """The YYYYMMDD[HHMMSS] UTC stamp embedded in a canary tag, or None."""+ if not _CANARY_TAG_RE.fullmatch(tag):return None- return tag.split("-nightly.", 1)[1]+ return tag.split("-canary.", 1)[1]def _stamp_epoch(stamp: str) -> int | None:@@ -2693,64 +2693,64 @@ def _stamp_epoch(stamp: str) -> int | None:return None-def cmd_nightly(args) -> None:- """--nightly: tag + draft today's nightly prerelease.+def cmd_canary(args) -> None:+ """--canary: tag + draft today's canary prerelease.Owns ALL the tag math (the workflow passes only --publish/--remote):next-MINOR over the newest stable tag, dated suffix, changelog since- the last nightly (or last stable for the first one). No version-file+ the last canary (or last stable for the first one). No version-filebump, no commit — the tag points at HEAD as-is, and the stamp's- displayVersion carries the nightly version from the tag.+ displayVersion carries the canary version from the tag.Created as a DRAFT prerelease, for the same reason the stable pathdrafts: a published release with no installers attached is a releaseusers can reach and cannot use. The desktop matrix attaches the- installers to this draft by tag, and the nightly workflow's publish+ installers to this draft by tag, and the canary workflow's publishjob flips it to published only after that matrix is green. A failedbundle therefore leaves an inspectable draft rather than a broken- nightly.+ canary.Exits 0 with "nothing to do" when HEAD is already tagged by the last- nightly — the skip-if-no-new-commits gate lives HERE, not in workflow+ canary — the skip-if-no-new-commits gate lives HERE, not in workflowYAML."""date_utc = args.date or datetime.now(timezone.utc).strftime("%Y%m%d%H%M%S")stable_tag = get_last_tag()if stable_tag is None:- print("✗ No stable release tag exists; a nightly needs a stable line to version over.")+ print("✗ No stable release tag exists; a canary needs a stable line to version over.")sys.exit(1)- tag_name = nightly_tag_for_date(stable_tag, date_utc)+ tag_name = canary_tag_for_date(stable_tag, date_utc)- prev_nightly = get_last_nightly_tag()- since = prev_nightly or stable_tag+ prev_canary = get_last_canary_tag()+ since = prev_canary or stable_tagif git_result("rev-parse", "--verify", "--quiet", f"refs/tags/{tag_name}").returncode == 0:print(f"✓ {tag_name} already exists — nothing to do.")return- # The nightly MSIX build number is minutes-since-the-last-stable (see- # msix-shared.mjs). Two nightlies of the same LINE cut within the SAME+ # The canary MSIX build number is minutes-since-the-last-stable (see+ # msix-shared.mjs). Two canaries of the same LINE cut within the SAME# minute would share a build number → identical MSIX version → App# Installer refuses the second over the first. Refuse the second cut# loudly instead of shipping an uninstallable equal-version package.# (A same-minute cut on a NEW line — after a fresh stable — is fine: the# patch bump already outversions the old line, so no collision.)- prev_ts = _nightly_timestamp(prev_nightly) if prev_nightly else None- same_line = bool(prev_nightly) and prev_nightly.split("-nightly.", 1)[0] == tag_name.split("-nightly.", 1)[0]+ prev_ts = _canary_timestamp(prev_canary) if prev_canary else None+ same_line = bool(prev_canary) and prev_canary.split("-canary.", 1)[0] == tag_name.split("-canary.", 1)[0]prev_min = _stamp_epoch(prev_ts) // 60 if prev_ts and _stamp_epoch(prev_ts) is not None else Nonecur_min = _stamp_epoch(date_utc) // 60 if _stamp_epoch(date_utc) is not None else Noneif same_line and prev_min is not None and prev_min == cur_min:print(- f"✗ {tag_name} is in the same minute as {prev_nightly} — they would "+ f"✗ {tag_name} is in the same minute as {prev_canary} — they would ""share an MSIX build number (minutes since the last stable). Wait a ""minute and re-run.")return- if prev_nightly:+ if prev_canary:head = git("rev-parse", "HEAD")- if head and head == git("rev-parse", f"{prev_nightly}^{{commit}}"):- print(f"✓ No new commits since {prev_nightly} — nothing to do.")+ if head and head == git("rev-parse", f"{prev_canary}^{{commit}}"):+ print(f"✓ No new commits since {prev_canary} — nothing to do.")returncommits = get_commits(since_tag=since)@@ -2759,24 +2759,24 @@ def cmd_nightly(args) -> None:return# MSIX version components are 16-bit (makeappx rejects >65535). The- # nightly build number is minutes-since-the-last-stable, which crosses- # the cap at 45.5 days. A nightly cut on a stable base older than 45+ # canary build number is minutes-since-the-last-stable, which crosses+ # the cap at 45.5 days. A canary cut on a stable base older than 45# days cannot carry a legal build number — fail loudly, never clamp (a# clamped number would break monotonicity and the update path).stable_epoch = git("log", "-1", "--format=%ct", stable_tag)- nightly_epoch = _stamp_epoch(date_utc)- if stable_epoch.isdigit() and nightly_epoch is not None:- days_old = (nightly_epoch - int(stable_epoch)) / 86400+ canary_epoch = _stamp_epoch(date_utc)+ if stable_epoch.isdigit() and canary_epoch is not None:+ days_old = (canary_epoch - int(stable_epoch)) / 86400if days_old > 45:print(- f"✗ {stable_tag} is {days_old:.1f} days old — a nightly cut now "+ f"✗ {stable_tag} is {days_old:.1f} days old — a canary cut now ""would overflow the 16-bit MSIX build number (minutes since ""this stable). Cut a stable release first.")sys.exit(1)version = tag_name.lstrip("v")- print(f"Nightly: {tag_name} ({len(commits)} commits since {since})")+ print(f"Canary: {tag_name} ({len(commits)} commits since {since})")changelog = generate_changelog(commits, tag_name, version, prev_tag=since, first_release=False)@@ -2790,7 +2790,7 @@ def cmd_nightly(args) -> None:gh_repo = remote_github_repo(push_remote)tag_result = git_result(- "tag", "-a", tag_name, "-m", f"Hermes Agent nightly {date_utc}"+ "tag", "-a", tag_name, "-m", f"Hermes Agent canary {date_utc}")if tag_result.returncode != 0:print(f"✗ Failed to create tag {tag_name}: {tag_result.stderr.strip()}")@@ -2811,7 +2811,7 @@ def cmd_nightly(args) -> None:# missing tag from the default branch's tip, which would silently# release a different commit than the one we tagged."--verify-tag",- "--title", f"Hermes Agent nightly {date_utc} ({tag_name})",+ "--title", f"Hermes Agent canary {date_utc} ({tag_name})","--notes-file", str(changelog_file),]if gh_repo:@@ -2825,8 +2825,8 @@ def cmd_nightly(args) -> None:print(f" Notes kept at {changelog_file}; tag {tag_name} is pushed.")sys.exit(1)changelog_file.unlink(missing_ok=True)- print(f"✓ Nightly prerelease drafted: {result.stdout.strip()}")- # The build stages the installers to the R2 bucket and, for a nightly+ print(f"✓ Canary prerelease drafted: {result.stdout.strip()}")+ # The build stages the installers to the R2 bucket and, for a canary# tag, publishes it when the whole matrix is green.dispatch_desktop_build(tag_name, gh_repo)# Record the tag for any workflow step that wants it. release.py@@ -2839,8 +2839,8 @@ def cmd_nightly(args) -> None:f.write(f"tag={tag_name}\n")-def prune_old_nightlies(args) -> None:- """--prune-nightlies: delete nightly releases+tags older than 14 days.+def prune_old_canaries(args) -> None:+ """--prune-canaries: delete canary releases+tags older than 14 days.Keep-on-doubt: any parse failure keeps the release. The keep window isdated by the tag's own YYYYMMDD suffix, not the release timestamp, so@@ -2851,19 +2851,19 @@ def prune_old_nightlies(args) -> None:cutoff = (datetime.now(timezone.utc) - timedelta(days=14)).strftime("%Y%m%d")- tags = git("tag", "--list", "v[0-9]*-nightly.*", "--sort=-v:refname")+ tags = git("tag", "--list", "v[0-9]*-canary.*", "--sort=-v:refname")doomed = []for tag in (tags.split("\n") if tags else []):- m = _NIGHTLY_TAG_RE.fullmatch(tag)+ m = _CANARY_TAG_RE.fullmatch(tag)# Compare on the DATE prefix only: the suffix may be 8 (legacy) or# 14 (timestamped) digits, and a 14-digit string compared against# an 8-digit cutoff would be decided by length, not by day.- # (_NIGHTLY_TAG_RE carries no capture group, so slice the suffix+ # (_CANARY_TAG_RE carries no capture group, so slice the suffix# out of the tag itself.)- if m and tag.split("-nightly.", 1)[1][:8] < cutoff:+ if m and tag.split("-canary.", 1)[1][:8] < cutoff:doomed.append(tag)if not doomed:- print("✓ No nightlies older than 14 days.")+ print("✓ No canaries older than 14 days.")returnfor tag in doomed:if not args.publish:@@ -2888,12 +2888,12 @@ def main():parser = argparse.ArgumentParser(description="Hermes Agent Release Tool")parser.add_argument("--bump", choices=["major", "minor", "patch"],help="Which semver component to bump")- parser.add_argument("--nightly", action="store_true",- help="Tag + publish today's nightly prerelease "- "(v<stable.minor+1>.0-nightly.<YYYYMMDDHHMMSS>); no-op when "- "HEAD has no new commits since the last nightly")- parser.add_argument("--prune-nightlies", action="store_true",- help="Delete nightly releases+tags older than 14 days")+ parser.add_argument("--canary", action="store_true",+ help="Tag + publish today's canary prerelease "+ "(v<stable.minor+1>.0-canary.<YYYYMMDDHHMMSS>); no-op when "+ "HEAD has no new commits since the last canary")+ parser.add_argument("--prune-canaries", action="store_true",+ help="Delete canary releases+tags older than 14 days")parser.add_argument("--publish", action="store_true",help="Actually create the tag and GitHub release (otherwise dry run)")parser.add_argument("--remote", type=str,@@ -2908,13 +2908,13 @@ def main():help="Write changelog to file instead of stdout")args = parser.parse_args()- if args.nightly and args.bump:- parser.error("--nightly and --bump are mutually exclusive")- if args.nightly:- cmd_nightly(args)+ if args.canary and args.bump:+ parser.error("--canary and --bump are mutually exclusive")+ if args.canary:+ cmd_canary(args)return- if args.prune_nightlies:- prune_old_nightlies(args)+ if args.prune_canaries:+ prune_old_canaries(args)return# Determine release-date metadata.diff --git a/scripts/render-builds-table.py b/scripts/render-builds-table.pyindex 9cb8c859c69..56beef91fbd 100644--- a/scripts/render-builds-table.py+++ b/scripts/render-builds-table.py@@ -11,7 +11,7 @@ under releases/tag/<tag>/, and the download links point at the R2 publicURL (CLOUDFLARE_R2_PUBLIC_URL / --r2-base-url).Tables: Hermes Desktop (bundled) and Hermes Light, one row per (OS,-arch). Feed manifests (latest*/light*/nightly*.yml), blockmaps and mac .zip+arch). Feed manifests (latest*/light*/canary*.yml), blockmaps and mac .zip(an electron-updater delta target, not a user download) stay out of thetables on purpose; they still live in the bucket for the updater toconsume.@@ -44,7 +44,7 @@ END_MARKER = "<!-- /HERMES_BUILDS_TABLE -->"# Hermes-0.28.0-mac-arm64.dmg (bundled)# HermesBundled-0.28.0-win-x64.msix (bundled)_ASSET_RE = re.compile(- r"^(?P<app>HermesBundled|HermesLight)-(?P<version>[^-]+(?:-nightly\.\d{8}(?:\d{6})?)?)"+ r"^(?P<app>HermesBundled|HermesLight)-(?P<version>[^-]+(?:-canary\.\d{8}(?:\d{6})?)?)"r"-(?P<os>mac|win|linux)-(?P<arch>x64|arm64)\.(?P<ext>dmg|msix|AppImage)$")@@ -126,7 +126,7 @@ def r2_object_names(tag: str) -> list[str]:"""Object keys in the R2 staging dir for `tag`, under releases/tag/<tag>/.Exact version match, never prefix: 'v0.28.0' must not pick up- '0.28.0-nightly.20260818...' objects (they live under their own tag+ '0.28.0-canary.20260818...' objects (they live under their own tagdirectory, and the basename filter would reject them anyway). The listcall shells out to scripts/r2-release.mjs, which reads the R2 env varsand needs only node (no npm ci in this job).diff --git a/scripts/stage-msixbundle.mjs b/scripts/stage-msixbundle.mjsindex 794610a3d79..800682f6ab1 100644--- a/scripts/stage-msixbundle.mjs+++ b/scripts/stage-msixbundle.mjs@@ -7,8 +7,8 @@// 1. OUT-OF-STORE FEED: bundle the x64 + arm64 per-arch .msix into one// universal .msixbundle, sign the bundle envelope, write the per-channel// .appinstaller, and upload both to the win32 feed dirs:-// releases/win32/<stable|nightly>/<name>-<ver>.win.msixbundle-// releases/win32/<stable|nightly>/stable.appinstaller (or nightly.*)+// releases/win32/<stable|canary>/<name>-<ver>.win.msixbundle+// releases/win32/<stable|canary>/stable.appinstaller (or canary.*)// The .appinstaller is the install + auto-update entry point; the bundle// is what the OS installs and swaps on update. Per-arch .msix files stay// in the immutable releases/tag/<tag>/ archive (uploaded by the legs).@@ -62,8 +62,8 @@ if (process.platform !== 'win32') {process.exit(1)}-const nightly = /-nightly\./.test(tag)-const channel = nightly ? 'nightly' : 'stable'+const canary = /-canary\./.test(tag)+const channel = canary ? 'canary' : 'stable'const channelDir = `releases/win32/${variant === 'light' ? 'light/' : ''}${channel}`const desktop = path.join(REPO_ROOT, 'apps', 'desktop')@@ -71,7 +71,7 @@ const releaseDir = path.join(desktop, 'release')const { identity, version, name, fileVersion } = appIdentity(desktop, tag)// Per-arch .msix files are found by the name electron-builder gave them-// (appInfo.version = the 3-part or full-nightly string, NOT the 4-part feed+// (appInfo.version = the 3-part or full-canary string, NOT the 4-part feed// version). The bundle /bv, .appinstaller Version and feed filenames all use// the 4-part `version` — what Windows compares for updates.function msixFile(arch) {diff --git a/scripts/write_install_stamp.py b/scripts/write_install_stamp.pyindex 1e6e2cd9fba..f3047e07996 100644--- a/scripts/write_install_stamp.py+++ b/scripts/write_install_stamp.py@@ -31,7 +31,7 @@ import sysfrom datetime import datetime, timezonefrom pathlib import Path-# Bootstrap the repo root onto sys.path so the nightly tag shape can come+# Bootstrap the repo root onto sys.path so the canary tag shape can come# from hermes_cli.update_channel — the single authority — instead of a# re-typed regex (hermes_cli/__init__.py is import-light).sys.path.insert(0, str(Path(__file__).resolve().parent.parent))@@ -231,18 +231,18 @@ def build_stamp()payload = "bundled" if variant == "store" else (variant or "bootstrap")tag = os.environ.get("HERMES_PAYLOAD_TAG") or None- # Stable (vX.Y.Z) and nightly (vX.Y.<any patch>-nightly.<YYYYMMDDHHMMSS>,+ # Stable (vX.Y.Z) and canary (vX.Y.<any patch>-canary.<YYYYMMDDHHMMSS>,# or the legacy date-only shape) tags are both release-feed keys; anything- # else cannot update itself and refuses. The nightly shape is validated by+ # else cannot update itself and refuses. The canary shape is validated by# hermes_cli.update_channel — the single authority — so it accepts the- # patch+1 form scripts/release.py's nightly_tag_for_date produces.+ # patch+1 form scripts/release.py's canary_tag_for_date produces._stable_tag = re.compile(r"^v(0|[1-9]\d{0,2})\.\d+\.\d+$")if payload != "bootstrap" and not (- tag and (_stable_tag.match(tag) or update_channel.is_nightly_tag(tag))+ tag and (_stable_tag.match(tag) or update_channel.is_canary_tag(tag))):raise SystemExit(f"write_install_stamp: HERMES_DESKTOP_VARIANT={payload} requires "- f"HERMES_PAYLOAD_TAG=vX.Y.Z or vX.Y.<n>-nightly.YYYYMMDDHHMMSS (got {tag!r})"+ f"HERMES_PAYLOAD_TAG=vX.Y.Z or vX.Y.<n>-canary.YYYYMMDDHHMMSS (got {tag!r})")stamp = {diff --git a/tests-js/r2-release.test.mjs b/tests-js/r2-release.test.mjsindex 69fbd74f4ca..0e1d9019881 100644--- a/tests-js/r2-release.test.mjs+++ b/tests-js/r2-release.test.mjs@@ -27,7 +27,7 @@ import {encodeKeyPath,feedDirFor,mergeFeedYmls,- nightlyDoomedKeys,+ canaryDoomedKeys,rewriteFeedPaths,stagingKeyFor,parseListXml,@@ -111,7 +111,7 @@ test('r2-delete matches botocore', () => {const authz = authHeader({method: 'DELETE',host,- path: '/hermes-releases/HermesBundled-0.28.0-nightly.20260818-win-arm64.msix',+ path: '/hermes-releases/HermesBundled-0.28.0-canary.20260818-win-arm64.msix',query: '',headers: { host, 'x-amz-date': NOW, 'x-amz-content-sha256': EMPTY_SHA },payloadHash: EMPTY_SHA,@@ -156,32 +156,32 @@ test('parseListXml extracts keys, truncation, continuation token, entities', ()assert.equal(parsed.nextToken, 'abc+def/=')})-test('nightlyDoomedKeys dates by the key suffix, ignores stable artifacts', () => {+test('canaryDoomedKeys dates by the key suffix, ignores stable artifacts', () => {const keys = ['releases/tag/v0.28.0/HermesBundled-0.28.0-win-x64.msix', // stable — never doomed- 'releases/tag/v0.28.0-nightly.20260801/HermesBundled-0.28.0-nightly.20260801-win-x64.msix',- 'releases/tag/v0.28.0-nightly.20260818/HermesBundled-0.28.0-nightly.20260818-win-x64.msix', // today — kept- 'releases/tag/v0.28.0-nightly.20260801/HermesBundled-0.28.0-nightly.20260801-win-x64.msix.blockmap',+ 'releases/tag/v0.28.0-canary.20260801/HermesBundled-0.28.0-canary.20260801-win-x64.msix',+ 'releases/tag/v0.28.0-canary.20260818/HermesBundled-0.28.0-canary.20260818-win-x64.msix', // today — kept+ 'releases/tag/v0.28.0-canary.20260801/HermesBundled-0.28.0-canary.20260801-win-x64.msix.blockmap','latest.yml',- 'nightly.yml',+ 'canary.yml',]- assert.deepEqual(nightlyDoomedKeys(keys, '20260814'), [- 'releases/tag/v0.28.0-nightly.20260801/HermesBundled-0.28.0-nightly.20260801-win-x64.msix',- 'releases/tag/v0.28.0-nightly.20260801/HermesBundled-0.28.0-nightly.20260801-win-x64.msix.blockmap',+ assert.deepEqual(canaryDoomedKeys(keys, '20260814'), [+ 'releases/tag/v0.28.0-canary.20260801/HermesBundled-0.28.0-canary.20260801-win-x64.msix',+ 'releases/tag/v0.28.0-canary.20260801/HermesBundled-0.28.0-canary.20260801-win-x64.msix.blockmap',])})-test('channelForTag maps stable vs nightly', () => {+test('channelForTag maps stable vs canary', () => {assert.equal(channelForTag('v0.28.0'), 'stable')- assert.equal(channelForTag('v0.28.0-nightly.20260818101010'), 'nightly')- assert.equal(channelForTag('v0.28.0-nightly.20260818'), 'nightly')+ assert.equal(channelForTag('v0.28.0-canary.20260818101010'), 'canary')+ assert.equal(channelForTag('v0.28.0-canary.20260818'), 'canary')})test('stagingKeyFor + feedDirFor produce the layout keys', () => {assert.equal(stagingKeyFor('v0.28.0', 'HermesBundled-0.28.0-win-x64.msix'),'releases/tag/v0.28.0/HermesBundled-0.28.0-win-x64.msix')assert.equal(feedDirFor('win32', 'stable'), 'releases/win32/stable')- assert.equal(feedDirFor('darwin', 'nightly'), 'releases/darwin/nightly')+ assert.equal(feedDirFor('darwin', 'canary'), 'releases/darwin/canary')})test('contentTypeFor maps MSIX / App Installer artifacts to their MIME types', () => {diff --git a/tests/ci/test_desktop_release_tag_admission.py b/tests/ci/test_desktop_release_tag_admission.pyindex 6c65043bc24..84a398b0078 100644--- a/tests/ci/test_desktop_release_tag_admission.py+++ b/tests/ci/test_desktop_release_tag_admission.py@@ -205,9 +205,9 @@ def test_tag_not_on_origin_main_is_refused(tmp_path: Path):(clone / "rogue.txt").write_text("unreviewed\n", encoding="utf-8")_git("add", "-A", cwd=clone)_git("commit", "-m", "rogue", cwd=clone)- _git("tag", "v0.1.3-nightly.20260830120000", cwd=clone)+ _git("tag", "v0.1.3-canary.20260830120000", cwd=clone)- proc = _run_admission(clone, "v0.1.3-nightly.20260830120000")+ proc = _run_admission(clone, "v0.1.3-canary.20260830120000")assert proc.returncode != 0, "a tag off origin/main must not be admitted"assert "not an ancestor of origin/main" in proc.stdout + proc.stderr# And nothing was exported for the signing jobs to consume.diff --git a/tests/hermes_cli/test_update_channel.py b/tests/hermes_cli/test_update_channel.pyindex 8a142c144da..fce5696a85b 100644--- a/tests/hermes_cli/test_update_channel.py+++ b/tests/hermes_cli/test_update_channel.py@@ -13,7 +13,7 @@ import pytestfrom hermes_cli.update_channel import (CHANNEL_MAIN,- CHANNEL_NIGHTLY,+ CHANNEL_CANARY,CHANNEL_STABLE,default_channel,install_id,@@ -98,34 +98,34 @@ class TestResolve:assert resolve_update_channel({}, source) == CHANNEL_MAINassert resolve_update_channel({}, bundle) == CHANNEL_STABLE- def test_nightly_artifact_defaults_to_its_own_feed(self, tmp_path):- """A nightly bundle with no per-install record tracks nightly.+ def test_canary_artifact_defaults_to_its_own_feed(self, tmp_path):+ """A canary bundle with no per-install record tracks canary.- The artifact publishes to nightly.yml (product-identity.cjs keys the+ The artifact publishes to canary.yml (product-identity.cjs keys thefeed on this same tag). Defaulting it to stable made the updater ask- for nightly.yml under the newest STABLE release, which 404s and- leaves a fresh nightly install unable to update at all.+ for canary.yml under the newest STABLE release, which 404s and+ leaves a fresh canary install unable to update at all."""- root = tmp_path / "nightly-bundle"- _stamp(root, "electron-updater", tag="v0.28.0-nightly.20260819171926")- assert default_channel(root) == CHANNEL_NIGHTLY- assert resolve_update_channel({}, root) == CHANNEL_NIGHTLY+ root = tmp_path / "canary-bundle"+ _stamp(root, "electron-updater", tag="v0.28.0-canary.20260819171926")+ assert default_channel(root) == CHANNEL_CANARY+ assert resolve_update_channel({}, root) == CHANNEL_CANARY- def test_legacy_date_only_nightly_tag_is_a_nightly(self, tmp_path):- root = tmp_path / "legacy-nightly"- _stamp(root, "electron-updater", tag="v0.28.0-nightly.20260818")- assert default_channel(root) == CHANNEL_NIGHTLY+ def test_legacy_date_only_canary_tag_is_a_canary(self, tmp_path):+ root = tmp_path / "legacy-canary"+ _stamp(root, "electron-updater", tag="v0.28.0-canary.20260818")+ assert default_channel(root) == CHANNEL_CANARYdef test_explicit_record_still_overrides_the_artifact_default(self, tmp_path):"""The tag only supplies the DEFAULT: an opt-out must still work."""- root = tmp_path / "nightly-bundle"- _stamp(root, "electron-updater", tag="v0.28.0-nightly.20260819171926")+ root = tmp_path / "canary-bundle"+ _stamp(root, "electron-updater", tag="v0.28.0-canary.20260819171926")assert resolve_update_channel(_config_for(root, "stable"), root) == CHANNEL_STABLE- def test_a_nightly_tag_on_a_source_install_is_not_a_nightly_channel(self, tmp_path):+ def test_a_canary_tag_on_a_source_install_is_not_a_canary_channel(self, tmp_path):"""Only electron-updater bundles have release feeds to track."""root = tmp_path / "src"- _stamp(root, "self", tag="v0.28.0-nightly.20260819171926")+ _stamp(root, "self", tag="v0.28.0-canary.20260819171926")assert default_channel(root) == CHANNEL_MAINdef test_stampless_tree_defaults_to_main(self, tmp_path):@@ -133,17 +133,17 @@ class TestResolve:root.mkdir()assert resolve_update_channel({}, root) == CHANNEL_MAIN- def test_nightly_normalizes_to_main_for_source(self, tmp_path):+ def test_canary_normalizes_to_main_for_source(self, tmp_path):root = tmp_path / "src"_stamp(root, "self")- config = _config_for(root, "nightly")+ config = _config_for(root, "canary")assert resolve_update_channel(config, root) == CHANNEL_MAIN- def test_nightly_stays_for_electron_updater(self, tmp_path):+ def test_canary_stays_for_electron_updater(self, tmp_path):root = tmp_path / "bundle"_stamp(root, "electron-updater")- config = _config_for(root, "nightly")- assert resolve_update_channel(config, root) == CHANNEL_NIGHTLY+ config = _config_for(root, "canary")+ assert resolve_update_channel(config, root) == CHANNEL_CANARYdef test_garbage_record_falls_to_default(self, tmp_path):root = tmp_path / "src"@@ -187,7 +187,7 @@ class TestSetChannel:"model": {"provider": "nous"},"update": {"installs": {- install_id(other): {"path": str(other), "channel": "nightly"}+ install_id(other): {"path": str(other), "channel": "canary"}}},}@@ -199,7 +199,7 @@ class TestSetChannel:written = yaml.safe_load((home / "config.yaml").read_text())assert written["model"] == {"provider": "nous"}- assert written["update"]["installs"][install_id(other)]["channel"] == "nightly"+ assert written["update"]["installs"][install_id(other)]["channel"] == "canary"assert written["update"]["installs"][install_id(root)]["channel"] == "stable"def test_external_mechanism_refuses(self, tmp_path, monkeypatch):@@ -228,7 +228,7 @@ class TestSetChannelCLI:base.update(kw)return SimpleNamespace(**base)- def test_stable_switch_from_nightly_is_an_honest_wait(self, capsys):+ def test_stable_switch_from_canary_is_an_honest_wait(self, capsys):from unittest.mock import patchfrom hermes_cli.main import cmd_update@@ -241,7 +241,7 @@ class TestSetChannelCLI:"hermes_cli.steward.read_install_stamp",return_value={"updateMechanism": "electron-updater",- "displayVersion": "0.28.0-nightly.20260818",+ "displayVersion": "0.28.0-canary.20260818",},),):@@ -249,11 +249,11 @@ class TestSetChannelCLI:cmd_update(self._args(set_channel="stable"))assert exc.value.code == 0out = capsys.readouterr().out- assert "0.28.0-nightly.20260818" in out # names where you are+ assert "0.28.0-canary.20260818" in out # names where you areassert "v0.28.0" in out # names the wait targetassert "hermes-agent.nousresearch.com" in out # the impatient path- def test_nightly_optin_warns_about_forward_incompatible_state(self, capsys):+ def test_canary_optin_warns_about_forward_incompatible_state(self, capsys):from unittest.mock import patchfrom hermes_cli.main import cmd_update@@ -264,7 +264,7 @@ class TestSetChannelCLI:patch("hermes_cli.update_channel.set_install_channel", return_value="a" * 16),):with pytest.raises(SystemExit) as exc:- cmd_update(self._args(set_channel="nightly"))+ cmd_update(self._args(set_channel="canary"))assert exc.value.code == 0out = capsys.readouterr().outassert "forward-incompatible" in outdiff --git a/tests/hermes_cli/test_update_channel_stable.py b/tests/hermes_cli/test_update_channel_stable.pyindex ce8db0b3601..d8730517a0e 100644--- a/tests/hermes_cli/test_update_channel_stable.py+++ b/tests/hermes_cli/test_update_channel_stable.py@@ -19,14 +19,14 @@ class TestParseReleaseTag:for tag in ("v1.2.3-rc1", "v1.2.3-beta.1", "v1.2", "1.2.3", "release-1", "vv1.2.3", ""):assert _parse_release_tag(tag) is None, tag- def test_nightly_tags_never_reach_the_stable_channel(self):- """The inverse direction of the nightly channel: nightly tags are- version-suffixed (v0.28.0-nightly.20260818), and the stable- selector's no-suffix rule is what keeps a nightly prerelease from+ def test_canary_tags_never_reach_the_stable_channel(self):+ """The inverse direction of the canary channel: canary tags are+ version-suffixed (v0.28.0-canary.20260818), and the stable+ selector's no-suffix rule is what keeps a canary prerelease fromever winning a stable-channel update. If this shape ever parses,- stable users get nightlies."""- assert _parse_release_tag("v0.28.0-nightly.20260818") is None- assert _parse_release_tag("v1.0.0-nightly.1") is None+ stable users get canaries."""+ assert _parse_release_tag("v0.28.0-canary.20260818") is None+ assert _parse_release_tag("v1.0.0-canary.1") is Nonedef test_calver_tags_rejected(self):"""Historical CalVer tags (v2026.7.20) must not win a numeric sort.@@ -93,8 +93,8 @@ class TestStableChannelActive:no config read happens when it is present."""assert _stable_channel_active(_Args(channel="stable")) is Trueassert _stable_channel_active(_Args(channel="main")) is False- # nightly on a source tree normalizes to main, never stable.- assert _stable_channel_active(_Args(channel="nightly")) is False+ # canary on a source tree normalizes to main, never stable.+ assert _stable_channel_active(_Args(channel="canary")) is Falsedef test_per_install_record_activates(self, tmp_path, monkeypatch):from hermes_cli.update_channel import install_iddiff --git a/tests/scripts/test_release_nightly.py b/tests/scripts/test_release_canary.pysimilarity index 71%rename from tests/scripts/test_release_nightly.pyrename to tests/scripts/test_release_canary.pyindex f49edd84ed3..48e2e883860 100644--- a/tests/scripts/test_release_nightly.py+++ b/tests/scripts/test_release_canary.py@@ -1,7 +1,7 @@-"""Nightly release plumbing in scripts/release.py.+"""Canary release plumbing in scripts/release.py.-The nightly channel's whole safety story is tag SHAPES: nightly tags-carry a -nightly.YYYYMMDD suffix, every stable selector requires the+The canary channel's whole safety story is tag SHAPES: canary tags+carry a -canary.YYYYMMDD suffix, every stable selector requires theno-suffix shape, and the version math (next-MINOR over stable) makeselectron-updater's semver ordering implement both channel-switchdirections. These tests pin the shapes and the math; the workflow only@@ -15,56 +15,56 @@ from pathlib import Pathimport pytest_RELEASE_PATH = Path(__file__).resolve().parents[2] / "scripts" / "release.py"-_SPEC = importlib.util.spec_from_file_location("hermes_release_nightly", _RELEASE_PATH)+_SPEC = importlib.util.spec_from_file_location("hermes_release_canary", _RELEASE_PATH)assert _SPEC and _SPEC.loaderrelease = importlib.util.module_from_spec(_SPEC)_SPEC.loader.exec_module(release)-class TestNightlyTagShape:- def test_nightly_tag_for_date_is_next_patch(self):+class TestCanaryTagShape:+ def test_canary_tag_for_date_is_next_patch(self):"""The authority's math: current stable's patch + 1, any patch."""- assert release.nightly_tag_for_date("0.27.4", "20260818103000") == "v0.27.5-nightly.20260818103000"- assert release.nightly_tag_for_date("1.4.0", "20261231235959") == "v1.4.1-nightly.20261231235959"+ assert release.canary_tag_for_date("0.27.4", "20260818103000") == "v0.27.5-canary.20260818103000"+ assert release.canary_tag_for_date("1.4.0", "20261231235959") == "v1.4.1-canary.20261231235959"def test_v_prefixed_stable_tag_accepted(self):- """cmd_nightly passes the stable TAG (with the v) — the authority+ """cmd_canary passes the stable TAG (with the v) — the authoritystrips it, so both forms produce the same tag."""- assert release.nightly_tag_for_date("v0.27.4", "20260818103000") == "v0.27.5-nightly.20260818103000"+ assert release.canary_tag_for_date("v0.27.4", "20260818103000") == "v0.27.5-canary.20260818103000"- def test_shape_round_trips_through_the_nightly_matcher(self):- tag = release.nightly_tag_for_date("0.27.4", "20260818103000")- assert release._NIGHTLY_TAG_RE.fullmatch(tag)+ def test_shape_round_trips_through_the_canary_matcher(self):+ tag = release.canary_tag_for_date("0.27.4", "20260818103000")+ assert release._CANARY_TAG_RE.fullmatch(tag)def test_legacy_date_only_shape_still_matches(self):"""Readers stay tolerant of the original 8-digit suffix so an- already-published nightly keeps parsing (prune, last-nightly)."""- assert release._NIGHTLY_TAG_RE.fullmatch("v0.28.0-nightly.20260818")+ already-published canary keeps parsing (prune, last-canary)."""+ assert release._CANARY_TAG_RE.fullmatch("v0.28.0-canary.20260818")- def test_nightly_shape_is_invisible_to_the_stable_selector(self):- """THE invariant: a nightly tag must never parse as stable —- otherwise stable users update onto nightlies."""+ def test_canary_shape_is_invisible_to_the_stable_selector(self):+ """THE invariant: a canary tag must never parse as stable —+ otherwise stable users update onto canaries."""for tag in (- release.nightly_tag_for_date("0.27.4", "20260818103000"),- "v0.28.0-nightly.20260818",+ release.canary_tag_for_date("0.27.4", "20260818103000"),+ "v0.28.0-canary.20260818",):assert release._SEMVER_TAG_RE.fullmatch(tag) is None, tag- def test_stable_shape_is_invisible_to_the_nightly_matcher(self):- assert release._NIGHTLY_TAG_RE.fullmatch("v0.27.2") is None+ def test_stable_shape_is_invisible_to_the_canary_matcher(self):+ assert release._CANARY_TAG_RE.fullmatch("v0.27.2") is None# Legacy CalVer must not match either (v2026.7.20 has 20-prefixed# components that could fool a sloppy pattern).- assert release._NIGHTLY_TAG_RE.fullmatch("v2026.7.20") is None+ assert release._CANARY_TAG_RE.fullmatch("v2026.7.20") is None- def test_same_day_nightlies_order_chronologically(self):+ def test_same_day_canaries_order_chronologically(self):"""Second precision exists so manual fires can stack in one day;fixed-length pure-numeric identifiers order the same lexically(git -v:refname) and numerically (semver prerelease compare)."""- a = release.nightly_tag_for_date("0.27.4", "20260818090000")- b = release.nightly_tag_for_date("0.27.4", "20260818171500")+ a = release.canary_tag_for_date("0.27.4", "20260818090000")+ b = release.canary_tag_for_date("0.27.4", "20260818171500")assert a < b # lexical == chronological at fixed length- def test_nightly_outversions_current_stable_loses_to_next_patch(self):+ def test_canary_outversions_current_stable_loses_to_next_patch(self):"""The semver ordering that makes both channel switches work,checked with packaging's canonical comparison when available,else by electron-updater's documented precedence rules."""@@ -72,26 +72,26 @@ class TestNightlyTagShape:from packaging.version import Versionexcept ImportError:pytest.skip("packaging not installed in this env")- nightly = Version("0.27.5-nightly.20260818103000".replace("-nightly.", "a"))- assert Version("0.27.4") < nightly < Version("0.27.5")+ canary = Version("0.27.5-canary.20260818103000".replace("-canary.", "a"))+ assert Version("0.27.4") < canary < Version("0.27.5")-class TestNightlyDateStamps:+class TestCanaryDateStamps:def test_prune_cutoff_uses_the_tag_date(self):"""The prune window keys on the tag's own YYYYMMDD prefix, forboth suffix shapes — a 14-digit suffix compared whole against an8-digit cutoff would be decided by string length, not by day."""- legacy = release._NIGHTLY_TAG_RE.fullmatch("v0.27.1-nightly.20260801")- stamped = release._NIGHTLY_TAG_RE.fullmatch("v0.27.1-nightly.20260801235959")- assert legacy and legacy.group(0).split("-nightly.")[1][:8] == "20260801"- assert stamped and stamped.group(0).split("-nightly.")[1][:8] == "20260801"+ legacy = release._CANARY_TAG_RE.fullmatch("v0.27.1-canary.20260801")+ stamped = release._CANARY_TAG_RE.fullmatch("v0.27.1-canary.20260801235959")+ assert legacy and legacy.group(0).split("-canary.")[1][:8] == "20260801"+ assert stamped and stamped.group(0).split("-canary.")[1][:8] == "20260801"-class TestNightlyBuildNumberGuards:- """The MSIX nightly build number is minutes-since-the-last-stable.- Two nightlies of the same line cut in the same minute would share a+class TestCanaryBuildNumberGuards:+ """The MSIX canary build number is minutes-since-the-last-stable.+ Two canaries of the same line cut in the same minute would share abuild number → identical MSIX version → App Installer refuses the- second. cmd_nightly refuses that; it also refuses a nightly whose+ second. cmd_canary refuses that; it also refuses a canary whosestable base is >45 days old (the 16-bit MSIX component wouldoverflow)."""@@ -111,12 +111,12 @@ class TestNightlyBuildNumberGuards:return subprocess.CompletedProcess(args, 1, "", "")monkeypatch.setattr(release, "get_last_tag", lambda: "v0.27.1")- monkeypatch.setattr(release, "get_last_nightly_tag", lambda: "v0.27.2-nightly.20260818103045")+ monkeypatch.setattr(release, "get_last_canary_tag", lambda: "v0.27.2-canary.20260818103045")monkeypatch.setattr(release, "git_result", fake_git_result)monkeypatch.setattr(subprocess, "run", fake_run)monkeypatch.delenv("GITHUB_OUTPUT", raising=False)- release.cmd_nightly(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))+ release.cmd_canary(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))assert calls == [], "same-minute same-line re-cut must not create a release"def test_same_minute_new_line_allowed(self, monkeypatch, tmp_path):@@ -135,7 +135,7 @@ class TestNightlyBuildNumberGuards:return subprocess.CompletedProcess(args, 1 if "rev-parse" in args else 0, "", "")monkeypatch.setattr(release, "get_last_tag", lambda: "v0.28.0")- monkeypatch.setattr(release, "get_last_nightly_tag", lambda: "v0.27.2-nightly.20260818103045")+ monkeypatch.setattr(release, "get_last_canary_tag", lambda: "v0.27.2-canary.20260818103045")monkeypatch.setattr(release, "get_commits", lambda **kw: [{"hash": "a" * 40, "subject": "feat: x", "author": "e"}])monkeypatch.setattr(release, "generate_changelog", lambda *a, **kw: "notes")monkeypatch.setattr(release, "resolve_push_remote", lambda r: "origin")@@ -147,22 +147,22 @@ class TestNightlyBuildNumberGuards:monkeypatch.setattr(subprocess, "run", fake_run)monkeypatch.delenv("GITHUB_OUTPUT", raising=False)- release.cmd_nightly(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))+ release.cmd_canary(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))create = [c for c in captured if c[:3] == ["gh", "release", "create"]]assert len(create) == 1, captureddef test_stable_base_older_than_45_days_refused(self, monkeypatch, tmp_path):"""Minutes-since-stable crosses the 16-bit MSIX component at 45.5- days; a nightly cut on an older stable cannot carry a legal build+ days; a canary cut on an older stable cannot carry a legal buildnumber — refuse loudly (exit 1), never clamp."""import subprocessimport sysfrom types import SimpleNamespace- # Stable v0.27.1 committed 2026-07-01; nightly cut 2026-08-29.+ # Stable v0.27.1 committed 2026-07-01; canary cut 2026-08-29.old_epoch = str(int(datetime(2026, 7, 1, tzinfo=timezone.utc).timestamp()))monkeypatch.setattr(release, "get_last_tag", lambda: "v0.27.1")- monkeypatch.setattr(release, "get_last_nightly_tag", lambda: None)+ monkeypatch.setattr(release, "get_last_canary_tag", lambda: None)monkeypatch.setattr(release, "get_commits", lambda **kw: [{"hash": "a" * 40, "subject": "feat: x", "author": "e"}])monkeypatch.setattr(release, "git", lambda *a, **kw: old_epoch if a and a[0] == "log" else "")monkeypatch.setattr(release, "REPO_ROOT", tmp_path)@@ -170,22 +170,22 @@ class TestNightlyBuildNumberGuards:monkeypatch.delenv("GITHUB_OUTPUT", raising=False)with pytest.raises(SystemExit) as exc:- release.cmd_nightly(SimpleNamespace(date="20260829000000", publish=True, remote="origin"))+ release.cmd_canary(SimpleNamespace(date="20260829000000", publish=True, remote="origin"))assert exc.value.code == 1-class TestNightlyIsDrafted:- """A nightly is created as a DRAFT prerelease.+class TestCanaryIsDrafted:+ """A canary is created as a DRAFT prerelease.A published release with no installers staged is one users canreach and cannot use. The desktop matrix stages the installers to theR2 bucket (releases/tag/<tag>/), the finalize job publishes the- feeds, and the nightly workflow publishes the release only after+ feeds, and the canary workflow publishes the release only afterthat matrix is green."""def _create_argv(self, monkeypatch, tmp_path):- """The argv of the `gh release create` cmd_nightly would run."""+ """The argv of the `gh release create` cmd_canary would run."""import subprocessfrom types import SimpleNamespace@@ -197,12 +197,12 @@ class TestNightlyIsDrafted:def fake_git_result(*args, **kw):# `rev-parse --verify --quiet refs/tags/<tag>` must MISS, or- # cmd_nightly short-circuits on "tag already exists".+ # cmd_canary short-circuits on "tag already exists".code = 1 if "rev-parse" in args else 0return subprocess.CompletedProcess(args, code, "", "")monkeypatch.setattr(release, "get_last_tag", lambda: "v0.27.0")- monkeypatch.setattr(release, "get_last_nightly_tag", lambda: None)+ monkeypatch.setattr(release, "get_last_canary_tag", lambda: None)monkeypatch.setattr(release, "get_commits", lambda **kw: [{"hash": "a" * 40, "subject": "feat: x", "author": "e"}])monkeypatch.setattr(release, "generate_changelog", lambda *a, **kw: "notes")monkeypatch.setattr(release, "resolve_push_remote", lambda r: "origin")@@ -213,7 +213,7 @@ class TestNightlyIsDrafted:monkeypatch.setattr(subprocess, "run", fake_run)monkeypatch.delenv("GITHUB_OUTPUT", raising=False)- release.cmd_nightly(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))+ release.cmd_canary(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))return next(c for c in captured if c[:3] == ["gh", "release", "create"])def test_created_as_a_draft_prerelease(self, monkeypatch, tmp_path):@@ -224,18 +224,18 @@ class TestNightlyIsDrafted:def test_refuses_to_invent_a_tag(self, monkeypatch, tmp_path):"""Without --verify-tag, gh creates a missing tag from the defaultbranch tip, which would release a different commit than the one- the nightly math tagged."""+ the canary math tagged."""assert "--verify-tag" in self._create_argv(monkeypatch, tmp_path)-class TestNightlyStartsItsOwnBuild:+class TestCanaryStartsItsOwnBuild:"""release.py dispatches the desktop build for the tag it just cut.workflow_dispatch is one of only two events GITHUB_TOKEN may raise, so- it is the only trigger that serves the scheduled nightly: that run+ it is the only trigger that serves the scheduled canary: that runpushes its tag as github-actions[bot], and a bot-pushed tag starts no- workflow run. Dispatching from release.py gives the scheduled nightly,- a hand-cut nightly, and a stable release one identical mechanism.+ workflow run. Dispatching from release.py gives the scheduled canary,+ a hand-cut canary, and a stable release one identical mechanism."""def _calls(self, monkeypatch, tmp_path):@@ -249,7 +249,7 @@ class TestNightlyStartsItsOwnBuild:return subprocess.CompletedProcess(cmd, 0, stdout="url", stderr="")monkeypatch.setattr(release, "get_last_tag", lambda: "v0.27.0")- monkeypatch.setattr(release, "get_last_nightly_tag", lambda: None)+ monkeypatch.setattr(release, "get_last_canary_tag", lambda: None)monkeypatch.setattr(release, "get_commits", lambda **kw: [{"hash": "a" * 40, "subject": "feat: x", "author": "e"}])monkeypatch.setattr(release, "generate_changelog", lambda *a, **kw: "notes")monkeypatch.setattr(release, "resolve_push_remote", lambda r: "origin")@@ -264,21 +264,21 @@ class TestNightlyStartsItsOwnBuild:monkeypatch.setattr(subprocess, "run", fake_run)monkeypatch.delenv("GITHUB_OUTPUT", raising=False)- release.cmd_nightly(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))+ release.cmd_canary(SimpleNamespace(date="20260818103000", publish=True, remote="origin"))return captureddef test_dispatches_the_build_for_the_tag_it_cut(self, monkeypatch, tmp_path):calls = self._calls(monkeypatch, tmp_path)dispatch = next(c for c in calls if c[:3] == ["gh", "workflow", "run"])# get_last_tag is patched to v0.27.0 → the authority's patch+1 math- # cuts v0.27.1-nightly.20260818103000.- tag = "v0.27.1-nightly.20260818103000"+ # cuts v0.27.1-canary.20260818103000.+ tag = "v0.27.1-canary.20260818103000"assert "desktop-bundled-release.yml" in dispatch# The tag travels as the INPUT the build reads. The workflow FILE# itself is dispatched from the default branch — a tag-dispatched# run scopes actions/cache under refs/heads/refs/tags/<tag>, a- # mangled per-tag scope no later nightly can restore.+ # mangled per-tag scope no later canary can restore.assert f"tag={tag}" in dispatchassert "--ref" in dispatch and dispatch[dispatch.index("--ref") + 1] != tag# Without this the build produces artifacts and attaches nothing.@@ -298,4 +298,4 @@ class TestNightlyStartsItsOwnBuild:command and leave them; raising would strand a half-made release."""assert release.dispatch_desktop_build.__doc__monkeypatch.setattr(release.shutil, "which", lambda x: None)- assert release.dispatch_desktop_build("v0.28.0-nightly.20260818103000", "o/r") is False+ assert release.dispatch_desktop_build("v0.28.0-canary.20260818103000", "o/r") is Falsediff --git a/tests/scripts/test_render_builds_table.py b/tests/scripts/test_render_builds_table.pyindex 07b31266e6c..2090f9b4bad 100644--- a/tests/scripts/test_render_builds_table.py+++ b/tests/scripts/test_render_builds_table.py@@ -47,8 +47,8 @@ class TestParseAssets:assert len(parsed["HermesBundled"]) == 4 # zip/msixbundle/blockmap/yml excludedassert parsed["HermesLight"] == {("win", "x64"): ("releases/tag/v0.28.0/HermesLight-0.28.0-win-x64.msix", "msix")}- def test_nightly_versions_parse(self):- parsed = rbt.parse_assets(["releases/tag/v0.28.0-nightly.20260818/HermesBundled-0.28.0-nightly.20260818-win-x64.msix"])+ def test_canary_versions_parse(self):+ parsed = rbt.parse_assets(["releases/tag/v0.28.0-canary.20260818/HermesBundled-0.28.0-canary.20260818-win-x64.msix"])assert ("win", "x64") in parsed["HermesBundled"]def test_flat_names_still_parse(self):@@ -59,12 +59,12 @@ class TestParseAssets:class TestFilterNamesForVersion:- def test_stable_tag_does_not_match_nightly_objects(self):- # '0.28.0' is a prefix of '0.28.0-nightly...' — the filter must be- # exact, or a stable table would list nightly binaries.+ def test_stable_tag_does_not_match_canary_objects(self):+ # '0.28.0' is a prefix of '0.28.0-canary...' — the filter must be+ # exact, or a stable table would list canary binaries.names = ["releases/tag/v0.28.0/HermesBundled-0.28.0-mac-arm64.dmg",- "releases/tag/v0.28.0-nightly.20260818/HermesBundled-0.28.0-nightly.20260818-win-x64.msix",+ "releases/tag/v0.28.0-canary.20260818/HermesBundled-0.28.0-canary.20260818-win-x64.msix","releases/tag/v0.29.0/HermesBundled-0.29.0-win-x64.msix","latest.yml",]@@ -72,15 +72,15 @@ class TestFilterNamesForVersion:"releases/tag/v0.28.0/HermesBundled-0.28.0-mac-arm64.dmg",]- def test_nightly_tag_matches_its_objects(self):+ def test_canary_tag_matches_its_objects(self):names = [- "releases/tag/v0.28.0-nightly.20260818/HermesBundled-0.28.0-nightly.20260818-win-x64.msix",- "releases/tag/v0.28.0-nightly.20260818/HermesBundled-0.28.0-nightly.20260818-win-x64.msix.blockmap",- "releases/tag/v0.28.0-nightly.20260817/HermesBundled-0.28.0-nightly.20260817-win-arm64.msix",+ "releases/tag/v0.28.0-canary.20260818/HermesBundled-0.28.0-canary.20260818-win-x64.msix",+ "releases/tag/v0.28.0-canary.20260818/HermesBundled-0.28.0-canary.20260818-win-x64.msix.blockmap",+ "releases/tag/v0.28.0-canary.20260817/HermesBundled-0.28.0-canary.20260817-win-arm64.msix","releases/tag/v0.28.0/HermesBundled-0.28.0-mac-arm64.dmg",]- assert rbt.filter_names_for_version(names, "0.28.0-nightly.20260818") == [- "releases/tag/v0.28.0-nightly.20260818/HermesBundled-0.28.0-nightly.20260818-win-x64.msix",+ assert rbt.filter_names_for_version(names, "0.28.0-canary.20260818") == [+ "releases/tag/v0.28.0-canary.20260818/HermesBundled-0.28.0-canary.20260818-win-x64.msix",]