~/bend-docscommunity

restore_schema.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/restore_schema.bend as Restore_schema

17 imports
import Base
import ./change_tick.bend as Tick
import ./restore_clear.bend as Clear
import ./restore_transient.bend as Transient
import ./restore_data.bend as R
import ./restore_leaf.bend as Stage
import ./restore_storage.bend as Storage
import ./restore_product.bend as Product
import ./snapshot_schema.bend as Save
import ./snapshot_leaf.bend as Leaf
import ./ordinary_schema.bend as Ordinary
import ./ordinary_declaration.bend as Identity
import ./owner_product.bend as Owner
import ./decode_data.bend as D
import ./decode_construction.bend as Constructor
import ./bundle_construction.bend as Build
import ./world.bend as W

Types

type Schema source · line 23 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insert:(@_:C -> @_:Resources -> @_:State -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, Resources), State)) -> @-Recovery:Type -> @-commit:(@_:State -> State) -> @-takeRecovery:(@_:State -> Pair(State, Recovery)) -> Data

Restore schema retaining the ordinary declaration inventory with closed staged construction/cleanup/insertion/recovery adapters in its type. Compose canonical builders rather than a second name registry. Raw schema/lens/supply callbacks remain trusted provisioning, not arbitrary descriptor validation by this wrapper.

Definitions

def component_kind source · line 25 · raw

0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.FamilyKind

def resource_kind source · line 26 · raw

0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.FamilyKind

Templates

template component_stage source · line 27 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @-supply:(@_:Context -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Pair(Context, I)) -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)

template resource_stage source · line 29 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @-supply:(@_:Context -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Pair(Context, I)) -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)

template component_clear source · line 31 · raw

@-S:Data -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)

template resource_clear source · line 33 · raw

@-S:Data -> @owner:Unit -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(Unit, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)

template product_clear source · line 35 · raw

@-S:Data -> @-LC:Type -> @-RC:Type -> @-left:(@_:LC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(LC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-right:(@_:RC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(RC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LC, RC> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LC, RC>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)

template component_insert_join source · line 37 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>) -> Pair(Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, Unit), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)

template component_insert source · line 40 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project> -> @unit:Unit -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, Unit), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)

template resource_insert_join source · line 42 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>) -> Pair(Pair(Unit, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project>), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)

template resource_insert source · line 45 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @unit:Unit -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P> -> @bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(Unit, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project>), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>)

template component source · line 51 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @-supply:(@_:Context -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Pair(Context, I)) -> Schema<S, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Component<S, P, identity, project>, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>, Custom, component_stage(S, Context, I, P, Custom, identity, project, incoming, build, factory, supply), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.release(Context, I, P), component_clear(S, P, identity, project), component_insert(S, Context, I, P, identity, project), List<&1, I>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.commit(Context, I, P), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.take_recovery(Context, I, P)>

Build a persisted component restore leaf from its nominal identity, canonical codec/fallible factory and owned input supply. Stage incoming construction and validate the resulting stored P before World insertion; refusal returns actual inputs through schema release/recovery. No generic Raw-to-arbitrary-Type cast.

template resource source · line 56 · raw

