~/bend-docscommunity

ordinary_owned_event_family_reader.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_owned_event_family_reader.bend as Ordinary_owned_event_family_reader

24 imports
import Base
import ./ordinary_app_event_family_runtime.bend as App
import ./ordinary_app_observation_data.bend as DTO
import ./ordinary_app_registration_fields.bend as Records
import ./ordinary_app_event_family_reader.bend as AppReader
import ./ordinary_event_declaration.bend as Event
import ./execution_context.bend as Ctx
import ./trace_facts.bend as Facts
import ./owned_event_family_maintenance.bend as Maintenance
import ./owned_event_family_catalog.bend as Catalog
import ./owned_event_family_lifecycle.bend as Life
import ./world.bend as W
import ./system.bend as Sys
import ./transaction.bend as T
import ./capabilities.bend as Cap
import ./owner_product.bend as Product
import ./owned_event_log.bend as Log
import ./ordinary_owned_event.bend as Pub
import ./ordinary_owned_event_family_reader_binding.bend as Setup
import ./owned_event_family_reader_runtime.bend as Core
import ./event_runtime.bend as Ev
import ./event_stream.bend as Stream
import ./event_family_runtime.bend as FR
import ./event_family_routing.bend as Route

Templates

template setup source · line 30 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-Owners:Type -> @descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @owners:Owners -> @capacity:Nat -> 0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>

Public setup carries the coupled log route and operational stream selection. All callbacks below are erased indices derived by its canonical constructors. Initialize the selected family runtime from its coupled owned-log/stream setup, retaining actual World and supplied family owners. Stream entries are Nat keys; affine payload P remains in the resource log. Raw routes/lenses are trusted setup.

template register source · line 37 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> @name:String -> 0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Registration<S, C, R, E, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)>

Register a confined payload reader without executing the body. at consumes and returns actual P with detached Projection; the body receives only that scoped request and threads actual Args. Failure returns the runtime rather than losing its owned family state; registry/reader admission remain the routing layer's job.

template run source · line 45 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> @reader:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Reader<S, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put)> -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_runtime.Input<Nat, Args>, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)> -> @args:Args -> 0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.RunResult<S, C, R, E, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)>

Read unread selected keys in stream order, resolving each against the owned log. Return runtime, reader and registry through the routing result. Inspect Reply outcome as well as transport status: semantic body/missing-payload failure retains Args, stops the fold and preserves unread position under failed-reader activation rules. lagged reports bounded retention loss. Projection/request providers remain trusted; they do not grant moving P out of the log or universal mutation rollback.

template run_traced source · line 50 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> @reader:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Reader<S, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put)> -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_runtime.Input<Nat, Args>, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)> -> @args:Args -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.RunResult<S, C, R, E, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)

Trace-aware run returning fact state separately. Semantic acceptance, rather than transport success alone, decides reader advancement; inspect Reply.outcome. Tracing does not expand the scoped payload request or own a copied payload log.

template skip source · line 55 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> @reader:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Reader<S, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put)> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Reader<S, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put)>)

Return runtime and reader, moving an existing selected-stream position to the current tick when namespace matches. Does not invoke body, activate a missing position or retire actual payloads by itself.

template inspect source · line 59 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)

Return runtime and a detached copy of the selected Nat-key Stream. Does not advance a reader or expose/copy affine payload P; log ownership stays in World.

template dispose source · line 64 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> @reader:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Reader<S, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put)> -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_runtime.Input<Nat, Args>, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)> -> 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_lifecycle.Disposal<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)>

Explicitly remove the validated registry and its reader position. Success returns runtime; refusal retains runtime, reader and registry. Does not drain the payload log or invoke an implicit payload destructor; retirement is separate maintenance.

template synchronized source · line 66 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-F:Type -> @-Out:Type -> @tick:Nat -> @output:Out -> @returned:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, F) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, F>, Out)

template world_returned source · line 69 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-F:Type -> @-Owners:Type -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-Out:Type -> @state:0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners> -> @+tick:Nat -> @returned:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Out) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>, Out)

template with_world source · line 75 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Out:Type -> @action:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Out)) -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>, Out)

Advanced World action adapter: return its actual World and Out, increment the family tick and synchronize publications. Arbitrary action effects are trusted; this is not a gameplay capability or implicit structural barrier.

