Accessibility Built Once: Shared Components and Tests That Query by Role
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.
Run a quick experiment on any product repository: list the files touched by every commit in the last quarter, group them by top-level folder, and sort by count. Schema and utilities sit near the bottom. Screens usually sit near the top. The code that changes most is usually the code with the fewest rules about where things belong.
If you want to try the experiment, a few lines of shell will do it. The exact numbers do not matter, only the shape of the result.
git log --since="3 months ago" --name-only --pretty=format: \
| grep -v '^$' | cut -d/ -f1-3 | sort | uniq -c | sort -rn | head
The first edition of the book described the user interface as a client of the system, something that talks to it from outside. That framing is natural, and in a deployment diagram it is even correct. In the repository it is misleading. The screens live next to everything else, import the same types and are edited by the same people, so the word "client" quietly excused them from the discipline applied elsewhere.
The second edition closes that gap by making the UI the ninth layer, with a volatility coefficient of 1.0. Calling it a layer is not decoration. A layer is something a lint rule can be pointed at and a reviewer can ask questions about.
The interesting part of the argument is why the UI sits above Agents, and not merely above the API. The book answers with the effective volatility idea from its early chapters: a component can never be calmer than the things it depends on.
Make that concrete with an invented support desk. The agent team adjusts the assistant's behaviour every morning: new tools, new instructions, a different model. Now suppose the chat window parses the assistant's replies in some ad-hoc way. Every morning's tweak is a potential break for the window, so the window inherits the agent's pace and then adds the pace of its own designers on top. It must rank at least as high, and in practice slightly higher.
The same reasoning forbids the opposite arrow. If an agent or a protocol adapter imported something from a screen, then every redesign would become a reason to re-test the machinery underneath. Every layer may supply the UI with something, and none may take anything from it. That makes the UI the point where churn is allowed to stop.
Dependencies carry volatility upward. A screen that leans on something unstable is unstable. Nothing stable should lean on a screen.
Consider how a business rule ends up in a screen. A developer is already inside a component when the requirement lands, so the rule goes where they are standing. Nobody decides that it belongs there. It simply gets written there, and the next client to need it gets a second copy.
The book treats this as an ordinary dependency problem, which is the sort of problem LVD exists to prevent. It is the path of least resistance in code that has no stated shape. Naming the layer changes the conversation from "is this tidy?" to "which direction does this import point?", a question that a tool can answer.
Pick the screen your team changed most recently and list what it imports. For each import, ask whether a lower layer could have supplied it through a published contract instead. If the answer is often yes, the screen is doing work that a lower layer could do once for every client. One concrete fence against the habit is covered in feature isolation in the UI layer.
The UI belongs in the model because it is the most frequently edited code you own, and because anything it surfaces passes its volatility upward. It stays at the top because nothing beneath it has a reason to know it exists. For the full layer ordering see the nine layers explained, and for what goes wrong when the rules are ignored, UI layer violations.