~/bend-docscommunity

execution_machine_access.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_machine_access.bend as Execution_machine_access

8 imports
import Base
import ./execution_resource_policy.bend as Policy
import ./execution_machine_state.bend as State
import ./machine.bend as M
import ./execution_access.bend as A
import ./execution_composer_layout.bend as Layout
import ./execution_builder.bend as Build
import ./change_tick.bend as Tick

Types

type Read source · line 10 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> Type

type Write source · line 12 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> Type

type Apply source · line 14 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> Type

Definitions

def leaf source · line 19 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @key:String -> 0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout

def read source · line 21 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @cap:0x704c77730661eff4309838fc738ef615/execution_access.ResourceRead<H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>> -> Read<S, K, V, H>

def write source · line 24 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @same:(@_:V -> @_:V -> Bool) -> @cap:0x704c77730661eff4309838fc738ef615/execution_access.ResourceWrite<H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V>, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>> -> Write<S, K, V, H>

def checked_write source · line 35 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @-P:Type -> @-View:Data -> @payload:{P == 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> : Type} -> @view:{View == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @cap:0x704c77730661eff4309838fc738ef615/execution_access.ResourceWrite<H, P, View> -> 0x704c77730661eff4309838fc738ef615/execution_access.ResourceWrite<H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V>, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>>

def checked_read source · line 39 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @-View:Data -> @view:{View == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @cap:0x704c77730661eff4309838fc738ef615/execution_access.ResourceRead<H, View> -> 0x704c77730661eff4309838fc738ef615/execution_access.ResourceRead<H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>>

def selected_write source · line 44 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @-B:Type -> @-layout:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> : Type} -> @view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @same:(@_:V -> @_:V -> Bool) -> @result:Pair(B, 0x704c77730661eff4309838fc738ef615/execution_access.ResourceWrite<H, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(layout, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route)>) -> Pair(B, Write<S, K, V, H>)

These selection helpers consume the existing Builder callbacks. They return no raw cell writer and keep capability+conflict metadata in the same closed Program.

def selected_read source · line 54 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @-B:Type -> @-layout:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @result:Pair(B, 0x704c77730661eff4309838fc738ef615/execution_access.ResourceRead<H, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route)>) -> Pair(B, Read<S, K, V, H>)

Templates

template Reads source · line 16 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @Permit:Data -> @H:Type -> Type

template Writes source · line 17 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @Permit:Data -> @H:Type -> Type

template Applies source · line 18 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @Permit:Data -> @H:Type -> Type

template applied source · line 27 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @cell:0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> -> Pair(0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V>, 0x704c77730661eff4309838fc738ef615/execution_machine_state.Intent<V>)

template applying source · line 30 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @cell:0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> -> Pair(0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V>, 0x704c77730661eff4309838fc738ef615/execution_machine_state.Intent<V>)

template apply source · line 32 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @-same:(@_:V -> @_:V -> Bool) -> @cap:0x704c77730661eff4309838fc738ef615/execution_access.ResourceWrite<H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V>, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>> -> Apply<S, K, V, H>

template select_write source · line 47 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-C:Type -> @-R:Type -> @-H:Type -> @-B:Type -> @-layout:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-same_resource:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, layout) : Type} -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.resource_write_valid(layout, route) == True{} : Bool} -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @-same:(@_:V -> @_:V -> Bool) -> @-resource_write:0x704c77730661eff4309838fc738ef615/execution_builder.ResourceWrite(S, C, R, H, B) -> @book:B -> Pair(B, Write<S, K, V, H>)

template selected_apply source · line 49 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @-B:Type -> @-layout:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @-same:(@_:V -> @_:V -> Bool) -> @result:Pair(B, 0x704c77730661eff4309838fc738ef615/execution_access.ResourceWrite<H, 0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(layout, route), 0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route)>) -> Pair(B, Apply<S, K, V, H>)

template select_apply source · line 52 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-C:Type -> @-R:Type -> @-H:Type -> @-B:Type -> @-layout:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-same_resource:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, layout) : Type} -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.resource_write_valid(layout, route) == True{} : Bool} -> @-payload:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.payload(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.Cell<S, K, V> : Type} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @-same:(@_:V -> @_:V -> Bool) -> @-resource_write:0x704c77730661eff4309838fc738ef615/execution_builder.ResourceWrite(S, C, R, H, B) -> @book:B -> Pair(B, Apply<S, K, V, H>)

template select_read source · line 57 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-C:Type -> @-R:Type -> @-H:Type -> @-B:Type -> @-layout:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-route:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Route -> @-same_resource:{R == 0x704c77730661eff4309838fc738ef615/execution_composer_layout.resources(S, layout) : Type} -> @-valid:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.grant_valid(layout, route) == True{} : Bool} -> @-view:{0x704c77730661eff4309838fc738ef615/execution_composer_layout.view(layout, route) == 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V> : Data} -> @-resource_read:0x704c77730661eff4309838fc738ef615/execution_builder.ResourceRead(S, C, R, H, B) -> @book:B -> Pair(B, Read<S, K, V, H>)

template read_field source · line 60 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @cap:Read<S, K, V, H> -> @_:H -> Pair(H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>)

template write_read_field source · line 63 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @cap:Write<S, K, V, H> -> @_:H -> Pair(H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>)

template request_field source · line 66 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @cap:Write<S, K, V, H> -> @_:0x704c77730661eff4309838fc738ef615/machine.QueueInput<V> -> @_:H -> Pair(H, Unit)

template apply_field source · line 69 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @cap:Apply<S, K, V, H> -> @_:H -> Pair(H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.Intent<V>)

template apply_read_field source · line 74 · raw

@-S:Data -> @-K:Data -> @-V:Data -> @-H:Type -> @cap:Apply<S, K, V, H> -> @_:H -> Pair(H, 0x704c77730661eff4309838fc738ef615/execution_machine_state.View<S, K, V>)