~/bend-docscommunity

owned_event_journal.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.0/owned_event_journal.bend as Owned_event_journal

7 imports
import Base
import ./trace_facts.bend as Facts
import ./world.bend as W
import ./owner_product.bend as Product
import ./owned_event_log.bend as Log
import ./owned_event_family_storage.bend as Storage
import ./recovery_journal.bend as Journal

Types

type Stage source · line 10 · raw

@State:Type -> @Recovery:Type -> Type

Trusted transport. Ordinary declaration builders derive both paths together; authored gameplay receives only the abstract emission capability.

Templates

template empty source · line 12 · raw

@-State:Type -> @-Recovery:Type -> Stage<State, Recovery>

template recovered source · line 13 · raw

@-P:Type -> @-All:Type -> @-Rest:Type -> @-path:0x296ca5f551e3792cd56cfc8122905b94/owner_product.Lens<All, List<&1, P>, Rest> -> @payload:P -> @parts:Pair(Rest, List<&1, P>) -> All

template recover source · line 16 · raw

@-P:Type -> @-All:Type -> @-Rest:Type -> @-path:0x296ca5f551e3792cd56cfc8122905b94/owner_product.Lens<All, List<&1, P>, Rest> -> @payload:P -> @all:All -> All

template action source · line 18 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x296ca5f551e3792cd56cfc8122905b94/owner_product.Lens<R, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-All:Type -> @-RecoveryRest:Type -> @-recovery:0x296ca5f551e3792cd56cfc8122905b94/owner_product.Lens<All, List<&1, P>, RecoveryRest> -> @payload:P -> @success:Bool -> @world:0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, R, E> -> @all:All -> Pair(0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, R, E>, All)

template emit source · line 22 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-P:Type -> @-Rest:Type -> @-E:Data -> @-path:0x296ca5f551e3792cd56cfc8122905b94/owner_product.Lens<R, 0x296ca5f551e3792cd56cfc8122905b94/owned_event_log.Log<P>, Rest> -> @-inject:(@_:Nat -> E) -> @-All:Type -> @-RecoveryRest:Type -> @-recovery:0x296ca5f551e3792cd56cfc8122905b94/owner_product.Lens<All, List<&1, P>, RecoveryRest> -> @stage:Stage<0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, R, E>, All> -> @payload:P -> Stage<0x296ca5f551e3792cd56cfc8122905b94/world.World<S, C, R, E>, All>

template finish source · line 27 · raw

@-State:Type -> @-Recovery:Type -> @stage:Stage<State, Recovery> -> @success:Bool -> @state:State -> @recovery:Recovery -> Pair(State, Recovery)

Reverse the action spine once: commits retain the global inter-family order, and abort receipts retain each family's order. Every closure executes once.

template with_trace source · line 31 · raw

@-State:Type -> @-Recovery:Type -> @trace:0x296ca5f551e3792cd56cfc8122905b94/trace_facts.State -> Stage<State, Recovery>

template record_named source · line 32 · raw

@-State:Type -> @-Recovery:Type -> @name:String -> @stage:Stage<State, Recovery> -> Stage<State, Recovery>

template finish_observed source · line 36 · raw

@-State:Type -> @-Recovery:Type -> @stage:Stage<State, Recovery> -> @+success:Bool -> @state:State -> @recovery:Recovery -> Pair(Pair(State, Recovery), 0x296ca5f551e3792cd56cfc8122905b94/trace_facts.State)