fix(projman): Version advisor not triggering during releases #290

Closed
opened 2026-01-28 22:50:48 +00:00 by lmiranda · 1 comment
Owner

Summary

The versioning workflow is broken. Version mismatches between README.md, CHANGELOG.md, marketplace.json, and CLAUDE.md keep happening because:

  1. /suggest-version is not automatically called during /sprint-close
  2. No hook validates version consistency before commits
  3. Release workflow tries to push directly to protected branches
  4. No automatic PR creation for releases

Problems Observed

  1. Sprint 6: Main branch had v5.2.0 while development had v5.3.0 after release
  2. Recurring: Version numbers drift between files without detection
  3. Protected branches: Release commits fail because development is protected

Required Fixes

1. Add version validation hook

  • PreToolUse hook on git commit
  • Check version consistency across: README.md title, marketplace.json, CLAUDE.md, CHANGELOG.md
  • Block commit if versions mismatch

2. Integrate /suggest-version into /sprint-close

  • Auto-run version analysis before CHANGELOG update
  • Prompt user to confirm version bump
  • Update all version locations atomically

3. Fix release workflow for protected branches

  • Create release branch automatically
  • Create PR instead of direct push
  • Provide instructions for tag creation after merge

4. Add SessionStart version check

  • Warn if versions are out of sync at session start
  • Suggest running /suggest-version or manual fix

Acceptance Criteria

  • Version mismatch detected before commit
  • /sprint-close includes version bump step
  • Release workflow works with protected branches
  • SessionStart warns about version drift
## Summary The versioning workflow is broken. Version mismatches between README.md, CHANGELOG.md, marketplace.json, and CLAUDE.md keep happening because: 1. `/suggest-version` is not automatically called during `/sprint-close` 2. No hook validates version consistency before commits 3. Release workflow tries to push directly to protected branches 4. No automatic PR creation for releases ## Problems Observed 1. **Sprint 6**: Main branch had v5.2.0 while development had v5.3.0 after release 2. **Recurring**: Version numbers drift between files without detection 3. **Protected branches**: Release commits fail because development is protected ## Required Fixes ### 1. Add version validation hook - `PreToolUse` hook on git commit - Check version consistency across: README.md title, marketplace.json, CLAUDE.md, CHANGELOG.md - Block commit if versions mismatch ### 2. Integrate `/suggest-version` into `/sprint-close` - Auto-run version analysis before CHANGELOG update - Prompt user to confirm version bump - Update all version locations atomically ### 3. Fix release workflow for protected branches - Create release branch automatically - Create PR instead of direct push - Provide instructions for tag creation after merge ### 4. Add SessionStart version check - Warn if versions are out of sync at session start - Suggest running `/suggest-version` or manual fix ## Acceptance Criteria - [ ] Version mismatch detected before commit - [ ] `/sprint-close` includes version bump step - [ ] Release workflow works with protected branches - [ ] SessionStart warns about version drift
lmiranda added the Type/BugComplexity/MediumPriority/High labels 2026-01-28 22:50:48 +00:00
Author
Owner

Phase 1 fix proposed in PR #292

This addresses acceptance criteria #4: SessionStart warns about version drift

Changes:

  • Added version consistency check to projman SessionStart hook
  • Extracts versions from README.md, marketplace.json, CHANGELOG.md
  • Warns if versions don't match
  • Suggests /suggest-version to fix

Remaining criteria (future PRs):

  • Version mismatch detected before commit (PreToolUse hook)
  • /sprint-close includes version bump step (enforcement)
  • Release workflow works with protected branches (PR creation)

Issue will remain open until all criteria are addressed.

**Phase 1 fix proposed in PR #292** This addresses **acceptance criteria #4**: SessionStart warns about version drift **Changes:** - Added version consistency check to projman SessionStart hook - Extracts versions from README.md, marketplace.json, CHANGELOG.md - Warns if versions don't match - Suggests `/suggest-version` to fix **Remaining criteria (future PRs):** - [ ] Version mismatch detected before commit (PreToolUse hook) - [ ] `/sprint-close` includes version bump step (enforcement) - [ ] Release workflow works with protected branches (PR creation) Issue will remain open until all criteria are addressed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#290