Worked example · Migration
A major framework upgrade with WDD
A big upgrade fails in hundreds of small ways. WDD handles it as a chain: one major version at a time, and at each step the build, the tests and a smoke test must pass before the agent may move on.
The goal
Upgrade a web app three major versions of its framework, one version at a time, with the build, tests and a browser smoke test green after each.
The verifier
Build, unit tests and an end-to-end smoke test that signs in and loads the three main pages.
Why this check: The build and tests catch most breakage; the smoke test catches the pages that compile and then crash.
The set-up
- The official upgrade guide for each version saved in the repository.
- A PLAN.md with one step per major version.
- A tag after each version, so a bad step is easy to undo.
The kickoff prompt
Kickoff
Upgrade the framework one major version at a time, following the guides in docs/upgrades/. After each version, build, run the tests and the smoke test; all must pass before the next version. Tag each passing version. Keep going until the last version is done.
How the rounds went
- Version 1
- Mostly renamed APIs from the guide. Green after 6 rounds.
- Version 2
- A routing change breaks the smoke test while the build stays green. The smoke test earns its place. Green after 14 rounds.
- Version 3
- A plug-in has no compatible release. The agent stops (as its orders say) and explains; the person picks a replacement; the loop resumes. Green after 9 more rounds.
What worked
- One version per step, with a tag at each: no huge, unreviewable jump.
- An explicit rule for when to stop and ask (a missing compatible dependency) rather than improvise.
What to watch for
- Agents may "upgrade" by pinning old versions back. Check the lockfile diff.
Build a kit for a task like this
A worked example written to show the method, not a report of a specific project.
Questions people ask
When should a WDD agent stop and ask?
When the next step needs a decision that is not technical or not reversible: choosing a new dependency, changing behaviour users see, spending money. Write those cases into AGENTS.md.