The LVD Thesis: Stratify by Rate of Change

Most architecture advice arrives as principles: keep coupling low, separate concerns, design for change. Hard to disagree with, and hard to check. The opening chapter of the LVD book does something less common. It states, in so many words, the five things it claims to deliver, so that a sceptical reader knows exactly what to test it against.

The claim in one sentence

Strip away the detail and the thesis is this: if you arrange code in layers ordered by how often each layer is expected to change, and let dependencies point only toward the steadier layers, you get a system that is easier to change, easier to test and easier to verify. The book calls the approach Layered Volatility Decomposition, and it describes it as systematic, verifiable and practical. Each of those three words is a deliberate promise. Systematic means there is a rule that decides where code goes, so the answer does not depend on who is asked. Verifiable means the rule can be checked mechanically. Practical means it has to survive contact with real projects, including ones that already exist.

Five promises, read one at a time

1. It extends volatility-based decomposition with nine layers

The starting point is Juval Löwy's Volatility-Based Decomposition, the subject of the book's second chapter, which already says to draw boundaries around what changes. The first claim is that this foundation needed to grow. Software today includes concerns that the older three-tier thinking never had to place: protocol adapters, authentication layers, AI models that call tools, and the instructions that steer those models. LVD gives these their own layers, and in the second edition it adds the UI as a ninth. The book presents this as a refinement of Löwy's idea, not a replacement for it. See Löwy's insight for where it starts.

2. It removes circular dependencies by construction

The phrase "by construction" is the strongest one in the thesis, and it is worth seeing why it is defensible. Imagine every dependency must point downward through the layers. A cycle is a path that returns to where it started, so at least one step along the way would have to point upward, and the rules forbid exactly that. Cycles that span layers are therefore impossible rather than merely discouraged.

Chapter 1 states the rule in its simplest form. The formal treatment in Chapter 4 is more careful: dependencies inside a single layer are allowed in most layers provided they stay acyclic, while the Tools layer forbids them completely under Axiom A5. The book proves the result as a theorem, and a short version of the argument is in why LVD cannot contain dependency cycles. What makes the claim interesting is that it replaces a detection problem (finding cycles after they appear) with a prevention problem (refusing to let them form).

3. It improves change impact, test coverage and deployment frequency

This is the empirical promise, and the one to read most critically. The three metrics named are change impact radius, test coverage and deployment frequency, compared with traditional architectures. In plain terms: how far does a typical change spread, how much of the code do tests exercise, and how often can you release safely?

The logic connecting structure to these metrics is plausible. If volatile code never sits beneath stable code, a change in the volatile part has nowhere to travel, so its radius shrinks. If layers can be tested in isolation, coverage becomes cheaper to earn. If risky changes are confined to the top, releasing becomes less frightening. The book supports the claim in its comparative chapters and its two case studies, ShopFlow (e-commerce) and MedConnect (healthcare). The book labels the figures in those case studies as projected, so read them as a worked demonstration of the method, and treat any improvement claim, this one included, as a hypothesis to try on your own code.

4. It scales from small projects to large enterprises

The thesis claims LVD works across project sizes and domains. One reason to expect that is structural. The ordering rule is local: it concerns each individual dependency, not the size of the whole. A five-file service and a five-hundred-module platform are checked the same way, edge by edge. The ladder of layers stays the same height, and a small project simply has little in some of them. The case-study chapters apply it to two very different domains to test the claim.

5. It enables automated verification through tooling

The last promise is the one that distinguishes LVD from most architectural advice. A boundary that exists only in a diagram erodes quietly. A boundary that a tool checks on every commit does not. The book describes three tools: lvd-lint for verifying dependency rules, lvd-diagram for visualising the layers, and lvd-metrics for measuring architectural quality. The companion repository at github.com/anuphariharan/lvd_2 holds every code listing in the book as its own file, indexed by page number. The practical side is covered in lvd-lint: enforcing layer rules automatically.

What would count against it

A claim is only as good as the evidence that could embarrass it, so it is worth asking what that would be for each promise. The second is the easiest to falsify: a single dependency cycle in a codebase that genuinely follows the rules would break it, and a dependency checker can look for one in seconds. The fifth fails if the tooling cannot tell a real violation from a harmless one, which you would notice quickly through false alarms.

