The Anatomy of a Tool
Every LVD tool comes out of one factory with five named parts. Here is what they are, why validation stays out of the handler, and what a two-part result buys.
Two tools, both well written, each doing one job. Then someone on the delivery team needs to know whether an order has been paid, spots a handy function in the payments tool, and adds an import. It takes four lines. It also quietly ends the independence of both tools.
Most LVD layers are allowed to depend on their own kind, as long as the result stays acyclic. The Tools layer is the exception. Axiom A5 forbids a tool from importing another tool, invoking it, or depending on it in any other way. Each tool is meant to stand alone as a unit of business logic, free to lean on the layers beneath it and on nothing beside it.
That sounds fussy until you look at what a sideways dependency does over a year of ordinary development.
// L4: delivery reaches sideways into payments
import { chargeCard } from "../chargeCard/chargeCard.tool";
export async function scheduleDelivery(order: Order) {
await chargeCard({ orderId: order.id }); // tool depends on tool
return bookCourier(order);
}
Three problems arrive together:
None of these is dramatic on day one. All of them compound. A quick way to spot trouble early is to read the import lines at the top of a tool file. Anything that points at a sibling tool, instead of at Schema, Utils or Resources, is a candidate for one of the three moves below.
The book's answer is not "never share anything". It is "put the shared thing where sharing is legal". There are three moves, and which one applies depends on what the shared code actually does:
The third option is worth noticing. It is the same place an AI agent operates. Deciding which tools to call, and in what order, is precisely the job of the layers above Tools, so the rule pushes workflow logic toward the code that is expected to change most.
In every case the code lands somewhere whose rate of change matches its own. Pure rules go where change is slow, outside access goes behind a boundary built for it, and workflows go where change is fast. That matching is the whole idea of the model applied to one small problem.
A5 looks like a style preference but works like a load-bearing wall. Because tools never reach sideways, each one can be understood, tested and replaced on its own, and the question "where does this shared code go?" always has a mechanical answer: down, or up, never across. You can enforce it with the same tooling that guards the rest of the layer rules; see lvd-lint and the wider picture in the nine layers explained.