~/bend-docscommunity

inspector_runtime.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.1/inspector_runtime.bend as Inspector_runtime

8 imports
import Base
import ./change_tick.bend as Tick
import ./world.bend as W
import ./event_runtime.bend as Ev
import ./relation_commands.bend as A
import ./inspector.bend as I
import ./inspector_stream_frame.bend as F
import ./capabilities.bend as Cap

Types

type Plan source · line 13 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> Type

A run plan grants capabilities over one stream-backed frame. The frame owns the actual event runtime; callers do not receive a detached or reconstructed event log.

type RunResult source · line 18 · raw

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

The result returns the exact runtime owner produced by the callback, with the inspector's single successful clock advance applied to its World.

Templates

template plan_caps source · line 21 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @plan:Plan<S, C, R, E, Ops> -> Ops(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>)

template fresh_join source · line 25 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @clocked:Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick) -> @namespace:U32 -> @batches:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Batch<0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>> -> @positions:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Position> -> @nextReader:U32 -> @tick:Nat -> @frameStart:Nat -> @boundary:Nat -> @capacity:Nat -> @dropped:Nat -> Pair(0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick)

template fresh_runtime source · line 29 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>> -> Pair(0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick)

template bumped_runtime source · line 34 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @advanced:Pair(0xf435da9e535b3846d643dad16580e35f/world.World<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick) -> @namespace:U32 -> @batches:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Batch<0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>> -> @positions:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Position> -> @nextReader:U32 -> @tick:Nat -> @frameStart:Nat -> @boundary:Nat -> @capacity:Nat -> @dropped:Nat -> Pair(0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick)

template advance_runtime source · line 38 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @runtime:0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>> -> Pair(0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick)

template succeeded source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @registeredAt:0xf435da9e535b3846d643dad16580e35f/change_tick.Tick -> @value:Out -> @observed:Pair(0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick) -> RunResult<S, C, R, E, U, Out>

template finished source · line 47 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @cursor:Maybe<&2, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick> -> @registeredAt:0xf435da9e535b3846d643dad16580e35f/change_tick.Tick -> @observed:Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, Result<&2, &2, U, Out>) -> RunResult<S, C, R, E, U, Out>

template invoked source · line 52 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A0:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A0 -> @_:H -> Pair(H, Result<&2, &2, U, Out>)) -> @args:A0 -> @+cursor:Maybe<&2, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick> -> @+registeredAt:0xf435da9e535b3846d643dad16580e35f/change_tick.Tick -> @runtime:0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>> -> RunResult<S, C, R, E, U, Out>

template begin_fresh source · line 55 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A0:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A0 -> @_:H -> Pair(H, Result<&2, &2, U, Out>)) -> @args:A0 -> @runtime:Pair(0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick) -> RunResult<S, C, R, E, U, Out>

template run source · line 59 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A0:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, C, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A0 -> @_:H -> Pair(H, Result<&2, &2, U, Out>)) -> @instance:0xf435da9e535b3846d643dad16580e35f/inspector.Instance<S> -> @args:A0 -> @runtime:0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>> -> RunResult<S, C, R, E, U, Out>

template restored_read source · line 69 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @observed:Pair(0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, V) -> @namespace:U32 -> @batches:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Batch<0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>> -> @positions:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Position> -> @nextReader:U32 -> @tick:Nat -> @frameStart:Nat -> @boundary:Nat -> @capacity:Nat -> @dropped:Nat -> Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, V)

Lift a trusted World-backed capability without detaching or duplicating the event runtime. This preserves the supplied grant exactly; it is not a sandbox or a type-enforced read-only boundary for caller-constructed capabilities. As with I.Plan, grant construction is part of the trusted setup boundary. Every Event Runtime field except its World is preserved.

template read_runtime source · line 73 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-cap:0xf435da9e535b3846d643dad16580e35f/capabilities.ValueRead<0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, V> -> @cursor:Maybe<&2, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick> -> @runtime:0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>> -> Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, V)

template read_frame source · line 78 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-cap:0xf435da9e535b3846d643dad16580e35f/capabilities.ValueRead<0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, V> -> @frame:0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E> -> Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, V)

template lift_world_read source · line 82 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-cap:0xf435da9e535b3846d643dad16580e35f/capabilities.ValueRead<0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, V> -> 0xf435da9e535b3846d643dad16580e35f/capabilities.ValueRead<0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, V>

template restored_lookup source · line 89 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @observed:Pair(0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, 0xf435da9e535b3846d643dad16580e35f/inspector.Value<V>) -> @namespace:U32 -> @batches:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Batch<0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>> -> @positions:List<&2, 0xf435da9e535b3846d643dad16580e35f/event_runtime.Position> -> @nextReader:U32 -> @tick:Nat -> @frameStart:Nat -> @boundary:Nat -> @capacity:Nat -> @dropped:Nat -> Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, 0xf435da9e535b3846d643dad16580e35f/inspector.Value<V>)

A handle lookup remains an ordinary runtime argument. This lift restores the event owner around the existing Inspector lookup without capturing a handle or detaching any of the runtime's reader/event metadata. It preserves the supplied trusted grant and does not make an arbitrary Lookup closure safe.

template lookup_runtime source · line 93 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-cap:0xf435da9e535b3846d643dad16580e35f/inspector.Lookup<0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, S, V> -> @cursor:Maybe<&2, 0xf435da9e535b3846d643dad16580e35f/change_tick.Tick> -> @runtime:0xf435da9e535b3846d643dad16580e35f/event_runtime.Runtime<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>> -> @target:0xf435da9e535b3846d643dad16580e35f/world.Handle<S> -> Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, 0xf435da9e535b3846d643dad16580e35f/inspector.Value<V>)

template lookup_frame source · line 98 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-cap:0xf435da9e535b3846d643dad16580e35f/inspector.Lookup<0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, S, V> -> @frame:0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E> -> @target:0xf435da9e535b3846d643dad16580e35f/world.Handle<S> -> Pair(0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, 0xf435da9e535b3846d643dad16580e35f/inspector.Value<V>)

template lift_world_lookup source · line 102 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-cap:0xf435da9e535b3846d643dad16580e35f/inspector.Lookup<0xf435da9e535b3846d643dad16580e35f/inspector.Frame<S, C, R, 0xf435da9e535b3846d643dad16580e35f/relation_commands.Notice<S, E>>, S, V> -> 0xf435da9e535b3846d643dad16580e35f/inspector.Lookup<0xf435da9e535b3846d643dad16580e35f/inspector_stream_frame.Frame<S, C, R, E>, S, V>