Skip to content

Typed tables and checklists

author-02 · YAML

Content leaves put shape requirements inside a section: a table with named, schema-checked columns and a checklist with a minimum length.

Builds on: Frontmatter and required sections

The declarative YAML artifact, verbatim — no code required.

runbook.contract.yaml
mcVersion: 2
kind: contract
body:
sections:
- section: Overview
content: { maxWords: 200 }
- section: Ports
content:
table:
columns: [Name, Port, Protocol]
minRows: 1
cells:
Port: { type: integer, minimum: 1, maximum: 65535 }
Protocol: { enum: [tcp, udp] }
- section: Checklist
content:
list: { items: checkbox, minItems: 3 }
  • content leaves (table / list / maxWords)
  • per-column cell schemas
  • checkbox lists with minItems