PehromGroup

One rule, one owner

A client that calculates a total is a second authority for that total, even when it calculates it correctly. The day the two disagree is the day nobody can tell which number is real. This product keeps every decision on the server and every client a renderer of the answer.

Published 18 November 2026

What the server owns

Validation, permissions, entitlement, workflow state, every calculation and every derived status. What a selector may offer is also the server’s answer: a client cannot invent an option that the server would refuse to save.

A rule is written once, where it can be tested against the real database, and the answer travels to the client as data. The web app, the Android app and the Windows app do not each decide what a person may do; they draw the actions the server says are permitted.

What the client does

The client carries the person’s intent and renders state: loading, empty, error, offline. It shows the server’s totals, the server’s permitted actions and the server’s refusal sentence, in the reader’s language. It never substitutes one state for another: an empty list is not an error, and an unreachable server is not an empty account.

A disabled control keeps its reason. Hiding an action is not a permission check; it is a convenience for the person who may not use it. The server refuses the act anyway, with a named code, if someone sends it directly.

How this is proved

The tests call the real server, not a browser with a hand-built page. A permission test signs in as a person who may not act, sends the request and expects the refusal code and message. A calculation test reads the total the server returns and compares it with the rows that produced it.

A customer sees the result of this rule as consistency: the phone shows the same balance as the laptop, a refund appears in the ledger once, and a refused action says why in words that make sense at the counter.

A rule written twice is a rule that will disagree with itself.

Start a conversation