Volatility: The Decomposition Axis Architects Ignore

Ask any team which part of their system will change next quarter and they answer instantly: pricing rules, the onboarding flow, whichever partner integration is about to be renegotiated. Then look at the architecture diagram. Not one box records that knowledge. We draw systems by what they do and what they use, and leave out the one fact that decides how much each part will cost over the years: how often it will be touched.

A definition you can compute

The book defines volatility plainly: the expected frequency of change to a software component. Formally it is a function, written ν, that assigns each component a number, and ν(c) stands for the expected number of changes to component c per unit of time. A utility that has not been touched in two years has a low ν. A checkout page that gets reworked every sprint has a high one.

There are two ways to get the number, and the book names both. The historical approach counts: ν(c) is the number of commits that modified c over some period. The predictive approach estimates from business drivers, which matters for code that has no history yet, or whose future will not resemble its past. A component that has been quiet for years but is about to be hit by a new regulation is not low-volatility, whatever the commit log says.

The historical measure is cheap enough to try on your own repository right now:

# files touched most often in the last six months
git log --since="6 months ago" --name-only --pretty=format: \
  | grep -v '^$' | sort | uniq -c | sort -rn | head -20

Treat the result as a rough first look rather than a verdict. Mass reformatting, renames and generated files all inflate counts, and a file that changes often because it is a bug magnet is a different problem from one that changes because the business moves quickly. Still, in most codebases the list is revealing, and it is rarely the list the team would have guessed.

Three bands of change

The book groups components into three rough bands, and its examples are worth remembering because they hold up across very different domains.

  • Low volatility (ν below 0.4): core types, mathematical utilities and stable contracts. These encode facts that are slow to change, such as what an invoice is or how to compute the distance between two dates.
  • Medium volatility (ν near 0.6): external integrations and infrastructure. These change on someone else's schedule, when a vendor ships a new version or the hosting platform moves on.
  • High volatility (ν above 0.8): business rules, user interfaces and workflows. These are where the organisation competes, experiments and reacts, so they are edited constantly.

The specific boundaries are a convention, not a law of nature. What matters is the shape: a small bedrock of rarely changing definitions, a middle band that is mostly dictated from outside, and a restless top where the product lives.

The rule: lean only on things steadier than you

Why does the number matter beyond tidiness? Because of what happens along a dependency. If component A uses component B, then a change to B can force a change to A. When B changes often, A must keep up, however calm A's own subject matter is.

The book captures this with the idea of effective volatility. For a dependency from A to B:

ν_effective(A) = max( ν_intrinsic(A), ν(B) )

In words, a component effectively changes at least as often as anything it depends on. Here is how that plays out in a hotel-booking system. A cancellationFee function encodes a stable idea: fees depend on how close the stay is. Its own volatility is low. Then one afternoon someone lets it import the seasonalCampaigns module, to check whether the guest has a promotional flexible-rate booking. Marketing edits that module weekly. The fee calculation, previously dull and dependable, now has to be retested every time a campaign is added, and a mistake in a campaign file can break refunds.

From this the book derives a corollary and names it the Volatility Ordering Principle, the foundation of both Volatility-Based Decomposition and LVD: for every dependency from A to B, the volatility of A should be at least that of B. Volatile code may build on stable code. Stable code must never build on volatile code.

Engineers who know Robert Martin's Stable Dependencies Principle will see a family resemblance: depend in the direction of stability. The two differ in how they judge stability. Martin infers it from coupling, meaning how many things depend on a package and how many it depends on. Volatility measures the change itself, which makes it something you can observe in version history or forecast from the business calendar.

Asking different questions

The principle changes the questions you ask while designing. The book contrasts them in pairs. Instead of asking what the system's functions are, ask which parts change together and at what rate. Instead of asking how to organise the domain model, ask which concepts are stable and which evolve quickly. Instead of asking what layers the system needs, ask which volatility levels exist and how they should relate.

Take the hotel-booking engine again. A functional breakdown yields search, booking, pricing and notifications, all sensible. A volatility reading of the same system looks quite different:

  • The definitions of a room, a stay and a booking barely move. Low.
  • Date arithmetic and currency rounding are settled mathematics. Low.
  • The connectors to booking sites and channel managers follow each partner's release plans. Medium.
  • Pricing rules, cancellation policies and promotions follow the commercial calendar. High.
  • Landing pages, search filters and checkout screens are redesigned and A/B tested continually. Highest.

Stacked from the bottom up in that order, with each tier allowed to depend only on those beneath it, the result is a structure where a partner changing its API touches one connector, a campaign redesign touches only the screens, and the rare edit to the definition of a booking is understood from the start to be a big deal. The functional modules still exist, but they now live within these bands rather than cutting across them.

From a principle to nine layers

Volatility-based thinking is not new with this book. It builds on Juval Löwy's Volatility-Based Decomposition, which the second chapter covers in depth. What Layered Volatility Decomposition adds, according to the book, is four extensions:

  1. Nine layers, which stratify the system more finely than a handful of bands can.
  2. Formal dependency rules that tooling can enforce, so the principle does not rely on reviewers remembering it.
  3. Domain organisation within each layer, so code is also grouped by business area.
  4. Modern concerns, namely AI agents and protocol adaptation, treated as layers of their own.

The ladder runs from Schema at 0.3, through Utils (0.4), Resources (0.6), Tools (0.8), API plus Auth (0.85) and MCP plus Auth (0.9), to Skills (0.95), Agents (0.97) and, at the top, the UI at 1.0. The rule that comes with it is the same one you have just seen: a component may depend only on components in lower layers, which the book says guarantees zero circular dependencies by construction. That is stated in the simplest form here, and the later chapters add the details for dependencies inside a single layer. A tour of the whole ladder is in the nine layers of LVD, explained.

A first exercise

You do not need any tooling to try this. Pick a system you know well and list ten of its components. Next to each, write a rough guess at how often it changes: weekly, monthly, yearly, almost never. Then draw the dependency arrows between them and look for any arrow that points from a slower component to a faster one. Each such arrow is a place where calm code inherits someone else's churn, and in practice most teams find several on their first pass. The book ends its first chapter with a very similar exercise, asking whether current module boundaries line up with volatility boundaries and where they do not.

Where this can go wrong

A fair reading includes the limits. Volatility is a forecast, and forecasts miss. A component you rated low may be hit by a regulation next spring, and a high-volatility area may settle down once a product matures. The principle holds up better than the individual numbers do. What you act on is the ordering, and in most systems the ordering is easier to agree on than the decimals.

Volatility also differs from importance or size. A tiny, crucial type definition can be both low-volatility and critical, which is exactly why it belongs at the bottom, where changes are rare and deliberate. And the metric is a lens for deciding where lines go, not a substitute for judgement about what belongs together. The book returns to measurement in its later chapters, including how to measure volatility and order components.

The takeaway

Functions, objects, tiers and contexts all describe a system's present. Volatility describes its future, which is where most of the cost lives. Give every component an honest estimate of how often it will change, let dependencies point only toward steadier code, and you get a structure in which change has a natural place to land. Everything else in LVD is built on that one idea.

What the book covers

  • Juval Löwy's volatility-based decomposition in detail, the foundation LVD builds on
  • Graph theory for dependency analysis, including cycle detection algorithms and their complexity
  • Formal volatility metrics and how components are ordered by them
  • The full definitions, axioms and proofs behind the nine-layer model
  • Automated volatility measurement from version-control history