~/bend-docscommunity

compose.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.2/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.

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.

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.

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.

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.

type RowResult source · line 210 · raw

@U:Data -> @Out:Data -> Data

type Insert source · line 272 · 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.

type LifecycleSelection source · line 302 · 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.

Definitions

def first_error source · line 44 · raw

@previous:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @error:0xb2b0f04555daca474f0f77d0966945c9/world.WorldError -> Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError>

def lifecycle_selected source · line 305 · raw

@mode:LifecycleSelection -> @stamp:0xb2b0f04555daca474f0f77d0966945c9/lifecycle.Stamp -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @this:0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick -> Bool

Templates

template read_join source · line 49 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-V:Data -> @+handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, 0xb2b0f04555daca474f0f77d0966945c9/component.Access<V>) -> Pair(Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @result:0xb2b0f04555daca474f0f77d0966945c9/component.SetResult<0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> 0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> 0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/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)) -> 0xb2b0f04555daca474f0f77d0966945c9/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)) -> 0xb2b0f04555daca474f0f77d0966945c9/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>, 0xb2b0f04555daca474f0f77d0966945c9/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 -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.ValueRead<Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/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 -> 0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, 0xb2b0f04555daca474f0f77d0966945c9/world.Status) -> Frame<S, Store, R, E>

template despawn source · line 122 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:Store -> @_:0xb2b0f04555daca474f0f77d0966945c9/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 -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> Store) -> 0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, 0xb2b0f04555daca474f0f77d0966945c9/world.Reservation<S>) -> Pair(Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/world.Reservation<S>)

template spawn source · line 137 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Payload:Type -> @-populate:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:Payload -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>) -> @frame:Frame<S, Store, R, E> -> @payload:Payload -> Pair(Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/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:(@_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> @_:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @_:Payload -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>) -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<Frame<S, Store, R, E>, Payload, 0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/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>, 0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/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, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @user:0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U> -> 0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/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:(@_:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>>, List<&2, Out>))) -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E> -> @value:Out -> @result:0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/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:(@_:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>>, List<&2, Out>))) -> @observed:Pair(Frame<S, Store, R, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out)) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @args:A -> @next:(@_:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>>, List<&2, Out>))) -> @observed:Pair(Frame<S, Store, R, E>, Bool) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E> -> @value:Out -> @result:0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out)) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @args:A -> @observed:Pair(Frame<S, Store, R, E>, Bool) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @handles:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>> -> @+args:A -> @+cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @values:List<&2, Out> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, RowResult<U, Out>) -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @handles:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>> -> @args:A -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @tx:0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E> -> Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/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:0xb2b0f04555daca474f0f77d0966945c9/transaction.Returned<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>> -> Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>

template finished source · line 242 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>

template scope_finished source · line 248 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @owned:Bool -> @result:Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out> -> Executed<0xb2b0f04555daca474f0f77d0966945c9/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 251 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @args:A -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @handles:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>> -> @admitted:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Bool) -> Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>

template reserved source · line 254 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @args:A -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>) -> Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>

template each source · line 266 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @args:A -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> Executed<0xb2b0f04555daca474f0f77d0966945c9/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 275 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @+target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @value:C -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>

template insert_checked source · line 277 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @current:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @+target:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @value:C -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Bool) -> Frame<S, Store, R, E>

template insert source · line 285 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/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 290 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> 0xb2b0f04555daca474f0f77d0966945c9/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 296 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @args:A -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> Executed<0xb2b0f04555daca474f0f77d0966945c9/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 309 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-mode:LifecycleSelection -> @handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @+cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @stamp:0xb2b0f04555daca474f0f77d0966945c9/lifecycle.Stamp -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick) -> Pair(Frame<S, Store, R, E>, Bool)

template lifecycle_join source · line 312 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-mode:LifecycleSelection -> @handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @+cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/lifecycle.Stamp) -> Pair(Frame<S, Store, R, E>, Bool)

template lifecycle_match source · line 318 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/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 321 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @handle:0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S> -> @error:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.WorldError> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @undo:List<&1, @_:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> 0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>> -> @commands:List<&1, 0xb2b0f04555daca474f0f77d0966945c9/deferred_command.Command<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>>> -> @events:List<&2, E> -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick) -> Pair(Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick)

template clock_get source · line 326 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @frame:Frame<S, Store, R, E> -> Pair(Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/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 330 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> 0xb2b0f04555daca474f0f77d0966945c9/capabilities.ValueRead<Frame<S, Store, R, E>, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick>

Build a current-World tick read grant, not a clock-advance capability.

template set_displayed source · line 336 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/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 341 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-Rest:Type -> @-C:Type -> @-V:Data -> @-Token:Data -> @-take:(@_:Store -> Pair(Rest, 0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C>)) -> @-put:(@_:Rest -> @_:0xb2b0f04555daca474f0f77d0966945c9/column.Column<S, C> -> Store) -> @-project:(@_:C -> Pair(C, V)) -> @-family:0xb2b0f04555daca474f0f77d0966945c9/component.Family<S, Store, Rest, C, V, Token, take, put, project> -> @-display:(@_:V -> String) -> 0xb2b0f04555daca474f0f77d0966945c9/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 344 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @values:List<&2, Out> -> @result:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Returned<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>>, 0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State) -> Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State)

template finished_observed source · line 348 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Tx<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, E>, Pair(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<Error<U>>, List<&2, Out>)) -> Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State)

template scope_observed source · line 354 · raw

@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-U:Data -> @-Out:Data -> @owned:Bool -> @result:Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State) -> Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/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 357 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @args:A -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @handles:List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>> -> @admitted:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Bool) -> Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State)

template reserved_observed source · line 360 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @args:A -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> @observed:Pair(0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, List<&2, 0xb2b0f04555daca474f0f77d0966945c9/world.Handle<S>>) -> Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State)

template each_since_observed source · line 367 · 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(0xb2b0f04555daca474f0f77d0966945c9/transaction.Outcome<U>, Out))) -> @trace:0xb2b0f04555daca474f0f77d0966945c9/trace_facts.State -> @args:A -> @world:0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E> -> @cursor:Maybe<&2, 0xb2b0f04555daca474f0f77d0966945c9/change_tick.Tick> -> Pair(Executed<0xb2b0f04555daca474f0f77d0966945c9/world.World<S, Store, R, E>, Error<U>, Out>, 0xb2b0f04555daca474f0f77d0966945c9/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.