Expand description
Yield skill-program SDK for Rust (yield.v1).
Implements the tested SDK execution contract (see ir/README.md): load the journal, replay recorded operations with a digest comparison at EVERY replayed step before consuming its response, emit exactly one program output (request | terminal | diverged) on stdout, then exit.
Programs must be deterministic between yields: same journal, same operations, every execution. Clocks, RNGs, environment reads, and filesystem state are side effects — cross them through a yielded operation or leave them out.
The crate is named yieldskill because yield is a Rust keyword.
Structs§
- Command
Result - Context
- The replay cursor and the five primitives.
- Journal
- Journal
Entry - Request
- Request
Envelope - Requirement
- Response
Envelope - Skill
Ref
Enums§
- Exit
- The honest terminal exits. A failed
requirenever reaches program code — the SDK emits and exits directly.
Constants§
Functions§
- define_
skill - Run a skill program under the supervisor protocol. The program’s return
value is the run result; return
Err(ctx.blocked(...))orErr(ctx.refused(...))for the honest terminals.