Expand description
Inputs and outputs of the eight kernel exports (see docs/kernel-protocol.md).
Structs§
- Derive
IdsInput - Input to
derive_ids. - Derive
IdsOutput - Output of
derive_ids. - Hash
AtSeq - A
(seq, state_hash)pair, from the journal or from a re-fold. - Kernel
Error - A kernel failure.
codeis one of the closed set the kernel defines; the host branches on it, never onmessage. - Kernel
Result - Every export returns this shape:
{"ok":true,"value":…}or{"ok":false,"error":…}. - Kernel
Version - Output of
kernel_version. - Prepare
Event Input - Input to
prepare_event. - Reduce
Step Input - Input to
reduce_step. - Refold
Check Input - Input to
refold_check. - Refold
Check Output matches: falsecarries the first divergent seq and both hashes.- State
Hash Input - Input to
compute_state_hash. - State
Hash Output - Output of
compute_state_hash. - Validate
Event Output - Output of
validate_event.
Enums§
- Prepared
- Output of
prepare_event: what the host does next. - Reducer
Event - What the reducer sees. The kernel translates journal headers into these; the
reducer never sees
seq,randomor lifecycle noise except where it needs them.