ordinary_app_schema_product.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/ordinary_app_schema_product.bend as Ordinary_app_schema_product
7 imports
import Base import ./ordinary_schema.bend as Schema import ./ordinary_declaration.bend as Identity import ./ordinary_component_binding.bend as Component import ./resource_field_binding.bend as Resource import ./owner_product.bend as Product import ./column.bend as Col
Types
type Declarations source · line 11 · raw
@-S:Data -> @-Payload:Type -> @-Counter:Type -> Data
The physical product paths follow the ordinary component/resource schema tree. Applications supply identities and opaque-value projections, not debug lenses. Trusted setup identities for this fixed one-component, one-resource schema.
Declarations@-S:Data -> @-Payload:Type -> @-Counter:Type -> @component:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, Payload> -> @resource:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Counter> -> Declarations<S, Payload, Counter>
type Token source · line 14 · raw
@-S:Data -> @-Payload:Type -> Data
Nominal component-binding token; it carries no payload or runtime permission.
Token@-S:Data -> @-Payload:Type -> Token<S, Payload>
Templates
template store source · line 17 · raw
@-S:Data -> @-Payload:Type -> Type
Physical component owner type for this fixed schema adapter.
template resources source · line 20 · raw
@-Counter:Type -> Type
Physical resource owner type for this fixed schema adapter.
template schema source · line 24 · raw
@-S:Data -> @-Payload:Type -> @-Counter:Type -> @declarations:Declarations<S, Payload, Counter> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Schema<S, store(S, Payload), resources(Counter)>
Assemble the component/resource schema from their supplied identities. This adapter fixes product paths; it is not a general schema generator.
template component_take source · line 29 · raw
@-S:Data -> @-Payload:Type -> @value:store(S, Payload) -> Pair(Unit, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, Payload>)
Trusted product projection: consume the store and return its remainder and component column for reassembly with component_put.
template component_put source · line 32 · raw
@-S:Data -> @-Payload:Type -> @rest:Unit -> @value:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, Payload> -> store(S, Payload)
Reassemble the store from the projected remainder and component column.
template component_identity source · line 35 · raw
@-S:Data -> @-Payload:Type -> @-Counter:Type -> @declarations:Declarations<S, Payload, Counter> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, Payload>
Recover the component declaration used by this schema adapter.
template component_binding source · line 41 · raw
@-S:Data -> @-Payload:Type -> @-Counter:Type -> @-V:Data -> @-view:(@_:Payload -> Pair(Payload, V)) -> @-declarations:Declarations<S, Payload, Counter> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_component_binding.Binding<S, store(S, Payload), Unit, Payload, V, Token<S, Payload>, component_take(S, Payload), component_put(S, Payload), view>
Build the component binding for the fixed product path. The supplied view is a trusted affine payload projection returning an owner and detached Data; this constructor does not establish projection purity or owner identity.
template resource_identity source · line 44 · raw
@-S:Data -> @-Payload:Type -> @-Counter:Type -> @declarations:Declarations<S, Payload, Counter> -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_schema.Resource<S, Counter>
Recover the resource declaration used by this schema adapter.
template counter_lens source · line 48 · raw
@-Counter:Type -> 0x14a72e1c180a5ab1f8a056d43822425c/owner_product.Lens<resources(Counter), Counter, Unit>
Trusted lens selecting the resource in the fixed right product field.
template resource_binding source · line 52 · raw
@-S:Data -> @-Payload:Type -> @-Counter:Type -> @-declarations:Declarations<S, Payload, Counter> -> 0x14a72e1c180a5ab1f8a056d43822425c/resource_field_binding.Binding<S, resources(Counter), Counter, Unit, counter_lens(Counter), resource_identity(S, Payload, Counter, declarations)>
Build the resource binding from the fixed lens and supplied declaration. This setup binding does not itself grant a system read or write access.