~/bend-docscommunity

feature.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.3/feature.bend as Feature

10 imports
import Base
import ./schema_fragments.bend as SF
import ./execution_composer_layout.bend as Layout
import ./execution_composer_schema.bend as Schema
import ./execution_registry.bend as Registry
import ./dependency_registration.bend as Reg
import ./dependency_executor.bend as Exec
import ./dependency_composer_program.bend as Scoped
import ./dependency_composer.bend as Compose
import ./dependency_plan.bend as Plan

Types

type Tree source · line 16 · raw

@S:Data -> Data

Recursive author metadata contains no payload owners or gameplay authority. Detached feature selection metadata with named dependencies and schema entries. A dependency reference does not automatically select/build it; selected features must include required names. Owns no live world or payload.

type Error source · line 22 · raw

Data

Feature composition refusal: duplicate selected feature, absent dependency name or schema descriptor conflict. No builder has run on validation refusal.

type Validation source · line 27 · raw

Data

Pure feature validation result; owns no application payload or context.

type Composition source · line 32 · raw

@S:Data -> @Owners:Type -> @Output:Type -> Type

Validated composition outcome. Built owns build output; Rejected returns the original affine Owners with the validation error for recovery or retry.

type Pack source · line 107 · raw

@Head:Type -> @Tail:Type -> Type

Heterogeneous affine head/tail feature owners or outputs, preserving order. Nest this product for additional features; payloads need not be Data.

type Definition source · line 110 · raw

@S:Data -> Data

type Assembly source · line 118 · raw

@-S:Data -> @-ActualRegistry:Type -> Type

Entries and node IDs come from the same accepted declarations that execute. Scope paths retain feature boundaries before dependency edges are flattened.

type AssemblyError source · line 120 · raw

Data

type Lowered source · line 123 · raw

@-ActualRegistry:Type -> Type

type Application source · line 169 · raw

@-Root:Type -> @-Provisions:Type -> Type

type Report source · line 171 · raw

@Out:Data -> Data

Definitions

def contains source · line 56 · raw

@items:List<&2, String> -> @+name:String -> Bool

def repeated source · line 60 · raw

@present:Bool -> @name:String -> @next:(@_:Unit -> Validation) -> Validation

def duplicates source · line 64 · raw

@items:List<&2, String> -> @+seen:List<&2, String> -> Validation

def missing source · line 68 · raw

@present:Bool -> @name:String -> @next:(@_:Unit -> Validation) -> Validation

def required source · line 72 · raw

@items:List<&2, String> -> @+selected:List<&2, String> -> Validation

def continue_validation source · line 76 · raw

@result:Validation -> @next:(@_:Unit -> Validation) -> Validation

def schema_validation source · line 85 · raw

@result:0x704c77730661eff4309838fc738ef615/schema_fragments.Validation -> Validation

def needs_key source · line 125 · raw

@nodes:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> @+key:String -> Bool

def scope_members source · line 140 · raw

@scope:0x704c77730661eff4309838fc738ef615/dependency_composer_program.Scope -> List<&2, U32>

def feature_error source · line 146 · raw

@validation:Validation -> Maybe<&2, AssemblyError>

def composition_error source · line 150 · raw

@error:Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_composer.Error> -> Maybe<&2, AssemblyError>

def first_error source · line 154 · raw

@first:Maybe<&2, AssemblyError> -> @second:Maybe<&2, AssemblyError> -> Maybe<&2, AssemblyError>

def nesting_error source · line 158 · raw

@error:Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_composer_program.NestError> -> Maybe<&2, 0x704c77730661eff4309838fc738ef615/dependency_composer.Error>

def returned source · line 174 · raw

@-Root:Type -> @-Provisions:Type -> @-Out:Data -> @provisions:Provisions -> @result:Pair(Root, Out) -> Pair(Application<Root, Provisions>, Report<Out>)

def run source · line 177 · raw

@-Root:Type -> @-Provisions:Type -> @-Out:Data -> @invoke:(@_:Root -> Pair(Root, Out)) -> @application:Application<Root, Provisions> -> Pair(Application<Root, Provisions>, Report<Out>)

Templates

template names source · line 37 · raw

@-S:Data -> @tree:Tree<S> -> List<&2, String>

List selected feature names in authored sequence order, without recursively treating dependency references as additional selected features.

template entries source · line 44 · raw

@-S:Data -> @tree:Tree<S> -> List<&2, 0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S>>

