Skip to content

Discussion: how should breaking-but-signature-unchanged changes surface to users? #1436

Open

Description

@planetf1

Requirement

When a PR changes behaviour without changing a function's signature or raising an error, existing external callers get silently different results. Mellea currently has no process for making that visible before or after release — it's on the author to notice and call it out, and even then, nothing carries that explanation through to where users would actually see it.

Example

#1422 changes LocalHFBackend.list_adapters() to return registered adapters rather than only loaded ones. Same signature (() -> list[str]), no error, different result for any external caller relying on the old meaning. The PR body documents this clearly under "Breaking changes," but that explanation currently has no path into anything a user would read after the fact.

Mechanisms we already have (and where each falls short)

  • PR title ! convention (e.g. refactor(telemetry)!: move backend tracing onto plugin/hook pattern, refactor(telemetry)!: move backend tracing onto plugin/hook pattern #1181) — signals intent in the title, but it's prose only; the release-notes generator doesn't parse it.
  • .github/release.yml categories — bucket changelog entries by GitHub label (enhancement, bug, documentation, else "Other Changes"). No breaking-change label or category exists. Even if one did, the generator only emits one line per PR (title + author + link) — it doesn't pull in any of the PR body, so the actual explanation still wouldn't reach the changelog.
  • PR body "Breaking changes" section — some PRs (like refactor(backends)!: narrow AdapterMixin verbs, centralize option resolution, add AdapterFunctionMetricsPlugin skeleton #1422) write this out in detail, but it's a per-author convention, not a requirement, and nothing currently reads it back out anywhere.
  • RELEASE.md changelog-sync step — there's already a human review checkpoint before the generated notes merge to main (step 4 in the minor-release flow). This is the only point in the pipeline where a person could reasonably lift detail from a PR body into the published notes — but nothing directs them to do so today.

Open question

We need to agree on a process, not just a label. Some shapes it could take:

  1. Require a ## Breaking changes section (or similar) on PRs carrying a breaking-change label, and make the changelog-sync reviewer responsible for copying that content into the synced notes.
  2. Something more automated — e.g. a script that extracts a specific heading from labelled PR bodies during the sync step.
  3. Decide breaking-but-silent changes don't belong in the changelog at all, and should instead go in a separate "Migration Notes" doc per release.

Filing this as a discussion rather than a fix — want agreement on the mechanism before opening any PR against .github/release.yml or RELEASE.md. Once settled, a follow-up issue should apply it retroactively to #1422's list_adapters() change.

Activity

  1. psschwei commented on Jul 24, 2026

    @psschwei
    Contributor

    xref #1305

  2. added
    question
    p2
    needs-design
    on Aug 10, 2026
  3. added
    documentation
    on Nov 2, 2026
  4. skritosss commented on Nov 25, 2026

    @skritosss
    Contributor

    I suggest piloting the manual path for one release before adding extraction automation. On a silently breaking PR, keep the existing bang convention and record three things in the PR body: previous behavior, new behavior, and what callers should change. At changelog sync, the reviewer checks that the user-facing notes carry those three facts, not just the PR title.

    #1422 would be a good first example: the behavior that changed is the set returned by list_adapters(), even though the signature stayed the same. Would you prefer a short Breaking Changes section in the published changelog, or a link from it to a per-release migration note? I am happy to take the agreed follow-up once the location and review owner are settled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationneeds-designp2question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions