pub struct LocalProtocol {
pub steps: BTreeMap<String, LocalStep>,
pub expect_envelopes: BTreeSet<String>,
pub protocol: Option<CausalProtocol>,
}Expand description
A role’s local protocol: its Send/Recv steps plus the dialect-level causal protocol, predecessor clauses untouched (raw edges, REQ-610).
Fields§
§steps: BTreeMap<String, LocalStep>Performative name → step kind; bystander performatives are erased (absent).
expect_envelopes: BTreeSet<String>ExpectEnvelope steps (SPEC-015 REQ-709): the performatives whose
redacted envelopes this endpoint awaits under a
(:causal-locality derive) dialect — a Recv-analogue carrying no
payload obligation, one per derived route naming this endpoint.
A separate step set, not a LocalStep variant in steps: a
per-occupant endpoint of an indexed role can hold both Send (its
own instance) and ExpectEnvelope (its co-occupants’ instances) for
one performative type, which a single-valued step map cannot
express. Send/Recv steps and payload delivery are untouched; empty
under reject (the v1 reading, bit-for-bit).
protocol: Option<CausalProtocol>The dialect-level protocol the R5 composition verifies against (ADR-604); shared verbatim across all endpoints.