captured_schedule_composition.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.2/captured_schedule_composition.bend as Captured_schedule_composition
4 imports
import Base import ./world.bend as W import ./schedule.bend as Sch import ./schedule_provision.bend as SP
Types
type Identity source · line 10 · raw
Data
Closed typed composition carries independently authored owners, never a copied closure or a caller-maintained dispatcher enumeration. Detached actual registration identity used by heterogeneous composition. Includes namespace/ID/name/access for validation; not a substitute for the affine owner or an authorization token on its own.
Identity@namespace:U32 -> @id:U32 -> @name:String -> @access:List<&2, String> -> Identity
type Outcome source · line 15 · raw
@World:Type -> @Owner:Type -> @Error:Data -> Type
Dispatch result retaining World and heterogeneous owner on completion, skip, failure or refusal. Error values are detached; owner restoration and transaction behavior belong to the selected registered runner.
Completed@World:Type -> @Owner:Type -> @Error:Data -> @world:World -> @owner:Owner -> Outcome<World, Owner, Error>
Skipped@World:Type -> @Owner:Type -> @Error:Data -> @world:World -> @owner:Owner -> Outcome<World, Owner, Error>
Failed@World:Type -> @Owner:Type -> @Error:Data -> @world:World -> @owner:Owner -> @error:Error -> Outcome<World, Owner, Error>
Refused@World:Type -> @Owner:Type -> @Error:Data -> @world:World -> @owner:Owner -> Outcome<World, Owner, Error>
type Choice source · line 23 · raw
@L:Data -> @R:Data -> Data
Detached heterogeneous error sum used when composing registered systems. LeftError and RightError identify the originating error branch; it carries neither the World nor affine system owners, which return separately.
LeftError@L:Data -> @R:Data -> @error:L -> Choice<L, R>
RightError@L:Data -> @R:Data -> @error:R -> Choice<L, R>
Definitions
def ids source · line 26 · raw
@items:List<&2, Identity> -> List<&2, U32>
def member source · line 30 · raw
@items:List<&2, Identity> -> @+wanted:U32 -> Bool
def identities_valid source · line 34 · raw
@+namespace:U32 -> @+registered:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.RegistrationMeta> -> @items:List<&2, Identity> -> @+seen:List<&2, U32> -> Bool
Templates
template pair_catalog_done source · line 38 · raw
@-L:Type -> @-R:Type -> @left:L -> @entries:List<&2, Identity> -> @result:Pair(R, List<&2, Identity>) -> Pair(Pair(L, R), List<&2, Identity>)
template pair_catalog_left source · line 41 · raw
@-L:Type -> @-R:Type -> @-right:(@_:R -> Pair(R, List<&2, Identity>)) -> @other:R -> @result:Pair(L, List<&2, Identity>) -> Pair(Pair(L, R), List<&2, Identity>)
template pair_catalog source · line 47 · raw
@-L:Type -> @-R:Type -> @-left:(@_:L -> Pair(L, List<&2, Identity>)) -> @-right:(@_:R -> Pair(R, List<&2, Identity>)) -> @owners:Pair(L, R) -> Pair(Pair(L, R), List<&2, Identity>)
Advanced owner-threading catalog composition in left/right order. Returns both affine owners and appended identities without executing bodies. Supplied catalog callbacks must preserve actual registration correspondence.
template left_returned source · line 50 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-LE:Data -> @-RE:Data -> @right:R -> @result:Outcome<World, L, LE> -> Outcome<World, Pair(L, R), Choice<LE, RE>>
template right_returned source · line 56 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-LE:Data -> @-RE:Data -> @left:L -> @result:Outcome<World, R, RE> -> Outcome<World, Pair(L, R), Choice<LE, RE>>
template pair_selected source · line 62 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-LE:Data -> @-RE:Data -> @-left:(@_:L -> @_:World -> @_:U32 -> Outcome<World, L, LE>) -> @-right:(@_:R -> @_:World -> @_:U32 -> Outcome<World, R, RE>) -> @found:Bool -> @a:L -> @b:R -> @world:World -> @id:U32 -> Outcome<World, Pair(L, R), Choice<LE, RE>>
template pair_cataloged source · line 66 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-LE:Data -> @-RE:Data -> @-left:(@_:L -> @_:World -> @_:U32 -> Outcome<World, L, LE>) -> @-right:(@_:R -> @_:World -> @_:U32 -> Outcome<World, R, RE>) -> @b:R -> @world:World -> @+id:U32 -> @result:Pair(L, List<&2, Identity>) -> Outcome<World, Pair(L, R), Choice<LE, RE>>
template pair_dispatch source · line 73 · raw
@-World:Type -> @-L:Type -> @-R:Type -> @-LE:Data -> @-RE:Data -> @-catalog:(@_:L -> Pair(L, List<&2, Identity>)) -> @-left:(@_:L -> @_:World -> @_:U32 -> Outcome<World, L, LE>) -> @-right:(@_:R -> @_:World -> @_:U32 -> Outcome<World, R, RE>) -> @owners:Pair(L, R) -> @world:World -> @id:U32 -> Outcome<World, Pair(L, R), Choice<LE, RE>>
Advanced heterogeneous dispatch using the left catalog to choose a branch. Retains both owners, wraps errors as LeftError/RightError and preserves skip/ refusal outcomes. The selected dispatcher performs registration validation; metadata membership alone confers no authority and adds no rollback.