~/bend-docscommunity

ordinary_app_execution.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_app_execution.bend as Ordinary_app_execution

25 imports
import Base
import ./change_tick.bend as Tick
import ./machine_world.bend as MachineWorld
import ./ordinary_app_execution_run.bend as ExecuteRun
import ./machine_handler_engine.bend as HandlerEngine
import ./machine_handlers.bend as Handlers
import ./machine.bend as Machine
import ./ordinary_machine_declaration.bend as MachineDecl
import ./ordinary_app_resource_field_declaration.bend as FieldDecl
import ./ordinary_resource_field_system.bend as FieldSystem
import ./transaction.bend as Transaction
import ./execution_context.bend as Ctx
import ./trace_facts.bend as Facts
import ./execution_trace.bend as Trace
import ./ordinary_app_schedule.bend as Single
import ./ordinary_app_schema.bend as App
import ./ordinary_app_composer.bend as Build
import ./ordinary_app_recipe.bend as Tree
import ./ordinary_app_registration_fields.bend as Records
import ./ordinary_app_observation_data.bend as DTO
import ./ordinary_schema.bend as Schema
import ./world.bend as W
import ./system.bend as Sys
import ./schedule.bend as Sch
import ./schedule_provision.bend as SP

Types

type Run source · line 33 · raw

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

A detached batch is returned only after its actual ECS run has completed. Execution returns a retained application result and a detached trace batch. Inspect result for Finished/Failed/Rejected/Missing; tracing is Disabled or Ready according to the actual run. Subscribers process the copied batch afterward; external printing/file IO is outside ECS rollback. Example: examples/scheduled-health/application.bend, ran().

type Journal source · line 35 · raw

@Error:Data -> Data

type HandlerFailure source · line 134 · raw

Data

Disabled runs use the old ordinary run directly: no identity/clock scan, completion journal, trace-event construction or subscriber delivery occurs. Transition-handler failure identifying its exit/transition/enter phase and error text. Enter failure follows an already committed transition; inspect the phase instead of assuming whole-transition rollback.

type HandlerRun source · line 139 · raw

@App:Type -> @Owners:Type -> @Snapshot:Data -> Type

Transition-handler execution retains the App, all handler owners, the captured machine snapshot, optional phase failure and detached trace batch. The captured snapshot is not a rollback command or a copy of affine owners.

type ExecutionState source · line 164 · raw

@Error:Data -> Data

Definitions

def named source · line 41 · raw

@found:Bool -> @name:Maybe<&2, String> -> @next:(@_:Unit -> Maybe<&2, String>) -> Maybe<&2, String>

def registration_name source · line 45 · raw

@items:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity> -> @+id:U32 -> Maybe<&2, String>

def operation_events source · line 141 · raw

@facts:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.Fact> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<String>>

def operation_batch source · line 145 · raw

@state:0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State -> 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Batch<String>

def trace_state source · line 149 · raw

@debug:Bool -> 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State

Templates

template catalog source · line 37 · raw

@-S:Data -> @fields:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity>

template identity_clock source · line 49 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @namespace:U32 -> @id:U32 -> @name:Maybe<&2, String> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick))

template identity_namespace source · line 52 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @id:U32 -> @name:Maybe<&2, String> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, U32) -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick))

template identity source · line 55 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Error:Data -> @journal:Journal<Error> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @+id:U32 -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick))

template record source · line 58 · raw

@-Error:Data -> @event:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error> -> @journal:Journal<Error> -> Journal<Error>

template succeeded source · line 61 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @owners:H -> @fact:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity -> @before:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> @journal:Journal<Error> -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick) -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template failed source · line 64 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @owners:H -> @fact:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity -> @before:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> @journal:Journal<Error> -> @+error:Error -> @observed:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick) -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template record_operations source · line 67 · raw

@-Error:Data -> @facts:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.Fact> -> @+identity:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity -> @journal:Journal<Error> -> Journal<Error>

template record_barrier_operations source · line 71 · raw

@-Error:Data -> @facts:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.Fact> -> @journal:Journal<Error> -> Journal<Error>

