Framework & Dependency Upgrade Planning
Plans the move from the version of a framework, library or runtime in use to the one wanted, so that every change that can break this code is found before the move begins.
Deliverable
One Markdown document, upgrade-plan.md, in the structure set out under Output below. It hands its steps to Implementation Planning and its point of no return to Release Readiness & Rollback, and it takes the list of outdated or vulnerable components from a dependency audit as its reason to exist, not as its scope.
Required inputs
- The component and the two versions — what is being upgraded, the version in use and the version wanted, exactly as the requester names them.
- The code that uses it — access to the codebase, or at minimum the files and configuration that call the component.
- The maintainers' own upgrade material — release notes, a changelog, a migration guide or deprecation notices covering every version between the two. Breaking changes are taken from here and from nowhere else.
- The checks that currently prove the code works — the tests, builds or manual procedures that pass today.
If the component, either version, the code or the maintainers' material is absent, stop and report it. If no checks exist, continue, record the baseline as unverified, and make adding checks the first step of the plan: an upgrade with no way to tell it worked is a gamble.
Optional inputs
- Other components that depend on this one, or that this one depends on
- The environments the code runs in and their constraints
- A deadline, and what forces it
- Earlier upgrades of the same component and what went wrong
- Support or licence terms of the versions involved
Absent optional inputs do not stop the plan. Each becomes a line saying what could not be checked and who holds the material that would check it.
Execution
1 — Record the starting state. Which checks pass today, which fail, and which are flaky. The baseline is the standard every later step is judged against; a failure that exists before the upgrade is not caused by it.
2 — Extract every change between the two versions. From the maintainers' material, in version order: what changed, whether it is breaking, deprecated or additive, and what the maintainers say to do about it. Where the material is silent on a version in between, record that version's changes as unknown; do not assume nothing changed.
3 — Decide what actually reaches this code. For each breaking or deprecated change: search the codebase for the feature it touches. Record each as reaches with the files and lines, or does not reach with how that was established. A change nobody searched for is not searched, never does not reach.
4 — Establish whether the versions can be crossed in one move. Only where the maintainers' material says so. Where it requires intermediate versions or a prior step, those become steps of the plan.
5 — Order the steps. The smallest steps that leave the code working, each revertible on its own, the things others depend on before the things that depend on them. Prefer steps that change nothing about behaviour, such as replacing a deprecated call with its supported equivalent while still on the old version.
6 — Attach a check to every step. Which existing checks must pass after it, which new ones must exist first, and what a pass means. A step with no check is marked as such and ranked as risk.
7 — Mark the point of no return. Anything after which going back is not free: a data format that changes, a migration that cannot be reversed, a version that cannot be reinstalled. State what must be true, and who must agree, before it is crossed.
8 — Write the way back. For each step: how to undo it, what that restores, and what it cannot restore.
9 — State what else the upgrade changes. Build, configuration, deployment, licensing and support terms, and the documentation that mentions the old version.
Output
upgrade-plan.md, in this order:
- 1. Scope — the component, the two versions, the code and the environments covered
- 2. Baseline — the checks and their state before any change
- 3. Changes between the versions — each one, classified, with its source
- 4. Reach — per change:
reaches with locations, does not reach with how it was shown, or not searched
- 5. Plan — the ordered steps, each with its change, its check and its owner
- 6. Point of no return — what it is, what must be true before it, who must agree
- 7. Way back — per step: how, what it restores and what it cannot
- 8. Wider effects — build, configuration, deployment, licensing, documentation
- 9. What could not be checked — missing inputs and who holds them
Validation
The plan is ready when all of these hold:
- Every change in section 3 cites the maintainers' material it came from
- Every change has a line in section 4, and none is
does not reach without a stated method
- Every step in section 5 has a check, or is marked as having none
- Every step has a line in section 7, including what it cannot restore
- Section 6 names the point of no return, or states that none exists and why
- No breaking change appears that the maintainers' material does not contain
Fail the run if a breaking change is invented or assumed, or if a change is marked does not reach by a search that was not run.
Failure handling
- No maintainers' material — stop. Report that breaking changes cannot be known from memory, and list the release notes, changelog or migration guide the requester must supply.
- No access to the code — plan from the maintainers' material alone, mark every
reach as not searched, and state that the plan shows what could break, not what will.
- No checks exist — mark the baseline
unverified, make the first step writing the checks that would detect a broken upgrade, and do not schedule the upgrade before them.
- The maintainers' material conflicts with itself — record both statements in section 3 with their sources, plan for the stricter reading, and list the question for the maintainers.
- Partial material — plan what the material supports, mark the rest
NOT PLANNED — pending <material>, and deliver.