owned_event_runtime.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/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.
BodyFailed@Error:Data -> @error:Error -> Failure<Error>
MissingPayload@Error:Data -> Failure<Error>
type Reply source · line 16 · raw
@Error:Data -> @Args:Type -> Type
Reply@Error:Data -> @Args:Type -> @outcome:0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Failure<Error>> -> @args:Args -> @lagged:Bool -> Reply<Error, Args>
Templates
template stopped source · line 18 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Args:Type -> @-Error:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @args:Args -> @outcome:0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Failure<Error>> -> @lagged:Bool -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/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:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @_:Args -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>)) -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, 0x67fd5084c1da4adc13317822045bb11f/owned_event_log.ReadResult<Args, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error>, Args)>) -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error>, Args))) -> @keys:List<&2, Nat> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @args:Args -> @+lagged:Bool -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/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(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat>, Reply<Error, Args>) -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error>, Args))) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @input:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<Nat, Args> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error>, Args))) -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Runtime<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @name:String -> 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Registered<S, C, 0x67fd5084c1da4adc13317822045bb11f/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, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Position> -> @id:U32 -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Runtime<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Runtime<S, C, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error>, Args))) -> @old:List<&2, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Position> -> @id:U32 -> @result:0x67fd5084c1da4adc13317822045bb11f/event_runtime.RunResult<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Args, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)> -> 0x67fd5084c1da4adc13317822045bb11f/event_runtime.RunResult<S, C, 0x67fd5084c1da4adc13317822045bb11f/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:0x67fd5084c1da4adc13317822045bb11f/ordinary_owned_event.Domain<S, P> -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x67fd5084c1da4adc13317822045bb11f/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error>, Args))) -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Runtime<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat> -> @reader:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<Nat, Args>, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)> -> @args:Args -> 0x67fd5084c1da4adc13317822045bb11f/event_runtime.RunResult<S, C, 0x67fd5084c1da4adc13317822045bb11f/owned_event_storage.Resources<R, P>, Nat, Args, Unit, Reply<Error, Args>, runner(S, C, R, P, Request, Projection, Args, Error, identity, at, body)>