Skip to main content
A process reads the log of one subject, such as a submission, and gives its status. The status says which acts are open now, and which role may take each one. A new-business submission, a cancellation and a claim each fit this shape.

Append-only log

The log holds what people and tools said and did about the subject, in order. Each statement adds one entry at the end. A correction is a new entry too. The process computes the status from the entries and the program each time someone asks. So these hold for every log:
  • The same log and the same program give the same status.
  • The status after any earlier entry is still there to read.
  • The open entry records a hash of the program. The log gives a status only under that program.
In programming terms, a process is an event-sourced decider. Acts move the subject from state to state. Rules and grants decide which acts are open.

Entry kinds

Each entry names its writer as a role and a person: uw:alice. A process waits on three kinds of outside value: an answer from a role, a result from a host tool, and a decision by a role.

RSL 0.5 intake contract

In an RSL 0.5 record, a field margin can give the intake screen a short label (@short), a section (@group), a description (@description), source documents (@found_on) and an answer format (@format). Each tag takes quoted text; @found_on may name several documents. A quoted margin on an enum member becomes its answer label. These values appear in the process log contract’s questions schema. Write as note on a record field or on an ask line to keep the answer in the log without making it a required question. Group calculations in a process with step name { … }; the contract lists each step and its values. An interval field’s or refuse CODE "message" appears in rules at that field’s path. Referral rule names may be lower case, such as floor, or upper case. For a keyed list of records, for l in layers { … } gives each item its own ask, let, show, and rule lines. The binder l names the current record in expressions. An item rule is evaluated and decided for each key: a referral for layers[number=1] does not refer layers[number=2]. The contract marks item outcomes and referrals with their list grain. Give every published outcome a unique name across the process, including its root and all item lists.

Acts and states

A process names its acts, the states each one leaves and enters, and the role that takes it. This excerpt comes from the staffing example:
An end act leaves each live state, so every log can reach a final status. The check proves it for each program.