Expand description
Envelope validation. Runs before every other export so no later stage has to re-check field shape.
Constants§
- BLOB_
REF_ PREFIX - Prefix of an offloaded payload reference.
- RANDOM_
HEX_ LEN randomis 32 lowercase hex chars of journaled entropy.
Functions§
- is_
random_ hex - Whether
valueis exactlyRANDOM_HEX_LENlowercase hex chars. - optional_
payload_ value - Like
payload_valuebut distinguishes “absent” from “present and null”. - payload_
value - The payload as a value.
payload_refmust be resolved by the host before the kernel sees it, because a reducer event carries the value, not the pointer. - validate_
event - Field/enum checks plus the inline payload limit. Returns the normalized event; the kernel keeps payloads byte-exact, so normalization is currently a no-op clone that exists so the host has one place to adopt future coercions.