Skip to content

The agent that grows with you

fix(release): read the Hermes version line in the Nix check and accept rc.N attempt refs

Teknium0240fa4a8412
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index baf2901ba52..bf568cce3c1 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -166,7 +166,9 @@ jobs:
import os
expected = os.environ["RELEASE_VERSION"]
- actual = os.environ["ACTUAL_VERSION"].split()[-1].removeprefix("v")
+ # Line one is "Hermes Agent v<version> (...)"; later lines (Python, OpenAI SDK) carry other versions.
+ first = os.environ["ACTUAL_VERSION"].splitlines()[0].split()
+ actual = first[2].removeprefix("v") if first[:2] == ["Hermes", "Agent"] and len(first) > 2 else ""
if actual != expected:
raise SystemExit(f"Nix package version mismatch: expected {expected}, got {actual}")
PY
diff --git a/apps/desktop/scripts/store-package-version.test.mjs b/apps/desktop/scripts/store-package-version.test.mjs
index 60f4e5501e7..997babcc3bb 100644
--- a/apps/desktop/scripts/store-package-version.test.mjs
+++ b/apps/desktop/scripts/store-package-version.test.mjs
@@ -89,18 +89,20 @@ test('Store calendar ordering survives minute, hour, day and year boundaries and
test('stable candidate identity uses the admitted claim epoch before the final tag exists', () => {
const { root, app } = fixture()
execFileSync('git', ['tag', '-d', 'v0.27.1'], { cwd: root, stdio: 'pipe' })
- execFileSync('git', ['tag', '-a', 'v0.27.1-rc', '-m', 'claim'], {
+ execFileSync('git', ['tag', '-a', 'rc.3-v0.27.1', '-m', 'claim'], {
cwd: root,
env: { ...process.env, ...gitIdentityEnv, GIT_COMMITTER_DATE: '2026-09-07T00:18:00Z' },
stdio: 'pipe'
})
const epoch = Date.parse('2026-09-07T00:18:00Z') / 1000
- vi.stubEnv('RELEASE_CLAIM_TAG', 'v0.27.1-rc')
- vi.stubEnv('RELEASE_CLAIM_OBJECT', execFileSync('git', ['rev-parse', 'v0.27.1-rc'], {
+ vi.stubEnv('RELEASE_CLAIM_TAG', 'rc.3-v0.27.1')
+ vi.stubEnv('RELEASE_CLAIM_OBJECT', execFileSync('git', ['rev-parse', 'rc.3-v0.27.1'], {
cwd: root, encoding: 'utf8'
}).trim())
try {
expect(appIdentity(app, 'v0.27.1').version).toBe(storePackageVersionAt(epoch))
+ vi.stubEnv('RELEASE_CLAIM_TAG', 'rc.3-v0.27.10')
+ expect(() => appIdentity(app, 'v0.27.1')).toThrow('Stable claim tag differs from its payload tag')
} finally {
vi.unstubAllEnvs()
}
diff --git a/scripts/msix-shared.mjs b/scripts/msix-shared.mjs
index 745b9257618..366f11377ca 100644
--- a/scripts/msix-shared.mjs
+++ b/scripts/msix-shared.mjs
@@ -159,7 +159,8 @@ function releaseEpoch(tag, gitRoot) {
return Number(supplied)
}
const claim = process.env.RELEASE_CLAIM_TAG
- if (claim && claim !== `${tag}-rc`) throw new Error('Stable claim tag differs from its payload tag')
+ // Attempt refs read `rc.<N>-vX.Y.Z` (scripts/releases/versioning.py::parse_attempt_ref).
+ if (claim && !new RegExp(`^rc\\.[1-9]\\d*-${tag.replaceAll('.', '\\.')}$`).test(claim)) throw new Error('Stable claim tag differs from its payload tag')
const claimObject = process.env.RELEASE_CLAIM_OBJECT
let timestamp
let timestampTag = tag