* fix(release): cap the canary draft body below GitHub's limit
Canary Release has failed at "Tag and draft" since 2026-11-11 (runs
42974584993 and 43170357147): `gh release create` got HTTP 422, "body
is too long (maximum is 125000 characters)". The daily changelog lists
every commit since the previous canary tag, and main now lands 800 to
1,300 commits a day: 1,314 commits made a 234,391-character body on
Nov 11 and 829 made 149,678 on Nov 12. Nov 10's 108,144 still fit.
The stable path has refused an oversized body before its claim since
74c365a85a; the canary path had no check, pushed its tag, and then
failed to draft. With no draft, no Desktop Bundled Release was
dispatched.
When the changelog would not fit, the canary now drafts the
--no-changelog body (title, builds-table marker, Full Changelog link).
The check keeps 10,000 characters for the builds table that the
builds-table job later splices into the marker, also under GitHub's
limit. A full matrix with diagnostics renders about 3,000.
* fix(release): recover an undrafted canary tag without GitHub-generated notes
When a canary tag exists with no release (a cut whose draft failed after
the tag push, as on Nov 11 and 12), the next run with no new commits
recovers the tag and drafts it with --generate-notes. GitHub builds
those notes server-side from every pull request since the last
published release and does not truncate them (cli/cli#7705). Every
canary since Oct 31 is still a draft, so that range starts at v0.23.1:
970 merged pull requests on Nov 12, about 131,000 characters at their
average line length, so the recovery would fail with the same 422. The
generated notes also carry no HERMES_BUILDS_TABLE marker, so the
builds table could never render into a recovered draft.
Recovery now drafts the --no-changelog body over stdin: title,
builds-table marker and changelog link.
* fix(release): link a recovered canary draft to its own repository
The recovered draft's only link came from generate_changelog's default
repo_url, NousResearch/hermes-agent, so a fork's recovered canary
pointed at a repository that lacks its tag. Build the link from the
repository the draft is created in, as the stable path does.
The cut path keeps the default: its commit lines link upstream pull
request numbers, which a fork does not have.
Raised by Greptile on #154321.