| .. | ||
| check-fixtures.py | ||
| layer-v1.schema.json | ||
| README.md | ||
Frozen Layer v1
layer-v1.schema.json is the normative structural JSON Schema (2020-12) for
apiVersion: archipelago/v1, kind: Layer, frozen by explicit user approval on
2026-11-04. YAML and JSON use the same data model. Composition/lock schemas are
separate and are not frozen by this Layer schema.
Normative semantics: RFC-0008 and agreed freeze blocks. Complete YAML examples: Core, GNOME, KDE. Package lists and adapter names in examples are illustrative, not approved complete desktop profiles or working adapters.
Validation pipeline
- Strict UTF-8 parsing: one document, no duplicate keys, anchors, aliases, merge keys, custom tags, implicit type coercion, null substitution or interpolation. Preserve plain text as text except JSON-compatible booleans/numbers/null, then validate the actual types. Floats are forbidden; integers use the JSON-safe range.
- Validate the parsed object against the schema.
defaultannotations describe canonicalization; JSON Schema validators do not insert them automatically. Apply defaults only to applicable fields (never inject forbidden fields such as Core replacements). Missing file type isfile, missing required flag true. - Semantic validation checks keyed uniqueness (packages within each requirement list, actions, units, canonical paths), references, DAGs, adapter contracts, source-tree containment, preset conflicts and override relationships. Build requirements can legitimately name the same package as runtime requirements.
- Resolve/build validates exact package inputs, identities, declared system ownership, source paths and complete package-action coverage.
- Composition validates ownership, effective package records, compatibility, ordered overlays, replacements/overrides, kernel/ABI and finalization. Verify expected_sha256 keys against paths and require regular-file targets.
Structural success never establishes image readiness. The fixture runner below checks parser/structural and selected source-local semantic requirements; it is not the production Rust parser, package resolver or composition engine.
Fixtures
Run new checks on terra (D-071) with Python jsonschema and PyYAML in an isolated environment:
python rfc/schemas/check-fixtures.py
The runner validates committed examples and negative mutations: unknown fields,
type errors, unsafe paths, conditional fields, kernel binding, duplicate identities,
missing action references, action cycles and parser-level duplicate/alias/multidoc
rejection. Add conformance fixtures when implementing the Rust contracts parser.
Schema or semantic changes require separate approval and schema versioning.
The workspace Rust contracts module now implements parsing, structural validation,
keyed uniqueness, check references and action DAG checks. Its CLI command is
archipelago layer validate FILE. Full source/adapter/resolution/composition checks
remain pending. infrastructure/tests/layer-conformance.py compares its results with
these reference fixtures; this is implementation evidence, not a schema change.