apiVersion, kind, metadata

REAL

The first three keys say what the document is and where it lives.

apiVersion: noetl.io/v2
kind: Playbook
metadata:
  name: anatomy
  path: book/ch04/anatomy
  description: The parts of a playbook, smallest useful form.
  labels:
    chapter: "4"

apiVersion and kind

Both are required strings with exactly one accepted value each. The server's validator compares them with constants in the grammar (noetl_orchestrate_core::dsl::API_VERSION and PLAYBOOK_KIND) and refuses anything else, for example Unsupported API version: noetl.io/v1. Expected noetl.io/v2 (src/playbook/parser.rs:164-183, server v3.161.2). The same constant is what a server reports from GET /api/dsl/version, so the two cannot disagree.

kind is also how the catalog tells document types apart: the same catalog holds other kinds, such as Subscription documents for the daemon (Chapter 9), which are validated differently.

metadata

KeyRequiredMeaning
nameyesThe playbook's name. Appears in every run result as playbook_name.
pathIts address in the catalog, such as book/ch04/anatomy. Other playbooks call it by this path.
descriptionFree text.
labelsA map of string to string, for filtering.

When a playbook is registered without a path, the catalog uses its name as the path (registration_identity, src/services/catalog.rs:498). Registration fails only if both are missing.

metadata also carries three opt-in extensions. The schema does not list them, because each is read only when a server flag turns its feature on. With the flag off, the key is ignored. Each one has its own chapter:

KeyWhat it doesServer flag (default off)Chapter
metadata.expose.mcpPublishes the playbook as one MCP tool at POST /api/mcpNOETL_MCP_SERVER18
metadata.expose.agentPublishes it as an agent with a card at /api/agents/*NOETL_AGENT_ENDPOINT18
metadata.catalog.hot_reloadLets named sub-playbooks resolve @latest inside a pinned runNOETL_CATALOG_HOT_RELOAD (also needs NOETL_CATALOG_PINNING and NOETL_CATALOG_CAS)16

The table is generated from the server's DSL manifest (metadata_extensions, dsl-manifest.json at v3.161.2). The full list of flags is in Appendix C.

Partial

All three extensions are released code, but every one of them is off unless the server sets its flag. This book does not say whether any particular deployment sets them.

Check your understanding