Expand description
Loader for declarative *.controller.yaml registries.
The JSON-encoded ControllerManifest (validated by
docs/contracts/controller_manifest.schema.json) remains the wire
contract; YAML is a human-friendly authoring format that
deserializes into the same Rust type via serde. A directory of
YAML files becomes a vector of ControllerManifests ready for
the scheduler’s existing validate() path.
Functions§
- load_
yaml_ manifest_ from_ path - Load and validate a single manifest from disk.
- load_
yaml_ manifests_ from_ dir - Walk a directory for
*.controller.yamlfiles and return a deterministically ordered, validated manifest list. Duplicatecontroller_ids across files are rejected so a directory cannot silently ship two definitions of the same controller. - parse_
yaml_ manifest - Parse a single YAML manifest from raw text. The same
ControllerManifestdeserializer is reused so YAML and JSON cannot drift on field shape.