@-S:Data -> @-Context:Type -> @-I:Type -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-incoming:(@_:I -> Pair(I, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-build:(@_:I -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_construction.Construction<I, P, Custom>) -> @-factory:0x14a72e1c180a5ab1f8a056d43822425c/decode_construction.FallibleFactory<S, I, P, Custom, identity, project, incoming, build> -> @-supply:(@_:Context -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw -> Pair(Context, I)) -> Schema<S, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.Resource<S, P, identity, project>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.State<Context, I, P>, Custom, resource_stage(S, Context, I, P, Custom, identity, project, incoming, build, factory, supply), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.release(Context, I, P), resource_clear(S), resource_insert(S, Context, I, P, identity, project), List<&1, I>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.commit(Context, I, P), 0x14a72e1c180a5ab1f8a056d43822425c/restore_leaf.take_recovery(Context, I, P)>

Build a persisted resource restore leaf using the same constructed declaration and factory contract. Omitted resources remain owned by World; a staged value replaces through schema insertion only after complete preparation/admission.

template product_stage source · line 58 · raw

@-S:Data -> @-LC:Type -> @-LR:Type -> @-RC:Type -> @-RR:Type -> @-L:Type -> @-Right:Type -> @-Custom:Data -> @-stageLeft:(@_:L -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(L, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseLeft:(@_:L -> L) -> @-clearLeft:(@_:LC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(LC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertLeft:(@_:LC -> @_:LR -> @_:L -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(LC, LR), L)) -> @-stageRight:(@_:Right -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(Right, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseRight:(@_:Right -> Right) -> @-clearRight:(@_:RC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(RC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertRight:(@_:RC -> @_:RR -> @_:Right -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(RC, RR), Right)) -> @state:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right> -> @position:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @field:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)

template product_insert source · line 60 · raw

@-S:Data -> @-LC:Type -> @-LR:Type -> @-RC:Type -> @-RR:Type -> @-L:Type -> @-Right:Type -> @-Custom:Data -> @-stageLeft:(@_:L -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(L, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseLeft:(@_:L -> L) -> @-clearLeft:(@_:LC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(LC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertLeft:(@_:LC -> @_:LR -> @_:L -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(LC, LR), L)) -> @-stageRight:(@_:Right -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(Right, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseRight:(@_:Right -> Right) -> @-clearRight:(@_:RC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(RC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertRight:(@_:RC -> @_:RR -> @_:Right -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(RC, RR), Right)) -> @owner:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LC, RC> -> @resource:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LR, RR> -> @state:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right> -> @bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LC, RC>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LR, RR>), 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>)

template product_join source · line 62 · raw

@-S:Data -> @-LC:Type -> @-LR:Type -> @-RC:Type -> @-RR:Type -> @-L:Type -> @-Right:Type -> @-Custom:Data -> @-stageLeft:(@_:L -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(L, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseLeft:(@_:L -> L) -> @-clearLeft:(@_:LC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(LC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertLeft:(@_:LC -> @_:LR -> @_:L -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(LC, LR), L)) -> @-stageRight:(@_:Right -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(Right, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseRight:(@_:Right -> Right) -> @-clearRight:(@_:RC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(RC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertRight:(@_:RC -> @_:RR -> @_:Right -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(RC, RR), Right)) -> @-LRecovery:Type -> @-RRecovery:Type -> @-commitLeft:(@_:L -> L) -> @-commitRight:(@_:Right -> Right) -> @-takeLeft:(@_:L -> Pair(L, LRecovery)) -> @-takeRight:(@_:Right -> Pair(Right, RRecovery)) -> @left:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, LC, LR> -> @right:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, RC, RR> -> Schema<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LC, RC>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LR, RR>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, Custom, product_stage(S, LC, LR, RC, RR, L, Right, Custom, stageLeft, releaseLeft, clearLeft, insertLeft, stageRight, releaseRight, clearRight, insertRight), 0x14a72e1c180a5ab1f8a056d43822425c/restore_product.release(L, Right, releaseLeft, releaseRight), product_clear(S, LC, RC, clearLeft, clearRight), product_insert(S, LC, LR, RC, RR, L, Right, Custom, stageLeft, releaseLeft, clearLeft, insertLeft, stageRight, releaseRight, clearRight, insertRight), 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LRecovery, RRecovery>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_product.release(L, Right, commitLeft, commitRight), 0x14a72e1c180a5ab1f8a056d43822425c/restore_product.take_recovery(L, Right, LRecovery, RRecovery, takeLeft, takeRight)>

template product source · line 67 · raw

@-S:Data -> @-LC:Type -> @-LR:Type -> @-RC:Type -> @-RR:Type -> @-L:Type -> @-Right:Type -> @-Custom:Data -> @-stageLeft:(@_:L -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(L, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseLeft:(@_:L -> L) -> @-clearLeft:(@_:LC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(LC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertLeft:(@_:LC -> @_:LR -> @_:L -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(LC, LR), L)) -> @-stageRight:(@_:Right -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(Right, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-releaseRight:(@_:Right -> Right) -> @-clearRight:(@_:RC -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(RC, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insertRight:(@_:RC -> @_:RR -> @_:Right -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(RC, RR), Right)) -> @-LRecovery:Type -> @-RRecovery:Type -> @-commitLeft:(@_:L -> L) -> @-commitRight:(@_:Right -> Right) -> @-takeLeft:(@_:L -> Pair(L, LRecovery)) -> @-takeRight:(@_:Right -> Pair(Right, RRecovery)) -> @left:Schema<S, LC, LR, L, Custom, stageLeft, releaseLeft, clearLeft, insertLeft, LRecovery, commitLeft, takeLeft> -> @right:Schema<S, RC, RR, Right, Custom, stageRight, releaseRight, clearRight, insertRight, RRecovery, commitRight, takeRight> -> Schema<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LC, RC>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LR, RR>, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<L, Right>, Custom, product_stage(S, LC, LR, RC, RR, L, Right, Custom, stageLeft, releaseLeft, clearLeft, insertLeft, stageRight, releaseRight, clearRight, insertRight), 0x14a72e1c180a5ab1f8a056d43822425c/restore_product.release(L, Right, releaseLeft, releaseRight), product_clear(S, LC, RC, clearLeft, clearRight), product_insert(S, LC, LR, RC, RR, L, Right, Custom, stageLeft, releaseLeft, clearLeft, insertLeft, stageRight, releaseRight, clearRight, insertRight), 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<LRecovery, RRecovery>, 0x14a72e1c180a5ab1f8a056d43822425c/restore_product.release(L, Right, commitLeft, commitRight), 0x14a72e1c180a5ab1f8a056d43822425c/restore_product.take_recovery(L, Right, LRecovery, RRecovery, takeLeft, takeRight)>

Compose schema inventories, staged field dispatch, owner cleanup/insertion and actual recovery products in left-before-right order. Canonical dispatch tries right only when left is Unhandled; this adds no new duplicate-field policy.

template transient_component source · line 73 · raw

@-S:Data -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> Schema<S, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.TransientComponent<S, P, identity>, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.State<P>, Custom, 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.stage(0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.State<P>, Custom), 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.release(0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.State<P>), 0x14a72e1c180a5ab1f8a056d43822425c/restore_clear.transient_component(S, P, identity), 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.insert(S, P, identity), Unit, 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.commit(P), 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.take_recovery(0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.State<P>)>

Build an explicitly omitted transient component leaf. Snapshot input does not construct this payload; old entity cleanup still handles its existing storage when restoring the live entity set. No new arbitrary-Type factory is invented.

template transient_resource source · line 77 · raw

@-S:Data -> @-P:Type -> @-Custom:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> Schema<S, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/snapshot_leaf.TransientResource<S, P, identity>, Unit, Custom, 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.stage(Unit, Custom), 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.release(Unit), resource_clear(S), 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.resource_insert(S, P, identity), Unit, 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.release(Unit), 0x14a72e1c180a5ab1f8a056d43822425c/restore_transient.take_recovery(Unit)>

Build an omitted transient resource leaf, preserving its existing actual owner on insertion. Incoming named fields are not admitted through transient staging.

template events_insert_join source · line 79 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Logs:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insert:(@_:C -> @_:Resources -> @_:State -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, Resources), State)) -> @logs:Logs -> @observed:Pair(Pair(C, Resources), State) -> Pair(Pair(C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Logs>), State)

template events_insert source · line 82 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Logs:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insert:(@_:C -> @_:Resources -> @_:State -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, Resources), State)) -> @owner:C -> @resource:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Logs> -> @state:State -> @bindings:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @tick:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Logs>), State)

template with_events source · line 88 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-Logs:Type -> @-State:Type -> @-Custom:Data -> @-stage:(@_:State -> @_:0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Position -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Field -> Pair(State, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Dispatch<Custom>)) -> @-release:(@_:State -> State) -> @-clear:(@_:C -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(C, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Change<S>>)) -> @-insert:(@_:C -> @_:Resources -> @_:State -> @_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/restore_data.Binding<S>> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Pair(Pair(C, Resources), State)) -> @-Recovery:Type -> @-commit:(@_:State -> State) -> @-takeRecovery:(@_:State -> Pair(State, Recovery)) -> @schema:Schema<S, C, Resources, State, Custom, stage, release, clear, insert, Recovery, commit, takeRecovery> -> Schema<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<Resources, Logs>, State, Custom, stage, release, clear, events_insert(S, C, Resources, Logs, State, Custom, stage, release, clear, insert), Recovery, commit, takeRecovery>

Lift user-resource restore over Product.Owner<Resources,Logs>, retaining actual logs during basic schema insertion. Logs are not persisted fields; restore-runtime performs the separate typed drain/stream-clearing boundary.