Draft, September 2026

Home / Follow the story / Act 3, scene 11: The domain invariants

Act 3, scene 11: The domain invariants

The explainer video for the paper SaaS architecture when code is cheap
Transcript

Scene 11: The domain invariants

Look back down the stack. The deeper the layer, the fewer customers need to change it. Almost every customer customises something: in one survey, only 7% changed nothing. Far fewer go deep, and most of what changes sits near the top. Under the business rules are the domain primitives, and they do not vary between customers. Call them the domain invariants. They are where correctness is decided, and what the revenue depends on. The domain invariants are the product's core value. So the architecture needs a layer that holds those invariants, with everything that varies built on top of it. A product's knowledge graph already records the invariants: its capabilities, workflows and entities, and nothing specific to one customer. That is the idea behind semantic engineering.

Go deeper