The third and fourth are softer. Improvement is always relative to a baseline, so ask what the comparison architecture looked like and whether it was run well. A well-disciplined three-tier system may beat a sloppy layered one, and the thesis only means something if the comparison is fair. Scale raises a similar question from the other direction: does a small team with a short-lived product get enough benefit from nine layers to justify the folder structure? The honest test is to try it on one real module before committing to the whole codebase.

None of this is a criticism of the thesis. It is the reason to state it so precisely. A vague architecture claim cannot lose an argument, whereas five specific ones can be checked, and the checking is what teaches you something.

How the book builds its case

The thesis lists four kinds of support, and the structure of the book follows them. Formal foundations come first: graph theory, volatility metrics and mathematical proofs, spread across the early chapters and the appendices. Empirical validation comes next, in the form of comparisons against other approaches. Practical guidance follows, with complete implementations, migration strategies and a catalogue of anti-patterns. The fourth kind of support is case studies of two systems evolving over time, whose figures the book labels as projected rather than measured. Beyond the thesis itself, the later chapters stretch the model toward microservices, Domain-Driven Design and open research questions.

The same material is arranged in five parts. Part I, the foundations, covers this introduction, Löwy's approach, graph theory for dependency analysis and the core concepts of LVD. Part II gives each layer a detailed treatment with formal specifications. Part III is the validation part. Part IV is about implementation: tooling, testing strategies, migration approaches and anti-patterns. Part V covers microservices, DDD and future directions. Appendices hold the proofs, a tool reference, complete example systems and a glossary.

Where to start, depending on who you are

The book suggests different routes for different readers, and they are sensible enough to repeat:

  • Practitioners skim Part I for context, study the layer chapters in Part II closely, then work through Part IV and apply it to their own system.
  • Academics concentrate on Parts I, III and V, with attention to the formal definitions, the proofs and the empirical methodology.
  • Students read in order, work through the examples and exercises, and implement the example systems.
  • Managers read Chapters 1 and 4, then the comparison and case-study chapters, focusing on metrics and on whether the approach fits their context.

One notation tip helps with the diagrams. Arrows run from the dependent component to the thing it depends on, so an arrow reads "uses". Dashed lines mark dependencies that are forbidden. Code is mostly TypeScript, with pseudocode for algorithms.

Testing the thesis on your own code

A thesis stated this plainly deserves a plain test. You can run a small version of it in an afternoon without adopting anything:

  1. Estimate volatility. List ten components, guess how often each changes, and see whether your module boundaries match. The first chapter itself ends with this exercise, and volatility as a decomposition criterion walks through the idea.
  2. Look for cycles. Run any dependency analysis tool for your language and count the groups of components that depend on each other in a loop. Every one is a place the second promise would have prevented.
  3. Measure the radius. For your last twenty merged changes, record how many modules each touched. That average is your baseline for the third promise.
  4. Find upward arrows. Mark any dependency from a calm component to a restless one. These are the first candidates for restructuring.

If the exercise finds few cycles, a small radius and no upward arrows, you may not need a new architecture. If it finds many, the thesis has an audience. For a quick overview of the whole model before committing to the book, LVD in ten minutes is the shortest route.

The takeaway

The first chapter closes with four ideas: change is inevitable, poor decomposition has measurable costs, volatility gives systematic guidance, and LVD extends traditional approaches to cover modern concerns. The thesis turns those ideas into five promises that can each be checked. That willingness to be checked is the best reason to give the book a fair hearing. The next chapter examines Löwy's original method in detail, which is the foundation LVD builds on.

What the book covers

  • Juval Löwy's Volatility-Based Decomposition and how the book extends it
  • Graph theory and the formal proof that LVD architectures are acyclic
  • Comparative studies against Clean, Hexagonal, DDD, layered and microservice designs
  • The ShopFlow and MedConnect case studies, with their figures labelled as projected
  • Tooling, testing, migration and anti-pattern chapters for putting the model into practice