Skip to content

feat(#707): add warn-only README "What's new" freshness gate to /release - #714

Merged
admarble merged 2 commits into
mainfrom
feature/707-add-warn-only-readme-what-s-new-in-x-y-freshness-g
Jun 4, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/707-add-warn-only-readme-what-s-new-in-x-y-freshness-g

Conversation

@admarble

@admarble admarble commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds Step 4.66 to .claude/skills/release/SKILL.md — a warn-only gate that, after the version bump, compares the README's latest ### What's new in <major>.<minor> heading against the minor line being released.
  • Keys on the minor line (not full semver): a patch release (2.6.0 → 2.6.1) stays silent against a matching heading; a stale minor/major fires a warning. Warn-only, never auto-edits the README.
  • Mirrors the sibling warn-only freshness gates (Step 4.63 what-weve-built, Step 4.65 CHANGELOG). Indexes the new step in the pre-flight Documentation Checks note and adds a CHANGELOG entry.

Closes the gap that shipped a stale "What's new in 2.5" heading in the v2.6.0 tarball (fixed manually in 18c2d42).

Pre-PR AC Verification

AC Description Status Evidence
AC-1 Warn-only gate after version bump compares README heading vs minor line ✅ SKILL.md Step 4.66
AC-2 Warn-only (does not block), matching 4.63/4.65 ✅ echo "Warning…", no exit/return
AC-3 Patch release does NOT fire when heading matches minor ✅ Fixture test: 2.6.1 + "2.6" → silent; verified on real repo
AC-4 Minor/major with stale heading DOES fire ✅ Fixture test: 2.7.0 & 3.0.0 vs "2.6" → warn
AC-5 Mirrored across all skill copies carrying release/SKILL.md ✅ Only .claude/skills/release/SKILL.md exists; that one file edited
AC-6 No README edit auto-applied — gate only warns ✅ No Edit/write to README; output is a warning string only

Test plan

Closes #707

🤖 Generated with Claude Code

Add Step 4.66 to .claude/skills/release/SKILL.md, after the sibling
CHANGELOG gate (4.65). It runs after the version bump and compares the
README's latest "What's new in <major>.<minor>" heading against the
minor line being released:

- Keys on the minor line, so a patch release (2.6.0 -> 2.6.1) stays
  silent against a matching heading; a stale minor/major fires a warning.
- Warn-only (echo, no exit); never auto-edits the README.
- An -n presence guard keeps the gate silent if the section is ever
  removed again (the every-release false-positive #701 fixed).

Also index the new step in the pre-flight Documentation Checks note and
add a CHANGELOG entry.

Closes #707

Entire-Checkpoint: b89054b6a164
…prose matches

Anchor the grep to a markdown heading (^#+) so a 'What's new in X.Y'
mention in prose body text can't be misread as the section, and take the
numerically-highest minor (sort -t. | tail -1) instead of head -1 so the
result no longer assumes the README keeps blocks newest-first.

Patch-silent / minor-fires behavior (AC-3/AC-4) unchanged; verified
against the live README and an out-of-order + prose-mention fixture.
@admarble
admarble merged commit e8a9c92 into main Jun 4, 2026
4 checks passed
@admarble
admarble deleted the feature/707-add-warn-only-readme-what-s-new-in-x-y-freshness-g branch June 4, 2026 04:05
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.

Add warn-only README "What's new in X.Y" freshness gate to /release skill

1 participant