ordinary_app_event_family_reader.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_event_family_reader.bend as Ordinary_app_event_family_reader
17 imports
import Base import ./world.bend as W import ./system.bend as Sys import ./event_runtime.bend as Ev import ./event_stream.bend as Stream import ./event_family_routing.bend as Route import ./ordinary_event_declaration.bend as Event import ./ordinary_app_event.bend as OrdinaryEvent import ./ordinary_app_registration_fields.bend as Records import ./ordinary_query_declaration.bend as Query import ./ordinary_app_observation_data.bend as DTO import ./ordinary_app_composer.bend as Build import ./ordinary_app_schema.bend as SchemaApp import ./ordinary_app_event_family_runtime.bend as App import ./ordinary_app_records.bend as Leaf import ./ordinary_app_recipe.bend as Tree import ./ordinary_schema.bend as Schema
Types
type Owner source · line 25 · raw
@S:Data -> @E:Data -> @Reader:Type -> @Registry:Type -> Type
One retained operational declaration and the actual returned reader/Registry. Debug folds only registration fields and never reads or advances the Reader. Registered App reader for one typed Data event stream E in family F. Retain the actual declaration, reader and Registry returned after each run; registration metadata alone cannot replace their runtime authority. Different readers of the same stream keep independent positions. F may also contain affine owners, but this reader's event payload E is Data, not an owned Type log.
Owner@S:Data -> @E:Data -> @Reader:Type -> @Registry:Type -> @declaration:0x67fd5084c1da4adc13317822045bb11f/ordinary_event_declaration.Declaration<S, E> -> @reader:Reader -> @registry:Registry -> Owner<S, E, Reader, Registry>
type Registration source · line 42 · raw
@S:Data -> @C:Type -> @R:Type -> @P:Data -> @E:Data -> @F:Type -> @A:Type -> @Error:Data -> @Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> Type
Reader registration result. Registered returns the runtime plus its actual reader/Registry owner; RegistrationFailed returns the runtime without a new owner. Thread the returned runtime on either branch instead of retaining an old World or copying the family owners.
Registered@S:Data -> @C:Type -> @R:Type -> @P:Data -> @E:Data -> @F:Type -> @A:Type -> @Error:Data -> @Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Runtime<S, C, R, P, F> -> @owner:Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>> -> Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner>
RegistrationFailed@S:Data -> @C:Type -> @R:Type -> @P:Data -> @E:Data -> @F:Type -> @A:Type -> @Error:Data -> @Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Runtime<S, C, R, P, F> -> Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner>
type RunResult source · line 98 · raw
@S:Data -> @C:Type -> @R:Type -> @P:Data -> @E:Data -> @F:Type -> @A:Type -> @Error:Data -> @Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> Type
Returned runtime and reader owner together with event-runtime.Completion. Succeeded carries Out, Failed carries the runner's error, and Rejected returns Args when execution authority is refused. Always retain the returned runtime and owner; failure does not mean the input owners can be reused separately.
Ran@S:Data -> @C:Type -> @R:Type -> @P:Data -> @E:Data -> @F:Type -> @A:Type -> @Error:Data -> @Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Runtime<S, C, R, P, F> -> @owner:Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>> -> @completion:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Completion<Error, Out, A> -> RunResult<S, C, R, P, E, F, A, Error, Out, take, put, runner>
Templates
template fields source · line 31 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-Reader:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @owner:Owner<S, E, Reader, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>> -> Pair(Owner<S, E, Reader, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>>, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)
Advanced App metadata projection: return this owner with its registration fields and event-read clause. The reported Registry cursor is not a read of the event stream's position. Debug collection does not deliver, advance or trim events; the actual reader and Registry are returned inside the owner.
template observe source · line 37 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Unit>)
Advanced App observer returning the same World with an empty Unit observation. Event inventory comes from registration metadata; this function does not read payloads or advance a stream cursor merely to display the App.
template registered source · line 45 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/ordinary_event_declaration.Declaration<S, E> -> @result:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner> -> Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner>
template declared source · line 49 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @family:F -> @stream:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> @tick:Nat -> @name:String -> @+declaration:0x67fd5084c1da4adc13317822045bb11f/ordinary_event_declaration.Declaration<S, E> -> @named:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, U32) -> Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner>
template taken source · line 51 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @tick:Nat -> @name:String -> @returned:Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>) -> Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner>
template register source · line 63 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Runtime<S, C, R, P, F> -> @name:String -> Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner>
Register a reader against the stream selected by the closed take/put route. Derives read authority from that stream's operational declaration and uses the ordinary Registry registration rules. It allocates a reader identity without delivering events. Refusal, including exhausted reader IDs or failed Registry registration, returns RegistrationFailed with the returned runtime. The runner receives event-runtime.Input{values, lagged, args}. This entry is for Data streams; affine payload publication/reading uses the separate ordinary-owned-event-* APIs. Qualified family setup and retention/refusal scenarios are linked from docs/parity/typed-data-events.md.
template OwnerType source · line 68 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> Type
Advanced type alias for the retained reader and Registry for this exact stream route and runner. Use it in App owner aliases, not as a numeric ID token.
template Application source · line 73 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> Type
App type after installing this family reader alongside prior owners. Keeps the schema, runtime family and combined metadata observer; this leaf adds Unit to observation rows rather than copying event payloads into debug output. Use install to perform registration and construct the extended application.
template append source · line 77 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @owner:Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>> -> @value:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_composer.Registered<S, 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Owners, Rows, prior, fold> -> 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_composer.Registered<S, 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Pair(Owners, Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>>), 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Product<Rows, Unit>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_recipe.observe_pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Rows, Unit, prior, observe(S, C, R, P)), 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_records.fold_pair(S, Owners, Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>>, fold, fields(S, C, R, P, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, A, Error, Out, runner))>
Advanced composition entry for an already-registered reader owner. Consumes the composer and owner, returning their combined owners/observer. Does not register a second reader or deliver events. Ordinary setup uses install.
template appended source · line 80 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @schema:0x67fd5084c1da4adc13317822045bb11f/ordinary_schema.Schema<S, C, R> -> @family:F -> @tick:Nat -> @owner:Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>> -> @value:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_composer.Registered<S, 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Owners, Rows, prior, fold> -> Application(S, C, R, P, E, F, A, Error, Out, take, put, runner, Owners, Rows, prior, fold)
template installed source · line 82 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @-Output:Type -> @done:(@_:Application(S, C, R, P, E, F, A, Error, Out, take, put, runner, Owners, Rows, prior, fold) -> Output) -> @failed:(@_:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_event_family_runtime.Application<S, C, R, P, F, Owners, Rows, prior, fold> -> Output) -> @schema:0x67fd5084c1da4adc13317822045bb11f/ordinary_schema.Schema<S, C, R> -> @owners:Owners -> @recipe:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_recipe.Recipe<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Rows, prior> -> @debug:Bool -> @result:Registration<S, C, R, P, E, F, A, Error, Out, take, put, runner> -> Output
template install source · line 91 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @-Output:Type -> @done:(@_:Application(S, C, R, P, E, F, A, Error, Out, take, put, runner, Owners, Rows, prior, fold) -> Output) -> @failed:(@_:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_event_family_runtime.Application<S, C, R, P, F, Owners, Rows, prior, fold> -> Output) -> @value:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_event_family_runtime.Application<S, C, R, P, F, Owners, Rows, prior, fold> -> @name:String -> Output
Register and append a typed Data-family reader to an existing family App. Consumes value and calls done with the extended App on success, or failed with the returned previous App on refusal. Schema, family, prior owners and debug setting are threaded through both branches. name follows Registry rules. This is setup only: it neither runs the reader nor advances its delivery cursor.
template ran source · line 100 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @declaration:0x67fd5084c1da4adc13317822045bb11f/ordinary_event_declaration.Declaration<S, E> -> @result:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.RunResult<S, C, R, P, E, F, A, Error, Out, take, put, runner> -> RunResult<S, C, R, P, E, F, A, Error, Out, take, put, runner>
template run source · line 116 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-P:Data -> @-E:Data -> @-F:Type -> @-A:Type -> @-Error:Data -> @-Out:Type -> @-take:(@_:F -> Pair(F, 0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E>)) -> @-put:(@_:F -> @_:0x67fd5084c1da4adc13317822045bb11f/event_stream.Stream<S, E> -> F) -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, Error, Out>) -> @-synchronize:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P> -> @_:F -> @_:Nat -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, P>, F)) -> @owner:Owner<S, E, 0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Reader<S, E, F, take, put>, 0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, P, 0x67fd5084c1da4adc13317822045bb11f/event_runtime.Input<E, A>, Error, Out, runner>> -> @runtime:0x67fd5084c1da4adc13317822045bb11f/event_family_routing.Runtime<S, C, R, P, F> -> @args:A -> RunResult<S, C, R, P, E, F, A, Error, Out, take, put, runner>
Run this registered reader against its typed family stream. The runner receives retained unread values in publication order, a lagged flag and args. On Sys.Succeeded the reader advances and synchronize threads committed World/family publication into the returned runtime. On Sys.Failed its stream position does not advance; the runner's returned World is retained. This wrapper does not itself undo arbitrary callback or host-IO effects. A routing/registration rejection returns Rejected{args} without consuming the read position. The completion and actual reader/Registry owners are returned on every branch. Stream retention/capacity still bound later availability; lagged reports dropped unread history, so failure is not an unlimited retry retention promise. Supply the matching family synchronization route; merely observing fields/metadata is not a run. See event-family-routing and the qualified scenarios in docs/parity/typed-data-events.md.