Threads and causality
A thread groups acts for one conversation. A causal reference gives the receiver evidence that one act follows a preceding act. The thread name identifies the poll. The cited address identifies the proposal that the voter saw.
On this page
A missing predecessor
Bob sees the proposal on his phone. He sends a vote. A second receiver gets his vote first.
| Arrival | What the receiver knows | Result |
|---|---|---|
| Bob’s vote | It cites a proposal address the receiver lacks | Keep the vote pending |
| Alice’s proposal | It is a valid opener for this poll | Accept the proposal. Retry the pending vote. |
| Retry Bob’s vote | The cited predecessor now satisfies the protocol | Accept the vote |
| Second copy of Bob’s vote | The receiver has the address | The duplicate adds no ballot |
A pending result means that the receiver must get more evidence. Keep the pending message. If the transport supports retrieval by address, request the missing predecessor. The receiver can check a field type before the predecessor arrives.
Concurrency and clocks
Bob and Carol can cite the same proposal. Each can vote before the other vote arrives. Their acts form two branches, and a receiver can accept either first. The causal frontier contains the known ends of these branches. Arrival order cannot establish a causal relationship.
Each vote carries a hybrid logical clock (HLC). The receiver uses the causal reference to identify the proposal. The ballot register uses the clock to select between competing writes. It uses the signer and the address to resolve ties. The host saves the previous clock value for each signer. Hosts that share a signer must coordinate clock updates.
Replay the delivery sequence in JavaScript or Rust. For how the tally treats two different votes by the same signer, see Select a state rule.