Expand description
The effect contract: capability-gated requests resolved by an implementation.
The kernel defines the Effect record, its replay-key identity, and the
well-known effect kinds; libraries supply the handlers that perform effects.
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_
device_ read_ kind - Well-known kind symbol for device-read effects.
- effect_
device_ write_ kind - Well-known kind symbol for device-write effects.
- effect_
filesystem_ kind - Well-known kind symbol for filesystem effects.
- effect_
host_ process_ kind - Well-known kind symbol for host-process effects.
- effect_
model_ infer_ kind - Well-known kind symbol for model-inference effects.
- effect_
network_ kind - Well-known kind symbol for network effects.
- effect_
random_ kind - Well-known kind symbol for randomness effects.
- effect_
remote_ realize_ kind - Well-known kind symbol for remote-realize 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.
- effect_
test_ run_ kind - Well-known kind symbol for test-run effects.
- effect_
time_ kind - Well-known kind symbol for time effects.
- effect_
tool_ call_ kind - Well-known kind symbol for tool-call effects.
- resolve_
effect - Resolve an effect end to end: record the request, enforce capabilities,
reuse any cassette result, otherwise run
perform, then record the outcome.