commands.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/commands.bend as Commands
6 imports
import Base import ./trace_world.bend as TraceWorld import ./deferred_command.bend as Deferred import ./trace_facts.bend as TraceFacts import ./world.bend as W import ./transaction.bend as T
Templates
template enqueue_list source · line 9 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
World pending commands are a reverse accumulator; input here is FIFO.
template enqueue source · line 17 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Append the supplied FIFO command list to World pending work, returning World. This transfers affine command closures but does not execute them; W.barrier is the explicit visibility boundary. Raw command callbacks are trusted adapters.
template publish source · line 22 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @events:List<&2, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Publish these detached Data events to World in list order. This is immediate publication, not transactional staging or synchronization of an event Runtime.
template tx_finish source · line 29 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Error:Data -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @outcome:0x67fd5084c1da4adc13317822045bb11f/transaction.Outcome<Error> -> 0x67fd5084c1da4adc13317822045bb11f/transaction.Returned<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Error>
Finish with canonical World adapters: success enqueues staged commands and publishes staged Data events in authored order; failure replays inverse actions and drops staged commands/events. Returns World plus outcome. It does not apply the structural barrier or undo arbitrary external effects.
template spawned source · line 32 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @activated:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status) -> @handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @payload:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
template spawn_apply source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @payload:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Trusted deferred-command application: activate the reserved handle, then call populate only on acceptance. Payload is consumed, including when activation refuses; this low-level callback does not return an incoming-payload receipt.
template spawn_applied_traced source · line 43 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @payload:P -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status) -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/trace_facts.State)
template spawn_command source · line 48 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @enabled:Bool -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @payload:P -> 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>
Build a deferred spawn closure owning its actual payload. enabled selects raw or operation-fact recording; neither variant activates until command execution.
template track_pending source · line 54 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>
Only successful actual deferred spawns establish pending authority. The inverse clears at the World's current capacity after any intervening growth.
template spawn_reserved source · line 58 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @reservation:0x67fd5084c1da4adc13317822045bb11f/world.Reservation<S> -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @+trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @payload:P -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Reservation<S>)
template spawn_join source · line 63 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @reserved:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Reservation<S>) -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @payload:P -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Reservation<S>)
template tx_spawn source · line 73 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-populate:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @_:P -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>) -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @payload:P -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Reservation<S>)
IDs stay reserved on failure, matching the historical allocator policy. Reserve an entity handle now and stage activation/population for the barrier. Reserved is not yet live: ordinary component reads cannot observe it. The Type payload moves into the command; reservation refusal does not return that payload. Failure drops staged work and clears pending authority but does not rewind the allocator's reserved-ID progress. See examples/captured-query/schema.bend.
template deactivate_join source · line 77 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @deactivated:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status) -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
template despawn_apply source · line 83 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Low-level liveness-only command application, discarding its Status. Component storage is retained; use the schema-cleanup variant for ordinary entity disposal.
template despawn_applied_traced source · line 86 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status) -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/trace_facts.State)
template despawn_command source · line 91 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @enabled:Bool -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>
Construct the liveness-only deferred command, optionally recording application status as an execution fact. Construction alone does not change liveness.
template despawn_checked source · line 95 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @allowed:Bool -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @+trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
template despawn_join source · line 100 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @checked:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Bool) -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
template tx_despawn source · line 108 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
Low-level liveness-only operation retains component storage. Gameplay uses tx_despawn_with. Stage liveness-only deactivation for a live or legitimately pending handle. Foreign/stale/otherwise invalid handles return Rejected(MissingEntity) with Tx. Accepted is queue admission, not applied success; storage cleanup is not included.
template clear_join source · line 113 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @cleared:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Unit) -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Schema-owned clear releases every component family after accepted deactivation.
template clear_accepted source · line 117 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> C) -> @activated:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status) -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
template despawn_apply_with source · line 125 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> C) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Trusted schema-cleanup command: after accepted deactivation, clear the component store and release the cleared slot. Rejected deactivation skips clear. The clear adapter consumes actual payloads; this is not a recovery receipt.
template despawn_checked_with source · line 128 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> C) -> @allowed:Bool -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
template despawn_join_with source · line 133 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> C) -> @checked:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Bool) -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
template tx_despawn_with source · line 140 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> C) -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
Stage schema-owned cleanup after command-valid handle admission. Return Tx and Status now; liveness/components change at the barrier after successful finish. Failure drops the staged closure. clear is trusted complete-schema provisioning.
template clear_observed_join source · line 145 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> @cleared:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, List<&2, E>) -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Cleanup owns actual removed payloads; its typed metadata is published only on success.
template clear_observed_accepted source · line 149 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(C, List<&2, E>)) -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @activated:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status) -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
template despawn_valid_observed source · line 154 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(C, List<&2, E>)) -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @checked:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Bool) -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
template despawn_apply_observed source · line 162 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(C, List<&2, E>)) -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>
Apply checked live-entity cleanup, publishing its component removal records followed by the entity record only after accepted deactivation. Invalid handles leave World unchanged and skip cleanup/publication.
template despawn_checked_observed source · line 165 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(C, List<&2, E>)) -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @allowed:Bool -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
template despawn_join_observed source · line 170 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(C, List<&2, E>)) -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @checked:Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Bool) -> @undo:List<&1, @_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>> -> @commands:List<&1, 0x67fd5084c1da4adc13317822045bb11f/deferred_command.Command<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>>> -> @events:List<&2, E> -> @trace:0x67fd5084c1da4adc13317822045bb11f/trace_facts.State -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
template tx_despawn_observed source · line 178 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-clear:(@_:C -> @_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(C, List<&2, E>)) -> @-record:(@_:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> E) -> @tx:0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E> -> @+handle:0x67fd5084c1da4adc13317822045bb11f/world.Handle<S> -> Pair(0x67fd5084c1da4adc13317822045bb11f/transaction.Tx<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, E>, 0x67fd5084c1da4adc13317822045bb11f/world.Status)
Stage cleanup plus typed lifecycle publication for a command-valid handle. Queue admission returns Tx and Status; barrier application rechecks live validity before consuming payloads and publishing records. These Data records do not own the removed Type payloads or imply automatic recovery.