Anima Mundi

Conservation of Modularity

Clayton Christensen published two laws in The Innovator's Solution. Everyone remembers the first one, about attractive profits. The second one is more useful: modularity is conserved.

The mechanism

An architecture is interdependent when you cannot change one part without changing the others. It is modular when you can.

Modularity is not a design choice. It is a privilege you earn. Three things have to be true before an interface can be specified: you know what to measure, you know how to measure it, and you know the measurement predicts behavior in the assembled system. None of that is available while you are still fighting for basic performance. Immature layers are therefore integrated, and mature layers become modular.

The law: when one layer of a stack becomes modular, the adjacent layers become interdependent. Total integration in the chain stays roughly constant. It relocates.

It relocates to the bottleneck. Wherever the customer is still unsatisfied, someone has to reach across interface boundaries to squeeze out performance, and that reaching is what integration is. Wherever the customer is satisfied, the interface freezes, suppliers become interchangeable, and margin collapses.

Corollary: profit lives next door to commoditization, not inside it.

The LLM stack in 2023

The model was the bottleneck. It was the only thing anyone was integrating. Everything around it was a thin layer, modular by default, trivially replaceable. "GPT wrapper" worked as an insult because it described a company sitting in the modular layer while the bottleneck was somewhere else.

What changed

Three interfaces standardized.

The inference API converged on an OpenAI-compatible schema. Switching providers became a base URL change.

Open weights arrived good enough for a large class of tasks. Llama, Qwen, DeepSeek, Kimi.

MCP standardized tool access. Connecting a model to Jira stopped being a project.

Each of those was a commoditization event. Each pushed integration outward, in both directions.

Integration moved down into the metal

Serving is now deeply interdependent. Prefill and decode get disaggregated onto separate hardware because they are bound by different resources. KV cache placement, speculative decoding, batching policy and quantization are co-designed with the model architecture and with the chip. Google runs TPUs. Amazon runs Trainium. MoE routing decisions are made against HBM bandwidth budgets.

None of this is visible in the API. That is the point. The interface above froze, so the work went below it.

Integration moved up into the harness

Same thing above the model. Claude Code, Cursor, agent frameworks. Context engineering, subagent decomposition, tool result compaction, permission models, eval harnesses.

This layer is aggressively interdependent with specific model behavior. Prompts and scaffolds tuned for one model degrade on another. That is the signature of an interdependent architecture, and it is why "just swap the model" rarely survives contact with production.

The wrapper became the product because the bottleneck moved into it.

Layers that got eaten

Vector databases modularized in about eighteen months and were absorbed into Postgres. Retrieval quality moved up into long context windows and into the harness's retrieval strategy.

Fine-tuning was the integration point in 2022. Instruction following got good enough, so the interdependent layer moved from weights to context.

How to use it

Two questions before deciding to build.

Where is the customer still complaining? That is the bottleneck. Integrate there.

Where has the interface stopped changing? Buy there. Anything you build will be commodity within a year.

The failure modes are symmetric. Integrating at a standardized layer is wasted engineering. Buying commodity components at the bottleneck caps your performance below what the market will pay for.

Caveat

This is a heuristic, not physics. There is no unit of modularity and no conservation equation to solve. Bottleneck detection is the entire game, and it is done by judgment rather than measurement.

But it explains why the margin in AI keeps appearing two layers away from wherever everyone is looking.

#Business #Tech #english