Skip to content

CHANGELOG.md is the release's: notes live in PR descriptions, and CI ignores the file - #2697

Merged
davidmckayv merged 6 commits into
mainfrom
ci/changelog-is-the-releases
Dec 2, 2026
Merged

davidmckayv merged 6 commits into
mainfrom
ci/changelog-is-the-releases

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

CHANGELOG.md is now written by the release and nothing else, and CI never reacts to it, nor to other prose nothing reads.

  • Release notes live in the PR description. Each PR carries its note under ## Changelog, grouped under a bold heading the way CHANGELOG.md is (**API.**, **Before upgrading.**, ...), or none. The PR template now says so.

  • A check enforces it. CI's new release note job, part of verify (still the only required check), fails a PR that changes CHANGELOG.md, has no note, or deprecates part of the API without naming it in the note with its sunset. The release's own PRs (opened by github-actions[bot] from release/publish/v*, merge-back/v* or main-images/v* in this repo) may write CHANGELOG.md. The check runs last and reads the description then; editing the description after the run re-runs it (release-note-edited.yml).

  • The release writes the section. Create release PR collects the notes of every PR merged since the previous stable release and writes that version's section in today's format, so open.bot/changelog and the announcements read it unchanged. Whatever is under ## Unreleased on main today is folded into 1.2.8's section, so no note is lost; PRs merged before this flow need no note. A missing or unreadable note stops the release naming the PR (edit that PR's description and run it again), and so does a spec deprecation the changelog would leave out.

  • CI ignores CHANGELOG.md. scripts/ci-changes.ts leaves it out of every decision: a PR's CHANGELOG.md change runs nothing (not even the tests that name it), and a merge group that changes only CHANGELOG.md runs no job, image builds included. verify still reports.

  • Prose nothing reads runs nothing. What CI skips, and why each is safe (checked against every test, script, build, lint, Dockerfile and workflow in the tree):

    Skipped Why nothing needs it
    CHANGELOG.md The release writes it. Skipped entirely, even the tests that name it.
    **/*.md (docs, READMEs, AGENTS.md/CLAUDE.md, PR template) Biome formats and lints no Markdown; no build imports one; no Dockerfile copies one.
    docs/** pictures (svg, png, jpg, gif, webp) Shown by the docs only.
    .claude/** (agent skills) Tests cite the skills in comments; none reads a skill file.
    LICENSE, .github/CODEOWNERS, .github/ISSUE_TEMPLATE/** Read by GitHub only.

    Still checked: a doc a test names by path runs that test (docs/agent-frameworks.md runs tests/agent-frameworks-receivers.test.ts); api/** Markdown runs the API job (the accepted breaking changes); docs/cosign.pub (the release signature key) and docs/telemetry-queries.sql are code; a test fixture is code whatever its extension; .editorconfig is code (Biome formats by it). Fixed along the way: mobile/AGENTS.md no longer runs the phone app's type check, a merge group of docs runs only the tests that name them, and Markdown no longer starts the Desktop workflow or the macOS/Windows signing dry runs (docs/releasing.md and docs/windows-signing.md were triggers).

  • The deprecation-in-changelog test moves. shared/tests/api-deprecations.test.ts no longer reads CHANGELOG.md; the same rule is held on the PR's note and again when the release is prepared.

  • Not added: CHANGELOG.md merge=union. GitHub's server-side merges and mergeability check ignore custom merge attributes, and with no PR editing the file there is nothing left to conflict.

Where it runs

CI and the release workflows only. No server, app or database change.

  • New state that outlives a request? None.
  • What happens on the second replica? Not applicable.
  • Anything serialised? None.
  • Anything fanned out to a browser? None.
  • New listener, port, or schedule? None.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row.
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/ but the README's deprecation steps, no app's requests, no database change and no release-policy.json.

Changelog

none

Proof

Tests: scripts/ci-changes.test.ts (CHANGELOG.md alone runs nothing; beside #2654's real files it adds nothing; this tree's real docs, key, fixtures and API Markdown classified; merge groups decided with the real git grep of the tests), scripts/release-note-check.test.ts (#2654's real description and CHANGELOG lines, release v1.2.7's PR #2648, the real spec's deprecations), and scripts/release-collect-notes.test.ts (release 1.2.6 rebuilt from its real PRs). Throwaway PRs on GitHub: linked in the comments.

…ts description

CHANGELOG.md is left out of every decision of scripts/ci-changes.ts, and a merge group that changes nothing else runs nothing. A new release note check, part of verify, refuses a pull request that changes CHANGELOG.md (other than the release's own), has no note under ## Changelog, or deprecates part of the API without naming it there. Editing the description re-runs it.
Create release PR reads the note under ## Changelog in the description of every pull request merged since the previous stable release, merges them by heading with Before upgrading first, and writes the section. Lines still under Unreleased come first, pull requests merged before this flow need no note there, and the release's own pull requests are skipped. A missing or unreadable note stops the run naming the pull request, and so does a deprecation the changelog would not list. A candidate writes its notes under Unreleased; a later candidate or the final reads what was there from the commit the first candidate was cut from. Tested against the real 1.2.6 release.
…signing workflows

Docs were already skipped on pull requests unless a test named them. Now: a test's fixture and docs/cosign.pub are code whatever their names, the phone app's AGENTS.md no longer runs its type check, a merge group of docs runs only the tests that name them, and Markdown no longer starts the Desktop and signing workflows. Each kind was checked against every test, script, build, lint and workflow, and the rule is tested against this tree's files.
@davidmckayv
davidmckayv force-pushed the ci/changelog-is-the-releases branch from 170cf82 to 1b96e8f Compare December 2, 2026 01:39
@davidmckayv
davidmckayv merged commit 7e4384d into main Dec 2, 2026
@davidmckayv
davidmckayv deleted the ci/changelog-is-the-releases branch December 2, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant