feat(projman): add SessionStart version sync check #292

Merged
lmiranda merged 1 commits from fix/issue-290-version-sync-check into development 2026-01-29 01:41:17 +00:00
Owner

Summary

Adds early detection of version drift at session start. When versions in README.md, marketplace.json, and CHANGELOG.md don't match, displays a warning and suggests /suggest-version.

Problem

Version mismatches between files (e.g., Sprint 6: main had v5.2.0 while development had v5.3.0) cause confusion and release issues. There was no proactive detection.

Solution

Added version consistency check to projman SessionStart hook:

  • Extracts versions from README.md title, marketplace.json metadata, CHANGELOG.md
  • Compares all three versions
  • Warns if mismatch detected
  • Suggests /suggest-version to analyze and fix

Test plan

  • Versions matching (5.3.0) - no warning shown
  • Simulated drift (README v5.2.0 vs others v5.3.0) - warning displayed
  • Test in fresh session with actual version drift

Issue #290 Progress

This PR addresses acceptance criteria #4:

  • SessionStart warns about version drift

Remaining criteria for future PRs:

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

Partial fix for #290

🤖 Generated with Claude Code

## Summary Adds early detection of version drift at session start. When versions in README.md, marketplace.json, and CHANGELOG.md don't match, displays a warning and suggests `/suggest-version`. ## Problem Version mismatches between files (e.g., Sprint 6: main had v5.2.0 while development had v5.3.0) cause confusion and release issues. There was no proactive detection. ## Solution Added version consistency check to projman SessionStart hook: - Extracts versions from README.md title, marketplace.json metadata, CHANGELOG.md - Compares all three versions - Warns if mismatch detected - Suggests `/suggest-version` to analyze and fix ## Test plan - [x] Versions matching (5.3.0) - no warning shown - [x] Simulated drift (README v5.2.0 vs others v5.3.0) - warning displayed - [ ] Test in fresh session with actual version drift ## Issue #290 Progress This PR addresses **acceptance criteria #4**: - [x] SessionStart warns about version drift Remaining criteria for future PRs: - [ ] Version mismatch detected before commit (PreToolUse hook) - [ ] `/sprint-close` includes version bump step (enforcement) - [ ] Release workflow works with protected branches (PR creation) Partial fix for #290 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added the Type/BugPriority/High labels 2026-01-29 01:40:08 +00:00
lmiranda added 1 commit 2026-01-29 01:40:09 +00:00
Adds early detection of version drift between README.md, marketplace.json,
and CHANGELOG.md at session start. When versions don't match, displays
a warning and suggests running /suggest-version to analyze and fix.

This addresses acceptance criteria #4 from issue #290:
- [x] SessionStart warns about version drift

Remaining criteria for future PRs:
- [ ] Version mismatch detected before commit (PreToolUse hook)
- [ ] /sprint-close includes version bump step (enforcement)
- [ ] Release workflow works with protected branches (PR creation)

Partial fix for #290

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit d457e458a8 into development 2026-01-29 01:41:17 +00:00
lmiranda deleted branch fix/issue-290-version-sync-check 2026-01-29 01:41:17 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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