ordinary_bundle.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.5/ordinary_bundle.bend as Ordinary_bundle
7 imports
import Base import ordinary_declaration.bend as Identity import schema_fragments.bend as SF import bundle_pack.bend as Pack import bundle_requests.bend as Cmd import bundle_construction.bend as CS import bundle_insert_adapter.bend as AD
Types
type Plan source · line 14 · raw
@-S:Data -> @-Raw:Type -> @-Cooked:Type -> Data
Metadata only. Raw constructors and the declared factory/binding remain trusted. This plan supplies no World, storage or provider capability. Schema-indexed bundle metadata for raw input and cooked heterogeneous payload types. Contains no payload, world or provider; trusted construction and binding callbacks supply the actual operations. See docs/parity/bundles.md.
Plan@-S:Data -> @-Raw:Type -> @-Cooked:Type -> @entries:List<&2, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/schema_fragments.Entry<S>> -> Plan<S, Raw, Cooked>
Templates
template terminal source · line 17 · raw
@-S:Data -> Plan<S, Unit, Unit>
Empty bundle plan for Unit raw/cooked tails; performs no construction.
template component source · line 20 · raw
@-S:Data -> @-I:Type -> @-P:Type -> @+identity:0x2a0aaf4f2cb3f416a9b91fd887916a5d/ordinary_declaration.Declaration<S, P> -> Plan<S, I, P>
Describe one component in a bundle using its schema-scoped declaration. Adds metadata only; does not allocate a column or accept a payload.
template compose source · line 25 · raw
@-S:Data -> @-HR:Type -> @-HC:Type -> @-TR:Type -> @-TC:Type -> @head:Plan<S, HR, HC> -> @tail:Plan<S, TR, TC> -> Plan<S, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_pack.Pack<HR, TR>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_pack.Pack<HC, TC>>
Append head/tail component entries and derive matching nested Pack types. Preserves heterogeneous affine payload shapes without receiving live payloads; collisions are checked by request, not by this composition step.
template checked source · line 28 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Packet:Type -> @-Context:Type -> @-Raw:Type -> @-Cooked:Type -> @-Error:Data -> @-construct:(@_:Context -> @_:Raw -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_construction.Staged<Context, Raw, Cooked, Error>) -> @-pack:(@_:Cooked -> @_:(@_:Cooked -> Raw) -> Packet) -> @-unpack:(@_:Packet -> Raw) -> @validation:0x2a0aaf4f2cb3f416a9b91fd887916a5d/schema_fragments.Validation -> @owner:0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_insert_adapter.Owner<S, Store, R, E, Packet, Context> -> @input:0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_requests.Input<S, Raw> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_insert_adapter.Owner<S, Store, R, E, Packet, Context>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_requests.Output<S, Raw, Error>)
template request source · line 38 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Packet:Type -> @-Context:Type -> @-Raw:Type -> @-Cooked:Type -> @-Error:Data -> @-construct:(@_:Context -> @_:Raw -> 0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_construction.Staged<Context, Raw, Cooked, Error>) -> @-pack:(@_:Cooked -> @_:(@_:Cooked -> Raw) -> Packet) -> @-unpack:(@_:Packet -> Raw) -> @plan:Plan<S, Raw, Cooked> -> @owner:0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_insert_adapter.Owner<S, Store, R, E, Packet, Context> -> @input:0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_requests.Input<S, Raw> -> Pair(0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_insert_adapter.Owner<S, Store, R, E, Packet, Context>, 0x2a0aaf4f2cb3f416a9b91fd887916a5d/bundle_requests.Output<S, Raw, Error>)
Validate bundle metadata before invoking construction/command staging. Declaration refusal returns the opaque owner and original raw input without running construct. Other results follow the bound bundle request contract. Successful staging is deferred; visibility requires an explicit barrier. Raw adapters, reversible constructors and pack/unpack remain trusted setup. Ownership/error scenarios: docs/parity/bundles.md.