~/bend-docscommunity

restore_graph_runtime_state.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.0/restore_graph_runtime_state.bend as Restore_graph_runtime_state

13 imports
import Base
import ./change_tick.bend as Tick
import ./world.bend as W
import ./world_resource_owner.bend as WR
import ./owner_product.bend as Product
import ./event_family_runtime.bend as Family
import ./event_family_routing.bend as Route
import ./event_notice_runtime.bend as Mixed
import ./owned_event_family_catalog.bend as Catalog
import ./relation_commands.bend as Notice
import ./internal/relation_failures/domains.bend as Domains
import ./internal/relation_failures/queue.bend as Queue
import ./relation_types.bend as Graph

Templates

template classify source · line 15 · raw

@-S:Data -> @-P:Data -> @value:0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P> -> Maybe<&1, 0x296ca5f551e3792cd56cfc8122905b94/internal/relation_failures/domains.DescriptorKey<S>>

template publish_clocked source · line 19 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-P:Data -> @-F:Type -> @-Owners:Type -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, P> -> F) -> @metadata:Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat) -> @result:Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, Resources, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>, 0x296ca5f551e3792cd56cfc8122905b94/change_tick.Tick) -> 0x296ca5f551e3792cd56cfc8122905b94/event_family_routing.Runtime<S, C, Resources, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>, 0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>>

template publish source · line 22 · raw

@-S:Data -> @-C:Type -> @-Resources:Type -> @-P:Data -> @-F:Type -> @-Owners:Type -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, P> -> F) -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, Resources, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>> -> @metadata:Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat) -> 0x296ca5f551e3792cd56cfc8122905b94/event_family_routing.Runtime<S, C, Resources, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>, 0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>>

template clear_domain source · line 26 · raw

@-S:Data -> @-P:Data -> @value:0x296ca5f551e3792cd56cfc8122905b94/internal/relation_failures/domains.Domain<S, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>> -> 0x296ca5f551e3792cd56cfc8122905b94/internal/relation_failures/domains.Domain<S, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>

This adapter retains the ordinary mixed Runtime's exact metadata/owner type.

template clear_domains source · line 29 · raw

@-S:Data -> @-P:Data -> @values:List<&2, 0x296ca5f551e3792cd56cfc8122905b94/internal/relation_failures/domains.Domain<S, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>> -> List<&2, 0x296ca5f551e3792cd56cfc8122905b94/internal/relation_failures/domains.Domain<S, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>>

template clear_metadata source · line 33 · raw

@-S:Data -> @-P:Data -> @-F:Type -> @-Owners:Type -> @-clear:(@_:F -> F) -> @metadata:Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat)

template drained source · line 36 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-Machines:Type -> @-P:Data -> @-F:Type -> @-Owners:Type -> @-Receipt:Type -> @-clear:(@_:F -> F) -> @rest:0x296ca5f551e3792cd56cfc8122905b94/world_resource_owner.Rest<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>> -> @user:User -> @machines:Machines -> @metadata:Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat) -> @result:Pair(Logs, Receipt) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>, Pair(Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat), Receipt))

template resource_taken source · line 39 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-Machines:Type -> @-P:Data -> @-F:Type -> @-Owners:Type -> @-Receipt:Type -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clear:(@_:F -> F) -> @metadata:Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat) -> @result:Pair(0x296ca5f551e3792cd56cfc8122905b94/world_resource_owner.Rest<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>, Pair(Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat), Receipt))

template admit source · line 44 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-Machines:Type -> @-P:Data -> @-F:Type -> @-Owners:Type -> @-Receipt:Type -> @-retain:(@_:Logs -> @_:List<&2, P> -> Pair(Logs, Receipt)) -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clear:(@_:F -> F) -> @-catalog:0x296ca5f551e3792cd56cfc8122905b94/owned_event_family_catalog.Catalog<P, Logs, F, Receipt, retain, drain, clear> -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>> -> @metadata:Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<0x296ca5f551e3792cd56cfc8122905b94/owner_product.Owner<User, Logs>, Machines>, 0x296ca5f551e3792cd56cfc8122905b94/relation_commands.Notice<S, P>>, Pair(Pair(0x296ca5f551e3792cd56cfc8122905b94/event_notice_runtime.State<S, P, F, Owners>, Nat), Receipt))

Internal admitted cleanup derives its complete log/stream tree from the catalog. Allocator, store, registrations and all progress fields are unchanged.