Repository navigation
Labels
documentationImprovements or additions to documentationneeds-improvementAC met but improvements recommendedplannedImplementation plan approved
Description
Problem
During the v2.4.0 release, two doc surfaces shipped stale because the /release skill's pre-flight does not cover them:
- Marketplace README artifact (
dist/marketplace/external_plugins/sequant/README.md) was generated from a stale run and still said "Node.js 20+" while its source (scripts/prepare-marketplace.ts) already said 22.12+. It got bundled into the publishedsequant-2.4.0.tgz. (Low user impact — gitignored, not the npm-displayed README — but it shipped.) - Root
README.md"What's new" section was never refreshed for 2.4.0. It listed only 2.3.0-era features, omitted both breaking changes (Node 22.12 floor chore: raise Node engine floor to >=22.12 (drop EOL Node 20), unblock commander 15 #677,-q/-Qflag rebind fix(cli): -q is short for --quality-loop, not --quiet — silently bypasses quiet-mode rendering #658), and still described the runner as a "two-zone TTY grid (append-only events log)" — wording superseded by the feat(cli): replace start/complete event journal with in-place phase-matrix #672 in-place phase matrix.
Both were caught and fixed post-release in follow-up commits (6e1805a, marketplace regen), but they should have been pre-flight gates.
Why it happened
.claude/skills/release/SKILL.md pre-flight checks docs/internal/what-weve-built.md version stamps but has no equivalent for:
- regenerating the marketplace artifact before publish, and
- verifying
README.md"What's new" mentions the version being released.
Proposed fix
Add to the /release skill pre-flight / release steps:
- Regenerate marketplace artifact before publish — run
npm run prepare:marketplaceas a release step (beforenpm pack/npm publish) so the bundled artifact always matches current sources. Optionally diff the generated README's prerequisite/version lines againstpackage.jsonengines. - README "What's new" freshness check — warn (like the existing what-weve-built check) if
README.mddoes not mention the new version in its "What's new" section, prompting the releaser to add a feature group. - (Optional) Stale-version sweep — grep
README.md+ generated marketplace README for the previous version string and the prior Node floor; warn on any hit.
Acceptance criteria
-
/releasepre-flight regenerates (or validates freshness of) the marketplace README artifact before publish. -
/releasewarns whenREADME.md"What's new" omits the version being released. - SKILL.md change mirrored to all skill copies if applicable (
.claude/skills/,templates/skills/,skills/).
Context
- Surfaced during v2.4.0 release (tag
v2.4.0, commitsb1fb323/c827534/6e1805a). - Related: chore: raise Node engine floor to >=22.12 (drop EOL Node 20), unblock commander 15 #677 (Node 22 floor), fix(cli): -q is short for --quality-loop, not --quiet — silently bypasses quiet-mode rendering #658 (flag rebind), feat(cli): replace start/complete event journal with in-place phase-matrix #672 (phase matrix).
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationneeds-improvementAC met but improvements recommendedplannedImplementation plan approved
Activity
admarble commentedon May 31, 2026
Complexity: Standard (3 ACs, 1 directory)
AC Quality Check
Parser found 0 ID-tagged items (issue uses plain
- [ ]checkboxes, noAC-N:prefixes) — IDs assigned inline below.releaseskill exists only in.claude/skills/release/— there is notemplates/skills/release/orskills/release/. So AC-3 is vacuously N/A for this change. (Confirmed viafind . -name SKILL.md -path '*release*'.)Scope Assessment
Non-Goals:⚠️ No explicit Non-Goals section. Implied boundary: this only hardens
/releasepre-flight; it does not changeprepare-marketplace.tsitself (itsREADME_CONTENTtemplate already emitsNode.js 22.12+)..claude/skills/release/)Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1:
/releaseregenerates (or validates freshness of) the marketplace README artifact before publishVerification: Integration Test (manual run) — execute
npm run prepare:marketplace, then assert the generateddist/marketplace/external_plugins/sequant/README.md"Node.js" line matchespackage.jsonengines.node. Plus Manual: the regeneration step is present in SKILL.md beforenpm pack/npm publish.Scenario: Given a stale
dist/marketplace/.../README.md→ When the releaser runs/release→ Then the artifact is regenerated from source before Step 5 (pack), so the published tgz bundles a fresh README.Why it matters:
package.jsonfiles: ["dist", ...]ships all ofdist/(gitignored) into the tgz — the stale artifact shipped insequant-2.4.0.tgzprecisely because it was never regenerated before pack.AC-2:
/releasewarns whenREADME.md"What's new" omits the version being releasedVerification: Manual Test (run the snippet) — point the new pre-flight check at a README missing
$currentin its "What's new" region; confirm it warns. (Mirrors the existingwhat-weve-built.mdversion-stamp warning at SKILL.md:104.)Scenario: Given
README.md"What's new in 2.x" lacksNew in <version>→ When pre-flight runs → Then a warning prints (non-blocking, like the existing doc check).Assumptions: "What's new" is a stable heading (
### What's new in 2.xat README.md:12; entries formatted**New in X.Y.Z:**). Warning-only, not a hard stop — matches existing doc-check ergonomics.AC-3: SKILL.md change mirrored to all skill copies if applicable — N/A
Verification: Manual Test —
find . -name SKILL.md -path '*release*'returns only.claude/skills/release/SKILL.md. No mirror copies exist, so nothing to mirror. Document N/A in the PR.Implementation Plan
Phase 1: Marketplace regeneration gate (AC-1)
npm pack): runnpm run prepare:marketplace.Node.js X+line againstpackage.jsonengines.nodeand warn/fail on mismatch.npm run validate:marketplace(--validate-only) is available for a lighter check.dist/(incl.dist/marketplace/) is shipped viafiles, so regeneration must precede pack/publish.Phase 2: README "What's new" freshness check (AC-2)
what-weve-built.mdblock, SKILL.md:101-120) with a warn-only check: grepREADME.mdfor the$currentversion string within/after the "What's new" heading; warn if absent. Use|| trueon greps (0-match exit-code 1 guard).Phase 3: Mirroring (AC-3)
release.Design Review
.claude/skills/release/SKILL.md— AC-2 in the existing Documentation Checks pre-flight block; AC-1 as a new release Step 4.7 (regeneration is an action, not a read-only pre-flight check, so it belongs in Release Steps before pack).npm run prepare:marketplace) rather than "validate freshness then maybe regenerate" — deterministic, idempotent, removes the staleness class entirely. The optional diff-vs-engines is a cheap belt-and-suspenders check, not the primary mechanism. Rejected: a freshness-only validator that warns but leaves the stale artifact in place — that re-introduces the exact 2.4.0 failure if the releaser ignores the warning.what-weve-built.mdversion-stamp warning already at SKILL.md:104-119 (warn-only,grep -oEversion extraction). AC-1 slots into the numbered Release Steps sequence.What's newheading + version regex, warn-only so a false negative is low-cost.Feature Quality Planning
All standard checks pass. Notable items:
|| trueto avoid exit-code-1 kills (per repo convention).Derived ACs
None.
Open Questions
npm run prepare:marketplace) + optional engines diff. Impact if validate-only: a warning the releaser can skip past, re-shipping a stale artifact (the original bug).Recommended Workflow
Phases: exec → qa (optionally
/verifyto dry-run the new pre-flight snippets)Quality Loop: disabled (single-file skill change, SCOPE_OK)
Reasoning:
documentationlabel, no UI, no new code modules → skiptest/testgen. The deliverable is bash/prose in one SKILL.md;/verifyis the right tool to actually run the new regeneration step + grep checks for human review.Label Review
Current:
documentationRecommended:
documentation(addplannedvia this phase)Reason: Accurate — change is confined to release-process tooling docs/snippets. No
complex/refactorwarranted.Quality Loop: Won't auto-enable (SCOPE_OK, no SCOPE_WARNING).
admarble commentedon May 31, 2026
--- DRAFT GITHUB ISSUE COMMENT (PROGRESS UPDATE) ---
/exec complete — PR #685
AC Coverage
npm run prepare:marketplace) inSKILL.md, before Step 5 pack / Step 9 publish, + warn-only Node-floor-vs-engines diffREADME.md"What's new" omits release version.claude/skills/release/); confirmed viafind . -name SKILL.md -path '*release*'Files Changed
.claude/skills/release/SKILL.md(+33) — only tracked file;dist/marketplace/regen output is gitignoredVerification (run-the-snippet — no code paths added)
New in 2.4.0→ no warning ✅9.9.9→ warning fires ✅npm run prepare:marketplacesucceeds; generatedNode.js 22.12+matches engines>=22.12.0→ no warning ✅Node.js 20.0→ warning fires ✅npm run lintclean;npm run lint:skill-callsno violationsBuild/test skipped: markdown + bash snippets only, no TS/runtime code. Per spec,
/verifyis the suitable follow-up to dry-run the new pre-flight steps.Quality Plan Alignment
N/A — spec's Feature Quality Planning noted no code paths added and no derived ACs.
PR Status
Created: #685
Known Gaps
None. AC-1/AC-2 implemented and live-verified; AC-3 vacuously N/A.
admarble commentedon May 31, 2026
QA Review for Issue #684
AC Coverage
/releasepre-flight regenerates (or validates freshness of) the marketplace README before publishnpm run prepare:marketplacebefore Step 5 (pack) / Step 9 (publish). Regeneration is deterministic — verified live: producesNode.js 22.12+, matchingengines.node >=22.12.0./releasewarns whenREADME.md"What's new" omits the version being released2.4.0→ no warning; simulated2.4.0absent → warning fires.find . -name SKILL.md -path '*release*'→ only.claude/skills/release/. Notemplates/skills/orskills/mirror exists. Vacuously satisfied.Coverage: 2/2 applicable AC items met (AC-3 N/A)
Quality Metrics
any)Single-file markdown change (
.claude/skills/release/SKILL.md). No TS/runtime code; build/test sub-agents not applicable.CI Status
build (22.x)typecheckvalidate-pluginvalidate-skillsCI Summary: 4 passed, 0 pending, 0 failed. (PR #685)
Skill Command Verification
Skill files changed: 1 (
.claude/skills/release/SKILL.md)npm run prepare:marketplacescripts/prepare-marketplace.ts); executed successfullynode -p "require('./package.json')..."Verification Status: Passed
Detection Pattern Verification
New
awk/greppatterns added to skill markdown — verified against the real repo corpus (local files, not GitHub comments):awk "/^#+ What.?s new/{f=1} f"README.md### What's new in 2.xgrep -qF "New in ${current}"README.mdWhat's-new region**New in 2.4.0:**grep -oE "Node\.js [0-9]+\.[0-9]+"Node.js 22.12+→22.1222.12Motivating-example fixtures from issue body (run against the new gates):
Node.js 20+marketplace README → the freshness regex (MAJOR.MINOR) extracts empty on major-only strings and skips the warn. This is correct by design: Step 4.7 regenerates the artifact first, overwriting20+with22.12+, so the freshness check never sees the20+state. The freshness check's real job (template-vs-enginesdrift) was verified: engines bumped to24.0.0vs template22.12→ warn fires ✅.Verification Status: Passed (against the actual post-regeneration corpus)
Risk Assessment
what-weve-built.mdversion-stamp check (same warn-only idiom).what-weve-built.mdcheck) already existed and is unaffected; the two added gates cover the two surfaces that shipped stale in 2.4.0. No other un-gated doc surface in the file.Adversarial Re-Read
Findings: Walked the diff adversarially: (1) ran both gates against the issue's verbatim motivating fixtures — README "What's new" omission warns correctly; the
Node.js 20+fixture is the pre-regeneration state eliminated by Step 4.7, and drift-detection onMAJOR.MINORworks. (2) exec's evidence is genuine post-fix validation, not a bug repro. (3) Process state clean — working tree clean (dist regen is gitignored), branch 0 behind origin/main, PR #685 open with green CI. (4) Sibling sites cited above. (5) Non-Goal honored —prepare-marketplace.tssource is untouched. One non-blocking robustness gap: the freshness regex assumesNode.js MAJOR.MINOR; a future template emitting major-only (Node.js 24+) would silently skip the sanity warn. Low impact (warn-only, secondary to regeneration; a naive broadening would introduce false positives since the comparison normalizes toMAJOR.MINORon both sides) — note, not a blocker.Status: Gaps Found (non-blocking)
CHANGELOG Verification
feat(release):commit)[Unreleased]entryThe
[Unreleased]section is empty; no entry for this change. Per the §10a gate, user-facing changes (release-process behavior) need an[Unreleased]entry. This demotes the verdict fromREADY_FOR_MERGE.Verdict: AC_MET_BUT_NOT_A_PLUS
Both acceptance criteria are genuinely MET (AC-3 N/A), verified live against the real corpus, with green CI. Two non-blocking items hold it back from A+:
[Unreleased]entry (§10a gate) — required for this user-facingfeat:change.MAJOR.MINOR-only; documented above as low-impact, optional.Mergeable after adding the CHANGELOG entry. No AC rework needed.
Documentation
[Unreleased]entry — add before merge (see below).Next Steps
[Unreleased]entry, e.g. under### Added:- /release pre-flight regenerates the marketplace artifact and checks README "What's new" freshness before publish (#684)docs(#684): add CHANGELOG [Unreleased] entry for /release pre-flight …
admarble commentedon May 31, 2026
/fullsolve Complete
Issue: #684
Status: READY_FOR_MERGE
PR: #685
AC Coverage
/releasepre-flight regenerates marketplace README before publishnpm run prepare:marketplace+ warn-only Node-floor diff)/releasewarns when README "What's new" omits release version.claude/skills/release/only)Coverage: 2/2 applicable AC met (AC-3 vacuously N/A)
Resolution of QA Gate
Prior QA verdict was AC_MET_BUT_NOT_A_PLUS, blocked only by a missing CHANGELOG
[Unreleased]entry (§10a gate). Now added:docs(#684)commit6196fee— adds### Addedentry under[Unreleased]for the/releasepre-flight doc-freshness gates.The optional robustness note (freshness regex is
MAJOR.MINOR-only) remains as a low-impact, non-blocking follow-up — not worth broadening (would introduce false positives since both sides normalize toMAJOR.MINOR, and Step 4.7 regeneration is the primary mechanism).Quality Metrics
SKILL.md+33,CHANGELOG.md+4)any)Iterations
Final Verdict
READY_FOR_MERGE — both ACs met & live-verified, CHANGELOG entry added, all CI green, branch mergeable. Ready for human review and merge.
fix(#684): move README 'What's new' check after version bump so it fi…
admarble commentedon Jun 1, 2026
Gap fix — AC-2 check ordering
Adversarial re-read surfaced a real gap in the AC-2 gate (verified by running it against the live repo):
Problem: Check #12 lived in the pre-flight block and read
package.json.version— but the version bump is Step 4, much later. So at pre-flight time it read the previous release (e.g.2.4.0), which the README already lists, and never warned for the version actually being released (e.g.2.5.0). The AC literally says "omits the version being released." It mirrored the existing Check #11 pattern, so not a regression — but the gate was effectively a no-op in the documented step order.Fix (commit
f10cfa0): relocated the README "What's new" check to a new Step 4.65, immediately after the Step 4 version bump, sonew_versionis the freshly-bumped target. Left a pointer note where it used to live.Verified against live corpus:
2.5.0absent from README → warn fires ✓2.4.0present → no warn ✓npm run lint:skill-callsclean; CI 4/4 green.Untouched (out of scope): the existing Check #11 (
what-weve-built) shares the same pre-flight ordering but is the approved prior pattern; not changed here.Updated verdict: READY_FOR_MERGE — both ACs now genuinely functional, not just present.
feat(#684): /release pre-flight regenerates marketplace README + chec…
fix(#701): correct 3 README/release-tooling blockers before 2.5 (#703)
fix(#701): correct 3 README/release-tooling blockers before 2.5