Expand description
Pure projection helpers from the canonical Kernel Wire contract to host-facing facts.
This module intentionally contains no host I/O, clocks, randomness, or runtime state. The first slice centralises publication-manifest extraction; action projection is added on top of the same boundary in the following TDD cards.
Structs§
- Projection
Error - Published
Effect Ref - The minimal fact a host may append to its event log for a committed step.
Enums§
- Canonical
Host Action - Host-facing action with one canonical effect payload. Payload structs are the existing wire structs; this first slice centralises selection without inventing a second payload schema.
- Current
Projection
Functions§
- current_
effect - Return the first effect in a committed step’s publication order. Transitional SDK adapters
use this selector while their payload conversion is migrated to
project_effect. - project_
current_ action - Select the current host action from one committed step. The step’s vector is already the kernel’s publication order, so the first effect is the only legal current action.
- project_
current_ pending_ action - Project the current action from the transaction’s already ordered pending-effect view.
Ordering is deliberately owned by
KernelTransaction::pending_effects_in_order; this helper only selects the head and maps it to a canonical action. - project_
effect - Project one wire effect without touching host state.
- project_
planned_ step_ json - JSON bridge used by bindings for transitions that carry a planned step directly.
- published_
effects_ manifest - Extract effects in the step’s publication/mint order.
- published_
effects_ manifest_ json - JSON bridge for the host audit manifest. This intentionally excludes payloads and preserves the publication order already encoded in the planned step.