Migrating to LVD Without a Big-Bang Branch
A long migration branch loses to a main branch that keeps moving. Two LVD migration patterns on a ticketing codebase: strangler signposts and temporary flags.
"Migrate to a new architecture" is a sentence that has sunk many roadmaps, because it hides a hundred decisions about order. The book's answer is to let the layers set the order. Start at the bottom, where nothing depends on much, and climb. Each step has the same four-part entry: what to do, how long it takes, what can go wrong and how you know it is finished.
The book's first estimate is two weeks for a codebase of 100,000 to 500,000 lines, and the whole schedule runs about twenty-four weeks. The first four steps relocate code that already exists, in layer order:
Step 5 builds the API layer, which maps external protocols onto tool calls and holds no business logic. Steps 6 to 8 then add MCP, Skills and Agents. The book points out that these three are additive rather than extractive: they are new code on top of the existing tools, not a reshuffle of old code. Step 9, the UI, runs alongside them. It needs only the API contract from Step 5, so a separate group of engineers can work on it in parallel.
The steps are not equal, and the book says so candidly. Schema extraction is largely mechanical, and codemod tools such as jscodeshift or ts-morph can handle most of the import path rewrites. Utils needs judgement about what is really pure: the hard part is spotting a "utility" that quietly reads an environment variable or a connection. Resources is the first step that demands real design, since interfaces must hide the underlying SDK.
Tools is the heavyweight. Business logic is usually the most tangled part of a legacy system, and the book warns to expect hidden coupling, shared mutable state and calls that depend on an unwritten order. The characteristic risk is the god tool, a module that handles several concerns and resists being split. Cross-tool dependencies discovered here have to be resolved by moving the shared code downward, as Axiom A5 prescribes.
A second pattern is that steps depend on each other in both directions. In a bike-hire app whose route handlers calculate prices inline, the API step cannot finish until that pricing logic has been moved into a tool. Likewise, if the generated UI client reveals a gap in the API, the book says the team must return to Step 5.
The feature that makes the roadmap usable is its verification list. Each step ends with criteria that can be checked, mostly by tooling you already have. Some examples from the book:
Those numbers connect to the earlier chapters: the coverage targets come from the testing pyramid, and the dependency checks are what lvd-lint already does. A step is only done when its gate is green, which keeps a half-finished layer from quietly becoming the new status quo.
The value of a roadmap is not the calendar, which you will adjust, but the discipline: one layer at a time, lowest first, each with a definition of done that a script can confirm. The book gives the full entry for all nine steps, with risks and verification for each. For how to carry out the moves without stopping the business, see the migration patterns.