template frame source · line 81 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Receipt:Type -> @-retire:(@_:Logs -> @_:List<&2, E> -> Pair(Logs, Receipt)) -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clear:(@_:F -> F) -> @-catalog:0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_catalog.Catalog<E, Logs, F, Receipt, retire, drain, clear> -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>, Receipt)

Advance family frame/retention, then retire payloads no longer represented by the retained publications through the complete typed catalog. Return actual retirement Receipt with runtime; no affine payload is copied into stream metadata.

template shutdown source · line 86 · raw

@-S:Data -> @-C:Type -> @-User:Type -> @-Logs:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Receipt:Type -> @-retire:(@_:Logs -> @_:List<&2, E> -> Pair(Logs, Receipt)) -> @-drain:(@_:Logs -> Pair(Logs, Receipt)) -> @-clear:(@_:F -> F) -> @-catalog:0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_catalog.Catalog<E, Logs, F, Receipt, retire, drain, clear> -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Owner<User, Logs>, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>>, Receipt)

Drain all catalogued owned logs into an actual Receipt and clear family stream/ publication state. Retain runtime owners; this is not disposal of every registry or an automatic host cleanup callback. See docs/parity/affine-events.md.

template run_context source · line 91 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @context:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @family:0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners> -> @tick:Nat -> @reader:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Reader<S, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put)> -> @registry:0x14a72e1c180a5ab1f8a056d43822425c/system.Registry<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_runtime.Input<Nat, Args>, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)> -> @args:Args -> 0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.ContextRunResult<S, C, R, E, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)>

Advanced context-preserving trace bridge to run, returning context, actual family state/reader/registry and reply through ContextRunResult. No new payload authority.

template register_app source · line 97 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @runtime:0x14a72e1c180a5ab1f8a056d43822425c/event_family_routing.Runtime<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>> -> @name:String -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_event_family_reader.Registration<S, C, R, E, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body)>

Register a confined reader and wrap its actual reader/registry with the matching ordinary event-domain declaration for App metadata. No body invocation occurs.

template install source · line 103 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-Domains:Data -> @-F:Type -> @-path:0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<R, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-select:(@_:List<&2, E> -> List<&2, Nat>) -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event.Domain<S, P> -> @-make:(@_:Domains -> @_:Nat -> F) -> @-sync:(@_:F -> @_:Nat -> @_:List<&2, E> -> F) -> @-frame:(@_:F -> @_:Nat -> F) -> @-retain:(@_:F -> @_:Nat -> @_:List<&2, E> -> Pair(F, List<&2, E>)) -> @-inventory:(@_:F -> Pair(F, List<&2, String>)) -> @-take:(@_:F -> Pair(F, 0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat>)) -> @-put:(@_:F -> @_:0x14a72e1c180a5ab1f8a056d43822425c/event_stream.Stream<S, Nat> -> F) -> @-descriptor:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_owned_event_family_reader_binding.Setup<S, R, P, Rest, E, Domains, F, path, inject, select, identity, make, sync, frame, retain, inventory, take, put> -> @-Owners:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Error:Data -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>, Args))) -> @-Previous:Type -> @-Rows:Data -> @-prior:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Previous -> Pair(Previous, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Output:Type -> @done:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_event_family_reader.Application(S, C, R, E, Nat, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Args, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.Reply<Error, Args>, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.take(S, Nat, E, F, Owners, take), 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.put(S, Nat, E, F, Owners, put), 0x14a72e1c180a5ab1f8a056d43822425c/owned_event_family_reader_runtime.runner(S, C, R, P, Rest, E, path, Request, Projection, Args, Error, at, body), Previous, Rows, prior, fold) -> Output) -> @failed:(@_:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_event_family_runtime.Application<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Previous, Rows, prior, fold> -> Output) -> @value:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_event_family_runtime.Application<S, C, R, E, 0x14a72e1c180a5ab1f8a056d43822425c/event_family_runtime.State<E, F, Owners>, Previous, Rows, prior, fold> -> @name:String -> Output

Install onto an ordinary family App. done receives the extended actual owners; failed receives the prior App shape with returned runtime on admission refusal. Preserves prior observers/debug and adds metadata, not a new gameplay payload grant.