feat(health): detect MILESTONES.md drift from archived snapshots (#2446) (#2486)

Adds W018 warning when .planning/milestones/vX.Y-ROADMAP.md snapshots
exist without a corresponding entry in MILESTONES.md. Introduces
--backfill flag to synthesize missing entries from snapshot titles.

Closes #2446
This commit is contained in:
Tom Boucher
2026-04-20 18:19:14 -04:00
committed by GitHub
parent 86fb9c85c3
commit e8ec42082d
4 changed files with 179 additions and 5 deletions

View File

@@ -764,7 +764,8 @@ async function runCommand(command, args, cwd, raw, defaultValue) {
verify.cmdValidateConsistency(cwd, raw);
} else if (subcommand === 'health') {
const repairFlag = args.includes('--repair');
verify.cmdValidateHealth(cwd, { repair: repairFlag }, raw);
const backfillFlag = args.includes('--backfill');
verify.cmdValidateHealth(cwd, { repair: repairFlag, backfill: backfillFlag }, raw);
} else if (subcommand === 'agents') {
verify.cmdValidateAgents(cwd, raw);
} else {