def extend

bendvy-ecs-core@0.1.0.3 · execution_relation_resource_dispatch.bend:32

import bendvy-ecs-core@0.1.0.3/execution_relation_resource_dispatch.bend as ExecutionRelationResourceDispatch
import Base
import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout
import bendvy-ecs-core@0.1.0.3/execution_relation_store.bend as Store
import bendvy-ecs-core@0.1.0.3/execution_resource_policy.bend as Policy
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T

32# Only the closed declaration's grant factory constructs these branches. Each
33# branch captures lexical schema evidence and receives canonical resource owners;
34# it cannot run an arbitrary World callback or bypass the existing graph logic.
35def extend(~S:Data,~resources:Layout.Layout,~route:Layout.Route,~valid:{Layout.grant_valid(~resources,~route) == True{} : Bool},~descriptor:T.Descriptor<S>,~payload:{Layout.payload(resources,route) == Store.Store<S,descriptor> : Type},~view:{Layout.view(resources,route) == Store.View<S,descriptor> : Data},~protected:{Layout.policy(resources,route) == Policy.ProtectedRelation{S,descriptor} : Policy.Policy},previous:Program(~S,~resources)) -> Program(~S,~resources):
36  expected => actual => allocator => owners => +requested => operation => tick => selected(~S,~resources,~route,~valid,~descriptor,~payload,~view,~protected,route_equal(requested,route),previous,expected,actual,allocator,owners,requested,operation,tick)

Uses (14)

Used by (1)