Files
hermes-agent/scripts
BearHuddleston e8d516cbf3 fix(release): recover a candidate pointer whose write failed after the head moved
publish_release now writes releases/<channel>/release-candidates.json only after the
protected head advances, so a failed pointer write leaves the head on the new release and
the pointer on the previous one. Nothing then repaired it: the sequencer's plan() treats a
published version at the head as done, and the canary's quiet-day _resume_canary returns as
soon as the head matches.

Stable: each production pass now compares the pointer with the archived candidate of the
release at the head and, when it differs or is missing, repeats that release's desktop
advance (advance_stable only; Docker aliases stay put). publish_release is idempotent once
the head is there, so the repeat ends at the pointer write. The stable pointer is the source
channel's update target and the next release's upgrade baseline.

Canary: the pointer's only reader is the R2 pruner, and _resume_canary runs without R2 write
credentials. The pruner now reads the protected canary head and refuses to prune while the
pointer names another canary, so a lagging pointer can no longer expose the live canary's
archive. A rerun of that canary's publish-canary job (or the next canary) rewrites it.
2026-11-20 11:28:21 -06:00
..
…