template barrier_returned source · line 75 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @owners:H -> @journal:Journal<Error> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/trace_facts.State) -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>)

template barrier_recorded source · line 78 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @owners:Pair(H, Journal<Error>) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>)

template dispatched source · line 81 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @+fact:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity -> @before:0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick -> @journal:Journal<Error> -> @result:Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>) -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template identified source · line 85 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @owners:H -> @journal:Journal<Error> -> @+id:U32 -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Pair(0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Identity, 0x14a72e1c180a5ab1f8a056d43822425c/change_tick.Tick)) -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template dispatch_id source · line 88 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @owners:Pair(H, Journal<Error>) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @+id:U32 -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template dispatch_recorded source · line 91 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @owners:Pair(H, Journal<Error>) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @id:U32 -> Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template ran_chunk_more source · line 95 · raw

@-Error:Data -> @event:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error> -> @chunk:Pair(List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>) -> Pair(List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>)

Sch.Ran supplies position only. The completion/error comes from the actual dispatch result above, never from a guessed interpretation of Ran.

template ran_chunk source · line 98 · raw

@-Error:Data -> @journal:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>> -> Pair(List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>)

template barrier_chunk source · line 103 · raw

@-Error:Data -> @journal:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>> -> Pair(List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>)

template merged_chunk source · line 108 · raw

@-Error:Data -> @next:(@_:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>) -> @chunk:Pair(List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>) -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>

template merge source · line 111 · raw

@-Error:Data -> @observations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Observation> -> @journal:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>> -> List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.TraceEvent<Error>>

template batch source · line 118 · raw

@-Error:Data -> @namespace:U32 -> @name:String -> @observations:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Observation> -> @journal:Journal<Error> -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Completion<Error> -> 0x14a72e1c180a5ab1f8a056d43822425c/execution_trace.Batch<Error>

template restored source · line 121 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Error:Data -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @owners:H -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @debug:Bool -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @namespace:U32 -> @name:String -> @steps:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Step> -> @needs:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>

template disabled_outcome source · line 123 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @result:Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>) -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template dispatch_disabled source · line 127 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @owners:H -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @id:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template handlers_returned source · line 153 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-Value:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.Declaration<S, C, R, E, Ops, Value> -> @-K:Data -> @-MachineV:Data -> @-take:(@_:R -> Pair(R, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV>)) -> @-put:(@_:R -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV> -> R) -> @-machine:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, MachineV, R, take> -> @-same:(@_:MachineV -> @_:MachineV -> Bool) -> @-publish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Transition<MachineV> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV> -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<String>, Unit))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @previous:Owners -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @debug:Bool -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @namespace:U32 -> @name:String -> @steps:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Step> -> @needs:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>> -> @captured:0x14a72e1c180a5ab1f8a056d43822425c/machine.Snapshot<MachineV> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/machine_handler_engine.HandlerResult<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Entry<S, C, R, E, MachineV, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV>, String, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Phase> -> HandlerRun<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, Owners, Rows, observe, fold>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Owners<S, C, R, E, MachineV, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV>, String, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Snapshot<MachineV>>

template handlers_read source · line 157 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-Value:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.Declaration<S, C, R, E, Ops, Value> -> @-K:Data -> @-MachineV:Data -> @-take:(@_:R -> Pair(R, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV>)) -> @-put:(@_:R -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV> -> R) -> @-machine:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, MachineV, R, take> -> @-same:(@_:MachineV -> @_:MachineV -> Bool) -> @-publish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Transition<MachineV> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV> -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<String>, Unit))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @previous:Owners -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @+debug:Bool -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @namespace:U32 -> @name:String -> @steps:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Step> -> @needs:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>> -> @owners:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Owners<S, C, R, E, MachineV, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV>, String, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)> -> @read:Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV>) -> HandlerRun<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, Owners, Rows, observe, fold>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Owners<S, C, R, E, MachineV, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV>, String, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Snapshot<MachineV>>

