Expand description
The effect contract: capability-gated requests resolved by an implementation.
The kernel defines the Effect record, its replay-key identity, and the
control effect protocol. Libraries mint behavior-specific effect kinds.
Structs§
- Effect
- A capability-gated request resolved by an effect handler.
- Effect
Record - Ledger record tracking one effect’s request, resolution, and outcome.
Constants§
- EFFECT_
REPLAY_ VERSION - Version tag mixed into every effect replay-key preimage.
Functions§
- effect_
abort_ op_ key - Operation key effects use to abort a handler.
- effect_
control_ abort_ kind - Well-known kind symbol for control-abort effects.
- effect_
control_ capture_ kind - Well-known kind symbol for control-capture effects.
- effect_
control_ prompt_ kind - Well-known kind symbol for control-prompt effects.
- effect_
control_ resume_ kind - Well-known kind symbol for control-resume effects.
- effect_
replay_ key - Content-id of the effect’s replay-key preimage for
implementation. - effect_
replay_ preimage - Build the canonical datum hashed into an effect’s replay key.
- effect_
resume_ op_ key - Operation key effects use to resume a handler.
- resolve_
effect - Resolve an effect end to end: record the request, enforce capabilities,
reuse any cassette result, otherwise run
perform, then record the outcome.