Skip to content

test: gate version anchors and CHANGELOG entries in npm test (#22) - #30

Merged
lukemaj merged 3 commits into
mainfrom
docs/22-version-gate
Sep 29, 2026
Merged

lukemaj merged 3 commits into
mainfrom
docs/22-version-gate

Conversation

@lukemaj

@lukemaj lukemaj commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What: npm test now fails when package.json, .claude-plugin/plugin.json, the CHANGELOG.md heading and a v* tag on the commit disagree on the version, or when docs/, case-studies/, skills/ or examples/ change without a CHANGELOG.md change. CHANGELOG.md starts at 0.2.0 with tonight's cleanup.
Why: The version lived in two files with no check that they matched or matched a tag, and nothing recorded what changed for readers.
So what: Luna max review of this head, then the user merges. Tagging v0.2.0 stays with the user (a tag is a release artifact).

Closes #22
Refs #7

Changes

versionctl versus a script

Chose three small scripts over AgentsMD versionctl. versionctl needs a root VERSION file, Python 3.11 and its own code in this repo or fetched in CI (tools/versionctl/README.md at toolboxmd/agentsmd a14d823); it lives in another repository, so CI here would have to vendor or clone it. It does not check that a reader-visible change touched CHANGELOG.md, the gate this Issue needs most. The scripts need only Node and Git, which CI already has. Recorded on #22.

Proof

  • npm ci && npm test under Node v22.23.1 at this head: exit 0; OK: build-llms, OK: check-docs-links, OK: check-llms-coverage, OK: check-version-and-changelog, all other scripts pass.
  • Each fixture failure case fails and prints Fix:; each pass case passes (output in the test).
  • bash scripts/bump-version.sh 0.2.0 on the tree leaves every file unchanged.
  • CI on this PR: pending at time of writing.

Elon record

  • Requirements and who asked: user, 2026-05-06 drift draft G1-G2 (version anchors agree, changelog required for doc changes); Gate version anchors and CHANGELOG entries in npm test #22 acceptance criteria; planner, 2026-09-29: seed 0.2.0 with the cleanup and fold in Make the README, overview, AGENTS.md and loader Skill state the current scope and route by action #14's README follow-up.
  • Deleted: versionctl adoption and a VERSION file; major/minor/patch arithmetic in the bump script (the author picks the level); the draft's root CLAUDE.md and Recent Changes cap; a package-lock.json check (npm writes it with package.json); past-version tags.
  • Bottleneck: nothing checked the two version files, and CI's shallow checkout had no base or tags to check against.
  • Checked myself: ran npm test and every fixture case; read versionctl's launcher, README and AgentsMD's .version-policy.json; confirmed both version files and the lockfile say 0.2.0 and the repo has no v* tag; read the merged PR bodies and file lists for the changelog entries; compared the README blurbs with pages 01 to 04 after docs: activation and budget pages match measured behavior (#12) #28.

🤖 Generated with Claude Code

lukemaj and others added 3 commits September 30, 2026 00:05
Adds check-version-sync.sh (package.json, .claude-plugin/plugin.json,
a CHANGELOG.md heading and any v* tag on HEAD agree), check-changelog-updated.sh
(docs/, case-studies/, skills/ or examples/ changes need a CHANGELOG.md change
against the PR base), bump-version.sh, a self-testing fixture test, CI with full
history and tag runs, CHANGELOG.md seeded with 0.2.0, the bump rule and tag
step in AGENTS.md, and README descriptions of pages 03 and 04 that match #12.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@lukemaj
lukemaj force-pushed the docs/22-version-gate branch from 34b13f2 to 0bdb8ef Compare September 29, 2026 22:06
@lukemaj
lukemaj merged commit 0d5e6bc into main Sep 29, 2026
2 checks passed
@lukemaj
lukemaj deleted the docs/22-version-gate branch September 29, 2026 22:07
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.

Gate version anchors and CHANGELOG entries in npm test

1 participant