Six decisionsMade once, in the data model. Where they have to be.
Each of these is cheap to decide at the start and effectively impossible to retrofit. They are the reason a two-year-old cycle reconstructs as a query rather than as a project, and the reason a correction arrives with its derivation attached instead of as an unexplained adjustment.
The computation is deterministic and re-runnable
A commission cycle is a pure function of dated inputs: the scheme version, the hierarchy, the rates and the transactions, each as they stood on the transaction date.
Nothing is computed in place and nothing is overwritten. Re-running a cycle from two years ago against the same dated inputs returns the same number it returned then, byte for byte. That property is what makes point-in-time audit reconstruction a query rather than a project — and it is a decision made in the data model, which is the only place it can be made.
Everything is effective-dated, nothing is mutated
Schemes, hierarchies, territories, rates and partner status are all bitemporal: we store what was true, and when we learned it.
The distinction matters more than it sounds. A seller who moved territory on 1 August, recorded on 14 August, produces two different correct answers depending on whether you are asking "what did we pay" or "what should we have paid". Systems that store a single timeline cannot express that, which is why their corrections arrive as unexplained adjustments.
The cycle is reviewed before it is paid, not after
Computation and disbursement are separate stages with an explicit gate between them. Exceptions block the gate.
Every anomaly check — duplicate qualification across schemes, a tier applied one level high, an override on a terminated hierarchy, an unrecovered clawback — runs against the computed cycle while it is still provisional. The architecture makes it impossible to pay a cycle that has unreviewed exceptions, which is a stronger guarantee than a report that someone is supposed to read.
Offline is the default, not the fallback
The seller app is built as a local-first application that synchronises, rather than a remote application that caches.
It holds its own durable store, renders entirely from it, and reconciles against the server when a connection returns. There is no loading state that can fail, because there is no fetch on the critical path. This is the harder way to build it and it is the only way that survives a district where the signal drops — a connected dashboard fails exactly at the moment a field seller opens it.
Ingestion validates before it accepts
Every inbound feed is checked on arrival for completeness, shape and continuity against the previous period.
A feed that arrives late, short, duplicated or with a silently changed schema raises an exception against the cycle instead of quietly producing a smaller payout run. In practice this catches about as many real problems as the commission logic does, because upstream core systems change without announcing it and a 4% shortfall in a transaction file does not look like an error — it looks like a slow month.
Simulation runs on production data, in isolation
A draft scheme can be evaluated against real historical cycles without any possibility of touching a payout record.
Scheme simulation uses the same engine as production — not a simplified model of it — against an isolated copy. If the simulation and the eventual cycle disagreed, the feature would be worse than useless, so they run the same code path. That is why the projected payout in the builder is a number you can take to a budget conversation.