The Nine Layers of LVD, Explained
A plain-English tour of LVD's nine layers, from Schema to UI: what each one holds, why it sits where it does, and the rule that connects them.
Volatility ν = 1.0 · Chapter 10
The screens people actually touch. New in the second edition: the UI may use Schema, Utils and the published contracts of the API, MCP, Skills and Agents layers, and nothing may import it.
A plain-English tour of LVD's nine layers, from Schema to UI: what each one holds, why it sits where it does, and the rule that connects them.
Why the second edition promotes the UI from outside client to Layer 9, and how a simple inheritance rule for volatility puts it above Agents.
One import rule keeps a front end changeable: features never import each other. Why it holds, and what to do when two features need the same thing.
How to decide whether a rule belongs in a component or behind the API, and why server data should be treated as a cache instead of copied into a store.
Two jobs belong at the seam between a screen and the API: assembling the data a screen needs, and turning failures into outcomes a user can act on.
A screen that shows an AI agent should depend on the agent's event contract rather than its prompts, and approvals must be enforced by the host, not the page.
Why accessibility is cheapest in the UI's shared components, and how tests that find elements by role and name double as an accessibility check.
The book's storefront example shows a button and a chat assistant reaching the same business rule. Why that shared path is the best test of a UI layer.
How the book's ShopFlow example spreads a retail platform across nine layers, and how three teams split the work along those layers.
API and UI code translate between worlds, so test the translation, not the business rules: contract tests, UI outcome tests and where end-to-end fits.
The UI is where shortcuts are most tempting. Three anti-patterns that break Axiom A6 or the UI's own ordering rules, and how each one is caught.
The whole idea of Layered Volatility Decomposition in one sitting: sort code by how often it changes, depend only downward, and let nine layers do the rest.
A one-page reference to LVD's nine layers: volatility coefficients, what lives in each, what does not, plus the dependency rule and axioms A5 and A6.
What changed in the second edition of LVD, why the UI earned its own layer, and how a team used to the eight-layer picture can adopt the change.