.vbw-planning/milestones/upgrade-assurance/ROADMAP.md
Milestone: upgrade-assurance Goal: Give host app developers confidence that gem updates go smoothly -- automated migration detection, upgrade command, config validation, and AI-assisted upgrade guidance.
Goal: Add bin/source_monitor upgrade that detects version changes since last install, copies new migrations, re-runs the idempotent generator, runs verification, and reports what changed. Also add a PendingMigrationsVerifier to the existing verification suite.
Requirements: REQ-26, REQ-27
Success Criteria:
bin/source_monitor upgrade compares stored version marker against SourceMonitor::VERSIONbin/source_monitor verifyPendingMigrationsVerifier checks db:migrate:status for unmigrated SourceMonitor migrationsbin/source_monitor verify and the upgrade flow.source_monitor_version or DB-backed)bin/rails test passes, RuboCop cleanGoal: Add a lightweight framework that warns host app developers when their initializer uses config options that have been renamed, removed, or have changed defaults. Warnings appear at boot time via Rails logger.
Requirements: REQ-28
Success Criteria:
bin/rails test passes, RuboCop cleanGoal: Create an sm-upgrade AI skill that guides agents through post-update workflows, and write a versioned upgrade guide for human developers.
Requirements: REQ-29, REQ-30
Success Criteria:
sm-upgrade skill covers: reading CHANGELOG between versions, running upgrade command, interpreting results, handling edge casesdocs/upgrade.md includes: general upgrade steps, version-specific notes (0.3.x → 0.4.x), troubleshootingsm-upgrade in consumer setsm-host-setup skill cross-references upgrade flow| Phase | Status | Plans |
|---|---|---|
| 1 | Complete | PLAN-01 (5 tasks, 5 commits) |
| 2 | Complete | PLAN-01 (4 tasks, 3 commits) |
| 3 | Complete | PLAN-01 (5 tasks, 4 commits) |
| REQ | Phase | Description |
|---|---|---|
| REQ-26 | 1 | Upgrade command with version detection and auto-remediation |
| REQ-27 | 1 | PendingMigrationsVerifier in verification suite |
| REQ-28 | 2 | Config deprecation framework with boot-time warnings |
| REQ-29 | 3 | sm-upgrade AI skill for agent-guided updates |
| REQ-30 | 3 | Upgrade guide documentation |