DECLARATIVE-YAML-01: Validate one required frontmatter field by type
What it demonstrates
Section titled “What it demonstrates”A minimal contract document (mcVersion 1, kind contract) that requires a single typed frontmatter field.
Builds on: nothing — this is the first rung of Declarative YAML: Contracts and Corpus Config, No Code.
How it’s done
Section titled “How it’s done”The declarative YAML artifact, verbatim — no code required.
mcVersion: 1kind: contractfrontmatter: fields: title: type: stringSurfaces exercised
Section titled “Surfaces exercised”loadContract / loadContractFilecompileFrontmatter -> compileObjectSchematype: string -> z.string()