~/bend-docscommunity

ordinary_app_relation.bend checks

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

18 imports
import Base
import entity_key_render.bend as KeyText
import ./ordinary_app_composer.bend as Build
import ./ordinary_app_recipe.bend as Tree
import ./ordinary_app_observation_data.bend as DTO
import ./ordinary_app_registration_fields.bend as Fields
import ./world.bend as W
import ./inspector.bend as I
import ./relation_failure_reader.bend as Ord
import ./relation_types.bend as G
import ./relation_commands.bend as A
import ./relation_query.bend as RQ
import ./relation_providers.bend as P
import ./inspector_relation_projection.bend as IR
import ./inspector_query.bend as IQ
import ./inspector_query_projection.bend as Select
import ./transaction.bend as T
import ./commands.bend as Cmd

Types

type View source · line 50 · raw

@S:Data -> Data

Detached relation observation: the declared descriptor and ordered inspector rows. This Data value does not grant access to the underlying World or inverse storage.

Definitions

def kind source · line 26 · raw

@value:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.RelationKind -> String

def end source · line 63 · raw

@value:0x14a72e1c180a5ab1f8a056d43822425c/relation_query.End -> String

Templates

template descriptor source · line 23 · raw

@-S:Data -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S>

One trusted ordinary relation declaration drives operational grants and view. Trusted setup projection of the retained relation declaration. The descriptor selects operational authority; presentation strings do not create another grant.

template descriptor_text source · line 30 · raw

@-S:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> String

template declared_spec source · line 33 · raw

@-S:Data -> @+value:0x14a72e1c180a5ab1f8a056d43822425c/relation_types.Descriptor<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_query.Spec<S>

template spec source · line 38 · raw

@-S:Data -> @declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> 0x14a72e1c180a5ab1f8a056d43822425c/relation_query.Spec<S>

Inspector setup for optional outgoing and inverse cells of this declaration. Optional cells retain unlinked entities rather than requiring an existing edge.

template World source · line 43 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> Type

Advanced storage projection: relation edges wrap C and relation notices wrap E. The World remains an affine owner threaded through every App operation.

template Row source · line 46 · raw

@-S:Data -> Data

Detached inspector row containing an entity handle and optional relation cells.

template ObservedRows source · line 53 · raw

@-S:Data -> @-Rows:Data -> Data

Advanced observation shape pairing prior rows with the added relation view.

template handle source · line 55 · raw

@-S:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> String

template relation_value source · line 58 · raw

@-S:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/relation_query.Value<S> -> String

template cell source · line 67 · raw

@-S:Data -> @value:0x14a72e1c180a5ab1f8a056d43822425c/relation_query.Cell<S> -> String

template builtin_row source · line 71 · raw

@-S:Data -> @value:Row(S) -> String

Default textual presentation of a detached row; it does not perform a query.

template rendered source · line 74 · raw

@-S:Data -> @-render:(@_:Row(S) -> String) -> @rows:List<&2, Row(S)> -> List<&2, String>

template presented source · line 78 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/inspector.Frame<S, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Store<S, C>, R, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, List<&2, Row(S)>) -> Pair(World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<View<S>>)

template observe source · line 84 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @world:World(S, C, R, E) -> Pair(World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<View<S>>)

Read a fresh relation inspector view while returning the World owner. Uses a fresh inspector cursor; it does not advance a registered gameplay reader or apply queued commands. The renderer consumes detached rows only.

template observation source · line 88 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @_:World(S, C, R, E) -> Pair(World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<ObservedRows(S, Rows)>)

Advanced recipe adapter: retain the prior observation, then append this view. The shared World owner is passed through both observers in that order.

template presented_Application source · line 92 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> Type

Advanced App type with a caller-supplied detached-row renderer. World, registration owners and the combined observation recipe remain inside the App.

template presented_Recipe source · line 95 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> Type

Advanced recipe type for prior rows followed by the custom relation view.

template presented_install source · line 99 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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_composer.Registered<S, World(S, C, R, E), Owners, Rows, prior, fold> -> presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold)

Install the custom relation observation recipe, preserving World, registration owners and debug state. This does not create edges or register a gameplay system.

template presented_snapshot_app source · line 104 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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:presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @flag:Bool -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Binding<S>>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<ObservedRows(S, Rows)>>>)

Set observation enablement from flag, then snapshot through the installed recipe. Returns the App in both cases; disabled observation returns None.

template returned source · line 106 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @owners:Owners -> @recipe:presented_Recipe(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @debug:Bool -> @result:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Returned<World(S, C, R, E), Error> -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>)

template queue_finished source · line 109 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @status:0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus -> @result:Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>) -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>>)

template queued source · line 112 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @owners:Owners -> @recipe:presented_Recipe(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @debug:Bool -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus) -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>>)

