Skip to content

ci: check-changelog-parity --check-bump is structurally blind to a version collision at an already-published version #1559

Closed

Description

@kyle-sexton

Summary

scripts/check-changelog-parity.sh --check-bump <base> cannot detect a plugin whose version has
collapsed onto a version the base branch already published. The check's subject is plugins whose
version changed
; a collision is precisely the case where the version did not change, so the
plugin is never inspected. The gate reports success both before and after the defect.

This is structural, not a missed edge case. No input makes the current check notice the collision.

Concrete instance

Found on #1544 (ci/1510-enable-staged-portability-classes) while it was in flight.

plugins/claude-ops/.claude-plugin/plugin.json read 0.21.4 — byte-identical to main's published
0.21.4 — while the branch still changed four shipped claude-ops files:

$ git show origin/main:plugins/claude-ops/.claude-plugin/plugin.json | grep -m1 version
  "version": "0.21.4",
$ grep -m1 version plugins/claude-ops/.claude-plugin/plugin.json
  "version": "0.21.4",

$ git diff origin/main...HEAD --stat -- plugins/claude-ops/
 plugins/claude-ops/CHANGELOG.md                                  | 9 +++++++++
 plugins/claude-ops/skills/morning-brief/morning-brief.test.sh    | 3 ++-
 plugins/claude-ops/skills/morning-brief/scripts/morning-brief.sh | 6 ++++++
 .../claude-ops/skills/observability/claude-observability.test.sh | 5 +++--
 plugins/claude-ops/skills/observability/scripts/clean.sh         | 5 +++--

The branch's new CHANGELOG bullet had been appended into the existing ## [0.21.4] section, which
main published while the branch was open. Every consumer already on 0.21.4 would have been
stranded — the plugin's shipped scripts changed, and nothing told them to update.

--check-bump origin/main reported clean throughout:

Every plugin whose version changed vs origin/main has a '## [<version>]' CHANGELOG.md entry.

This is a per-plugin trap, not a whole-PR one. The same PR touched five plugins; the other four
(context-guard 0.3.0→0.3.1, kindle-dedrm 0.6.2→0.6.3, skill-quality 0.12.0→0.12.1,
work-items 0.25.3→0.25.4) were all strictly greater than main and perfectly fine. One collision
among five passed unnoticed because the gate's population is defined by the very field that failed.

Fixed on that PR by hand in aa062ec9 (bump to 0.21.5, move the bullet to its own heading) — but
it was found by an ad-hoc manual check, not by any gate, which is the point of this issue.

The rule that would have caught it

Current rule:

every plugin whose version changed must have a matching CHANGELOG entry

Proposed rule:

every plugin with a source diff vs main must have a version strictly greater than main's

The current rule polices consistency between two fields the author already changed. The proposed
rule polices the thing consumers actually depend on — that shipped content and version number move
together. The collision case is invisible to the first and caught by the second.

Why this is a design pass, not a one-line change

Deliberately not implemented in-flight. Widening a shared gate mid-drain has its own blast
radius, and the rule above has a real false-positive surface that needs deciding first:

  • A plugin whose only diff vs main is a CHANGELOG typo fix would newly demand a version bump.
  • Same for a comment-only edit, a test-only edit, or a formatting pass — each is a "source diff" by
    the naive definition but arguably not a consumer-visible change.

So the design question is what counts as a bump-demanding diff. Candidate shapes: exclude
CHANGELOG.md from the diff set; classify by path (docs/tests vs shipped runtime); or keep it broad
and lean on an explicit no-bump: annotation the way the portability gate uses portability-ok:.
Each has a different false-positive/false-negative trade and needs a measured survey of the existing
corpus before landing — the same discipline #1491 applied to the ACTIVE/STAGED split.

Wider pattern worth naming

This is the fourth instance recently of a gate reporting success without actually looking at the
thing it claims to police:

  1. contract-slice-prune-gate passing over roots it never examined (fix(ci): contract-slice prune gate can report success over a root it never examined #1444).
  2. stale-path-verify emitting status: ok for a check that never ran.
  3. A BrokenPipeError preempting a deny exit, so a destructive command ran ungated.
  4. This — a version gate structurally blind to the one version defect that strands consumers.

Four point fixes will not address what these share: each gate's success path is reachable without
its subject having been evaluated. That may deserve a single audit across the gate suite — "for each
gate, enumerate the inputs on which it reports success without having examined its subject" — rather
than four independent patches. Filing that observation here rather than as a fifth issue, since the
right first step is deciding whether the audit is worth doing at all.

Related


Filed from a PR-drain sweep; found by a manual version-monotonicity check while verifying #1544,
not by any gate.

Activity

  1. added
    needs-triage
    on Jul 26, 2026
  2. kyle-sexton commented on Jul 26, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage: verified → briefed, human-gated

    Category: Bug (structural blind spot in a CI gate), with a design decision attached.

    Verification — accepted from the reporter's recorded evidence, not re-reproduced. The claim is
    structural and self-demonstrating rather than environment-dependent: --check-bump's population is
    "plugins whose version changed", and a collision onto an already-published version is by definition
    a plugin whose version did not change, so it is never inspected. The report carries the concrete
    instance — a plugin manifest byte-identical to the base branch's published version while four
    shipped files in that plugin changed, with the gate reporting clean throughout, hand-fixed on that
    PR rather than caught by any gate. I did not re-run the historical branch state; the reasoning does
    not depend on it.

    Redundancy check. Searched the CI script surface for an existing version-monotonicity check
    against the base branch: the changelog-parity gate is the only version-aware gate, and it polices
    consistency between two fields the author already changed, not monotonicity. Nothing else covers it.
    No docs/out-of-scope/ ledger in this repo.

    Why human-gated. The report is explicit that this is a design pass, and the open question is
    genuinely open — it is a definition, not a defaulted choice:

    • The proposed rule ("every plugin with a source diff vs the base must have a version strictly
      greater") has a real false-positive surface. A changelog-only typo fix, a comment-only edit, a
      test-only edit, or a formatting pass each counts as a "source diff" under the naive reading but
      arguably is not consumer-visible.
    • The candidate shapes — exclude the changelog from the diff set, classify by path, or keep it broad
      behind an explicit opt-out annotation — carry different false-positive/false-negative trades and
      the report asks for a measured corpus survey before landing, following the discipline a prior
      ACTIVE/STAGED split used.

    Widening a shared gate that every plugin PR must pass is not maintainer-vetoable after the fact: a
    wrong definition blocks unrelated PRs repo-wide the moment it lands.

    Second decision in the body, recorded and left with the human. The item also asks whether the
    recurring "gate reports success without having examined its subject" pattern — four recorded
    instances — deserves one audit across the gate suite instead of four point fixes. The report
    deliberately files that observation here rather than as a fifth issue "since the right first step is
    deciding whether the audit is worth doing at all." That is a scope decision for a maintainer; triage
    is not splitting it out, because filing it as its own item would presuppose the answer.

    Labels applied: priority: medium (the instance was hand-fixed; the gate gap is latent until
    the next collision), needs-human; raw marker cleared.

  3. added
    needs-human
    and removed
    needs-triage
    on Jul 26, 2026
  4. kyle-sexton commented on Aug 12, 2026

    @kyle-sexton
    MemberAuthor

    Drain: tracked by open PR #2447 fix(ci): fail --check-bump on published-version reuse without manifest bump (no duplicate opened).

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

    needs-human

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions