~/bend-docscommunity

event_runtime.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/event_runtime.bend as Event_runtime

3 imports
import Base
import ./world.bend as W
import ./system.bend as Sy

Types

type Batch source · line 8 · raw

@E:Data -> Data

One event domain; World owns payloads, this owner owns batch and reader metadata. Ordered detached Data publications grouped at a runtime tick. This is not an affine payload owner or an acknowledgement from a reader.

type Position source · line 12 · raw

Data

Activated reader metadata: last consumed cursor and activation tick. Merely allocating a Reader token does not add a Position or hold old batches.

type Reader source · line 16 · raw

@S:Data -> Type

Actual affine token binding runtime namespace and reader id to one registry id. Raw construction is trusted setup, not proof of registration/provenance.

type Runtime source · line 21 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> Type

Sole actual World plus Data batch/reader metadata and retention accounting. This lower-level runtime handles Data E; affine Type payload logs use separate owned-event APIs. Raw metadata construction and World callbacks remain trusted.

type Input source · line 25 · raw

@E:Data -> @A:Type -> Type

Unread Data values and lag flag supplied to a runner with actual possibly- affine Args. Callback consumption does not imply Args recovery on failure.

type Reading source · line 29 · raw

@E:Data -> Data

Detached unread Data in publication order plus bounded-retention lag status. Reading alone does not advance a cursor or protect messages from trimming.

type Trimmed source · line 31 · raw

@E:Data -> Data

type Registered source · line 186 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @A:Type -> @Error:Data -> @O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> Type

Reader registration result. Success returns actual Runtime, Reader and registry; failure returns Runtime without dropping World. No callback executes here.

type Completion source · line 192 · raw

@Error:Data -> @O:Type -> @A:Type -> Type

Succeeded returns actual Out; Failed carries callback Error without consumed Args; Rejected returns unconsumed Args. Higher-level semantic errors encoded inside Out must be inspected separately from transport success.

type RunResult source · line 198 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @A:Type -> @Error:Data -> @O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> Type

Every reader run returns actual Runtime, Reader and registry with Completion. No duplicate World or runner owner is retained in detached observations.

type ReaderStatus source · line 289 · raw

Data

Detached active-reader id/cursor/activation tick with unread count and lag flag. Registry ids are separate; statuses do not grant reading or mutation authority.

type Snapshot source · line 293 · raw

@E:Data -> Data

Detached visible batch values, retained World log and activated-reader statuses with tick/boundary. This is observation, not a restorable runtime checkpoint.

type Disposal source · line 319 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @A:Type -> @Error:Data -> @O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> Type

Success returns Runtime after registration/position removal. Rejection returns Runtime plus actual Reader and registry; no payload destructor is invented.

type ReadAccess source · line 350 · raw

@H:Type -> @E:Data -> @-observe:(@_:H -> Pair(H, Reading<E>)) -> Data

Gameplay receives only a closed capability over an abstract affine owner. Closed read capability over opaque H returning detached Reading<E>. The bound operation defines lifecycle behavior; raw adapters remain trusted setup.

type WriteAccess source · line 354 · raw

@H:Type -> @E:Data -> @-publish:(@_:H -> @_:E -> H) -> Data

Closed Data-publication capability threading opaque H. This type alone does not promise transaction staging or rollback of arbitrary host side effects.

Definitions

def hold_boundary source · line 65 · raw

@positions:List<&2, Position> -> @+boundary:Nat -> Nat

def update_checked source · line 120 · raw

@found:Bool -> @dispose:Bool -> @+id:U32 -> @+old:Nat -> @+registered:Nat -> @+rest:List<&2, Position> -> @+cursor:Nat -> List<&2, Position>

def update source · line 126 · raw

@positions:List<&2, Position> -> @+id:U32 -> @+cursor:Nat -> @+dispose:Bool -> List<&2, Position>

def choose_position source · line 132 · raw

@found:Bool -> @+position:Position -> @fallback:Maybe<&1, Position> -> Maybe<&1, Position>

def lookup_checked source · line 137 · raw

@position:Position -> @+id:U32 -> @fallback:Maybe<&1, Position> -> Maybe<&1, Position>

def lookup source · line 141 · raw

@positions:List<&2, Position> -> @+id:U32 -> Maybe<&1, Position>

def activation source · line 218 · raw

@position:Maybe<&1, Position> -> @+positions:List<&2, Position> -> @+id:U32 -> @+registered:Nat -> List<&2, Position>

def activate source · line 223 · raw

@+positions:List<&2, Position> -> @+id:U32 -> @+registered:Nat -> List<&2, Position>

Templates

template count_loop source · line 34 · raw

@-E:Data -> @items:List<&2, E> -> @+acc:Nat -> Nat

template count source · line 39 · raw

@-E:Data -> @items:List<&2, E> -> Nat

template append_loop source · line 41 · raw

@-E:Data -> @reversed:List<&2, E> -> @+output:List<&2, E> -> List<&2, E>

template append source · line 46 · raw

@-E:Data -> @+left:List<&2, E> -> @+right:List<&2, E> -> List<&2, E>

template values source · line 52 · raw

