Skip to main content

Module stdlib

Module stdlib 

Source
Expand description

§35.14: standard protocol fragments — battle-tested handler sets for common agent interaction patterns. Merge into a program with apply_fragment; the program’s own handlers win on trigger clash.

Fragments here are compiled Rust (not .aclp) because they are polymorphic over the host program’s roles.

Functions§

apply_fragment
merge fragment handlers into a program, skipping exact duplicates
deadline_escalation
escalate to the counterpart when a commitment nears expiry: every <warn_ms> -> send progress to <other>
double_confirmation
require a second confirmation before begin: an accept only activates the commitment when a confirm flag was set by a prior inform.
lookup
register a fragment under a name