feat(release): canary runs the full Stable Release pipeline on canary.<stamp>-vX.Y.Z claims #142475
<!-- hermes-ci-review-bot -->
૮ >ﻌ< ა ci review
<sub>ran on ab34d83 — docs(release): clarify relaxed green policy still waits for </sub>
ℹ️ Info
CI caches · View report · View job
38 / 38 cache hits (0 misses)
6706.32 MiB restored
0 B not restored.
<details>
<summary>per-job cache results</summary>
<h3>hits</h3>
<table><thead><tr><th>Job</th><th>Step</th><th>Logs</th><th>Restored</th><th>Δ vs main</th></tr></thead><tbody>
<tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720119#step:3:1">view step</a></td><td>26.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720119#step:4:1">view step</a></td><td>165.04 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720119#step:4:1">view step</a></td><td>842.32 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720059#step:3:1">view step</a></td><td>26.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720059#step:4:1">view step</a></td><td>165.04 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720059#step:4:1">view step</a></td><td>842.32 MiB</td><td>+0 B</td></tr>
<tr><td>JS & TS checks / JS & TS checks</td><td>Set up the locked JS build toolchain / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534715660#step:4:1">view step</a></td><td>131.51 MiB</td><td>+0 B</td></tr>
<tr><td>JS & TS checks / JS & TS checks</td><td>Set up the locked JS build toolchain / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534715660#step:4:1">view step</a></td><td>67.39 MiB</td><td>+0 B</td></tr>
<tr><td>JS & TS checks / JS & TS checks</td><td>Set up the locked JS build toolchain / Restore npm dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534715660#step:4:1">view step</a></td><td>351.86 MiB</td><td>+0 B</td></tr>
<tr><td>JS & TS checks / JS & TS checks</td><td>Restore node_modules</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534715660#step:6:1">view step</a></td><td>300.20 MiB</td><td>+0 B</td></tr>
<tr><td>Rust tests / cargo test (bootstrap installer)</td><td>Restore cargo cache</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720287#step:5:1">view step</a></td><td>712.76 MiB</td><td>+0 B</td></tr>
<tr><td>Docs Site / docs-site-checks</td><td>Set up the locked site toolchain / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534716692#step:4:1">view step</a></td><td>131.51 MiB</td><td>+0 B</td></tr>
<tr><td>Docs Site / docs-site-checks</td><td>Set up the locked site toolchain / Restore npm dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534716692#step:4:1">view step</a></td><td>370.98 MiB</td><td>+0 B</td></tr>
<tr><td>Icon assets freshness / Regenerate icons + diff against committed</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534717078#step:4:1">view step</a></td><td>131.51 MiB</td><td>+0 B</td></tr>
<tr><td>Icon assets freshness / Regenerate icons + diff against committed</td><td>Run ./.github/actions/setup-pm / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534717078#step:4:1">view step</a></td><td>67.39 MiB</td><td>+0 B</td></tr>
<tr><td>Icon assets freshness / Regenerate icons + diff against committed</td><td>Run ./.github/actions/setup-pm / Restore npm dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534717078#step:4:1">view step</a></td><td>351.86 MiB</td><td>+0 B</td></tr>
<tr><td>Bootstrap installer / install.sh protocol + small fresh-install E2E</td><td>Prepare tools for the real small-graph installer test / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534719214#step:10:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python lints / ruff + ty diff</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720095#step:4:1">view step</a></td><td>80.78 MiB</td><td>unknown</td></tr>
<tr><td>Python lints / ruff enforcement (blocking)</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720117#step:4:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720132#step:5:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720132#step:5:1">view step</a></td><td>67.39 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (1/2)</td><td>Run tests</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720132#step:8:1">view step</a></td><td>0.08 MiB</td><td>-180 B</td></tr>
<tr><td>Python lints / code health ratchet (blocking)</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720136#step:4:1">view step</a></td><td>80.78 MiB</td><td>unknown</td></tr>
<tr><td>Python tests / Run tests (2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720261#step:5:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720261#step:5:1">view step</a></td><td>67.39 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (2/2)</td><td>Run tests</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720261#step:8:1">view step</a></td><td>0.08 MiB</td><td>+0 B</td></tr>
<tr><td>Python lints / Windows footguns (blocking)</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720251#step:4:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Remote terminal backends / SSH + Docker backends (real sshd, real daemon)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720427#step:6:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Remote terminal backends / SSH + Docker backends (real sshd, real daemon)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720427#step:6:1">view step</a></td><td>67.39 MiB</td><td>+0 B</td></tr>
<tr><td>Catalog tests / Catalog tests</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720623#step:4:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Catalog tests / Catalog tests</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720623#step:4:1">view step</a></td><td>67.39 MiB</td><td>+0 B</td></tr>
<tr><td>Check uv.lock / python -m pm.build_env --source . --check-lock</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720720#step:4:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720054#step:5:1">view step</a></td><td>42.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720054#step:5:1">view step</a></td><td>153.17 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534719964#step:5:1">view step</a></td><td>42.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534719964#step:5:1">view step</a></td><td>153.17 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720076#step:5:1">view step</a></td><td>171.66 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40898615393/job/123534720076#step:5:1">view step</a></td><td>382.11 MiB</td><td>+0 B</td></tr>
</tbody></table>
<h3>misses</h3>
none
<p>Compressed archive bytes. Not-restored bytes use the main-size reference; missing sizes remain unknown.</p>
</details>
---
debug info
<details>
<summary>CI timings</summary>
CI timings · View report · View job
Wall time 9m23s vs 9m56s (-5.5%). 4 job(s) slower, 21 faster, 2 unchanged.
</details>
<!-- Blacksmith CI Status -->
Found 10 test failures on Blacksmith runners:
Failures
| Test | View Logs |
| --- | --- |
| <code>test_canary_metadata_is_recorded_and_receipt_bound[bundled--False-darwin]</code> | View Logs |
| <code>test_canary_metadata_is_recorded_and_receipt_bound[bundled--False-win32]</code> | View Logs |
| <code>test_commit_build_cli_dispatches_only_the_resolved_remote_commit</code> | View Logs |
| <code>test_commit_build_dispatch_is_repository_independent</code> | View Logs |
| <code>test_commit_build_requires_pushed_refs_and_github_origin</code> | View Logs |
| <code>test_commit_bundle_environment_is_literal_and_validated</code> | View Logs |
| <code>test_published_canary_workflow_advances_only_after_every_gate</code> | View Logs |
| <code>test_protected_canary_publication/</code><br /><code>test_canary_metadata_is_recorded_and_receipt_bound[bundled--False-darwin]</code> | View Logs |
| <code>test_protected_canary_publication/</code><br /><code>test_canary_metadata_is_recorded_and_receipt_bound[bundled--False-win32]</code> | View Logs |
| <code>test_protected_canary_publication/</code><br /><code>test_published_canary_workflow_advances_only_after_every_gate</code> | View Logs |
<a href="https://app.blacksmith.sh/NousResearch/codesmith/hermes-agent/pr/142475?prompt=Repository%3A+NousResearch%2Fhermes-agent%0ABranch%3A+ci%2Fcanary-full-release-parity%0APR%3A+%23142475%0A%0AFix+these+failing+tests%3A%0A%0A1.+test_canary_metadata_is_recorded_and_receipt_bound%5Bbundled--False-darwin%5D%0A2.+test_canary_metadata_is_recorded_and_receipt_bound%5Bbundled--False-win32%5D%0A3.+test_commit_build_cli_dispatches_only_the_resolved_remote_commit%0A4.+test_commit_build_dispatch_is_repository_independent%0A5.+test_commit_build_requires_pushed_refs_and_github_origin%0A6.+test_commit_bundle_environment_is_literal_and_validated%0A7.+test_published_canary_workflow_advances_only_after_every_gate%0A8.+test_protected_canary_publication%2Ftest_canary_metadata_is_recorded_and_receipt_bound%5Bbundled--False-darwin%5D%0A9.+test_protected_canary_publication%2Ftest_canary_metadata_is_recorded_and_receipt_bound%5Bbundled--False-win32%5D%0A10.+test_protected_canary_publication%2Ftest_published_canary_workflow_advances_only_after_every_gate%0A&entry=pr_comment&ref=gh_comment&autoLogin=true&autoSend=true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.svg"><img alt="Fix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.svg" width="149" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=85091940"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/nous-research/github/NousResearch/hermes-agent/-/pull/142475?utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 3/5 <sup><img alt="Tier: apex" title="Review tier: apex" src="https://greptile-static-assets.s3.amazonaws.com/badges/effort-apex.svg?v=3" height="12"></sup></h2>
[High impact] The changes reach release workflows and package channels across desktop\, Docker\, and Termux\.
Fix the canary Buildx setup and stale archive-pointer writes before merging.
<h2>Findings</h2>
1. <img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"> Canary Docker tags stay behind <a href="https://github.com/NousResearch/hermes-agent/pull/142475#discussion_r4414587573">▶</a>
2. <img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"> Old retries unprotect live files <a href="https://github.com/NousResearch/hermes-agent/pull/142475#discussion_r4414587633">▶</a>
<details><summary>Fix with agent prompt</summary>
``
suggestion### Issue 1
.github/workflows/stable-release.yml:741-744
`complete` passes a commit SHA to `buildx-version`, but this action expects `latest` or a version such as `v0.38.1`. This repeats the value that previously fell back to `v0.23.0`, which failed Docker Hub manifest writes. Canary packages can publish while `canary` and `canary-desktop` stay behind and the run fails.
Reuse the working `docker/setup-buildx-action` setup used for stable alias promotion.
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
### Issue 2
scripts/releases/channel_releases.py:475-478
Rerunning an older canary after a newer one publishes overwrites `releases/canary/release-candidates.json` here before the macOS feed or protected head rejects the stale run. The run fails, but the pointer now names the older canary. Since pruning trusts it to protect the live archive, cleanup can delete receipts from the actual live canary.
Check publication order before this write. Add a stale-retry test that checks the pointer stays unchanged.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<details><summary><h3>Summary</h3></summary>
Moves canaries onto the shared Stable Release pipeline with timestamped claims, selectable lanes, and a per-claim green policy.
</details>
<details open><summary><h3>Diagram</h3></summary>
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Canary command or schedule"] --> B["Annotated claim"]
B --> C["Shared release admission"]
C --> D["Selected package builds and smokes"]
C --> E["Selected test suites"]
C --> K["Docker build and tests"]
D --> F["Accepted candidate"]
E --> G["Acceptance result"]
F --> H["Canary publication"]
G -->|"Claim decides whether failures block"| H
H --> I["Feeds, APT, prerelease and protected head"]
H --> J["Download pages"]
K --> L["Versioned Docker images"]
H --> M["Canary Docker aliases"]
L --> M
</details>
<!-- greptile_confidence_score:3 -->
<sub>Reviews (2) · Last reviewed commit: "docs(release): clarify relaxed green pol..." · Reviewed by Greptile</sub>
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Docker retries are duplicated
promote_canary copies the push, retry, and read-back loops from promote_stable. Only the destination tags differ. This violates the repository requirement to reuse existing helpers instead of copying logic, which must be satisfied before merging.
Extract one helper that publishes each image digest to a list of aliases. Keep the channel-specific tag and receipt checks in the two callers. Otherwise, every fix to publication retries must be made twice.
Context Used: Perform a deep code quality audit of the current branch's changes. Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior. Work to improve abstractions, modularity, reduce Spaghetti code, impr... (source)
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: scripts/releases/docker.py
Line: 182-199
Comment:
**Docker retries are duplicated**
`promote_canary` copies the push, retry, and read-back loops from `promote_stable`. Only the destination tags differ. This violates the repository requirement to reuse existing helpers instead of copying logic, which must be satisfied before merging.
Extract one helper that publishes each image digest to a list of aliases. Keep the channel-specific tag and receipt checks in the two callers. Otherwise, every fix to publication retries must be made twice.
**Context Used:** Perform a deep code quality audit of the current branch's changes. Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior. Work to improve abstractions, modularity, reduce Spaghetti code, impr... ([source](https://app.greptile.com/review/custom-context?memory=instruction-0))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
<a href="#"><img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"></a> Canary APT staging always fails
Canary admission sets claim_tag to vX.Y.Z+canary.<stamp> and enables the Termux candidate. That candidate passes this value to stage_apt_repo.py --pool-subdir, but stage() only accepts rc.N-vX.Y.Z attempt refs. Every canary therefore fails APT staging before it can produce the required candidate manifest, so publish-canary never runs.
Extend the pool-prefix check to accept validated canary tags, and test the actual staging entry point.
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: scripts/releases/stable.py
Line: 621-623
Comment:
**Canary APT staging always fails**
Canary admission sets `claim_tag` to `vX.Y.Z+canary.<stamp>` and enables the Termux candidate. That candidate passes this value to `stage_apt_repo.py --pool-subdir`, but `stage()` only accepts `rc.N-vX.Y.Z` attempt refs. Every canary therefore fails APT staging before it can produce the required candidate manifest, so `publish-canary` never runs.
Extend the pool-prefix check to accept validated canary tags, and test the actual staging entry point.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<a href="#"><img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"></a> Published canaries lack download links
When the candidates pass but another suite fails, publish-canary publishes the GitHub prerelease without adding its download table. The only render-builds-table.py call remains after the acceptance gate in complete, so that failure skips it. GitHub carries links rather than package attachments, leaving the published canary without installer links and leaving its download page stale.
Render the accepted candidate from publish-canary, independently of the full acceptance gate.
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: .github/workflows/stable-release.yml
Line: 660-664
Comment:
**Published canaries lack download links**
When the candidates pass but another suite fails, `publish-canary` publishes the GitHub prerelease without adding its download table. The only `render-builds-table.py` call remains after the acceptance gate in `complete`, so that failure skips it. GitHub carries links rather than package attachments, leaving the published canary without installer links and leaving its download page stale.
Render the accepted candidate from `publish-canary`, independently of the full acceptance gate.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Canaries still queue stable builds
The separate top-level group does not fully keep canaries from queuing stable releases. Both runs call docker.yml from refs/heads/main, and its concurrency key uses only github.ref and release-phase. Their Docker test calls therefore share one group, as do their publish calls. A stable release still waits behind an active canary Docker call.
Include the release tag or caller run ID in the reusable workflow's release-mode key.
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: .github/workflows/stable-release.yml
Line: 43-45
Comment:
**Canaries still queue stable builds**
The separate top-level group does not fully keep canaries from queuing stable releases. Both runs call `docker.yml` from `refs/heads/main`, and its concurrency key uses only `github.ref` and `release-phase`. Their Docker test calls therefore share one group, as do their publish calls. A stable release still waits behind an active canary Docker call.
Include the release tag or caller run ID in the reusable workflow's release-mode key.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<!-- Blacksmith CI Status -->
Found 1 test failure on Blacksmith runners:
Failure
| Test | View Logs |
| --- | --- |
| <code>test_dashboard_insecure_env_var_no_longer_bypasses_gate</code> | View Logs |
<a href="https://app.blacksmith.sh/NousResearch/codesmith/hermes-agent/pr/142475?prompt=Repository%3A+NousResearch%2Fhermes-agent%0ABranch%3A+ci%2Fcanary-full-release-parity%0APR%3A+%23142475%0A%0AFix+these+failing+tests%3A%0A%0A1.+test_dashboard_insecure_env_var_no_longer_bypasses_gate%0A&entry=pr_comment&ref=gh_comment&autoLogin=true&autoSend=true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.svg"><img alt="Fix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png" width="149" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
fixed in 284f781680ec824cca56a6bdb79681a8ce0e782b: canary claim pool prefixes are admitted by pool_subdir_suite, bound to hermes-canary, and rejected for the wrong suite. tests/scripts/test_stage_apt_repo.py::test_a_canary_claim_keys_the_canary_pool exercises the actual staging entrypoint. reran the full file: 23 passed.
fixed in 7ad6dc32d9f590e9be448e4df803974c6824d682: publish-canary renders the receipt-backed download table/page after successful publication, independently of unrelated suite failures. stable rendering stays in complete. reran tests/ci/test_canary_download_publication.py: 3 passed, including red-suite publication.
fixed in e0f34e781065ea55650f5e998b4765b3f7699a4c: release-mode Docker concurrency includes the caller run ID and phase; standalone builds keep their PR/ref scope. reran tests/ci/test_docker_release_concurrency.py: 3 passed, including distinct callers sharing main.
fixed in 679e709fa40ae9de3665555c41b7be82c8ca33bb: _publish_aliases now owns the shared Docker create/retry/read-back logic. promote_stable and promote_canary retain their tag/receipt checks and resolve both image digests before moving any alias. commands, destination ordering, retry limits/delays and exceptions are preserved. tests/scripts/test_docker_alias_publication.py covers retry success and both callers’ push exhaustion, read-back mismatch and inspect errors; existing tests retain destination isolation and independent desktop digests. 57 related tests passed on this PR, 79 at the rebased stack tip; all 13 lint checks and independent review passed. no live registry publication was performed.
@greptileai wrrrfff bark bark
@greptileai awoooo
<a href="#"><img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"></a> Canary Docker tags stay behind
complete passes a commit SHA to buildx-version, but this action expects latest or a version such as v0.38.1. This repeats the value that previously fell back to v0.23.0, which failed Docker Hub manifest writes. Canary packages can publish while canary and canary-desktop stay behind and the run fails.
Reuse the working docker/setup-buildx-action setup used for stable alias promotion.
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
Knowledge Base Used:
<details><summary>Prompt To Fix With AI</summary>
``
suggestionThis is a comment left during a code review.
Path: .github/workflows/stable-release.yml
Line: 741-744
Comment:
**Canary Docker tags stay behind**
`complete` passes a commit SHA to `buildx-version`, but this action expects `latest` or a version such as `v0.38.1`. This repeats the value that previously fell back to `v0.23.0`, which failed Docker Hub manifest writes. Canary packages can publish while `canary` and `canary-desktop` stay behind and the run fails.
Reuse the working `docker/setup-buildx-action` setup used for stable alias promotion.
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
**Knowledge Base Used:**
- [Pin a valid Buildx version for Docker manifest jobs](https://app.greptile.com/nous-research/-/custom-context/knowledge-base/nousresearch/hermes-agent/-/reverts/incident-mitigation_142490-20261022-buildx-version-6932521.md)
- [Restore Docker manifest publishing on GitHub-hosted runners](https://app.greptile.com/nous-research/-/custom-context/knowledge-base/nousresearch/hermes-agent/-/reverts/rollback_142504-20261022-docker-manifest-publish-5b147ab.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
<a href="#"><img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"></a> Old retries unprotect live files
Rerunning an older canary after a newer one publishes overwrites releases/canary/release-candidates.json here before the macOS feed or protected head rejects the stale run. The run fails, but the pointer now names the older canary. Since pruning trusts it to protect the live archive, cleanup can delete receipts from the actual live canary.
Check publication order before this write. Add a stale-retry test that checks the pointer stays unchanged.
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: scripts/releases/channel_releases.py
Line: 475-478
Comment:
**Old retries unprotect live files**
Rerunning an older canary after a newer one publishes overwrites `releases/canary/release-candidates.json` here before the macOS feed or protected head rejects the stale run. The run fails, but the pointer now names the older canary. Since pruning trusts it to protect the live archive, cleanup can delete receipts from the actual live canary.
Check publication order before this write. Add a stale-retry test that checks the pointer stays unchanged.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
PR Review — #142475 (reviewed at ab34d83daec)
Verdict: Request changes. Canary publication never reaches a stable channel, and require-green holds. One defect, though, lets a failed or stale canary run repoint the retention pointer, after which the pruner deletes the live canary's files. A second one makes the canary Docker alias step fail every run.
Premise: Holds. On head, canary-release.yml dispatches stable-release.yml on a canary.<stamp>-vX.Y.Z claim, and policy only selects publication jobs. One correction to the body: "no installed canaries exist yet" is not accurate. The Windows canary App Installer feed (NousResearch.HermesBundledCanary, 26.1023.7.57) and the hermes-canary APT suite (0.22.0~canary.20261014T070054Z-1) are live today. Both stay compatible: App Installer compares the unchanged yy.mmdd.hh.mmss quad, and dpkg orders a new-shape canary above the live one. The channels this PR changes for clients (the source canary pointer, releases/channels/canary.json, the GitHub prerelease) have nothing published, so no installed client gets stuck.
Tests: The PR's own tests pass on the PR merged onto current main:
store-package-version, msix-shared, feature-flags, updater/channel, app-version): 63 passed.Red on main with the PR's test files copied in: 19 tests across test_canary_download_publication, test_canary_apt_retention, test_stage_apt_repo, test_release_channels and test_release_r2. test_protected_canary_publication errors on import.
Live test: Nothing was dispatched. All verification here is static plus script-level:
needs and output reference resolves.publish_release and r2.prune run against a loopback object store.Only a real dispatched canary can prove signed builds, R2/CDN publication, Docker Hub alias writes and the Store staging.
CI: 52 pass, 15 skipped, 0 failing on this head.
Blocking
1.
scripts/releases/channel_releases.py:475-478: a failed or stale canary run repoints releases/canary/release-candidates.json, and r2.prune then deletes the live canary's archive.- What happens: The pointer is written before anything checks publication order. The only ordering checks are the macOS feed (
darwin.publish_mac_feed) and promote_protected, and both run later.- Reproduced: Using the real
publish_release against a loopback object store:1. Publish canary
…T064100Z (1 Oct), then a newer one (2 Oct).2. Re-run the 1 Oct canary. It fails with "Refusing to move the macOS feed backward", but the pointer now names the 1 Oct canary while the protected head still names the 2 Oct one.
3.
r2.prune --keep-days 14 then marks 14 live keys under releases/tag/canary.20261002T064100Z-v2.0.0/ for deletion. They include the .msixbundle that the live head's build.json points at, plus the per-arch msix files, handoffs and mac feed legs. With the correct pointer, nothing live is touched.- Same path without a re-run: any failure after the pointer write (a feed step,
promote_protected) leaves the pointer naming a canary that never went live.- When it bites: once the live canary is older than the retention window. That happens exactly during a streak of failing canaries, the moment the pointer is most likely to be wrong.
- Fix: write the pointer only after
promote_protected succeeds, or compare stamps against the live canary head first. The existing stale-retry test (test_release_channels.py ~742) asserts the head, not the pointer; add the pointer to it.- Pre-existing on main: the stable pointer is written before its ordering checks the same way (main
channel_releases.py:464-473). It's worth the same move.Should fix
1.
stable-release.yml:741-744: the canary alias step passes a commit SHA as buildx-version.-
useblacksmith/setup-docker-builder accepts only latest or vX.Y.Z (isValidBuildxVersion). Anything else logs a warning and falls back to its default v0.23.0, the version the inline comment says cannot push manifest lists to Docker Hub.- Every canary would publish its bundles, then fail
complete with :canary / :canary-desktop left behind.- Fix: use
docker/setup-buildx-action@8d2750c… # v3, as the stable alias step at :811 does.2.
scripts/releases/docker.py:178-187 (promote_canary) never compares against the live :canary.- Re-running the failed jobs of an older canary after a newer one published re-runs
complete. The older run's publish-canary success still satisfies the step if (:756-758), so :canary / :canary-desktop move back to the older digests. Reproduced with a fake docker.- Item 1 makes
complete the job most likely to need that re-run.- Fix: refuse when the canary head (or the alias's stamp label) is newer than this tag.
3.
.github/workflows/stable-release-publication.yml:13-22,37: canary completions now queue runs in the stable-release group.- Every Stable Release completion fires
workflow_run, canaries included. Workflow-level concurrency is applied before the job-level Canary release filter. GitHub keeps one pending run per group, so a canary finishing while a stable release runs can cancel a pending stable publication pass or the stable re-run the sequencer queued. The sequencer only checks that the re-run was queued.- This couldn't happen on main, where canaries ran in
desktop-bundled-release.yml. The cancellation behaviour comes from GitHub's documented concurrency semantics; I didn't run it.- Fix: give canary-triggered runs their own group, e.g. key on
github.event.workflow_run.display_title.4.
scripts/release.py:513-535: release.py --canary --publish ignores --require-green and the lane flags when it resumes an existing tag.- If HEAD is already tagged by the last canary, or today's tag exists,
_resume_canary re-dispatches the existing claim without comparing it to the requested policy.- So a manual Canary Release dispatch with
require_green=true on a commit the scheduled run already tagged re-dispatches the scheduled claim, which has requireGreen:false. That canary then publishes on red suites with no warning. Reproduced with fake git/gh.- Fix: refuse on a mismatch (or cut a new stamp).
5.
apps/desktop/product-identity.cjs:58-61: a Store-variant build from a canary tag now gets the stable Store identity.- The identity is
NousResearchInc.HermesAgent, with display name "Hermes Agent Canary" and a version from the canary stamp (2026.7230.2920.0). Main threw here ("Store packaging is only eligible for stable releases").- Today only the submission guards (
stable-store's !startsWith(inputs.tag,'canary.') and store.submit) keep that bundle out of the Store. Both hold.- A staged canary bundle under the production identity is one guard away from shipping a canary to Store users. A canary and a stable claim made in the same second would also get the same Store version.
- Fix: build the canary Store proof under a distinct identity name, or refuse to stage under the stable one.
6.
scripts/releases/r2.py:980-985: a pointer whose archive names a tag with no objects protects nothing, and pruning proceeds.- Example:
canary.20990101T000000Z-v9.9.9. Fix: require the archive to match the canary tag shape and at least one listed key under releases/tag/<archive>/, otherwise refuse.- Garbled JSON or a JSON array refuses, but through an uncaught
JSONDecodeError / AttributeError; a clean message would help.7. Tag parsing differs between helpers.
-
apps/desktop/electron/feature-flags.ts:14,21, updater/channel-protocol.ts:403 and product-identity.cjs:43 use \d+ for version parts. They accept canary.<stamp>-v01.2.3 and -v2026.7.20, which Python _VERSION_CORE and msix releaseVersion reject. The comment claiming parity with _CANARY_TAG_RE is therefore wrong.-
hermes_cli/update_channel.py strips whitespace (including \xa0) and uses Unicode \d, so 'v1.2.3١' becomes 1.2.3١. Fix: re.ASCII, and no strip.-
scripts/termux/deb_version.py:31 uses re.match with $, so 'v1.2.3\n' passes. Use fullmatch.- No valid tag diverges.
8. Nits:
- Admission accepts an empty lane set, which runs nothing and reports green.
-
schema: true and lanesRevision: 2.0 pass equality checks.- Stale comments still name the deleted
publish-canary job: desktop-bundled-release.yml:2287 and tests/ci/test_tag_builds_summary.py:103.Existing review threads
_publish_aliases is shared by promote_stable and promote_canary.pool_subdir_suite pairs canary. with hermes-canary and rc. with hermes-stable only. Crossed pairings, plain v, the retired +canary shape and ../ are all refused at the real staging entry point.publish-canary renders after publication. test_canary_download_publication passes on head and fails on main.docker.yml; the release key includes the caller run id. The publication-workflow group is a separate path (Should fix 3).Looks good
-
publish-bundles, the stable sequencer, the stable/latest alias promotion and stable-store are all gated on policy == 'stable' or refuse canary. tags.- Admission never produces
policy=stable for a canary tag. Claim/tag kind mismatches in either direction are refused, as is upgrade in a canary.-
promote_canary only writes canary / canary-desktop.- Admission refuses
requireGreen when it is missing, "false", null or 0.- The
publish-canary gate and channel_releases custody re-require acceptance unless the value is exactly false.- It never deletes stable
v or rc. archives, channel or commit builds, or the live canary archive and APT pool when the pointer is correct.- Old- and new-shape canaries both age out, each compared by its own date.
- Live APT indices that name old-shape pools stay protected.
2024.8783.3599.0). A stable client never accepts any canary shape.desktop-bundled-release.yml refuses direct dispatch for every tag shape. No new ${{ }} is interpolated into run:, and secrets: inherit is unchanged._Review by Hermes Agent on behalf of the maintainers; merge decision stays with the maintainer._
Deep review — PR #142475 feat(release): canary runs the full Stable Release pipeline on canary.<stamp>-vX.Y.Z claims, own delta (head ab34d83d)
Thanks @ethernet8023. I compared this delta with fcc26fbd9f16, traced the five changed workflows, claim/lane admission, native version helpers, desktop identity/update readers, candidate publication, Docker aliases, APT retention and download rendering. On Linux, all 30 changed Python test files pass: 666 passed, 0 failed, 1 skipped, both at this head and after a clean trial merge with current main (67d47601bc5f). The 18 changed JS/TS test files produce 133 passes, 2 skipped tests and one source-handoff failure also reproduced on the unchanged base. Signed native releases and real registry/R2 publication were not dispatched; the Docker setup finding below is traced from workflow YAML and the pinned action implementation, not an executed registry push.
Totals: 0 CRITICAL · 2 MAJOR · 0 minor · snapshot CI: 53 successful checks, 15 skipped.
Verdict: Comment — two canary publication issues remain. The shared build graph and stable isolation look right; stale retries can corrupt the retention pointer, and the canary Docker setup silently ignores its intended Buildx version. Both overlap the latest existing review comments rather than introducing duplicate concerns.
---
1. Critical
None found.
---
2. Major findings by cluster
The PR follows the intended shared-pipeline direction and separates canary from stable destinations, but its canary publication recovery is not yet correct. Policy selection changes publication jobs, not the build/test graph. The default canary includes every lane except signed-package upgrade; stable retains that lane. Publication conditions and the stable-only sequencer prevent canary from moving stable feeds, APT suites, Store submissions and stable/latest aliases. Relaxed green policy still waits for acceptance to finish, then permits unrelated failures as documented.
2.1 Stale retries overwrite the live canary candidate pointer
releases/canary/release-candidates.json before feed promotion and before promote_protected rejects an older timestamp. An ETag protects against concurrent writes, not chronological regression. Pruning then protects the archive named by this overwritten pointer. Once outside retention, the actual live canary's candidate manifest/native receipts can be deleted even though individual packages still referenced by macOS/APT feeds remain protected.This confirms greptile-apps' comment 4414587633. I extended the existing HTTP-backed publication scenario: publish first canary, publish next day's canary, retry the first, assert the newer protected head and candidate pointer survive. The existing test checks only the head, which explains its green result.
HERMES_PYTHON="$TEST_PYTHON" bash scripts/run_tests.sh probes/test_stale_pointer.py --file-retries 0
AssertionError: stale retry overwrote live canary candidate pointer
=== Summary: 1 files, 0 tests passed, 1 failed; FAILED: 1 of 1 file (100% complete) in 1.0s (32 workers) ===
RUNNER_RC=1
I'd suggest validating the incoming canary's order against the authoritative, digest-checked protected head before changing the candidate pointer or any mutable feed. A local trial adds that check only for canary, permits the same-tag retry, and leaves final promotion's existing checks intact. The regression then passes alongside all 30 changed Python suites. The probe uses real HTTP storage and publication orchestration; admission, accepted-candidate lookup and native-feed publication are fixture seams, not production services.
Feature check: first publication, same-tag retry, next-day advancement, narrowed-claim refusal and stable-pointer isolation remain green at head/fix in test_release_channels.py; all stable lane combinations remain unchanged in test_stable_matrix.py. The fix does not disable publication.
2.2 Canary aliases use the wrong Buildx version (traced from workflow YAML; not executed)
v0.23.0, not the intended v0.38.1. The new setup step supplies a commit SHA to buildx-version. I read src/main.ts at the action's pinned revision 19215110ab936351210feebdfa5b440b4493e184: its validator accepts only latest or ^v\d+\.\d+\.\d+$; invalid input leaves DEFAULT_BUILDX_VERSION = "v0.23.0" selected and emits a fallback warning. This is exactly the version the new step's comment says fails manifest publication. Thus the intended mitigation is not active when package publication has succeeded and the moving Docker aliases need updating.This confirms the invalid-version mechanism in greptile-apps' comment 4414587573. Registry failure itself was not reproduced, so this is not a claim that a canary push was observed failing at this head. A configuration probe tied to the pinned action's actual grammar fails:
HERMES_PYTHON="$TEST_PYTHON" bash scripts/run_tests.sh probes/test_buildx_config.py --file-retries 0
AssertionError: invalid version silently falls back to v0.23.0
RUNNER_RC=1
I'd suggest reusing the docker/setup-buildx-action step already used by stable in this same GitHub-hosted job, removing the unsupported SHA-valued input. That local trial passes the configuration probe and the 30 changed Python suites; it still needs one real alias-publication run to establish registry behavior.
Feature check: both stable destination sets and canary-only aliases, independent desktop digests, retry exhaustion and read-back errors remain green at head/fix in test_docker_alias_publication.py and test_canary_release_pipeline.py. The trial changes only setup; it does not suppress aliases or alter retry behavior.
Feature-preservation check — what I checked
publish-canary off. Stable defaults, signed upgrade arms, candidate signing/smokes, Store packaging/submission selection, acceptance, feed/APT publication, pages and sequencer remain selected as before. Base existing Python suites pass 569 tests; head/fix suites and the exhaustive comparison pass.---
3. Minor
None found.
Question: None outstanding beyond exercising the corrected Docker setup against the registry.
---
4. What's genuinely good (keep regardless)
5. Recommendation
I'd suggest addressing the stale-pointer write first, then aligning canary Buildx setup with stable and retaining the two regression probes. The local trial with both changes passes 668 Python tests across 32 files, with zero failures or collection errors. The source-handoff JS failure is unchanged on base/head/merged head (held: downgrade where the fixture expects an update), not attributed to this delta. Workflow lint was unavailable locally. After those edits, a real signed canary/registry run would close the remaining runtime verification gap.
Canary retention-pointer regression (#152219)
Thanks alt-glitch for reporting missing canary publication, ethernet8023 for this carrier, and teknium1 for the stale-retry counterexample.
Invariant: a rejected older canary must never replace the live retention pointer. Replay Oct 21 after publishing Oct 22: the pointer regresses before feed/head promotion rejects the old build, risking pruning of live files.
| Evidence | Result |
|---|---|
| Regression | tests/scripts/test_release_channels.py::test_a_canary_advances_its_own_head_from_its_accepted_candidate_only |
| Add-on | https://github.com/kvnloo/hermes-agent/compare/2ffd4b1b05b533fb1dbfc3d5f3a04d4ac4128cfa~1...4d7049eaa22a96d6a68c331e8b74596e551bd1db |
| Execution | UNRUN; base-RED/head-GREEN expected |
git fetch https://github.com/kvnloo/hermes-agent.git salvage/pr142475-152219
git cherry-pick 2ffd4b1b05b533fb1dbfc3d5f3a04d4ac4128cfa~1..4d7049eaa22a96d6a68c331e8b74596e551bd1db
<details><summary>Verification</summary>Read back the pushed source and test; no local pytest or live R2 publication.</details>
Repaired (4d7049e): the first version's refusal read Stale canary…, but the existing test matches the case-sensitive regex stale, so it failed before any pointer check; the refusal now reads like the other stale refusals. Red/green on 2ffd4b1: DISCRIMINATES — https://github.com/kvnloo/fleet-runner/actions/runs/43289828169
Superseded by #158224 (merged at 514e2cbda616), which rebuilt all 14 commits from this PR onto current main (preserving commit authorship via git cherry-pick -x), incorporated the #152219 retention fix, and addressed the review findings. Thank you @ethernet8023 for the original design and implementation.
ethernet8023
What
The canary now runs the actual release pipeline.
canary-release.yml(viarelease.py --canary) dispatchesstable-release.ymlon the canary tag instead ofdesktop-bundled-release.yml. There is no second job list to keep in sync.The canary tag is now
canary.<UTC stamp>-vX.Y.Z, the same claim shape as a stablerc.N-vX.Y.Z. Its annotated message is the canary's claim: the lanes it runs, and whether a red suite holds its publication.A canary starts from every lane (
scripts/releases/lanes.pyCANARY), including macOS Intel and Termux, whichrelease.py releaseleaves off by default. The one exception is the signed-package upgrade lane (see below). Any lane added later runs in the canary automatically.--only/--with/--withoutnarrow or widen it exactly as they do forrelease.py release.By default every canary therefore runs: full CI, Docker build + tests, Nix, PM bundle, Termux verification, Windows live venv E2E, install/update E2E, the bootstrap identity check, and every signed candidate (Windows x64/arm64/universal, macOS arm64/x64, Termux) with native smokes. The Store bundle is built and staged too.
Canary tag and claim
canary.<YYYYMMDDTHHMMSSZ>-vX.Y.Z. It never matchesv, so pick_tags, install-e2e baselines and anything that lists release tags see only real releases.- The tag is the canary's identity everywhere: GitHub prerelease,
releases/tag/<tag>/archive, the tag stamped into builds, and the Docker image tag.- The version it publishes stays SemVer:
X.Y.Z+canary.<stamp>(TermuxX.Y.Z~canary.<stamp>-1).{"schema":1,"kind":"canary","version","commit","lanes","lanesRevision","requireGreen"}.- Admission validates it exactly, reading lanes the same way as a stable claim (
lanes.claim_lanes).- It refuses
upgrade, since a canary is its own app identity (lanes.POLICY_REFUSED).release.py --canaryflags:--only/--with/--withoutand--require-green/--no-require-green(default on).release.py release --no-require-greenis refused, because stable always requires green.--no-require-green. A manualCanary Releasedispatch has arequire_greeninput that defaults to true.vX.Y.Z+canary.<stamp>shape in records already published, so the first new canary can order after and replace them: the previous canary head manifest (published_canary_timestamp/published_release_version), the live macOS feed, and pruning of old tags/archives.update_channel.release_version,msix-shared.mjs releaseVersion, desktopreleaseTagVersionanddeb_version.py --release-version. Nothing strips a leadingvanymore.How a canary differs from a stable release
Admission emits
policy: stable|canaryandrequire-green.policyonly selects publication jobs (lanes.POLICY_JOBS); it never adds or removes a build or test job.publish-canaryjob publishes the accepted candidate to the canary channels: Windows/macOS feeds, Termux APT, GitHub prerelease, protected R2 canary head, and Dockercanary.<stamp>-vX.Y.Z+canary/canary-desktoptags.- A canary never runs
publish-bundles, never runs the stable sequencer, never touches thestable/latestDocker tags, and never submits to the Store (stable-storealso refuses canary tags).-
publish-canaryneeds the full desktop set the canary channel serves (desktop-channel). A narrowed claim without it builds, smokes and tests but publishes nothing.- The
canary/canary-desktopDocker aliases move only afterpublish-canarysucceeds, so they follow the claim's green policy and lanes like every other canary channel. A pushed image whose canary was held back never becomes:canary.- With
requireGreen,publish-canarywaits foracceptance(every suite green), as a stable release does.- Without it, it waits only for
candidate-manifest(built + smoke-tested), and red suites just report in the same run.-
channel_releasescustody re-requiresacceptancewheneverREQUIRE_GREENisn't explicitlyfalse(fail closed).- Because GitHub Actions can't depend on a job conditionally,
publish-canaryalways waits foracceptanceto finish. Without green it just doesn't care about the result.transitions-*-packaged) never run for canaries.- The canary is its own app (Hermes Canary), so a signed canary package can't upgrade a stable install.
- An unsigned rehearsal can't either: App Installer and ShipIt both bind updates to the signer.
- "Old stable → this commit" is covered by install-e2e, which installs released
vX.Y.Ztags and updates them to the canary commit.- Stable releases still run the signed upgrade arms.
Supporting changes
canary-release-pipeline), so a multi-hour canary never queues a stable release.stable-release-publication.ymlignores runs titledCanary release …. Stable run titles are unchanged, so sequencer matching is unaffected.year.hourOfYear.secondOfHour.0from the canary stamp) and canary app naming. Commit builds still never build Store packages.channel_releases canary: accepts onlystable-release.ymlas the canary publisher and publishes from the accepted candidate, the same way stable does, checked against the claim's lanes. The old local-bytes canary path is gone.release_artifacts publish/promotepick their channel from the tag.canary.<stamp>-vX.Y.Zstages onlyhermes-canary,rc.N-vX.Y.Zonlyhermes-stable.build_deb.shstamps the tag's release version on the pinned-commit build the candidate job runs.docker.py promote-canarycommand.releases/canary/release-candidates.jsonnames the live canary, and pruning refuses to run if that pointer is unreadable. Both old and new canary key shapes age out.desktop-bundled-release.ymlrefuses release tags, and its legacypublish-canaryjob is deleted, so a canary can only publish through Stable Release. The remaining direct-dispatch jobs (feed publishers, builds table) are now unreachable and get deleted with the other legacy modes in phase 4.Review hardening
--no-require-greenpermits unrelated failures, not early publication. CLI help, workflow comments and the guide agree._publish_aliases; caller-specific identity/receipt checks and destination policy remain separate. Both variant digests are verified before any alias writes. Retry limits, delays, exceptions and read-back checks are unchanged.completerenderer is stable-only and presentation remains non-blocking.Verification (Windows ARM64)
ab34d83daecfa8794ba0860f0b02dd174de1563contomainatfcc26fbd9f1641755e49793d7ed608f3b7214c3dand verified the remote Git ref. All four PR patches remain byte-identical to their pre-rebase versions. Rebased-tip checks: 230 Python tests, 25 JS tests, all 14 lint checks passed. At verification, GitHub still reported PR head32d6a89484ec552cf4dfdd9a12c796eaf3781843; do not treat old-head checks as validation of this rebase. The upper three PRs already report their rebased heads.windows-deps.ps1.System.IO.Compressionis explicitly preloaded. Both new commit/channel smoke suites pass.scripts/checkat the integrated tip: 13 checks passed, including cumulative health against the stack's main base; each PR's own health ratchet also passed.