@-E:Data -> @batches:List<&2, Batch<E>> -> List<&2, E>

template size_loop source · line 57 · raw

@-E:Data -> @batches:List<&2, Batch<E>> -> @+acc:Nat -> Nat

template size source · line 62 · raw

@-E:Data -> @batches:List<&2, Batch<E>> -> Nat

template past_checked source · line 70 · raw

@-E:Data -> @remove:Bool -> @+tick:Nat -> @+items:List<&2, E> -> @+rest:List<&2, Batch<E>> -> @+dropped:Nat -> @ih:(@_:Nat -> Trimmed<E>) -> Trimmed<E>

template past_window source · line 75 · raw

@-E:Data -> @batches:List<&2, Batch<E>> -> @+boundary:Nat -> @+dropped:Nat -> Trimmed<E>

template capacity_checked source · line 80 · raw

@-E:Data -> @overflow:Bool -> @+tick:Nat -> @+items:List<&2, E> -> @+rest:List<&2, Batch<E>> -> @+dropped:Nat -> @ih:(@_:Nat -> Trimmed<E>) -> Trimmed<E>

template at_capacity source · line 85 · raw

@-E:Data -> @batches:List<&2, Batch<E>> -> @+capacity:Nat -> @+dropped:Nat -> Trimmed<E>

template trim_capacity source · line 90 · raw

@-E:Data -> @trimmed:Trimmed<E> -> @+capacity:Nat -> Trimmed<E>

template trim_result source · line 94 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @+namespace:U32 -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @trimmed:Trimmed<E> -> Runtime<S, C, R, E>

template trim source · line 98 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:Runtime<S, C, R, E> -> Runtime<S, C, R, E>

template frame source · line 105 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:Runtime<S, C, R, E> -> Runtime<S, C, R, E>

Advance frame markers and apply trim, returning actual Runtime/World. This bounds normal visibility while preserving unread holds only within hard capacity. Does not run a system, apply pending structural commands or acknowledge readers.

template start_named source · line 109 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @+capacity:Nat -> @named:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, U32) -> Runtime<S, C, R, E>

template start source · line 116 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @+capacity:Nat -> Runtime<S, C, R, E>

Start runtime metadata for the actual World namespace and supplied capacity. Initial batches/readers/tick are empty/zero; this does not consume World events or automatically synchronize an already populated log.

template since_checked source · line 147 · raw

@-E:Data -> @visible:Bool -> @+items:List<&2, E> -> @+rest:List<&2, E> -> List<&2, E>

template since source · line 152 · raw

@-E:Data -> @batches:List<&2, Batch<E>> -> @+cursor:Nat -> List<&2, E>

template reading source · line 158 · raw

@-E:Data -> @position:Position -> @+batches:List<&2, Batch<E>> -> @+dropped:Nat -> Reading<E>

template sync_checked source · line 162 · raw

@-E:Data -> @nonempty:Bool -> @+batches:List<&2, Batch<E>> -> @+tick:Nat -> @+published:List<&2, E> -> List<&2, Batch<E>>

template sync_values source · line 167 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, List<&2, E>) -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Runtime<S, C, R, E>

template with_world_result source · line 172 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-O:Type -> @returned:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, O) -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Pair(Runtime<S, C, R, E>, O)

template with_world source · line 180 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-O:Type -> @effect:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, O)) -> @runtime:Runtime<S, C, R, E> -> Pair(Runtime<S, C, R, E>, O)

Advanced action bridge: consume/return actual World and Out, advance runtime tick, then synchronize newly appended World events by the existing retained-log prefix length. Action must respect that synchronization invariant; this is not a read-only guarantee, transaction wrapper or implicit structural barrier.

template registered_identity source · line 201 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @identity:Pair(0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner>, U32) -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Registered<S, C, R, E, A, Error, O, runner>

template registered_result source · line 205 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @result:0x67fd5084c1da4adc13317822045bb11f/system.RegistrationResult<S, C, R, E, Input<E, A>, Error, O, runner> -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Registered<S, C, R, E, A, Error, O, runner>

template register source · line 214 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @+name:String -> @+access:List<&2, String> -> Registered<S, C, R, E, A, Error, O, runner>

Register a runner with supplied name/access on the actual World, allocate its reader token on success and return Runtime on refusal. This does not run the body or activate a reader position; unused registrations do not retain backlog. Name/access and runner coherence are trusted lower-level provisioning.

template run_outcome source · line 226 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @outcome:0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @+readerId:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> RunResult<S, C, R, E, A, Error, O, runner>

template reject_input source · line 231 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @input:Input<E, A> -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> RunResult<S, C, R, E, A, Error, O, runner>

template run_registered_result source · line 235 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @result:0x67fd5084c1da4adc13317822045bb11f/system.RunResult<S, C, R, E, Input<E, A>, Error, O, runner> -> @reader:Reader<S> -> @+readerId:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> RunResult<S, C, R, E, A, Error, O, runner>

template run_reading source · line 240 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @reading:Reading<E> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @args:A -> @+readerId:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> RunResult<S, C, R, E, A, Error, O, runner>

