system_instance.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.1/system_instance.bend as System_instance
4 imports
import Base import world.bend as W import system.bend as Sys import system_cleanup.bend as Cleanup
Types
type Instance source · line 7 · raw
@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> Type
Closed schema factory indices are erased; registry and ports remain affine.
Instance@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @owned:0xf435da9e535b3846d643dad16580e35f/system_cleanup.Instance<S, C, R, E, Args, Error, Output, run, Ports> -> Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
type Disposal source · line 9 · raw
@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> Type
Disposed@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Disposal<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
Rejected@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @instance:Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove> -> Disposal<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
type Registration source · line 27 · raw
@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> Type
Registered@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @instance:Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove> -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
RegistrationFailed@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
type RunResult source · line 53 · raw
@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> Type
Completed@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @instance:Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove> -> @outcome:0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
RegistrationRejected@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @instance:Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove> -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
Templates
template bind source · line 14 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @registry:0xf435da9e535b3846d643dad16580e35f/system.Registry<S, C, R, E, Args, Error, Output, run> -> @ports:Ports -> Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
Schema authors bind these indices once in their ordinary registration factory.
template disposed source · line 17 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @result:0xf435da9e535b3846d643dad16580e35f/system_cleanup.Cleanup<S, C, R, E, Args, Error, Output, run, Ports> -> Disposal<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
template dispose source · line 23 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @instance:Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove> -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Disposal<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
Callers supply only their actual instance and world; no runtime metadata callbacks.
template created_ports source · line 31 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @registry:0xf435da9e535b3846d643dad16580e35f/system.Registry<S, C, R, E, Args, Error, Output, run> -> @observed:Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Ports) -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
template created source · line 35 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @-create:(@_:U32 -> @_:U32 -> @_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Ports)) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @namespace:U32 -> @identified:Pair(0xf435da9e535b3846d643dad16580e35f/system.Registry<S, C, R, E, Args, Error, Output, run>, U32) -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
template namespaced source · line 39 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @-create:(@_:U32 -> @_:U32 -> @_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Ports)) -> @registry:0xf435da9e535b3846d643dad16580e35f/system.Registry<S, C, R, E, Args, Error, Output, run> -> @observed:Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, U32) -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
template registered source · line 43 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @-create:(@_:U32 -> @_:U32 -> @_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Ports)) -> @result:0xf435da9e535b3846d643dad16580e35f/system.RegistrationResult<S, C, R, E, Args, Error, Output, run> -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
template register source · line 50 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @-create:(@_:U32 -> @_:U32 -> @_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Ports)) -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @+name:String -> @+access:List<&2, String> -> Registration<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
The schema factory specializes create/validate/remove once. Failed registration constructs no ports; successful ports use the actual namespace and registry id.
template ran source · line 57 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @ports:Ports -> @result:0xf435da9e535b3846d643dad16580e35f/system.RunResult<S, C, R, E, Args, Error, Output, run> -> RunResult<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
template run source · line 63 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-run:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Args -> 0xf435da9e535b3846d643dad16580e35f/system.Outcome<0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>, Error, Output>) -> @-Ports:Type -> @-validate:(@_:Ports -> @_:U32 -> @_:U32 -> Pair(Ports, Bool)) -> @-remove:(@_:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @_:Ports -> 0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E>) -> @instance:Instance<S, C, R, E, Args, Error, Output, run, Ports, validate, remove> -> @world:0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, E> -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, run, Ports, validate, remove>
Managed execution returns its advanced registry into the same instance.