~/bend-docscommunity

system.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/system.bend as System

5 imports
import Base
import ./change_tick.bend as Tick
import ./trace_facts.bend as TraceFacts
import ./world.bend as W
import ./registration.bend as Reg

Types

type Outcome source · line 11 · raw

@World:Type -> @Error:Data -> @Output:Type -> Type

Closed runner index is erased; the runtime registration owner remains affine. System completion retains World on both branches. Success also owns Output; failure carries only Error, so affine body outputs are not returned by this type. Rollback is performed by the chosen runner, not this constructor.

type Registry source · line 17 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> Type

Affine registration owner with runtime namespace, actual registration ID, metadata and lifecycle cursor. The erased runner binds argument/result types; raw construction is trusted administration, not a way to confer gameplay access.

type RegistrationResult source · line 21 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> Type

Registered returns World and the new Registry; RegistrationFailed returns World without a registration owner. Registration does not invoke the runner.

type RunResult source · line 27 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> Type

Completed retains Registry and a runner Outcome. RegistrationRejected retains Registry, World and original Args without invoking the runner. Rejection is distinct from a body failure that has consumed Args.

type Disposal source · line 115 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Args:Type -> @Error:Data -> @Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> Type

Rejected disposal returns the registration; accepted disposal consumes it. Disposed returns World and consumes this registration owner. DisposalRejected returns World and Registry for retry or explicit recovery. This type introduces no user-payload finalizer or capture-disposal callback.

Templates

template register_meta source · line 31 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @result:0x7e321819d0ff210531780719c7674cef/world.Registration -> @+namespace:U32 -> @+name:String -> @+access:List<&2, String> -> RegistrationResult<S, C, R, E, Args, Error, Output, runner>

template register_join source · line 36 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registered:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/world.Registration) -> @+namespace:U32 -> @+name:String -> @+access:List<&2, String> -> RegistrationResult<S, C, R, E, Args, Error, Output, runner>

template register_namespace source · line 40 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @named:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, U32) -> @+name:String -> @+access:List<&2, String> -> RegistrationResult<S, C, R, E, Args, Error, Output, runner>

template register source · line 48 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @+name:String -> @+access:List<&2, String> -> RegistrationResult<S, C, R, E, Args, Error, Output, runner>

Register the closed runner in this World with name/access metadata. Returns Registered or RegistrationFailed, retaining World on either path. Raw access strings are metadata; actual body capabilities come from its declared runner. Prefer ordinary-system or App registration for derived access.

template complete source · line 51 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @outcome:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>

template leave_outcome source · line 55 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @outcome:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>

Leave the captured scope on either executed outcome; never rewind time.

template executed_registry source · line 60 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @tick:0x7e321819d0ff210531780719c7674cef/change_tick.Tick -> Registry<S, C, R, E, Args, Error, Output, runner>

template run_entered source · line 64 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @args:Args -> @entered:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/change_tick.Tick) -> RunResult<S, C, R, E, Args, Error, Output, runner>

template run_checked source · line 68 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @allowed:Bool -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, runner>

template run_metadata source · line 73 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @checked:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Bool) -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, runner>

template run_namespace_checked source · line 77 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @allowed:Bool -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, runner>

template run_namespace_value source · line 82 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @+actual:U32 -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, runner>

template run_namespace source · line 86 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @named:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, U32) -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, runner>

template run source · line 95 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> RunResult<S, C, R, E, Args, Error, Output, runner>

Validate runtime namespace and live registration metadata, then invoke the runner. Rejection returns original Args, World and Registry unchanged in ownership; completed failure returns only the runner Error/World. Every admitted execution captures this_run and records it on success or error. Rejection leaves time/cursor unchanged. Runner defines rollback behavior.

template cursor source · line 100 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> Pair(Registry<S, C, R, E, Args, Error, Output, runner>, Maybe<&2, 0x7e321819d0ff210531780719c7674cef/change_tick.Tick>)

Return Registry and its current lifecycle cursor, without advancing it or reading any component/event stream.

template identity source · line 107 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> Pair(Registry<S, C, R, E, Args, Error, Output, runner>, U32)

Instance identity is observed without consuming the registration owner. Return Registry and its actual registration ID without consuming the owner. IDs must still be validated with namespace/live metadata before execution.

template dispose_returned source · line 119 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @observed:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Bool) -> Disposal<S, C, R, E, Args, Error, Output, runner>

template dispose source · line 127 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> Disposal<S, C, R, E, Args, Error, Output, runner>

Remove a registration only when its namespace/ID/name/access still match. Success consumes Registry; refusal returns it with World. Does not dispose unrelated retained Local/capture owners or invent implicit finalizers.

template observed_outcome_with source · line 132 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @-finish:(@_:Registry<S, C, R, E, Args, Error, Output, runner> -> @_:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @result:Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State) -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

Trusted canonical runner transport. Registration is checked before the body.

template observed_entered source · line 135 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @-finish:(@_:Registry<S, C, R, E, Args, Error, Output, runner> -> @_:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @args:Args -> @entered:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, 0x7e321819d0ff210531780719c7674cef/change_tick.Tick) -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template observed_checked_with source · line 138 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @-finish:(@_:Registry<S, C, R, E, Args, Error, Output, runner> -> @_:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @checked:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Bool) -> @args:Args -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template observed_namespace_checked_with source · line 142 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @-finish:(@_:Registry<S, C, R, E, Args, Error, Output, runner> -> @_:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> @allowed:Bool -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template observed_named_with source · line 146 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @-finish:(@_:Registry<S, C, R, E, Args, Error, Output, runner> -> @_:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @named:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, U32) -> @args:Args -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template run_observed_with source · line 153 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @-finish:(@_:Registry<S, C, R, E, Args, Error, Output, runner> -> @_:Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output> -> RunResult<S, C, R, E, Args, Error, Output, runner>) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

Trusted transport for an observed runner and custom completion policy. Validates registration before invoking observed; refusal returns original Args/owners and trace. finish receives the executed cursor; raw callbacks must preserve their relationship to runner and its transaction contract.

template observed_outcome source · line 156 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @result:Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State) -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template observed_checked source · line 158 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @checked:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Bool) -> @args:Args -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template observed_namespace_checked source · line 160 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> @allowed:Bool -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template observed_named source · line 162 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @named:Pair(0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, U32) -> @args:Args -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

template run_observed source · line 167 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Type -> @-Error:Data -> @-Output:Type -> @-runner:(@_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>) -> @-observed:(@_:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @_:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @_:Args -> Pair(Outcome<0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E>, Error, Output>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)) -> @registry:Registry<S, C, R, E, Args, Error, Output, runner> -> @trace:0x7e321819d0ff210531780719c7674cef/trace_facts.State -> @world:0x7e321819d0ff210531780719c7674cef/world.World<S, C, R, E> -> @args:Args -> Pair(RunResult<S, C, R, E, Args, Error, Output, runner>, 0x7e321819d0ff210531780719c7674cef/trace_facts.State)

Observed execution captures and records this_run on success or failure. Refusal preserves Args, time, cursor and trace. Returned facts describe execution, not additional ECS work to apply.