Event-driven
Every reading, alarm and command is an event
The ledger records what moved. Everything else that happened is an event: a reading arrived, an alarm rose, a person acknowledged it, a command was sent, a device answered. All events go into one record, in order of time, shared by every world - World calls it the event spine. A world's "now" is worked out from its events. It is never kept in a field that the next writer overwrites.
A reading, and its alarm, in the same step
On the hospital ward every value comes from a device. When a reading falls outside its critical limits, the alarm is raised by the database in the same transaction - one all-or-nothing step - that stores the reading - not by a program that looks later and might miss it, or raise it twice.
A command's whole life
A command is not a message thrown at a device. It is a dispatch, a row with a life of its own, and every step of that life is an event on the spine. The device asks for its work every ten seconds - apart from its readings, which it sends every fifteen minutes - and moves the dispatch along.
The same spine in every world
Every world runs its own chain of verbs on the same spine. A verb that moves money or goods writes its ledger line and its event in the same step.
| World | A day's chain of verbs |
|---|---|
| Trattoria Phoenix | RESERVE a table → ORDER → FIRE to the kitchen → DELIVER by the waiter robot → BILL |
| Robot Product Delivery | SHIP a parcel → MAPLOAD its route → LAUNCH the drone → DROP at the address |
| Emoji Product Factory | INGEST a design → SCREEN it (passed or failed) → BULKRUN authorized → ASSEMBLE → SELL |
| Southwind Traders | SELL → SHIP; a correction: AMEND → PROVE → APPLY |
| The library | LEND a book → RETURN it; a mistake: STORNO, with a reason |
| The hospital ward | a reading → an alarm → ACKEVENT; a command → its dispatch's life; a wrong reading: WITHDRAW or SUBST |
Each verb is explained in plain words on Verbs.
"Now" is re-derived
An order's "last changed", a room's temperature now, whether an alarm is still active - each is worked out from the events, not written into a field that the next writer overwrites. That is the third clause of the ledger law, re-derive what maximizes, and it is also what let five and twenty sessions at a time add lines to one order without being turned back (see Tested).