~/bend-docscommunity

owned_event_runtime.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.0/owned_event_runtime.bend as Owned_event_runtime

9 imports
import Base
import ./world.bend as W
import ./system.bend as Sys
import ./event_runtime.bend as Ev
import ./transaction.bend as T
import ./capabilities.bend as Cap
import ./owned_event_log.bend as Log
import ./owned_event_storage.bend as Storage
import ./ordinary_owned_event.bend as Ord

Types

type Failure source · line 13 · raw

@Error:Data -> Data

One declared reader folds its unread payloads through a confined request cap. Providers are trusted schema provisioning; payload ownership stays in the log.

type Reply source · line 16 · raw

@Error:Data -> @Args:Type -> Type

Templates

template stopped source · line 18 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Args:Type -> @-Error:Data -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> @args:Args -> @outcome:0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Failure<Error>> -> @lagged:Bool -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>)

template visited source · line 20 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Args:Type -> @-Error:Data -> @lagged:Bool -> @next:(@_:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> @_:Args -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>)) -> @result:Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_log.ReadResult<Args, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args)>) -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>)

template fold_rows source · line 25 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-identity:0x296ca5f551e3792cd56cfc8122905b94/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x296ca5f551e3792cd56cfc8122905b94/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args))) -> @keys:List<&2, Nat> -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> @args:Args -> @+lagged:Bool -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>)

template transported source · line 29 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Args:Type -> @-Error:Data -> @result:Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>) -> 0x296ca5f551e3792cd56cfc8122905b94/system.Outcome<0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Unit, Reply<Error, Args>>

template runner source · line 32 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-identity:0x296ca5f551e3792cd56cfc8122905b94/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x296ca5f551e3792cd56cfc8122905b94/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args))) -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> @input:0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Input<Nat, Args> -> 0x296ca5f551e3792cd56cfc8122905b94/system.Outcome<0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>, Unit, Reply<Error, Args>>

template Registry source · line 35 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-identity:0x296ca5f551e3792cd56cfc8122905b94/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x296ca5f551e3792cd56cfc8122905b94/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args))) -> Type

template define source · line 36 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-identity:0x296ca5f551e3792cd56cfc8122905b94/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x296ca5f551e3792cd56cfc8122905b94/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args))) -> @runtime:0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Runtime<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> @name:String -> 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Registered<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat, Args, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)>

template failed_positions source · line 41 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @old:List<&2, 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Position> -> @id:U32 -> @runtime:0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Runtime<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Runtime<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat>

Ev.run performs the existing namespace + registration checks and lazy activation. The closed runner transports semantic failure separately so affine output is returned. Restore exactly Ev.run_outcome's failed-reader position afterward.

template reconciled source · line 45 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-identity:0x296ca5f551e3792cd56cfc8122905b94/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x296ca5f551e3792cd56cfc8122905b94/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args))) -> @old:List<&2, 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Position> -> @id:U32 -> @result:0x296ca5f551e3792cd56cfc8122905b94/event_runtime.RunResult<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat, Args, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)> -> 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.RunResult<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat, Args, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)>

template run source · line 51 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-identity:0x296ca5f551e3792cd56cfc8122905b94/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x296ca5f551e3792cd56cfc8122905b94/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x296ca5f551e3792cd56cfc8122905b94/transaction.Outcome<Error>, Args))) -> @runtime:0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Runtime<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat> -> @reader:0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Reader<S> -> @registry:0x296ca5f551e3792cd56cfc8122905b94/system.Registry<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat, 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.Input<Nat, Args>, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)> -> @args:Args -> 0x296ca5f551e3792cd56cfc8122905b94/event_runtime.RunResult<S, C, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_storage.Resources<R, P>, Nat, Args, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)>