Idea

Rigour in specification is owed to the rules of the business domain, not to the screens that handle them

Info

Originally written in French. Translated by AI — the meaning has been preserved, not the prose.

Main idea

Business rules and uses have neither the same nature, nor the same value, nor the same lifespan. In an architecture inspired by Domain-Driven Design, the domain carries the concepts, entities, value objects, behaviours and invariants; the application layer orchestrates the use cases; the interface offers a way of interacting. The same business object can be handled from several screens, a mobile app, an API or an AI agent, and several journeys can lead to the same operation.

A process that requires a financial sign-off and a legal sign-off shows what is at stake. That an operation cannot be approved while either sign-off is missing belongs to the domain: no interface, no journey should allow it to be got round. How those approvals are shown on screen, or the order in which they are collected when the business imposes no sequence, belongs to the use.

On invariants, no compromise: define the concepts and their relationships, specify the permitted and forbidden behaviours, write the edge-case tests. On an ordinary screen that handles these objects, the detailed description can give way to a short request.

Why it matters

The objection "you can't develop seriously without specifying" conflates two objects. Separating the rule from the use shows where rigour protects every path at once, and where it protects only one screen.

The requirement grows when several agents work on the same code: invariants make the constraints every development has to comply with verifiable.

Nuances and limits

Not all uses are secondary: those that carry the product's value deserve in-depth specification, for reasons other than protecting the rules.

The boundary depends on the model chosen: an individual approval can be an entity if its identity and life cycle matter, or remain a value within a sign-off policy.

Open questions

  • In a team, who decides that a constraint belongs to the domain rather than the interface when it was first stated only in connection with a screen?