template run_handlers_resource_field source · line 160 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-Value:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.Declaration<S, C, R, E, Ops, Value> -> @-K:Data -> @-MachineV:Data -> @-take:(@_:R -> Pair(R, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV>)) -> @-put:(@_:R -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Slot<S, K, MachineV> -> R) -> @-machine:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_machine_declaration.Declaration<S, K, MachineV, R, take> -> @-same:(@_:MachineV -> @_:MachineV -> Bool) -> @-publish:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine.Transition<MachineV> -> 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV> -> @_:H -> Pair(H, Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<String>, Unit))) -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @app:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, Owners, Rows, observe, fold> -> @owners:0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Owners<S, C, R, E, MachineV, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV>, String, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)> -> HandlerRun<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, Owners, Rows, observe, fold>, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Owners<S, C, R, E, MachineV, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_resource_field_system.runner(S, C, R, E, Ops, 0x14a72e1c180a5ab1f8a056d43822425c/machine_handlers.Invocation<MachineV>, String, Unit, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_resource_field_declaration.ordinary(S, C, R, E, Ops, Value, declaration), body)>, 0x14a72e1c180a5ab1f8a056d43822425c/machine.Snapshot<MachineV>>

template disabled_dispatched source · line 167 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @result:Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>) -> Pair(Pair(H, ExecutionState<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template enabled_dispatched source · line 170 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @result:Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>) -> Pair(Pair(H, ExecutionState<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template dispatch_state source · line 173 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @owner:Pair(H, ExecutionState<Error>) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @id:U32 -> Pair(Pair(H, ExecutionState<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Error, Unit>)

template enabled_barrier source · line 177 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @result:Pair(Pair(H, Journal<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>) -> Pair(Pair(H, ExecutionState<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>)

template barrier_state source · line 180 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Error:Data -> @owner:Pair(H, ExecutionState<Error>) -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(Pair(H, ExecutionState<Error>), 0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>)

template executed source · line 184 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Error:Data -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @needs:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/schedule.RunResult<S, C, R, E, Pair(H, ExecutionState<Error>), Error> -> Run<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, S, Error>

template provisioned source · line 192 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Error:Data -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @result:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.ProvisionResult<S, C, R, E, Pair(H, ExecutionState<Error>), Error> -> Run<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, S, Error>

template start source · line 197 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @-condition:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:U32 -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Bool)) -> @-provision:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>>)) -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @namespace:U32 -> @name:String -> @steps:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Step> -> @needs:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>> -> @owners:H -> @state:ExecutionState<Error> -> Run<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, S, Error>

template prepared source · line 199 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @-condition:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:U32 -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Bool)) -> @-provision:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>>)) -> @schema:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, C, R> -> @world:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @recipe:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_recipe.Recipe<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Rows, observe> -> @plan:0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Plan<S> -> @namespace:U32 -> @name:String -> @steps:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule.Step> -> @needs:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>> -> @value:Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>) -> Run<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, S, Error>

template run source · line 209 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-H:Type -> @-Rows:Data -> @-observe:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:H -> Pair(H, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_registration_fields.Fields<S>>)) -> @-Error:Data -> @-dispatch:(@_:H -> @_:0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>> -> @_:U32 -> Pair(H, 0x14a72e1c180a5ab1f8a056d43822425c/system.Outcome<0x14a72e1c180a5ab1f8a056d43822425c/execution_context.Context<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>>, Error, Unit>)) -> @-condition:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> @_:U32 -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, Bool)) -> @-provision:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E> -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, C, R, E>, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/schedule_provision.Requirement<S>>)) -> @value:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold> -> Run<0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_schedule.Application<S, C, R, E, H, Rows, observe, fold>, S, Error>

Advanced traced schedule execution with supplied dispatch/condition/provision callbacks. Returns Run on admission refusal, missing requirements, success or system failure, retaining App ownership throughout. Disabled debug omits trace collection; enabled debug derives identities and operations from actual execution. Supplied callbacks are trusted world-transforming adapters; arbitrary callback mutations/host IO are not automatically transactional. Prefer ordinary-app-run.run for registration-derived dispatch.