assembler

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package assembler is the select-only Loop/Capability Assembler: it compiles a config.File (which capabilities are enabled + how they are bound/limited) plus the channel bindings into a runtime.RuntimeConfig. It only SELECTS already-compiled capabilities from the provided catalog (resolved via the native:<id> rule_ref); an unknown capability id fails closed. Config can never define new behavior — the canonical state still flows observed -> rule -> kernel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assemble

func Assemble(cfg config.File, bindings []channel.ChannelBinding, catalog map[string]capability.Capability) (runtime.RuntimeConfig, error)

Assemble derives the Local Mnemon runtime config from the enabled capabilities in cfg and the installed channel bindings. For each enabled capability it resolves the descriptor by rule_ref from catalog (fail-closed on an unknown id), then builds one actor-bound rule per binding that may observe the capability's type, granting that principal kernel write authority for the resource kind.

catalog selects the capability universe; nil means capability.EmbeddedCatalog(). That nil default is the backward-compatible seam: every pre-stage-5 caller (and the test/sync surfaces with no project root to resolve external packages from) keeps embedded-only behavior unchanged, while the boot path passes the merged capability.ResolveCatalog result.

Divergence from the locked Assemble(cfg, loops) signature (code wins): the runtime config needs the channel bindings (principals/scope), which the loop manifests do not carry; bindings are the second argument. This is the production boot path: app.OpenLocalRuntime derives the config.File from the setup-written loops list and assembles here.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL