compose.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/compose.bend as Compose
12 imports
import Base import ./change_tick.bend as Tick import ./deferred_command.bend as Deferred import ./trace_facts.bend as TraceFacts import world.bend as W import column.bend as Col import component.bend as Cmp import transaction.bend as T import resource.bend as Res import commands.bend as Cmd import capabilities.bend as Cap import lifecycle.bend as L
Types
type Frame source · line 17 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> Type
Trusted engine row carrier: affine Tx, current handle, first recorded operation error and invocation cursor. Ordinary gameplay receives opaque H instead of raw Frame fields; constructing one does not establish handle validity or authority.
Frame@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> Frame<S, Store, R, E>
type Error source · line 21 · raw
@U:Data -> Data
Execution error separates user-declared failure from a recorded World access refusal. A recorded access error takes precedence over the returned user outcome.
UserError@U:Data -> @error:U -> Error<U>
AccessError@U:Data -> @error:0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError -> Error<U>
type Plan source · line 28 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> Type
Trusted closed declaration: capability and membership choices travel together. Trusted setup combines grants and membership predicate for one Ops shape. Canonical ordinary declarations derive this pair together; raw Plan construction does not validate arbitrary callbacks or infer capabilities from metadata.
Plan@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @caps:Ops(Frame<S, Store, R, E>) -> @select:(@_:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)) -> Plan<S, Store, R, E, Ops>
type Executed source · line 33 · raw
@-World:Type -> @Error:Data -> @Out:Data -> Type
Returned World and traversal outcome with ordered detached Data row outputs. Failure returns the rolled-back World and an empty output list, including when earlier rows produced values. This is not an affine payload recovery receipt.
Executed@-World:Type -> @Error:Data -> @Out:Data -> @world:World -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> @values:List<&2, Out> -> Executed<World, Error, Out>
type Selection source · line 38 · raw
Data
Family membership modes: Required/Present require Found, Absent requires a live entity without the component, Optional admits either live presence state. Invalid or foreign/stale handles never satisfy these family selectors.
RequiredSelection
PresentSelection
AbsentSelection
OptionalSelection
type RowResult source · line 210 · raw
@U:Data -> @Out:Data -> Data
Skipped@U:Data -> @Out:Data -> RowResult<U, Out>
Passed@U:Data -> @Out:Data -> @value:Out -> RowResult<U, Out>
Failed@U:Data -> @Out:Data -> @error:Error<U> -> RowResult<U, Out>
type Insert source · line 277 · raw
@-S:Data -> @-C:Type -> Type
Explicit schema-typed target and owned payload for a deferred insert grant. Owned explicit-target request for a deferred component insert. The detached handle plus actual Type C are consumed; the request is not itself admission.
Insert@-S:Data -> @-C:Type -> @target:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @value:C -> Insert<S, C>
type LifecycleSelection source · line 307 · raw
Data
Since cursor is runtime reader state; it lives in the affine row frame. Added/Changed select component lifecycle stamps relative to Frame.cursor. They grant no additional access and are not automatic reader advancement.
AddedLifecycleSelection
ChangedLifecycleSelection
Definitions
def first_error source · line 44 · raw
@previous:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @error:0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError -> Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError>
def lifecycle_selected source · line 310 · raw
@mode:LifecycleSelection -> @stamp:0x14a72e1c180a5ab1f8a056d43822425c/lifecycle.Stamp -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @this:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> Bool
Templates
template read_join source · line 49 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @+handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>) -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)
template get source · line 55 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>)
Advanced row operation: read the current handle through Cmp.tx_get, returning Frame and detached Access<V>. Missing/absent remains an explicit Access result; this read alone does not store a new Frame access error.
template written source · line 58 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-C:Type -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/component.SetResult<0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, C> -> Frame<S, Store, R, E>
template set source · line 66 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @frame:Frame<S, Store, R, E> -> @replacement:C -> Frame<S, Store, R, E>
Advanced row write consuming actual C and returning Frame. Refusal records the first access error and consumes rejected incoming C without returning a receipt. Successful writes journal displaced payload/stamp for transaction rollback.
template read_family source · line 71 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<Frame<S, Store, R, E>, V>
Build a canonical component read grant for the current row. Trusted family lenses/projector return their owners; gameplay sees only detached Access<V>.
template write_family source · line 76 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Write<Frame<S, Store, R, E>, C, V>
Build current-row component read/write grants. The setter consumes Type C and records refusal on Frame; enclosing execution finishes the transaction. No automatic incoming-owner recovery is added to the capability signature.
template value_join source · line 79 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, V) -> Pair(Frame<S, Store, R, E>, V)
template resource_get source · line 84 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-project:(@_:R -> Pair(R, V)) -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, V)
Advanced whole-resource read through its owner-returning detached projection. Preserves the current handle/error/cursor; the projector is trusted provisioning.
template resource_set source · line 89 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @frame:Frame<S, Store, R, E> -> @replacement:R -> Frame<S, Store, R, E>
Advanced whole-R replacement, journaling the old owner for rollback. Consumes replacement R and returns Frame; selected-field authority needs a narrower grant.
template resource_read source · line 93 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-project:(@_:R -> Pair(R, V)) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueRead<Frame<S, Store, R, E>, V>
Build a detached resource read grant using a trusted owner-returning projector.
template resource_write source · line 97 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @-project:(@_:R -> Pair(R, V)) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueWrite<Frame<S, Store, R, E>, R, V>
Build whole-resource read/replacement grants, not a selected-field permission. Type R remains owned by the transaction or inverse journal, not copied to V.
template handle_get source · line 101 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>)
Return the current detached handle with Frame. This is an identity projection, not a fresh liveness validation or permission to access another entity.
template handle_read source · line 105 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueRead<Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>
Build the current-handle read grant without exposing raw Frame or World.
template emit source · line 109 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @frame:Frame<S, Store, R, E> -> @event:E -> Frame<S, Store, R, E>
Advanced row operation staging a Data event in Tx; publication occurs only after successful execution finish. This does not synchronize an event Runtime.
template event_write source · line 113 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Send<Frame<S, Store, R, E>, E>
Build a Data-event publication grant with transactional staging semantics.
template despawn_join source · line 115 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/world.Status) -> Frame<S, Store, R, E>
template despawn source · line 122 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> @frame:Frame<S, Store, R, E> -> Frame<S, Store, R, E>
Advanced row operation staging schema-owned cleanup of the current handle. Admission refusal records the first Frame error. Accepted staging is not visible until successful finish and an explicit barrier; clear is trusted schema setup.
template command_despawn source · line 126 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:Store -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Store) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Action<Frame<S, Store, R, E>>
Build a current-row deferred despawn grant using complete schema-owned cleanup.
template spawn_join source · line 128 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>) -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>)
template spawn source · line 137 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> @frame:Frame<S, Store, R, E> -> @payload:Payload -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>)
Advanced reservation/staging operation consuming possibly-affine Payload. Returns Frame and Reservation; refusal records an access error but returns no payload receipt. Reserved handles are Pending, not yet live/readable; populate runs at the barrier after successful finish, with reserved-id progress retained under the ordinary command rollback policy.
template command_spawn source · line 142 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Payload:Type -> @-populate:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:Payload -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Request<Frame<S, Store, R, E>, Payload, 0x14a72e1c180a5ab1f8a056d43822425c/world.Reservation<S>>
Build a deferred spawn request grant. populate is trusted structural setup and must consume the actual payload; the Reservation result is not payload recovery.
template selected_value source · line 146 · raw
@-V:Data -> @mode:Selection -> @value:0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V> -> Bool
Optional means a live entity with either family presence state.
template selected_join source · line 155 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @mode:Selection -> @observed:Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/component.Access<V>) -> Pair(Frame<S, Store, R, E>, Bool)
template family_match source · line 161 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @-mode:Selection -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)
Select current-row membership through the canonical component read. Projectors may run for present components; the returned Frame owner is threaded onward. Selection does not add a write grant or treat MissingEntity as optional absence.
template all source · line 165 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)
Always select and return Frame unchanged; this predicate itself validates no handle. each supplies a live-handle snapshot, unlike a forged raw Frame.
template and_join source · line 167 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-right:(@_:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)) -> @observed:Pair(Frame<S, Store, R, E>, Bool) -> Pair(Frame<S, Store, R, E>, Bool)
template both source · line 174 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-left:(@_:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)) -> @-right:(@_:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)) -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)
Conjoin predicates left before right, passing the actual returned Frame onward. False short-circuits right and preserves the owner returned by left; True passes that owner to right. See examples/query-composition/declarations.bend.
template plan_caps source · line 179 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @plan:Plan<S, Store, R, E, Ops> -> Ops(Frame<S, Store, R, E>)
Advanced closed engine projection of stored grants; consumes Plan without invoking operations. This is declaration plumbing, not a gameplay grant builder.
template plan_select source · line 184 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @plan:Plan<S, Store, R, E, Ops> -> @_:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)
Advanced closed engine projection of the stored predicate. It does not run selection or validate the caller-authored Plan.
template outcome source · line 188 · raw
@-U:Data -> @internal:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @user:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U> -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>
template prepend source · line 195 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @value:Out -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))
Row outputs are committed only when the entire traversal succeeds.
template completed source · line 199 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))) -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @value:Out -> @result:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))
template body_returned source · line 203 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))) -> @observed:Pair(Frame<S, Store, R, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out)) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))
template selected source · line 206 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @args:A -> @next:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))) -> @observed:Pair(Frame<S, Store, R, E>, Bool) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))
template row_completed source · line 214 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @value:Out -> @result:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, RowResult<U, Out>)
template row_body_returned source · line 218 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @observed:Pair(Frame<S, Store, R, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out)) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, RowResult<U, Out>)
template selected_row source · line 221 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @args:A -> @observed:Pair(Frame<S, Store, R, E>, Bool) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, RowResult<U, Out>)
template run_handles_acc source · line 226 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @handles:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @+args:A -> @+cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @values:List<&2, Out> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, RowResult<U, Out>) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))
Finish each row before the next; keep successful values in reverse order.
template run_handles source · line 236 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @handles:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @tx:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>))
Internal owned traversal adapter for an already-open transaction. Execute the supplied list in order and return Tx plus outcome/outputs; unlike each, this does not enumerate handles or finish/commit. Ordinary callers use each/each_since.
template finish_returned source · line 238 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @values:List<&2, Out> -> @returned:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>> -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
template finished_with source · line 242 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @-finish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
template finished source · line 245 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
template scope_finished source · line 250 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @owned:Bool -> @result:Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out> -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
Advanced engine adapter: execute a supplied handle list within one new Tx and finish it, using cursor for every row. Preserves supplied order without itself validating list provenance; hierarchy adapters perform their own live filtering.
template reserved_scoped source · line 253 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-finish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>) -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @handles:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @admitted:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Bool) -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
template reserved_with source · line 257 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-finish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>) -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>) -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
Completion is selected by the closed runner, outside the row traversal.
template reserved source · line 260 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>) -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
template each source · line 271 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @args:A -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
Snapshot live handles in allocator-visible order; deferred commands stay invisible. Snapshot allocator-visible live handles, then select and execute rows in that order within ONE enclosing transaction, with no prior cursor. Later reads observe earlier immediate writes; stop after the first selected-row failure, rollback recorded writes and suppress all outputs/staged publications/commands on failure. Success returns ordered Data outputs and enqueues commands without applying a barrier. User bodies receive only Ops(H), not raw World storage. Arbitrary trusted selectors/projectors or external effects are outside universal rollback claims. See examples/query-composition/declarations.bend and gameplay.bend.
template insert_apply source · line 280 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @+target:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @value:C -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>
template insert_checked source · line 282 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @current:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @+target:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @value:C -> @undo:List<&1, @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>> -> @commands:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/deferred_command.Command<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Bool) -> Frame<S, Store, R, E>
template insert source · line 290 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @frame:Frame<S, Store, R, E> -> @request:Insert<S, C> -> Frame<S, Store, R, E>
Advanced deferred insertion for an explicitly supplied currently live target. Invalid/foreign/stale admission records MissingEntity and consumes the payload. Accepted work is staged, then rechecks live replacement at barrier application; application refusal does not return an incoming-owner receipt through this API.
template command_insert source · line 295 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Send<Frame<S, Store, R, E>, Insert<S, C>>
Build a family-specific deferred insert grant. This does not grant arbitrary family access or promise insertion into a merely Pending spawn handle.
template each_since source · line 301 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @args:A -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>
As each, with an explicit invocation cursor used by lifecycle predicates. This does not automatically advance a registered reader, and does not itself filter rows unless Plan.select contains lifecycle_match or another predicate.
template lifecycle_clocked source · line 314 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-mode:LifecycleSelection -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @+cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @undo:List<&1, @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>> -> @commands:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/deferred_command.Command<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @stamp:0x14a72e1c180a5ab1f8a056d43822425c/lifecycle.Stamp -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick) -> Pair(Frame<S, Store, R, E>, Bool)
template lifecycle_join source · line 317 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-mode:LifecycleSelection -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @+cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @undo:List<&1, @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>> -> @commands:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/deferred_command.Command<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/lifecycle.Stamp) -> Pair(Frame<S, Store, R, E>, Bool)
template lifecycle_match source · line 323 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @-mode:LifecycleSelection -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, Bool)
Compare this family slot stamp against the supplied invocation cursor and return Frame with Bool. Does not project the payload or create a gameplay grant; combine with membership predicates when actual presence is required.
template clock_join source · line 326 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @handle:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @error:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.WorldError> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @undo:List<&1, @_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>> -> @commands:List<&1, 0x14a72e1c180a5ab1f8a056d43822425c/deferred_command.Command<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick) -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick)
template clock_get source · line 331 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick)
Advanced detached read of the current transaction World tick; does not advance it or change Frame.cursor.
template clock_read source · line 335 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.ValueRead<Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick>
Build a current-World tick read grant, not a clock-advance capability.
template set_displayed source · line 341 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @-display:(@_:V -> String) -> @frame:Frame<S, Store, R, E> -> @replacement:C -> Frame<S, Store, R, E>
Trace-aware advanced setter with the same consumption/error behavior as set. When tracing is enabled, trusted projection/rendering annotates before/after Data views; disabled tracing skips that presentation work.
template write_family_displayed source · line 346 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0x14a72e1c180a5ab1f8a056d43822425c/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @-display:(@_:V -> String) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Write<Frame<S, Store, R, E>, C, V>
Build component grants whose setter uses the supplied detached display function for enabled tracing. This is presentation, not additional mutation authority.
template finish_returned_observed source · line 349 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @values:List<&2, Out> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State) -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
template finished_observed source · line 353 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @-finish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @+outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
template scope_observed source · line 359 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @owned:Bool -> @result:Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State) -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
Trace-aware advanced supplied-list execution adapter. Retains the same one-Tx finish and output-clearing behavior as reserved, returning actual trace state separately; operation facts do not assert that failed writes committed.
template reserved_observed_scoped source · line 362 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-finish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @+outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @handles:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>> -> @admitted:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Bool) -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
template reserved_observed_with source · line 365 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @-finish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, E> -> @+outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error<U>> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)) -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>) -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
template reserved_observed source · line 368 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @args:A -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>) -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
template each_since_observed source · line 374 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-A:Data -> @-U:Data -> @-Out:Data -> @-plan:Plan<S, Store, R, E, Ops> -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:A -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<U>, Out))) -> @trace:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> @args:A -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @cursor:Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick> -> Pair(Executed<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, Error<U>, Out>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State)
Snapshot live handles in allocator-visible order; deferred commands stay invisible. As each_since with supplied operation trace state returned alongside Executed. Tracing does not change capability authority or apply pending commands. Facts may include attempted/refused operations; inspect execution outcome separately.