template presented_relate_app source · line 119 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @app:presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @targets:0x14a72e1c180a5ab1f8a056d43822425c/relation_providers.Targets<S> -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>>)

Stage source-to-target replacement under this declaration, then finish the transaction with the supplied outcome. Return the App, queue status and outcome separately: Queued is not barrier application success. Failure discards staged commands; barrier-time structural rejection is reported through relation notices.

template presented_unrelate_app source · line 125 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @app:presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @source:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>>)

Stage removal of this source relation and finish with the supplied outcome. Returns App plus queue status and transaction outcome; successful staging remains invisible to graph reads until a barrier, and transaction failure discards it.

template inverse_finished source · line 128 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @value:Maybe<&2, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>> -> @result:Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Unit>) -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), Maybe<&2, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>>)

template inverse_taken source · line 131 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @owners:Owners -> @recipe:presented_Recipe(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @debug:Bool -> @result:Pair(0x14a72e1c180a5ab1f8a056d43822425c/transaction.Tx<World(S, C, R, E), 0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.Notice<S, E>>, Maybe<&2, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>>) -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), Maybe<&2, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>>)

template presented_inverse_app source · line 137 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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:presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> @target:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold), Maybe<&2, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>>)

Read the current inverse list in stored order and return the App owner. None denotes an invalid target; Some may contain an empty list. Pending commands are not applied, and this read does not offer direct inverse-list mutation.

template presented_barrier_app source · line 143 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-render:(@_:Row(S) -> String) -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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:presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold) -> presented_Application(S, C, R, E, declaration, render, Owners, Rows, prior, fold)

Apply the World structural barrier, returning the App with its owners and recipe. This drains pending World commands, not only commands for this declaration; structural relation failures are published as notices by their command handlers.

template Application source · line 147 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> Type

Ordinary relation App using builtin_row presentation and the retained declaration.

template Recipe source · line 151 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> Type

Advanced default-renderer recipe projection for composing typed App adapters.

template install source · line 157 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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_composer.Registered<S, World(S, C, R, E), Owners, Rows, prior, fold> -> Application(S, C, R, E, declaration, Owners, Rows, prior, fold)

Install the default relation observer without changing graph edges or owners. Typical order: install, relate_app with a successful outcome, barrier_app, then inverse_app or snapshot_app. See docs/parity/relations.md for accepted scenarios.

template snapshot_app source · line 162 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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:Application(S, C, R, E, declaration, Owners, Rows, prior, fold) -> @flag:Bool -> Pair(Application(S, C, R, E, declaration, Owners, Rows, prior, fold), Maybe<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Binding<S>>, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Observation<ObservedRows(S, Rows)>>>)

Default-renderer snapshot; flag controls observation and the App is returned even when the observation is disabled (None). Does not apply pending commands.

template relate_app source · line 167 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @app:Application(S, C, R, E, declaration, Owners, Rows, prior, fold) -> @targets:0x14a72e1c180a5ab1f8a056d43822425c/relation_providers.Targets<S> -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> Pair(Application(S, C, R, E, declaration, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>>)

Default-renderer source-to-target request. Returns queue status separately from the supplied transaction outcome; call barrier_app before expecting graph changes.

template unrelate_app source · line 172 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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>>)) -> @-Error:Data -> @app:Application(S, C, R, E, declaration, Owners, Rows, prior, fold) -> @source:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @outcome:0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error> -> Pair(Application(S, C, R, E, declaration, Owners, Rows, prior, fold), 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_app_observation_data.Product<0x14a72e1c180a5ab1f8a056d43822425c/relation_commands.QueueStatus, 0x14a72e1c180a5ab1f8a056d43822425c/transaction.Outcome<Error>>)

Default-renderer source removal request. The App is returned on refusal or transaction failure; staging and barrier-time relation validity remain distinct.

template inverse_app source · line 177 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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:Application(S, C, R, E, declaration, Owners, Rows, prior, fold) -> @target:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> Pair(Application(S, C, R, E, declaration, Owners, Rows, prior, fold), Maybe<&2, List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S>>>)

Default-renderer inverse read, returning the App and Maybe ordered source handles. Reads the current graph; pending additions and removals require a barrier first.

template barrier_app source · line 181 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-declaration:0x14a72e1c180a5ab1f8a056d43822425c/relation_failure_reader.Declaration<S> -> @-Owners:Type -> @-Rows:Data -> @-prior:(@_:World(S, C, R, E) -> Pair(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:Application(S, C, R, E, declaration, Owners, Rows, prior, fold) -> Application(S, C, R, E, declaration, Owners, Rows, prior, fold)

Default-renderer structural barrier for all pending commands in this World.