Skip to content

chore(release): /release Check #11 (what-weve-built) reads version pre-bump — same ordering no-op fixed for README in #685 #687

Closed

Description

@admarble

Problem

The /release pre-flight Check #11 (docs/internal/what-weve-built.md version stamps) at .claude/skills/release/SKILL.md:104-119 reads the release version from package.json before the version bump happens at Step 4 (SKILL.md:198):

# 11. Check docs/internal/what-weve-built.md is up to date  (line 104, in Pre-flight)
current=$(node -p "require('./package.json').version")   # reads PREVIOUS release version

Because pre-flight runs before Step 4, current is the previously released version, not the one being released. what-weve-built.md's own version stamp is updated later at Step 4.6 (SKILL.md:226). So at pre-flight time both still hold the prior version → they match → the warning never fires for the release in progress. It only catches a stamp left stale by a previous release (a lagging signal), not the current one.

This is the same ordering bug fixed for the README "What's new" check in #684 / PR #685, where the check was relocated to a new post-bump Step 4.65. Check #11 was left untouched there as out-of-scope.

Why it matters

The intent of Check #11 is "warn if what-weve-built wasn't updated for the version you're releasing." As written it can't do that under the documented step order — it's effectively a no-op for the in-progress release, exactly like the pre-#685 README check.

Proposed fix

Relocate the title/ASCII version-stamp comparison from the pre-flight Documentation Checks block to a post-bump step (alongside or just after Step 4.6, which already computes new_version after the bump), comparing the stamps against new_version. Leave a pointer note where it currently lives (mirroring the #685 pattern). Warn-only semantics unchanged.

Acceptance criteria

  • what-weve-built.md title + ASCII version-stamp checks run after the Step 4 version bump and compare against the new version.
  • The check warns when what-weve-built.md stamps omit/mismatch the version being released (verified by simulating a stale stamp).
  • Pointer note left at the former pre-flight location.
  • Single skill copy — no mirror sync needed (.claude/skills/release/ only).

Context

Activity

  1. added
    documentation
    on Jun 1, 2026
  2. admarble commented on Jun 1, 2026

    @admarble
    ContributorAuthor

    Implementation Progress (/exec)

    Relocated /release Check #11 (what-weve-built version stamps) from pre-flight to a post-bump Step 4.63, mirroring the #685 fix for the README "What's new" check.

    AC Coverage

    AC Description Status
    AC-1 Stamp checks run after Step 4 bump, compare against new version ✅
    AC-2 Warns when stamps omit/mismatch the version being released ✅ (verified via stale-stamp simulation)
    AC-3 Pointer note at former pre-flight location ✅
    AC-4 Single skill copy — no mirror sync ✅

    Verification

    • npm run lint:skill-calls → No violations
    • Simulated the relocated check against the real docs/internal/what-weve-built.md:
      • Releasing 2.4.0 (stamps match) → no warnings
      • Releasing 2.5.0 (stamps stale at 2.4.0) → 2 warnings (title + ASCII art)

    Files Changed

    • .claude/skills/release/SKILL.md (+30 / -20)

    PR

    #688

  3. admarble commented on Jun 1, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #687 (Simple Fix)

    Size Gate

    Check Value
    Diff size 50 lines (threshold: 100)
    package.json changed No
    Security-sensitive paths No
    Decision Inline checks

    Markdown-only, single-file change (.claude/skills/release/SKILL.md). Went one level deeper than Simple Fix since the issue's whole point is that a relocated shell check fires correctly — verified AC-2 against real corpus.

    AC Coverage

    AC Description Status Notes
    AC-1 Stamp checks run after Step 4 bump, compare against new version ✅ MET New Step 4.63 (line 310) sits after Step 4 (183) and Step 4.6 (211); reads new_version from package.json post-bump
    AC-2 Warns when stamps omit/mismatch the version being released ✅ MET Ran the relocated check against the real file: match (2.4.0)→silent; releasing 2.5.0 with 2.4.0 stamps→2 warnings; title-only stale→title warning only (proves the two checks are independent)
    AC-3 Pointer note left at former pre-flight location ✅ MET Documentation Checks block (lines 103–107) now points to Step 4.63 / 4.65 with the ordering rationale
    AC-4 Single skill copy — no mirror sync ✅ MET Only .claude/skills/release/SKILL.md exists; no templates/skills/ or skills/ copy

    Coverage: 4/4 AC items fully met


    Quality Metrics

    Metric Value Status
    Type issues (any) 0 OK
    Deleted tests 0 OK
    Files changed 1 OK
    Lines added +30 -
    Lines deleted -20 -
    Security patterns 0 OK

    Code Review

    Strengths:

    Issues: None.

    Suggestions: None.


    Test Coverage Analysis

    Changed File Tier Has Tests? Test File
    .claude/skills/release/SKILL.md Optional (skill prose) N/A -

    Coverage: N/A — skill markdown has no automated test surface; manually exercised the relocated check against real + simulated-stale corpus (3 scenarios, all correct).


    CI Status

    Check State Impact
    validate-skills pass ✅ MET
    typecheck pass ✅ MET
    validate-plugin pass ✅ MET
    build (22.x) pending ℹ️ informational

    Markdown-only diff detected — pending build-matrix check treated as informational. Relaxed: build (22.x). No gating checks pending. PR #688 is MERGEABLE.


    Anti-Pattern Detection

    No code patterns of concern (markdown-only). grep commands in the skill block use || true guards, consistent with repo convention.


    Risk Assessment

    • Likely failure mode: None material. Worst case the warn-only check produces a false negative, but it's proven against the real corpus and the patterns are unchanged from the validated original.
    • Not tested: No automated regression guards skill prose (true of all SKILL.md changes); mitigated by the 3-scenario manual corpus run.
    • Sibling sites considered: Cross-file sibling is the README "What's new" check (Step 4.65), already fixed in feat(#684): /release pre-flight regenerates marketplace README + checks README 'What's new' freshness #685 — no action needed. No other pre-flight check reads a doc version pre-bump.
    • Sibling-line audit: Confirmed no other pre-flight block compares current against what-weve-built.md; the relocated block is the only such check.

    Verdict: READY_FOR_MERGE

    Minimal, focused, correct. All 4 ACs met and verified — AC-2 against real corpus including a partial-stale case that proves the title/ASCII checks fire independently. No regex drift, no orphaned check, sibling pattern consistent with #685, warn-only semantics preserved. All gating CI green (build matrix relaxed for markdown-only diff).

    Documentation

    • N/A — this change is a documentation/release-process refinement; no user-facing README/docs impact.

    Next Steps

    1. Merge PR chore(#687): relocate /release what-weve-built version-stamp check post-bump #688.
  4. added
    ready-for-review
    on Jun 1, 2026
  5. added a commit that references this issue on Jun 1, 2026
  6. added a commit that references this issue on Sep 9, 2026
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

    documentationready-for-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions