Follow-up to #1388, which landed the analysis, usage discovery, plan normalization, report and agent hand-off.
Multi-release span notes
release-notes-fetchercurrently returns the newest releases; a 5.x → 7.x upgrade needs the 6.0 and 7.0 notes too, since that is where the breaking changes are described- Walk the tag list between
currentVersionandnewVersion, keeping only major/minor boundaries to bound the size - Feed the result to
attemptMajorUpgrade'sreleaseNotes
PR creation integration
- Call
attemptMajorUpgradefromcreatePullRequestsfor one-per-major groups whenai.majorUpgrades.enabled - Append
result.reportto the PR body (after the tables, before the manifest) - Open as draft when
result.draft— needsdraftthreading throughcreatePullRequest - Respect
ai.majorUpgrades.packagesglobs
Re-scoping
- When a migration fails for one package in a group, drop it from the PR and note why, rather than leaving the whole group broken
- Preserve the failed attempt on a sub-branch so a human starts from the agent's work rather than from zero
Rule integration
matchUpdateTypes: ['major']rules should be able to setautoMigrateper package (#1395 threads rule effects into PR creation)