Expand description
Protocol runtime (spec §33.4) and multiparty projection (§33.5).
Phase 2: Runtime executes a compiled .aclp program as a live agent:
deliver events in, actions come out, everything lands in an auditable
transcript. Transport-agnostic and deterministic — a pure function of
(program, delivered events).
Phase 3: project compiles the GLOBAL protocol into a per-role
ENDPOINT: each role sees only the handlers it must execute and the
sends it must emit. Two projected endpoints, run side by side through
two runtimes wired by a bus, reproduce the global conversation.
Structs§
- LogEntry
- One line of the auditable transcript (§33.3).
- OutEvent
- Something the agent emits.
- Pending
Send - §35.5: a send awaiting retry — driven by tick(), not by a clock.
- Role
Endpoint - A per-role view of a global protocol (§33.5).
- Runtime
- The live agent for ONE role: program + session state + commitment lifecycle + transcript.
Enums§
- Dir
- Event
- Something that happens TO the agent.
- Field
Value - §46: a typed field value on the wire — string literals convert
implicitly (From<&str>/From
) so protocol programs keep working; native ints/floats/bools arrive typed and skip type inference - State
Value - Session variable value (phase 2: the types the runtime understands).
Functions§
- handler_
executor - Which roles a handler’s TRIGGER concerns:
on X from Afires in the role(s) that are NOT A. With two roles this is exactly one role. - perf_
name_ pub - project
- Project a global protocol onto
role’s endpoint (§33.5). - verify_
transcript - §34: transcript verification — replay a recorded exchange through the projected runtimes and check the replay is legal: every send must be dialogue-legal for the receiving role’s previous turn, and every send must land on a declared handler (or be explicitly external).