List entries from selected features in authored sequence order. Dependency metadata does not implicitly add those features or their schema entries.

template visibility source · line 51 · raw

@-S:Data -> @tree:Tree<S> -> List<&2, 0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S>>

Collect own and referenced dependency entries recursively for visibility description. This does not select/build dependencies or validate composition.

template dependencies source · line 80 · raw

@-S:Data -> @tree:Tree<S> -> @+selected:List<&2, String> -> Validation

template validate source · line 92 · raw

@-S:Data -> @+tree:Tree<S> -> Validation

Check selected feature names, required dependency names and schema entries before any owned builder runs. Dependencies are name requirements, not an automatic dependency resolver or topological reorder of authored selection.

template compose_checked source · line 94 · raw

@-S:Data -> @-Owners:Type -> @-Output:Type -> @-build:(@_:Owners -> Output) -> @result:Validation -> @owners:Owners -> Composition<S, Owners, Output>

template compose source · line 102 · raw

@-S:Data -> @-Owners:Type -> @-Output:Type -> @-build:(@_:Owners -> Output) -> @tree:Tree<S> -> @owners:Owners -> Composition<S, Owners, Output>

Validate the metadata tree before passing affine Owners to the trusted build callback. Invalid returns Rejected with original owners; valid invokes build once. Does not make arbitrary builder effects transactional. Contract and accepted consumers: docs/parity/features.md.

template definition_tree source · line 112 · raw

@-S:Data -> @definition:Definition<S> -> Tree<S>

template selected_entry source · line 129 · raw

@-S:Data -> @selected:Bool -> @entry:0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S> -> @rest:List<&2, 0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S>> -> List<&2, 0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S>>

template own_entries source · line 133 · raw

@-S:Data -> @entries:List<&2, 0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S>> -> @+nodes:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_plan.Node<String>> -> List<&2, 0x704c77730661eff4309838fc738ef615/schema_fragments.Entry<S>>

template from_facts source · line 137 · raw

@-S:Data -> @-components:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-World:Type -> @-Nodes:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Nodes -> @_:World -> @_:U32 -> Pair(Nodes, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @name:String -> @dependencies:Tree<S> -> @facts:0x704c77730661eff4309838fc738ef615/execution_registry.Facts<0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Nodes, Error, Out, dispatch>> -> Assembly<S, 0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Nodes, Error, Out, dispatch>>

template pair source · line 143 · raw

@-S:Data -> @-World:Type -> @-Left:Type -> @-Right:Type -> @-Error:Data -> @-Out:Data -> @-leftDispatch:(@_:Left -> @_:World -> @_:U32 -> Pair(Left, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @-rightDispatch:(@_:Right -> @_:World -> @_:U32 -> Pair(Right, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @left:Assembly<S, 0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Left, Error, Out, leftDispatch>> -> @right:Assembly<S, 0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Right, Error, Out, rightDispatch>> -> Assembly<S, 0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, 0x704c77730661eff4309838fc738ef615/dependency_registration.Product<Left, Right>, Error, Out, 0x704c77730661eff4309838fc738ef615/dependency_registration.paired_dispatch(World, Left, Right, Error, Out, leftDispatch, rightDispatch)>>

template lower_nested source · line 162 · raw

@-S:Data -> @-components:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-World:Type -> @-Nodes:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Nodes -> @_:World -> @_:U32 -> Pair(Nodes, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @selected:Tree<S> -> @facts:0x704c77730661eff4309838fc738ef615/execution_registry.Facts<0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Nodes, Error, Out, dispatch>> -> @nested:0x704c77730661eff4309838fc738ef615/dependency_composer_program.Nesting -> Lowered<0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Nodes, Error, Out, dispatch>>

template lower source · line 165 · raw

@-S:Data -> @-components:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-resources:0x704c77730661eff4309838fc738ef615/execution_composer_layout.Layout -> @-World:Type -> @-Nodes:Type -> @-Error:Data -> @-Out:Data -> @-dispatch:(@_:Nodes -> @_:World -> @_:U32 -> Pair(Nodes, Pair(World, 0x704c77730661eff4309838fc738ef615/dependency_executor.Invocation<Error, Out>))) -> @groups:List<&2, 0x704c77730661eff4309838fc738ef615/dependency_composer_program.Nested> -> @assembly:Assembly<S, 0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Nodes, Error, Out, dispatch>> -> Lowered<0x704c77730661eff4309838fc738ef615/dependency_registration.Registry<World, Nodes, Error, Out, dispatch>>