restore_graph_runtime_state.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.2/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:0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P> -> Maybe<&1, 0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>, Nat) -> @result:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, Resources, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>>, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick) -> 0xb2b0f04555daca474f0f77d0966945c9/event_family_routing.Runtime<S, C, Resources, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>, 0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, Resources, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>> -> @metadata:Pair(0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>, Nat) -> 0xb2b0f04555daca474f0f77d0966945c9/event_family_routing.Runtime<S, C, Resources, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>, 0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>>
template clear_domain source · line 26 · raw
@-S:Data -> @-P:Data -> @value:0xb2b0f04555daca474f0f77d0966945c9/internal/relation_failures/domains.Domain<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>> -> 0xb2b0f04555daca474f0f77d0966945c9/internal/relation_failures/domains.Domain<S, 0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/internal/relation_failures/domains.Domain<S, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>>> -> List<&2, 0xb2b0f04555daca474f0f77d0966945c9/internal/relation_failures/domains.Domain<S, 0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>, Nat) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/world_resource_owner.Rest<S, C, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>> -> @user:User -> @machines:Machines -> @metadata:Pair(0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>, Nat) -> @result:Pair(Logs, Receipt) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>>, Pair(Pair(0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>, Nat) -> @result:Pair(0xb2b0f04555daca474f0f77d0966945c9/world_resource_owner.Rest<S, C, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>>, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>>, Pair(Pair(0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/owned_event_family_catalog.Catalog<P, Logs, F, Receipt, retain, drain, clear> -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>> -> @metadata:Pair(0xb2b0f04555daca474f0f77d0966945c9/event_notice_runtime.State<S, P, F, Owners>, Nat) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, C, 0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<0xb2b0f04555daca474f0f77d0966945c9/owner_product.Owner<User, Logs>, Machines>, 0xb2b0f04555daca474f0f77d0966945c9/relation_commands.Notice<S, P>>, Pair(Pair(0xb2b0f04555daca474f0f77d0966945c9/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.