One product version covers the CLI archives, the npm launcher, the desktop app, the self-host image,
the Homebrew formula and the public source. The version is chosen when a release runs: the next beta
after the newest release tag and npm's versions (bun run ci release next-version). No commit
changes a version file first; the public source export stamps the version into
apps/cli/package.json and bun.lock of the exported tree.
Everything below is built and published by the ci package. The workflows only call its commands,
and every command runs the same by hand. One setting, EXECUTOR_RELEASE_DESTINATION (public or
rehearsal, ci/src/contracts/release.ts), chooses every target, so a rehearsal and a real release
run the same code.
The requirement (releaseDuration in ci/src/contracts/requirements.ts): a release for every
platform in under 15 minutes, from its trigger to every surface serving it.
bun run ci products (ci/src/commands/products.ts) builds every release product from a commit and a version.
Each product is keyed by its inputs and kept in the shared product store, an R2 bucket behind the Worker
at https://products.executor.engineering (productStoreOrigin in ci/src/contracts/product-store.ts,
deployed by ci/alchemy.product-store.ts; it has no other address). The release commands always use
it; bun run ci products uses it with --store shared (or EXECUTOR_PRODUCT_STORE=shared, which the
pipeline sets) and a local directory otherwise. A product
whose key is already stored is reused. Version-free products (the CLI executable, its runtime stage,
the collectors, the signed and notarized macOS CLI install) carry over from one version to the next;
only the versioned ones are rebuilt for a new number.
.github/workflows/release-pipeline.yml runs the builders in parallel, each on the operating system it
needs:
- Linux (
blacksmith-16vcpu-ubuntu-2404): the Linux and Windows archives, the Linux and Windows desktop installers, the Git source archive and both self-host images. Windows installers are built inelectronuserland/builder:wineand ship unsigned. - Windows (
blacksmith-8vcpu-windows-2025): only the Windows telemetry collector, and only when its inputs changed. - macOS (
blacksmith-6vcpu-macos-15, environmentsigning): the macOS collectors, the signed and notarized CLI installs (signed-install@darwin-*), the macOS archives packed from them, anddesktop-release@darwin-*. The latter signs the app, notarizes and staples it, makes the zip, blockmap and DMG from the stapled app, then signs, notarizes and staples the DMG. It needs the fiveEXECUTOR_MAC_*secrets; the keychain it makes is temporary and deleted afterwards.
Every notarization waits at most 25 minutes (EXECUTOR_NOTARY_LIMIT_SECONDS). If Apple has not
answered by then, the build stops, nothing is published, and the message names the submission. Re-run
the job: the bytes that were submitted are kept in the store, so the re-run waits on the same
submission instead of submitting again.
Retries happen only for classified transient errors from network services (the store, GitHub, Apple's
ticket service), at most four times, and each one is printed as a retry line and kept in the release
record.
Releases happen when they fall due: six hours after the last release, if main has changed since.
Every such release is a promotion of a candidate built for it.
A candidate is every release product for one commit and the version it would get, built ahead of the
release and kept in the store (candidates/public/<commit>.json records it). A candidate publishes
nothing.
release-candidate.yml runs every 30 minutes (and on pushes to main, which do nothing under this
cadence) and asks bun run ci release due:
- The last release is the newer of the newest published
executor@*release and the newest release record. If six hours have passed since then andmain's head is not that release's commit, a release is due. - The run builds a candidate for
main's head and the next version (about 9 minutes), unless the head already has one. - When the candidate succeeds, the run starts
release.ymlfor that commit, passing the time the release fell due. The release promotes the candidate, and its record counts from that time.
So a release's clock starts at the scheduled check that finds it due; the check runs every 30 minutes,
so up to 30 minutes after the six-hour mark (GitHub may run schedules later still). A release started
by hand from Release (release.yml) for a named commit builds inline when that commit has no
candidate.
bun run ci release due --destination public --event schedule --as-of <time> shows whether a release
would be due at a given time.
The decision is candidateCadence in ci/src/contracts/release.ts, set to when-due. The rule is
candidateDue in ci/src/contracts/release-rules.ts, tested as the invariant
release-candidate-cadence; it also knows every-push and every-two-hours, which were considered
and not chosen.
On 2026-11-26 the old automation on main pushed its version commit Release 2.0.0-beta.80, then
dispatched the release run about 20 ms later. GitHub started that run on the commit before the push,
which still said beta.79. The run built every platform for 17 minutes and failed only at publishing,
because beta.79 was already public. It was counted as a failed attempt of beta.80, which tripped the
five-failures-a-day hold, and beta.80 was never published. Each fault, and what rules it out in this
pipeline:
- A run building a commit or version other than the one decided. No commit carries the version:
decidecomputes it from what is public, and every builder and the publisher use that one answer. The commit is named, not looked up: the candidate run passes its commit torelease.yml, which builds exactly that commit, so a later push tomainchanges nothing.release.ymlruns frommain's workflows while it builds the named commit, sodeciderefuses unless the two.githubtrees are the same. Nothing pushes before dispatching, so there is no push to race. - Finding out "already public" only after everything is built.
decideis the first job, and every builder waits for it. It refuses a version that is public or passed by a newer one, and a commit that is already released, before any machine starts building. A refused run costs about a minute. - Counting a failure against a version it never attempted, and a hold that this trips. There is no
count and no daily limit. Each run records its own attempt (its commit and the version it decided).
The due check starts nothing more for that commit until the attempt succeeds, by re-running its
failed jobs. A new commit on
mainstarts afresh, and nothing has to be cleared. - Waiting for "a release run" rather than the one started. Nothing waits on another run. The candidate run starts the release and ends.
- An automation commit that triggers nothing after it. This pipeline pushes nothing to this repository. It writes to the public repository, the tap, the image registry, npm and the product store. The due check runs on a schedule, not on pushes.
- Recovery broken by an early stop. A resume is a re-run of the failed jobs of the same run: it keeps the run's decision (commit and version), and every publish step reads what is already there and continues. Nothing stops a run because its own version is partly public. A different, later run is never a resume: it decides afresh, and is refused if its version is public or its commit released.
The rules are decisionRefusals and candidateDue in ci/src/contracts/release-rules.ts, tested as
the invariants release-decided-before-building and release-candidate-cadence.
release.yml (Actions → Release → Run workflow, from main, optionally naming a commit) runs:
split:bun run ci release split-checkrefuses to go on unless signing and publishing secrets live in separate environments that deploy only frommain(below).build: the reusable pipeline. Itsdecidejob names the path by what must still be built:- promotion: nothing; the candidate for this commit and version is complete. The release only publishes.
- restamped: only versioned products, because the predicted number was taken. The macOS apps are signed and notarized again; everything version-free is reused.
- inline: some version-free product too, as for a commit with no candidate yet. The macOS builder, with Apple's two notarization rounds per architecture, is then the critical path.
publish(environmentpublish): finish the products from the store, write the release notes, then publish in order (below). It mints a short-lived token for the public repository and the tap from the public release app, and publishes the launcher with the npm token.verify:release-verify.ymlinstalls the release on four systems (below).
bun run ci release publish (ci/src/implementation/publish.ts) publishes a finished manifest
in this order. The order is declared in ci/src/contracts/release-rules.ts, and a step that runs out
of it fails.
- preflight: every channel must name this version or an older one, or nothing changes.
- export: the public source (below) goes to the export branch; the release tag will name it.
- draft: create or find the release on the export commit, then upload the missing assets and
SHA256SUMS. A published release's assets are never replaced. Its body is the release notes. - image: push both image archives by digest and make
:<version>. - release: publish the draft as a prerelease that is not GitHub's latest, once every asset is
there; read
SHA256SUMSback and check that the release tag names the export commit. - npm: publish the launcher, or, if npm already holds the version, check that its integrity is the same. A different archive means the number is taken.
- homebrew: commit the formula to the tap.
- image-channel: move
:beta. - feed: write the desktop channel files, with the notes history, after every file they name is public.
- docs: wait, bounded, for the docs to name the version, and record when they did.
Users are never pointed at something missing: the archives and installers are public before npm, the
formula, :beta and the feed move, and the release tag is created on source that is already public.
No channel moves back, including the export branch, and none moves between versions that cannot be
ordered. Every step can be run again: a publication interrupted at any step is finished by re-running
the failed job, and each step first reads what is already there.
Publishing to public also needs EXECUTOR_PUBLIC_RELEASE_APPROVED=yes, which only release.yml
sets.
| Destination | Release and tags | Export branch | npm | Tap | Image |
|---|---|---|---|---|---|
public |
UsefulSoftwareCo/executor, executor@<v> |
v2-releases there |
npmjs.org | UsefulSoftwareCo/homebrew-tap main |
ghcr.io/usefulsoftwareco/executor-selfhost |
rehearsal |
this repository, rehearsal-<v> |
rehearsal-v2-releases here |
a registry inside the job | branch rehearsal-homebrew-tap here |
private executor-next-rehearsal |
This repository is private; the public repository receives only an export of it. The export of a release is built from the release commit's own files:
scripts/export-public.excludelists paths that stay private (notes/,.github/and a few more).- What remains must lie in the allowed set in
ci/src/contracts/public-export.ts: listed top-level directories and files, plain files only, no secret-shaped name (.env*,*.pem,*.key,id_rsa*,.npmrc,credentials*.jsonand similar) except the listed public certificate, and nothing under.local/,.reference/,.ssh/or.aws/. Anything else refuses the whole export and names every file; nothing leaves. The rule is tested as the invariantrelease-export-only-allowed-files, andbun run ci release export-check [--commit <c>]runs it by hand. - No exported line may hold an account's
workers.devsubdomain, apages.devproject address, a tailnet address or a home directory (privateDetailsin the same file, tested asrelease-export-no-private-details). Such a line refuses the whole export and is named with its file and line, so the next one is refused by the tool, not found by a reader. The check step "public export content" (ci/scripts/check-public-export.ts) runs the same rule over the tree of tracked files on every pull request, so the gate refuses such a line where it is introduced. Two invented examples are named exceptions: the rule's own tests (privateDetailExamples), and exact placeholder values such as/home/runner/(privateDetailPlaceholders), each with its reason. apps/cli/package.jsonand theapps/cliworkspace line ofbun.lockare stamped with the version, so the public tag builds from source as the version it names.- The tree is committed as
Export <commit>onv2-releases, after the branch's tip, by the author of the release commit. The release tagexecutor@<version>is created on it when the release is published, and the release step checks that it names the export. The release commit is named by the export's message and kept in the release record; this repository gets no tag, because the run's token may not create one on a commit that changes a workflow file.
Adding a top-level directory or file to the repository therefore needs a decision: list it in
scripts/export-public.exclude to keep it private, or in publicExportAllowed to publish it.
scripts/export-public.sh exports main to public v2 and runs the same check first.
Public export (public-export.yml) runs it on every push to main, in the public-export
environment. When the check refuses a tree, the script stops before anything is cloned or pushed:
v2 stays at the last good export, and the run fails with an error annotation and a summary naming
every refused file and line. The next push tries again.
Release snapshots use v2-releases so a release cannot race or replace a newer main export. A main export also merges the public pull requests that main ports, named by Public-PR
lines in its commit messages; a release export merges none, because no pull request targets
v2-releases.
After publishing, release-verify.yml runs bun run ci verify on Linux x64 and arm64, macOS
and Windows, installing the release the way users do:
install.sh,install.ps1, the npm launcher and Homebrew, each followed byexecutor --version;- the
.deb; - the macOS archives and DMG under Gatekeeper with the quarantine flag set;
- the Windows installer;
- the self-host image answering
/health; - the previous desktop version updating itself through the feed, with a screenshot before and after.
The proof job builds the proof bundle from that evidence. Verification runs after the clock stops; it
proves a release but does not gate it.
bun run ci release record writes the release record (ReleaseRecord in
ci/src/contracts/release.ts) to releases/<destination>/<version>/ in the store. It holds:
- the trigger and the path;
- every job and product build with its start and duration, and every publishing step;
- the time each surface first served the new version;
- the surfaces it could not time, and why (a rehearsal has no docs site);
- every notarization and retry;
- the
appspublication delay.
bun run ci release records prints them all; the scoreboard reads them.
The clock stops when the install commands in the docs name the new version. The docs read npm's
beta dist-tag when the site is built (apps/docs/release-commands.ts), and the site is built inside
the Cloud bundle of the pull request that lands next. So today the docs follow a release only when a
later pull request, pushed after the release, is merged and deployed; the docs step then records a
partial figure. Making the docs follow a release without that wait is a Cloud change, proposed to its
owners.
New apps pin the apps version in packages/apps/package.json. Every change to
the framework, including the workspace libraries bundled into it, bumps that
version in its PR (and the host protocol when the host boundary changes).
Merging allocates the numbers; the publish job on main publishes them to npm
after the merge. Never publish apps from a branch or by hand; see
publishing apps.
Cloud does not wait for npm. Cloud serves the framework it was built with
from its own bundle to apps that declare exactly that version, so a bump goes
live like any other merge. The cost: between a bump merging and npm serving the
new version (a few minutes when publishing works), an app created on Cloud that
declares that version cannot be installed outside Cloud; npm install fails
with "no matching version". It fails loudly and never installs other code:
versions are immutable, and the check below refuses a publish whose content
differs from the checkout's build, so Cloud's bundled copy and npm's package are
the same bytes. Self-host and Local ship the framework of their own release,
which must already be on npm unchanged.
scripts/releases/apps-published.ts runs after bun run apps:build. It packs
the staged package and compares every file with the published archive of the
same version:
- Apps publish (
apps-publish.yml) runs it with--publishon every push tomainthat changespackages/apps, in thepublishenvironment and only after the split check: an unpublished version is published with--tag beta, then its registry archive is compared with the build file by file; a published one is only compared, and a difference fails the job. The steps are the composite action.github/actions/apps-publish, which a rehearsal can run against its own registry. - Every release and candidate runs it without a flag in its
decidejob, before any builder starts: the CLI, desktop and self-host products bundle the framework at the commit'sappsversion, so that version must already be on npm with exactly this build's files, or the release is refused.
One rule in two halves: a version names one content, everywhere.
- Before the merge, with no network: every pull request runs the
apps-versionstep ofbun run check(scripts/releases/apps-recorded.ts).packages/apps/released.jsonrecords, for each version, the content of the packagenpm packmakes from the build. The step fails when the build differs from what its version records (a change without a bump), or when its version has no entry.bun run apps:recordadds the entry for a new version and refuses to change one already recorded. Two pull requests that take the same number both add that line, so the second to merge conflicts. - After the merge, against npm: what the repository records must also be
what npm serves. Apps publish on
mainpublishes the version, or compares it when npm already has it, and every release and candidate compares it again before building, as above. A version npm holds with other content fails both.
The publish is watched. bun run ci release apps-watch compares the
merged version with npm and stores a record with the merge time, npm's publish
time and the minutes between them (releases/apps/<version>.json in the product
store; a product release's record carries the same figures for the framework
it ships). The Apps publication watch workflow runs it on every push to
main that changes packages/apps/package.json and every 10 minutes, and the
publish job runs it right after publishing. When the
merged version is not on npm 15 minutes after its merge, the run fails and an
issue titled "apps@ is not on npm minutes after its merge" is opened
(or commented on); it is closed when npm serves the version.
Executor 2 desktop installs update from their own channel feed. The channel is
fixed at build time from the version: 2.0.0-beta.N builds follow beta and
stable builds follow latest. There is no in-app channel switch. Install a stable
build to leave beta.
Executor 1 reads GitHub's release list in the same public repository, so v2
never uses the GitHub provider or electron-updater's default latest*.yml
names. ci/src/contracts/release.ts defines a generic feed in the published
prerelease executor-v2-desktop-updates:
| Platform | Beta file | Stable file |
|---|---|---|
| macOS | executor-v2-beta-mac.yml |
executor-v2-latest-mac.yml |
| Windows | executor-v2-beta.yml |
executor-v2-latest.yml |
| Linux x64 | executor-v2-beta-linux.yml |
executor-v2-latest-linux.yml |
| Linux arm64 | executor-v2-beta-linux-arm64.yml |
executor-v2-latest-linux-arm64.yml |
Each file lists absolute URLs to the versioned release assets and their blockmaps. The feed release never becomes GitHub's latest release, so v1 installs never see it. Its first publication creates it on the release's public commit.
Every desktop app carries app-update.yml naming its channel's feed: electron-builder writes it for
Windows and Linux, and the desktop recipe writes it into the macOS app before it is signed. A macOS or
Windows build without it fails. Squirrel.Mac installs only signed updates. Linux checks only inside the
AppImage; .deb installs update from the download page.
Publishing updates the channel after the versioned release is public.
feedFiles in ci/src/implementation/publication.ts checks every platform's update entries against
the installer bytes in the manifest, merges the macOS arm64 and x64 entries, and writes the files.
A stable release writes latest and moves beta forward unless beta already
holds a newer version. Rerunning the upload replaces the same files. To roll a
channel back, publish a newer fixed version; installs never downgrade.
The app checks 15 seconds after launch and every four hours, downloads quietly, then offers Restart or Later once per version. Updates → Check for updates… checks at once and offers a version declined earlier. The backend stops before installation. Updates never install on quit.
Get explicit approval for the v2 stable release. A stable release is run with an explicit version;
next-version only ever computes betas. npm already serves executor@2.0.0:
it was published on 2026-03-16 from a stale historical tag and is deprecated.
npm never accepts a version twice, so a release numbered 2.0.0 cannot be
published, and the publish job's preflight refuses it before anything moves. The
first stable release needs a number above the betas that npm does not hold; the
choice is the owner's. The version, tags, filenames
and links change together. The fixed desktop identity com.usefulsoftware.executor.v2,
product name Executor 2, profile Executor v2, and CLI data directory
~/.executor/v2/cli remain unchanged. Stable publication writes the desktop
latest channel and moves beta installs forward. Marking v2 as GitHub's latest
release also changes what Executor 1's updater reads; decide v1's path before cutover.
The product archives include private workspace packages and carry the release's version, written
into runtime/release.json when an archive is packed.
Two packages leave this repository for npm, each by its own path; every workspace package is private and ships only inside a product.
executor, the launcher, is a release product. The release pipeline publishes it in itsnpmstep with the version the release chose.apps, the app framework, is versioned by the bump topackages/apps/package.jsonin the pull request that changes it, and published frommainbyapps-publish.yml(above).
Nothing else versions or publishes a package.
The pipeline was rehearsed before the first real release against the rehearsal destination
(private releases and tags rehearsal-* in this repository, the branches rehearsal-v2-releases and
rehearsal-homebrew-tap, the private image executor-next-rehearsal, an npm registry inside the
job), through a workflow that ran on pushes to one branch. That workflow and the branch's right to
write to the product store and the scoreboard were removed at cutover; the destination stays in
ci/src/contracts/release.ts for verification's own use. To rehearse again, add a workflow that calls
release-pipeline.yml with destination: rehearsal, give its branch a write rule in
productStorePolicy and in the scoreboard's release-record rule, redeploy both stores, and remove
all three afterwards. macOS signs in the signing environment only.
apps/hosted/cloud/alchemy.releases.ts owns the release secrets as code, in two environments that
deploy only from main (releaseEnvironments in ci/src/contracts/release.ts):
signing: the fiveEXECUTOR_MAC_*secrets, used only by the macOS builder;publish:NPM_TOKEN,PUBLIC_RELEASE_APP_CLIENT_IDandPUBLIC_RELEASE_APP_PRIVATE_KEY, used only by the publish jobs ofrelease.ymlandapps-publish.yml.
Signing never shares an environment with the npm token or the app that writes to the public
repository. Only release.yml and apps-publish.yml name the publish environment or its secrets,
and the macOS builder names signing when release.yml or release-candidate.yml runs the pipeline.
No job that can name signing or publish runs unless split-check has passed earlier in the same
run, so nothing runs with those secrets, or creates an empty environment, before the split is
applied. The check step "release environments" (ci/scripts/check-release-environments.ts, rule in
ci/src/contracts/release-environments.ts) reads every workflow, follows reusable workflows with the
inputs their callers give, and fails on any job that breaks this. Plan and apply the stack with bun run releases:plan and
bun run releases:deploy (values from the owner's vault through .env.releases.op), then delete the
old combined release environment.
Holding releases for a person. PUBLISH_ENVIRONMENT_REVIEWERS (comma-separated GitHub logins, in
.env.releases.op; unset by default) makes the stack set them as required reviewers on publish.
Every job in publish (a release's publish job, the apps publish job) then waits for one of them
to approve. Set it in the stack, not by hand: the stack's update is a full PUT of the environment,
so a reviewer added by hand is removed the next time publish is reconciled. The stack also adopts an
environment that already exists under the same name.
The product store needs no stored credential. On a runner, the job's OIDC token is accepted: any run of
this repository may read, but only the release workflows on main may write
(productStorePolicy.writeWorkflows). By hand, the existing Cloudflare API token is accepted when
Cloudflare confirms it can already reach the bucket. Objects expire 14 days after upload, except
release records (400 days). Deploy or remove the store with bun run --cwd ci product-store:deploy /
product-store:destroy.
Each public release's notes list what changed since the release before it, then
the install instructions at the top of
the release scripts' README. scripts/releases/release-notes.ts
writes them in the publish job, before anything is published: the Markdown becomes the release's
body, and its history of the last ten releases becomes the desktop feed's releaseNotes. The
previous release is the newest release tag below this version in the destination's release
repository, and its source is the Export <commit> commit that tag names. They are not GitHub's
generated changelog, which would list private pull requests and their titles.
The notes list only changes whose squashed commit on main has a line
Release-note: <text>, and that text is all they say about the change. Pull
request titles stay private: the notes never print one, nor does any warning
the script writes. Release-note: none is the same as no line.
A line counts only when Release-note: starts a line of the message's body:
not indented, not quoted with > (as a revert may quote the message it
reverts) and not inline. A commit message that holds <, [, $, ``` or
~~~ anywhere, title included, has no notes at all, because HTML, a link
definition, math or a code fence can hide a line from whoever reads the message
rendered; the job log warns with the commit and the character. The one
exception is a line that is a co-author trailer and nothing else, anywhere in
the message, since a squash joins its commits' messages and a port's own
trailers sit in the middle: Co-authored-by: <name> <address> (the key in any
case), then only spaces, where the name holds no <, >, [, ], $,
backtick or control character but may end [bot], and the address, the line's
only <...>, is <local@host> with a local part of letters, digits and
._+- (a bot's ending [bot]) and a host of letters, digits, dots and hyphens.
Any other < or [, even on a line that only starts like a trailer, still
drops the notes. So write an
example note in words, not in a code block or comment. Any other line that
holds Release-note: is not counted, and the job log warns with its commit and
line number. When a change has several lines that count, each is listed, once,
in the order written; none among them is skipped. A line cannot be withdrawn
by a later one, so reword or drop the commit before merging instead.
A note may start with the kind of change it is: Feature: , Improvement:
or Fix: (the word in any case, then a colon and exactly one space, not a
tab or two spaces, which leave the note refused), as in
Release-note: Improvement: Search answers faster. The kind is not part of the
note: it is cut off first, and the rules below apply to the text after it,
which must itself start with a letter or a digit and is counted against the
300 characters without the kind. It is never published, in the release, the
desktop feed, Cloud's notes or anywhere else. A note without one is a fix. A
kind with no note after it, or with none, is refused. Cloud's What's new
leads with the newest feature or improvement of its notes, never a fix; with
neither it shows a plain line, and its panel lists every note, fixes included,
in order. So write Feature: for something new and Improvement: for
something that already worked and now works better, and Fix: or nothing
for something that was broken. Mark a note for what it is, and never reword a
fix to sound like a feature. --check prints the kind it counted for each
line. scripts/releases/note-kinds.ts gives one note merged before kinds
could be written its kind by hand, since a commit message on main cannot change;
it is a stopgap, so never add to it, and delete it once that commit leaves
Cloud's 30 days (the file says when).
scripts/releases/cloud-lead.ts can pin the note What's new leads with, by the
hash --check prints, whatever its kind and however many newer notes there are;
the pinned note stays in the panel, in its dated place, while it is pinned. When
the pinned note is not among Cloud's notes of the last 30 days, the lead falls
back to the rule above, and --check and the deploy warn. Delete the pin's line
to remove it.
A note is published only when it is plain prose, and then exactly as written.
It may hold only ASCII letters, digits, spaces and these punctuation marks:
. , ; : ! ? ' " ( ) -. It must also:
- start with a letter or a digit, and not like a numbered list (
1.,1)); - have a colon only before a space or at its end, so no
:emoji:orscheme:; - have a dot only at the end of a sentence or between digits (
1.5), never inside a word as in a host name (example.com,www.x); - join no letters to digits with a hyphen (
GH-123,ABC-123); - hold no whole word of 7 or more hex characters or digits, which GitHub links
when it names a commit (so
deadbeef,defacedand1234567are refused, and a number is written1,000,000); a word that only holds such a run, such asfeedback, is fine, because GitHub links a commit only as a whole word; - name no
GHSA-advisory and no private repository; - be at most 300 characters.
So a note holds no @, #, /, <, >, [, ], &, *, _, ~, |,
backslash, backtick, typographic quote or dash, accented or non-Latin letter,
emoji or invisible character: no mention, issue or pull request reference,
owner/repo, URL, email address, code, HTML or Markdown. Write a command or a
name in words. Any other note is left out whole, never rewritten or cut, and
the job log warns with its commit, its line number and the first rule it
breaks. All listed lines together hold at most 10,000 characters: once a
change's lines would pass that, it and every later change are left out and
counted, with a warning. Neither stops the release, because a commit message on
main cannot be changed.
A note is shown to every product its change reaches: Cloud when it changed a
file a Cloud deploy reads that is not only another product's, and the CLI and
desktop app or the self-host image when it changed a package that one is built
from, other than its scripts, tests, fixtures and Markdown. When the users of a
product it reaches would not notice the change, or users of one it does not
reach would, add an entry to scripts/releases/note-audiences.ts in the same
pull request: the note's hash and the products it is for. --check
prints each note's audience, why, its hash and how to
change it.
A release lists a line under All installs, CLI and desktop, or Self-host by that
audience. A line on a change to nothing a release ships, such as Cloud-only
code, CI or tooling, that no entry names is not listed, and the job log warns
with the commit. A port of a public pull request with a line is listed whatever
it changed, unless an entry names an audience without the CLI and desktop app or
the self-host image, and it links it and thanks its contributors by GitHub
handle. That credit is the one place the notes hold a link and a mention, and it
is safe because it is built only from a Public-PR: line that names
UsefulSoftwareCo/executor#<number> exactly and from handles in
users.noreply.github.com co-author addresses that match GitHub's handle rule,
never from free text, so it can only point at a public pull request and the
people who wrote it. Anything else gets no credit and a warning in the job log,
and the note is listed as if the change were no port. A revert and the change it
reverts cancel when both are in the release, newest first, so a reverted revert
cancels nothing and the change it restored is listed. Every change not listed is
counted in one line. A release with no line at all says "No release notes were
written for this release." and still publishes. The notes link nothing else: no
compare view, commit or private pull request.
Warnings name commits only, never a title or a note's text. The notes reach the public repository only as the release's body, never as an asset.
Write the line for a change a user of Cloud, the CLI, the desktop app or the
self-host image would notice: one plain sentence saying what changed for them,
in the words above. Name no customer, organization or reporter, use no internal
names, and say nothing about a security problem not yet fixed and disclosed. Put
it in the body of a commit message on the pull request's branch, not only in the
pull request's description: this repository squashes with the commits' messages
as the body (squash_merge_commit_message: COMMIT_MESSAGES), so the description
never reaches main.
To see a release's notes without publishing, run
EXECUTOR_RELEASE_DESTINATION=public node scripts/releases/release-notes.ts --version <version> --to <commit>
from a checkout of main with its history.