An upstream API changes. Which of your code breaks, what is the smallest correct fix, and can it be proven to work? PatchAhead reads the release note, finds the affected call sites, patches a throwaway copy of the repository, and runs your tests against it. A migration counts as done only when a test that failed before the patch passes after it.