template run_position source · line 244 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @position:Maybe<&1, Position> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @args:A -> @+readerId:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> RunResult<S, C, R, E, A, Error, O, runner>

template run_checked source · line 249 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @allowed:Bool -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @args:A -> @+readerId:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> RunResult<S, C, R, E, A, Error, O, runner>

template run_identity source · line 254 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @actual:U32 -> @args:A -> RunResult<S, C, R, E, A, Error, O, runner>

template run_identified source · line 258 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @identified:Pair(0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner>, U32) -> @args:A -> RunResult<S, C, R, E, A, Error, O, runner>

template run source · line 270 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @args:A -> RunResult<S, C, R, E, A, Error, O, runner>

Validate token namespace/registry identity, then invoke the actual registered runner with ordered unread Data, lag flag and Args. Admission rejection returns Args without body execution; registry checks remain authoritative in Sy.run. Success advances reader cursor and synchronizes returned publications. Callback failure preserves unread position, activating an absent reader under the failed- reader rule; returned World is whatever the callback returned, not automatically rolled back by this runtime. Actual transaction behavior belongs to the runner. Runtime ticks and reader cursors are distinct from system lifecycle cursors.

template skip_checked source · line 274 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @allowed:Bool -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @+id:U32 -> Pair(Runtime<S, C, R, E>, Reader<S>)

A condition skip discards stream backlog without invoking gameplay.

template skip source · line 283 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> Pair(Runtime<S, C, R, E>, Reader<S>)

Condition-false lifecycle operation: for a matching namespace, advance an existing position to current tick without invoking gameplay. Does not activate an absent reader; foreign namespace leaves Runtime/Reader unchanged. No trim or registry disposal is performed.

template reader_status source · line 296 · raw

@-E:Data -> @position:Position -> @+batches:List<&2, Batch<E>> -> @+dropped:Nat -> ReaderStatus

template reader_statuses source · line 300 · raw

@-E:Data -> @positions:List<&2, Position> -> @+batches:List<&2, Batch<E>> -> @+dropped:Nat -> List<&2, ReaderStatus>

template inspect_values source · line 305 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @observed:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, List<&2, E>) -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Pair(Runtime<S, C, R, E>, Snapshot<E>)

template inspect source · line 313 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:Runtime<S, C, R, E> -> Pair(Runtime<S, C, R, E>, Snapshot<E>)

Return Runtime and detached Snapshot without synchronization, trimming, frame advance or reader acknowledgement. visible derives from batches after boundary; retained is the actual World event log, so unsynchronized publications may differ. Reader statuses follow reversed position order, not an inferred registry catalog.

template disposal_result source · line 323 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @result:0x67fd5084c1da4adc13317822045bb11f/system.Disposal<S, C, R, E, Input<E, A>, Error, O, runner> -> @reader:Reader<S> -> @+id:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Disposal<S, C, R, E, A, Error, O, runner>

template disposal_checked source · line 328 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @allowed:Bool -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @+id:U32 -> @+namespace:U32 -> @+batches:List<&2, Batch<E>> -> @+positions:List<&2, Position> -> @+nextReader:U32 -> @+tick:Nat -> @+frameStart:Nat -> @+boundary:Nat -> @+capacity:Nat -> @+dropped:Nat -> Disposal<S, C, R, E, A, Error, O, runner>

template disposal_identity source · line 333 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> @actual:U32 -> Disposal<S, C, R, E, A, Error, O, runner>

template disposal_identified source · line 337 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @identified:Pair(0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner>, U32) -> Disposal<S, C, R, E, A, Error, O, runner>

template dispose source · line 344 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-A:Type -> @-Error:Data -> @-O:Type -> @-runner:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:Input<E, A> -> 0x67fd5084c1da4adc13317822045bb11f/system.Outcome<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error, O>) -> @runtime:Runtime<S, C, R, E> -> @reader:Reader<S> -> @registry:0x67fd5084c1da4adc13317822045bb11f/system.Registry<S, C, R, E, Input<E, A>, Error, O, runner> -> Disposal<S, C, R, E, A, Error, O, runner>

Validate token/registry identity and dispose through Sy.dispose, removing the reader position only after success. Return actual owners on refusal. Does not immediately trim retained batches or dispose unrelated readers/log domains.

template all source · line 359 · raw

@-H:Type -> @-E:Data -> @-observe:(@_:H -> Pair(H, Reading<E>)) -> @_:ReadAccess<H, E, observe> -> @owner:H -> Pair(H, Reading<E>)

Invoke the declared closed observation, returning actual H plus Reading. Adds no validation or acknowledgement beyond the supplied operation.

template emit source · line 364 · raw

@-H:Type -> @-E:Data -> @-publish:(@_:H -> @_:E -> H) -> @_:WriteAccess<H, E, publish> -> @owner:H -> @event:E -> H

Invoke the declared publication operation with Data event and return H. Publication timing/transaction behavior belongs to that bound provider.

template input_read source · line 369 · raw

@-E:Data -> @-A:Type -> @input:Input<E, A> -> Pair(Input<E, A>, Reading<E>)

Project copied unread values and lag from Input while retaining actual Args inside the returned Input owner. Does not rerun or advance the reader.