Skip to main content

Crate yieldskill

Crate yieldskill 

Source
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§

CommandResult
Context
The replay cursor and the five primitives.
Journal
JournalEntry
Request
RequestEnvelope
Requirement
ResponseEnvelope
SkillRef

Enums§

Exit
The honest terminal exits. A failed require never reaches program code — the SDK emits and exits directly.

Constants§

PROTOCOL

Functions§

define_skill
Run a skill program under the supervisor protocol. The program’s return value is the run result; return Err(ctx.blocked(...)) or Err(ctx.refused(...)) for the honest terminals.

Type Aliases§

SkillResult