configspec

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package configspec is the compile-time, adopter-facing description authority for the .awf configuration surface: every config.yaml key, sidecar field, var, and per-artifact data key an adopter can set. Descriptions are publication prose: they state effect and availability in the adopter's terms - never internal rationale, concrete ADR citations, or repo-identity literals (the residue rules, test-enforced).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LiveStateClassifications added in v0.31.0

func LiveStateClassifications() map[string]LiveStateClass

LiveStateClassifications derives the exhaustive classification from the config-spec authority. Sidecar fields and item-schema leaves have no singular project value; every other project config path does.

Types

type DataKey

type DataKey struct {
	Kind        string // "skills", "agents", "docs"
	Artifact    string // artifact name; "agents-doc" uses kind "docs"; "_base" covers local artifacts
	Key         string
	Fields      []string // declared record fields when the value is a list of mappings
	Description string
}

DataKey describes one adopter-settable sidecar data: key of one artifact.

func DataKeys

func DataKeys() []DataKey

DataKeys returns the per-artifact sidecar data-key descriptions.

type Entry

type Entry struct {
	Path         string // dotted YAML path: "audit.diffThreshold", "sidecar.sections.<name>.drop"
	Type         string // value shape as prose: "string", "bool", "string list", "key → value map"
	Default      string // effective default as prose: "docs", "accept any scope", "none"
	Description  string // full adopter-voiced description
	Availability string // when the key has effect: "always", "domain sidecars only", ...
}

Entry describes one adopter-writable configuration key.

func Keys

func Keys() []Entry

Keys returns every described config.yaml and sidecar key. Sidecar fields carry the "sidecar." path prefix.

type LiveStateClass added in v0.31.0

type LiveStateClass uint8

LiveStateClass declares whether a configuration-reference key has a project-specific current-value projection. Static keys deliberately carry no current value: sidecar fields and structural list leaves have no one project value to display.

const (
	StaticNotApplicable LiveStateClass = iota
	LiveStateProjection
)

type VarEntry

type VarEntry struct {
	Key          string
	Description  string
	Availability string
}

VarEntry describes one config var. Description text is carried verbatim from the catalog descriptor - the catalog stays the sole var authority; configspec attaches only the availability clause.

func VarEntries

func VarEntries() []VarEntry

VarEntries derives the var descriptions from the catalog's config-var descriptors (empty or "var" Target - the init-routing descriptors are not vars: keys), description text verbatim, availability clause attached here. touches-state: config/configspec-and-reference:configspec-var-derivation - var entries derived from catalog descriptors; proof in spec_test.go

Jump to

Keyboard shortcuts

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