~/bend-docscommunity

ordinary_app_schema.bend checks

raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_schema.bend as Ordinary_app_schema

7 imports
import Base
import ./world.bend as W
import ./ordinary_schema.bend as Schema
import ./schema_fragments.bend as Fragment
import ./ordinary_app_composer.bend as Build
import ./ordinary_app_registration_fields.bend as Records
import ./ordinary_app_observation_data.bend as DTO

Types

type Application source · line 12 · raw

@S:Data -> @C:Type -> @R:Type -> @E:Data -> @Owners:Type -> @Rows:Data -> @-observe:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> Type

Retain the ordinary schema itself, never an extra debug declaration. Schema-scoped App retaining the ordinary schema and registered owner collection. Construct via attached; raw fields remain trusted setup and cannot replace runtime namespace/registration validation.

type Description source · line 17 · raw

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

Detached ordinary schema entries and registered application observations. This enabled-debug view contains no live owners and is not a restorable runtime checkpoint or a replacement for typed registration authority.

Templates

template attached source · line 21 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @schema:0x67fd5084c1da4adc13317822045bb11f/ordinary_schema.Schema<S, C, R> -> @app:0x67fd5084c1da4adc13317822045bb11f/ordinary_app_composer.Registered<S, 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Owners, Rows, observe, fold> -> Application<S, C, R, E, Owners, Rows, observe, fold>

Pair a matching schema with registered World/system owners. Does not validate raw metadata/storage consistency, execute systems or build a schedule.

template enabled source · line 25 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @value:Application<S, C, R, E, Owners, Rows, observe, fold> -> @flag:Bool -> Application<S, C, R, E, Owners, Rows, observe, fold>

Toggle declaration-derived debug observation, returning the retained App. Does not immediately invoke folds or World projections.

template observed source · line 28 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @+schema:0x67fd5084c1da4adc13317822045bb11f/ordinary_schema.Schema<S, C, R> -> @result:Pair(0x67fd5084c1da4adc13317822045bb11f/ordinary_app_composer.Registered<S, 0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Owners, Rows, observe, fold>, Maybe<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Product<List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Binding<S>>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>>>) -> Pair(Application<S, C, R, E, Owners, Rows, observe, fold>, Maybe<&2, Description<S, Rows>>)

template snapshot source · line 35 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Owners:Type -> @-Rows:Data -> @-observe:(@_:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Pair(0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_observation_data.Observation<Rows>)) -> @-fold:(@_:Owners -> Pair(Owners, List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_app_registration_fields.Fields<S>>)) -> @value:Application<S, C, R, E, Owners, Rows, observe, fold> -> Pair(Application<S, C, R, E, Owners, Rows, observe, fold>, Maybe<&2, Description<S, Rows>>)

Return App and Some schema/registration observation when enabled, or None when disabled. Uses existing owner-threading folds/projections; does not run systems or consume their reader cursors. Not a restorable World save.

template create source · line 42 · raw

@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-empty:(@_:Unit -> C) -> @schema:0x67fd5084c1da4adc13317822045bb11f/ordinary_schema.Schema<S, C, R> -> @factory:0x67fd5084c1da4adc13317822045bb11f/world.Factory -> @resource:R -> Pair(0x67fd5084c1da4adc13317822045bb11f/ordinary_schema.Schema<S, C, R>, 0x67fd5084c1da4adc13317822045bb11f/world.Creation<S, C, R, E>)

Schema is part of ordinary typed setup; World factory/refusal contracts unchanged. Trusted factory-based World creation returning schema and Creation. Actual empty storage comes from the supplied callback; refusal retains the caller resource owner. Prefer world-io.create for independent IO namespaces.