CBCL / DocumentationDocs v0.3.1

Identity, roles and casts

A message can name Alice in its sender field. The receiver must check that Alice sent it. The host authenticates the signer. It supplies the signer identity and the canonical message to the runtime. The runtime uses the signer identity to check authority. In a poll, this identity selects the ballot that a vote can change.

On this page

One protocol, different people in each thread

An approval dialect can name two roles: chair and reviewer. The chair opens the request. Reviewers approve the request. The chair closes it. Those roles are part of the reusable definition. The cast assigns actual participant keys to roles for a particular thread.

The opener carries the cast in a with-roles wrapper. Each subsequent act has a causal path to that root. This path ties the role assignment to the thread. A chair for one request can be a reviewer on a different request. The receiver uses the root and its causal history to check subsequent acts. If the root is missing, the receiver can give a pending verdict.

Participation and counting

The opener names the keys for each role. A nominee participates when that person signs an act for the role. For some steps, each reviewer must send an act. If one reviewer does not reply, the step can stay incomplete. The opener fixes the membership of an indexed role.

The projection specifies what to count. One reviewer can send three approval acts. To count reviewers, the projection must identify each signer. The receiver must also check the role. A count of distinct message addresses alone answers how many approvals arrived.

See Select a state rule for counting and Diagnose a missing vote for the evidence to examine on receipt.