← Back to Pull requests

feat(release): canary runs the full Stable Release pipeline on canary.<stamp>-vX.Y.Z claims #142475

Closed
ethernet8023 closed this pull request without merging on Nov 20, 2026 17:31 UTC
View on GitHub
ethernet8023 ethernet8023 commented on Oct 21, 2026 09:37 UTC
Author

What

The canary now runs the actual release pipeline. canary-release.yml (via release.py --canary) dispatches stable-release.yml on the canary tag instead of desktop-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 stable rc.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.py CANARY), including macOS Intel and Termux, which release.py release leaves 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/--without narrow or widen it exactly as they do for release.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

  • Tag shape: canary.<YYYYMMDDTHHMMSSZ>-vX.Y.Z. It never matches v, 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> (Termux X.Y.Z~canary.<stamp>-1).
  • Claim message: {"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 --canary flags: --only/--with/--without and --require-green/--no-require-green (default on). release.py release --no-require-green is refused, because stable always requires green.

  • Schedule vs manual: the daily scheduled canary passes --no-require-green. A manual Canary Release dispatch has a require_green input that defaults to true.

  • No compatibility path: no installed canaries exist yet, so clients and scripts simply switch to the new shape. Release tooling still reads the retired 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.

  • One helper per language: tag → version goes through update_channel.release_version, msix-shared.mjs releaseVersion, desktop releaseTagVersion and deb_version.py --release-version. Nothing strips a leading v anymore.
  • How a canary differs from a stable release

    Admission emits policy: stable|canary and require-green. policy only selects publication jobs (lanes.POLICY_JOBS); it never adds or removes a build or test job.

  • Where it publishes: the new publish-canary job publishes the accepted candidate to the canary channels: Windows/macOS feeds, Termux APT, GitHub prerelease, protected R2 canary head, and Docker canary.<stamp>-vX.Y.Z + canary/canary-desktop tags.

  • - A canary never runs publish-bundles, never runs the stable sequencer, never touches the stable/latest Docker tags, and never submits to the Store (stable-store also refuses canary tags).
    - publish-canary needs 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-desktop Docker aliases move only after publish-canary succeeds, 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.
  • What green means:

  • - With requireGreen, publish-canary waits for acceptance (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_releases custody re-requires acceptance whenever REQUIRE_GREEN isn't explicitly false (fail closed).
    - Because GitHub Actions can't depend on a job conditionally, publish-canary always
    waits for acceptance to finish. Without green it just doesn't care about the result.
  • Upgrade tests: the signed-package upgrade arms (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.Z tags and updates them to the canary commit.
    - Stable releases still run the signed upgrade arms.

    Supporting changes

  • Canary runs get their own concurrency group (canary-release-pipeline), so a multi-hour canary never queues a stable release. stable-release-publication.yml ignores runs titled Canary release …. Stable run titles are unchanged, so sequencer matching is unaffected.

  • Store packaging for canary: allowed, using a Store-valid version (year.hourOfYear.secondOfHour.0 from the canary stamp) and canary app naming. Commit builds still never build Store packages.

  • channel_releases canary: accepts only stable-release.yml as 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/promote pick their channel from the tag.

  • Termux: APT staging accepts a canary tag as its pool prefix, paired with its suite: canary.<stamp>-vX.Y.Z stages only hermes-canary, rc.N-vX.Y.Z only hermes-stable. build_deb.sh stamps the tag's release version on the pinned-commit build the candidate job runs.

  • Docker: the canary tag is the image tag, canary version stamps parse (distance 0), the identity check compares the stable core, and there's a new docker.py promote-canary command.

  • R2 pruner: keeps the live canary's archive and Termux pool however old. releases/canary/release-candidates.json names the live canary, and pruning refuses to run if that pointer is unreadable. Both old and new canary key shapes age out.

  • One canary publisher: a direct dispatch of desktop-bundled-release.yml refuses release tags, and its legacy publish-canary job 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

  • Relaxed green policy is now described precisely: publication waits for selected suites to finish; --no-require-green permits unrelated failures, not early publication. CLI help, workflow comments and the guide agree.
  • Stable/canary Docker alias publication now shares _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.
  • Successful canary publication renders its downloads immediately, even when unrelated suites are red; the complete renderer is stable-only and presentation remains non-blocking.

  • Reusable Docker release calls isolate concurrency by caller run and phase, without changing standalone/PR cancellation.

  • Download-page ordering reads previously published canary tag shapes.

  • Retention protects packages named by the live canary APT indices independently of the latest desktop head, and refuses ambiguous or unreadable index data.
  • Verification (Windows ARM64)

  • Rebased branch head ab34d83daecfa8794ba0860f0b02dd174de1563c onto main at fcc26fbd9f1641755e49793d7ed608f3b7214c3d and 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 head 32d6a89484ec552cf4dfdd9a12c796eaf3781843; do not treat old-head checks as validation of this rebase. The upper three PRs already report their rebased heads.
  • Combined-stack canonical Python run across 47 files: 850 passed, 2 failed, 10 fixture errors, 29 skipped. The exact 12 failing/error cases match the unchanged stack baseline (798 passed, 2 failed, 10 fixture errors, 29 skipped); no added failures. Baseline issues: Docker recovery's Windows shell path, shallow source-retirement fixture cleanup, and icon-environment provisioning through windows-deps.ps1.

  • After the final review follow-ups, all added Python regression files were rerun at the final tip: 55 passed, 0 failed across 10 files. Tests cover real icon generation, claim-custody credentials, HTTP publication with the real assembler, native ordering, live-head/retirement retention, APT indices, and rendering/concurrency gates.

  • Final smoke/cache/helper Vitest run: 23 passed, with the pre-existing PowerShell 5 compression-assembly test excluded. Its actual PowerShell script separately passes when System.IO.Compression is explicitly preloaded. Both new commit/channel smoke suites pass.

  • All four desktop typechecks and touched-JS ESLint pass. Whole-tree Ruff passes. scripts/check at the integrated tip: 13 checks passed, including cumulative health against the stack's main base; each PR's own health ratchet also passed.

  • No real release, tag, or production R2 operation was dispatched. Signed native builds and real R2/CDN publication remain unexercised.

  • CI on the updated heads is pending; the previous green checks do not verify these new commits.
  • Diff: 2994 lines (+2274 / -720) across 89 files Reviewer: ethernet8023 Review duration: 43673m
    All Vouch review confidence checks passed
    Residual risk 0.11 = Change Risk (0.86) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.86 · 2994 lines diff across 89 files
    0.86
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.79 · 5 substantive comment(s)
    0.79
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    86%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Self Review self_review
    0.140
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    21 items
    github-actions[bot] github-actions[bot] commented on Oct 21, 2026 09:38 UTC
    Bot

    <!-- 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 &amp; TS checks / JS &amp; 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 &amp; TS checks / JS &amp; 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 &amp; TS checks / JS &amp; 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 &amp; TS checks / JS &amp; 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.

  • JS & TS checks / JS & TS checks: -154.0s

  • Check no large binaries / Reject large binaries: -153.0s

  • Catalog tests / Catalog tests: -110.0s

  • Python tests / Run tests (2/2): -104.0s

  • Profile artifact check / Reject profile archives: -94.0s
  • </details>

    blacksmith-sh[bot] blacksmith-sh[bot] commented on Oct 21, 2026 09:45 UTC
    Bot

    <!-- 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&amp;entry=pr_comment&amp;ref=gh_comment&amp;autoLogin=true&amp;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-apps[bot] greptile-apps[bot] commented on Oct 21, 2026 09:46 UTC
    Bot

    <!-- 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&amp;utm_medium=github&amp;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">&nbsp;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">&nbsp;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>

    `

    ### 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.
    
    
    suggestion
    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.

  • Canaries use the shared Stable Release pipeline and its selected lanes.

  • Canary tags put the timestamp before the stable version number.

  • Accepted canary builds publish to canary feeds and Docker aliases.

  • R2 pruning keeps the live canary archive and its active Termux packages.

  • </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>

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 21, 2026 09:46 UTC
    Code Review
    scripts/releases/docker.py:1
    @@ -154,6 +171,34 @@ def promote_stable(tag: str, digest: str, release_tag: str, *, run=output, sleep
                     raise DockerReleaseError(f"Docker {alias}{suffix} alias read-back mismatch")
     
     
    +def promote_canary(tag: str, *, run=output, sleep=time.sleep) -> None:
    +    """Point the moving ``canary`` and ``canary-desktop`` aliases at a canary's pushed images.
    +
    +    The canary's own versioned tag stays immutable; stable and latest are never touched here."""
    +    if not is_canary_image_tag(tag):
    +        raise DockerReleaseError(f"Not a canary image tag: {tag!r}")
    +    # Inspect both before moving either alias; desktop has its own registry digest.
    +    variants = [(suffix, _version_digest(tag, suffix, run)) for suffix in ("", "-desktop")]
    +    for suffix, version_digest in variants:
    +        command = ["docker", "buildx", "imagetools", "create", "-t", f"{IMAGE}:canary{suffix}",
    +                   f"{IMAGE}@{version_digest}"]
    +        for attempt in range(3):
    +            try:
    +                run(command)
    +                break
    +            except subprocess.CalledProcessError:
    +                if attempt == 2:
    +                    raise
    +                sleep(20)
    +        for attempt in range(3):
    +            if _inspect(f"{IMAGE}:canary{suffix}", run) == version_digest:
    +                break
    +            if attempt < 2:
    +                sleep(20)
    +        else:
    +            raise DockerReleaseError(f"Docker canary{suffix} alias read-back mismatch")

    <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!

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 21, 2026 09:46 UTC
    Code Review
    scripts/releases/stable.py:1
    @@ -560,6 +612,16 @@ def check_claim(env: dict, run=output) -> dict:
             raise ValueError("Stable claim tag moved")
         run(["git", "fetch", "origin", *release_line_refspecs("origin")])
     
    +    if is_canary_claim(claim_tag):
    +        # A canary has no claim message: its tag name is its whole policy. It always runs every
    +        # lane (lanes.CANARY), its build time is its stamp, and only main may cut one.
    +        if not run(["git", "for-each-ref", "--contains", commit, "--format=%(refname)",
    +                    "refs/remotes/origin/main"]):
    +            raise ValueError(f"{commit} is not on main")
    +        return {"claim_tag": claim_tag, "tag": claim_tag, "version": claim_tag[1:], "attempt": None,
    +                "commit": commit, "claim_object": local_object, "autopublish": True,
    +                "lanes": lane_set.CANARY, "claim_epoch": canary_epoch(claim_tag), "policy": "canary"}

    <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>

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 21, 2026 09:46 UTC
    Code Review
    .github/workflows/stable-release.yml:1
    @@ -588,10 +607,68 @@ jobs:
           manifest-sha256: ${{ needs.candidate-manifest.outputs.manifest-sha256 }}
           skip-store: ${{ !fromJSON(needs.admit.outputs.lanes)['windows-store'] }}
     
    +  publish-canary:
    +    name: Publish the canary to its channels
    +    # Canary policy only (lanes.POLICY_JOBS). It publishes the same accepted candidate
    +    # publish-bundles would, to the canary channels: verified bytes and the Termux pool
    +    # (release_artifacts publish), then the GitHub prerelease, the canary feeds, the canary
    +    # upgrade baseline and the protected R2 canary head (channel_releases canary). It waits
    +    # only for the accepted candidate, never for acceptance: a red suite reports, it does not
    +    # hold the canary back. The Store bundle is staged in the archive and never submitted.
    +    needs: [admit, candidate-manifest]
    +    if: >-
    +      !cancelled() && fromJSON(needs.admit.outputs.jobs)['publish-canary']
    +      && needs.candidate-manifest.result == 'success'
    +    runs-on: blacksmith-32vcpu-ubuntu-2404
    +    environment: release-signing
    +    timeout-minutes: 120
    +    permissions:
    +      # The controller publishes the canary's GitHub prerelease.
    +      contents: write
    +    concurrency:
    +      group: canary-channel-publication
    +      cancel-in-progress: false
    +    env:
    +      RELEASE_TAG: ${{ needs.admit.outputs.tag }}
    +      RELEASE_TAG_OBJECT: ${{ needs.admit.outputs.claim-object }}
    +      RELEASE_COMMIT: ${{ needs.admit.outputs.commit }}
    +      HERMES_ARCHIVE_TAG: ${{ needs.admit.outputs.claim-tag }}
    +      CANDIDATE_MANIFEST_URL: ${{ needs.candidate-manifest.outputs.manifest-url }}
    +      CANDIDATE_MANIFEST_SHA256: ${{ needs.candidate-manifest.outputs.manifest-sha256 }}
    +      RELEASE_NEEDS: ${{ toJSON(needs) }}
    +      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 }}
    +      CLOUDFLARE_R2_PUBLIC_URL: ${{ vars.CLOUDFLARE_R2_PUBLIC_URL }}
    +    steps:
    +      - uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a  # v1
    +        with:
    +          ref: ${{ github.sha }}
    +          # Custody reads the canary tag object and its ancestry on the default branch.
    +          fetch-depth: 0
    +          filter: blob:none
    +          fetch-tags: true
    +      - uses: ./.github/actions/setup-pm
    +        with:
    +          cache-python: false
    +      - name: Set up the native identity reader
    +        uses: ./.github/actions/setup-pm
    +        with:
    +          toolchain: node
    +          cache-python: false
    +      - name: Verify the accepted packages and stage the Termux pool
    +        run: python -m scripts.bundles.release_artifacts publish --root verified
    +      - name: Publish the canary and advance its channels
    +        # The macOS feed merge parses YAML (hermes_yaml -> ruamel); the node toolchain has none.
    +        run: python -m scripts.ci.python_packages ruamel.yaml==0.18.17 -- -m scripts.releases.channel_releases canary

    <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>

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 21, 2026 09:46 UTC
    Code Review
    .github/workflows/stable-release.yml:1
    @@ -26,8 +38,10 @@ permissions:
     # deployment and exposes `vars`, but leaves `secrets.*` empty
     # (actions/runner#1490). ci.yaml is deliberately excluded — it runs
     # PR-controlled code and must stay secret-free.
    +# A canary takes hours; it must never queue a stable release behind it, nor share the stable
    +# publication reconciler's lock.
     concurrency:
    -  group: stable-release
    +  group: ${{ contains(inputs.tag, '+canary.') && 'canary-release-pipeline' || 'stable-release' }}
       cancel-in-progress: false

    <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-sh[bot] blacksmith-sh[bot] commented on Oct 28, 2026 15:17 UTC
    Bot

    <!-- 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&amp;entry=pr_comment&amp;ref=gh_comment&amp;autoLogin=true&amp;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>

    ethernet8023 ethernet8023 commented on code on Oct 28, 2026 22:43 UTC
    Code Review
    scripts/releases/stable.py:1
    @@ -560,6 +612,16 @@ def check_claim(env: dict, run=output) -> dict:
             raise ValueError("Stable claim tag moved")
         run(["git", "fetch", "origin", *release_line_refspecs("origin")])
     
    +    if is_canary_claim(claim_tag):
    +        # A canary has no claim message: its tag name is its whole policy. It always runs every
    +        # lane (lanes.CANARY), its build time is its stamp, and only main may cut one.
    +        if not run(["git", "for-each-ref", "--contains", commit, "--format=%(refname)",
    +                    "refs/remotes/origin/main"]):
    +            raise ValueError(f"{commit} is not on main")
    +        return {"claim_tag": claim_tag, "tag": claim_tag, "version": claim_tag[1:], "attempt": None,
    +                "commit": commit, "claim_object": local_object, "autopublish": True,
    +                "lanes": lane_set.CANARY, "claim_epoch": canary_epoch(claim_tag), "policy": "canary"}

    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.

    ethernet8023 ethernet8023 commented on code on Oct 28, 2026 22:43 UTC
    Code Review
    .github/workflows/stable-release.yml:1
    @@ -588,10 +607,68 @@ jobs:
           manifest-sha256: ${{ needs.candidate-manifest.outputs.manifest-sha256 }}
           skip-store: ${{ !fromJSON(needs.admit.outputs.lanes)['windows-store'] }}
     
    +  publish-canary:
    +    name: Publish the canary to its channels
    +    # Canary policy only (lanes.POLICY_JOBS). It publishes the same accepted candidate
    +    # publish-bundles would, to the canary channels: verified bytes and the Termux pool
    +    # (release_artifacts publish), then the GitHub prerelease, the canary feeds, the canary
    +    # upgrade baseline and the protected R2 canary head (channel_releases canary). It waits
    +    # only for the accepted candidate, never for acceptance: a red suite reports, it does not
    +    # hold the canary back. The Store bundle is staged in the archive and never submitted.
    +    needs: [admit, candidate-manifest]
    +    if: >-
    +      !cancelled() && fromJSON(needs.admit.outputs.jobs)['publish-canary']
    +      && needs.candidate-manifest.result == 'success'
    +    runs-on: blacksmith-32vcpu-ubuntu-2404
    +    environment: release-signing
    +    timeout-minutes: 120
    +    permissions:
    +      # The controller publishes the canary's GitHub prerelease.
    +      contents: write
    +    concurrency:
    +      group: canary-channel-publication
    +      cancel-in-progress: false
    +    env:
    +      RELEASE_TAG: ${{ needs.admit.outputs.tag }}
    +      RELEASE_TAG_OBJECT: ${{ needs.admit.outputs.claim-object }}
    +      RELEASE_COMMIT: ${{ needs.admit.outputs.commit }}
    +      HERMES_ARCHIVE_TAG: ${{ needs.admit.outputs.claim-tag }}
    +      CANDIDATE_MANIFEST_URL: ${{ needs.candidate-manifest.outputs.manifest-url }}
    +      CANDIDATE_MANIFEST_SHA256: ${{ needs.candidate-manifest.outputs.manifest-sha256 }}
    +      RELEASE_NEEDS: ${{ toJSON(needs) }}
    +      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 }}
    +      CLOUDFLARE_R2_PUBLIC_URL: ${{ vars.CLOUDFLARE_R2_PUBLIC_URL }}
    +    steps:
    +      - uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a  # v1
    +        with:
    +          ref: ${{ github.sha }}
    +          # Custody reads the canary tag object and its ancestry on the default branch.
    +          fetch-depth: 0
    +          filter: blob:none
    +          fetch-tags: true
    +      - uses: ./.github/actions/setup-pm
    +        with:
    +          cache-python: false
    +      - name: Set up the native identity reader
    +        uses: ./.github/actions/setup-pm
    +        with:
    +          toolchain: node
    +          cache-python: false
    +      - name: Verify the accepted packages and stage the Termux pool
    +        run: python -m scripts.bundles.release_artifacts publish --root verified
    +      - name: Publish the canary and advance its channels
    +        # The macOS feed merge parses YAML (hermes_yaml -> ruamel); the node toolchain has none.
    +        run: python -m scripts.ci.python_packages ruamel.yaml==0.18.17 -- -m scripts.releases.channel_releases canary

    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.

    ethernet8023 ethernet8023 commented on code on Oct 28, 2026 22:43 UTC
    Code Review
    .github/workflows/stable-release.yml:1
    @@ -26,8 +38,10 @@ permissions:
     # deployment and exposes `vars`, but leaves `secrets.*` empty
     # (actions/runner#1490). ci.yaml is deliberately excluded — it runs
     # PR-controlled code and must stay secret-free.
    +# A canary takes hours; it must never queue a stable release behind it, nor share the stable
    +# publication reconciler's lock.
     concurrency:
    -  group: stable-release
    +  group: ${{ contains(inputs.tag, '+canary.') && 'canary-release-pipeline' || 'stable-release' }}
       cancel-in-progress: false

    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.

    ethernet8023 ethernet8023 commented on code on Oct 28, 2026 22:45 UTC
    Code Review
    scripts/releases/docker.py:1
    @@ -154,6 +171,34 @@ def promote_stable(tag: str, digest: str, release_tag: str, *, run=output, sleep
                     raise DockerReleaseError(f"Docker {alias}{suffix} alias read-back mismatch")
     
     
    +def promote_canary(tag: str, *, run=output, sleep=time.sleep) -> None:
    +    """Point the moving ``canary`` and ``canary-desktop`` aliases at a canary's pushed images.
    +
    +    The canary's own versioned tag stays immutable; stable and latest are never touched here."""
    +    if not is_canary_image_tag(tag):
    +        raise DockerReleaseError(f"Not a canary image tag: {tag!r}")
    +    # Inspect both before moving either alias; desktop has its own registry digest.
    +    variants = [(suffix, _version_digest(tag, suffix, run)) for suffix in ("", "-desktop")]
    +    for suffix, version_digest in variants:
    +        command = ["docker", "buildx", "imagetools", "create", "-t", f"{IMAGE}:canary{suffix}",
    +                   f"{IMAGE}@{version_digest}"]
    +        for attempt in range(3):
    +            try:
    +                run(command)
    +                break
    +            except subprocess.CalledProcessError:
    +                if attempt == 2:
    +                    raise
    +                sleep(20)
    +        for attempt in range(3):
    +            if _inspect(f"{IMAGE}:canary{suffix}", run) == version_digest:
    +                break
    +            if attempt < 2:
    +                sleep(20)
    +        else:
    +            raise DockerReleaseError(f"Docker canary{suffix} alias read-back mismatch")

    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.

    ethernet8023 ethernet8023 commented on Oct 29, 2026 15:37 UTC
    Author

    @greptileai wrrrfff bark bark

    ethernet8023 ethernet8023 commented on Oct 29, 2026 15:37 UTC
    Author

    @greptileai awoooo

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 29, 2026 15:49 UTC
    Code Review
    .github/workflows/stable-release.yml:1
    @@ -632,10 +732,38 @@ jobs:
             with:
               toolchain: node
               cache-python: false
    +      # A canary's image is public once publish-docker pushed it; its moving aliases follow
    +      # whatever the gate below says, exactly like its bundles (publish-canary).
    +      - name: Set up Docker Buildx for the canary aliases
    +        if: >-
    +          ${{ !cancelled() && needs.admit.outputs.policy == 'canary'
    +          && needs.publish-docker.result == 'success' && needs.publish-canary.result == 'success' }}
    +        uses: useblacksmith/setup-docker-builder@19215110ab936351210feebdfa5b440b4493e184  # v2
    +        with:
    +          # the action's default buildx (v0.23.0) fails to push manifest lists to Docker Hub
    +          buildx-version: 0dbe87f36ed472fe36b6796c3f70b4210a731fc5 # v0.38.1

    <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:

  • Pin a valid Buildx version for Docker manifest jobs

  • Restore Docker manifest publishing on GitHub-hosted runners
  • <details><summary>Prompt To Fix With AI</summary>

    `

    This 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.
    
    
    suggestion
    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!

    greptile-apps[bot] greptile-apps[bot] commented on code on Oct 29, 2026 15:49 UTC
    Code Review
    scripts/releases/channel_releases.py:1
    @@ -453,22 +459,24 @@ def qualified(pinned: dict, actual: dict) -> bool:
             # Rehash local receipt-bound bytes rather than trusting caller-supplied claims.
             expected, _ = assemble(pinned, read_native_receipts(root, tag, commit, legs, payload_tag=payload_tag), root,
                                    artifact_prefix=f"releases/tag/{tag}/", targets=_leg_targets(legs),
    -                               local_bytes=local_bytes)
    -        if accepted is not None:
    -            match_accepted_packages(expected, accepted)
    +                               local_bytes=False)
    +        match_accepted_packages(expected, accepted)
     
             return pinned == request and actual == expected
     
         publisher.verify_build = qualified
    -    if accepted is not None:
    -        log("Writing releases/stable/release-candidates.json and promoting the stable feeds")
    -        # The head already names the previous release after the first bundled one: replace it
    -        # under its current ETag, since a create-only write refuses an existing object.
    -        head = publisher.store.get("releases/stable/release-candidates.json")
    -        publisher._write("releases/stable/release-candidates.json", accepted, head[1] if head else None)
    -        if publisher.reader.read_bytes("releases/stable/release-candidates.json") != canonical_json(accepted):
    -            raise ChannelError("Stable candidate pointer read-back differs")
    -        promote_stable_feeds(accepted, root, publisher.public_base)
    +    # Stable's pointer is the next release's upgrade baseline (stable._published_baseline); the
    +    # canary's names the live canary, whose objects the R2 pruner keeps however old.
    +    channel = "canary" if policy == "canary-release" else "stable"
    +    pointer = f"releases/{channel}/release-candidates.json"
    +    log(f"Writing {pointer} and promoting the {channel} feeds")
    +    # The head already names the previous release after the first bundled one: replace it
    +    # under its current ETag, since a create-only write refuses an existing object.
    +    head = publisher.store.get(pointer)
    +    publisher._write(pointer, accepted, head[1] if head else None)
    +    if publisher.reader.read_bytes(pointer) != canonical_json(accepted):
    +        raise ChannelError(f"{channel.capitalize()} candidate pointer read-back differs")

    <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>

    teknium1 teknium1 commented on Oct 29, 2026 19:45 UTC
    Contributor

    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:

  • Retention, publication and APT: 116 passed.

  • Versions and channels: 193 passed.

  • JS (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:

  • actionlint: no new errors on head vs main.

  • Job graph: every needs and output reference resolves.

  • 28 adversarial claims through admission.

  • One 49-tag corpus through all the version helpers.

  • The real 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


  • Docker retries are duplicated: fixed. _publish_aliases is shared by promote_stable and promote_canary.

  • Canary APT staging always fails: fixed. 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.

  • Published canaries lack download links: fixed. publish-canary renders after publication. test_canary_download_publication passes on head and fails on main.

  • Canaries still queue stable builds: fixed for docker.yml; the release key includes the caller run id. The publication-workflow group is a separate path (Should fix 3).

  • Canary Docker tags stay behind: confirmed in code (Should fix 1).

  • Old retries unprotect live files: confirmed with a probe (Blocking 1).
  • Looks good


  • No canary path reaches a stable channel.

  • - 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.
  • Require-green fails closed.

  • - 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.
  • Pruner retention checks:

  • - 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.
  • Version helpers agree on every valid tag: Python, msix, desktop and deb. Windows quad, Store quad and dpkg ordering are monotonic, and Store parts stay within MSIX limits (max 2024.8783.3599.0). A stable client never accepts any canary shape.

  • Workflow hygiene: 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._

    unsupportedpastels unsupportedpastels commented on Oct 29, 2026 19:50 UTC
    Reviewer

    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

  • A rejected older canary can replace the pointer that protects the current canary archive from pruning. In publication, the ETag write replaces 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)

  • The canary alias setup installs the fallback 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

  • Stable behavior is preserved in the exercised paths. An exhaustive comparison of all 65,536 lane selections preserves every base stable job flag and keeps 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.

  • Docker retries are now shared without changing stable aliases or retry/read-back semantics. Caller-run concurrency separates reusable release calls while retaining standalone/PR scope.

  • Canary APT references independently protect live indexed packages after desktop-only advancement, and unreadable/ambiguous indices refuse pruning. The earlier staging, downloads-after-red-suite and Docker caller-isolation comments are fixed and covered by passing changed suites.

  • The adjacent #145680 extends these same policy/lane/claim interfaces for commit claims; no incompatible contract was found in this PR's delta. No conclusion here covers #145680's own added behavior.
  • ---

    3. Minor

    None found.

    Question: None outstanding beyond exercising the corrected Docker setup against the registry.

    ---

    4. What's genuinely good (keep regardless)

  • One lane table drives workflow job selection and gate expectations, including intentional skips; a canary automatically inherits new lanes.

  • Canary publication consumes receipt-bound accepted candidates instead of introducing another local-package trust path.

  • Rendering immediately after successful canary publication preserves download links even when unrelated suites fail, without making presentation a release requirement.

  • The APT retention reader is conservative about missing indices and ambiguous package filenames.
  • 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.

    kvnloo kvnloo commented on Nov 09, 2026 23:46 UTC
    Contributor

    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

    BearHuddleston BearHuddleston commented on Nov 20, 2026 17:31 UTC
    Contributor

    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.

    Reviewers
    Assignees
    ethernet8023 ethernet8023
    Labels
    risk: low confidence: 86.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 85.5% (HIGH) · Higher = larger blast radius
    85.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 86.7% · Lower = rushed or shallow review
    86.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 11.4% · Safe to merge
    11.4%