Repository navigation
Description
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:
contract-slice-prune-gatepassing over roots it never examined (fix(ci): contract-slice prune gate can report success over a root it never examined #1444).stale-path-verifyemittingstatus: okfor a check that never ran.- A
BrokenPipeErrorpreempting a deny exit, so a destructive command ran ungated. - 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
- ci: enable staged shell-portability-lint classes (date -d, stat -c) #1544 (where the collision occurred and was hand-fixed in
aa062ec9) - ci: no gate covers shell portability — a GNU-only \b nearly shipped a fail-open security predicate #1491 (the ACTIVE/STAGED corpus-survey discipline this fix should follow)
- fix(ci): contract-slice prune gate can report success over a root it never examined #1444 (sibling instance of the same success-without-looking shape)
Filed from a PR-drain sweep; found by a manual version-monotonicity check while verifying #1544,
not by any gate.
Activity
kyle-sexton commentedon Jul 26, 2026
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:
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.
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 untilthe next collision),
needs-human; raw marker cleared.fix(ci): fail --check-bump on published-version reuse without manifes…
kyle-sexton commentedon Aug 12, 2026
Drain: tracked by open PR #2447 fix(ci): fail --check-bump on published-version reuse without manifest bump (no duplicate opened).
fix(ci): fail --check-bump on published-version reuse without manifes…
fix(ci): fail --check-bump on published-version reuse without manifes…
refactor(scripts): dissolve incident history in gate headers (group 5)