{
  "api_version": "noetl.io/v2",
  "catalog_features": {
    "default": "every catalog flag is OFF by default (each is strict \"true\", read once per process); with a flag off the server behaves as if the feature did not exist",
    "features": [
      {
        "name": "content_addressing",
        "server_gate_env": "NOETL_CATALOG_CAS",
        "serves": "digest on register, dedup, /api/catalog/{resolve,blob,sources,pin}"
      },
      {
        "affects": "POST /api/execute `version` (a positive integer or \"latest\") and `digest` (sha256:, wins over version) are honoured, and `path` may be a reference form. A `kind: playbook` step sends `version` as an integer only, so it asks for @latest or a digest through its `path`. A child of a pinned execution with no version resolves to the root's pinned version. With the flag off, version/digest are ignored and the path resolves to its latest version",
        "name": "execution_pinning",
        "requires_env": [
          "NOETL_CATALOG_CAS"
        ],
        "server_gate_env": "NOETL_CATALOG_PINNING"
      },
      {
        "affects": "`@latest` (e.g. a `kind: playbook` path `a/b@latest`) inside a pinned tree, only for paths the root lists in metadata.catalog.hot_reload; otherwise refused, never silently downgraded",
        "name": "hot_reload",
        "requires_env": [
          "NOETL_CATALOG_PINNING",
          "NOETL_CATALOG_CAS"
        ],
        "server_gate_env": "NOETL_CATALOG_HOT_RELOAD"
      },
      {
        "name": "discovery",
        "requires_env": [
          "NOETL_CATALOG_CAS",
          "NOETL_INSTANCE_REGISTRY",
          "NOETL_CATALOG_PEER_KEY_FILE"
        ],
        "server_gate_env": "NOETL_CATALOG_DISCOVERY",
        "serves": "POST /api/catalog/peer/resolve (signed, trusted peers only), POST /api/catalog/locate (internal token); imports under peer/<instance>/<path>"
      },
      {
        "affects": "locate fetches a reference's own source URI; fail closed, nothing is fetched without an allowlist",
        "name": "uri_fetch",
        "requires_env": [
          "NOETL_CATALOG_DISCOVERY",
          "NOETL_CATALOG_URI_ALLOW"
        ],
        "server_gate_env": "NOETL_CATALOG_URI_FETCH"
      },
      {
        "affects": "inside a pinned tree a remote reference resolves to what the ROOT first got for it, in both modes, even if the owner registers a new version mid-run; a child of an imported playbook resolves bare names on its home instance (peer/<instance>/<name>). With the flag off `remote: delegate` is refused by name and nothing else changes",
        "delegate_requires_env": [
          "NOETL_CATALOG_DISCOVERY"
        ],
        "name": "remote_execution",
        "reference_forms": [
          "noetl://<instance>/<path>[@<version>][#sha256:<hex>]",
          "peer/<instance>/<path>"
        ],
        "requires_env": [
          "NOETL_CATALOG_PINNING",
          "NOETL_CATALOG_CAS"
        ],
        "server_gate_env": "NOETL_CATALOG_REMOTE_CALLS",
        "serving_side": {
          "allow_env": "NOETL_CATALOG_REMOTE_SERVE_ALLOW",
          "server_gate_env": "NOETL_CATALOG_REMOTE_SERVE",
          "serves": "POST /api/catalog/peer/execute (signed, purpose catalog.execute), POST /api/catalog/peer/execution (signed, catalog.execution; only the starting instance may read); fail closed without an allowlist glob. Delegated runs from one calling root share one pin on the owner"
        },
        "step_keys": {
          "digest": "on a `kind: playbook` tool: sha256: the resolved body must have",
          "remote": "on a `kind: playbook` tool: import (default; verify, import under peer/<instance>/<path>, run here) | delegate (the owner runs that digest on its own workers; the step's return_result/result_step read its result). Default from NOETL_CATALOG_REMOTE_MODE"
        }
      }
    ],
    "reference_forms": [
      "<path>                 the pinned version inside a pinned tree, else latest",
      "<path>@<n>             an exact version",
      "<path>@latest          latest; inside a pinned tree only with hot reload allowed",
      "<path>@sha256:<64hex>  this name, and it must have this body",
      "sha256:<64hex>         this body, under any name",
      "<scheme>://<uri>[#sha256:<64hex>]  a source URI (fetched by locate)"
    ],
    "reference_forms_accepted_by": "POST /api/catalog/resolve and /api/catalog/sources (CAS), catalog locate (discovery), and, with pinning on, the `path` of POST /api/execute and of a `kind: playbook` step. A reference in `path` plus a `version`/`digest` field is refused, not merged.",
    "source_scheme_forms": [
      {
        "form": "db://<credential-alias>/<schema>.<table>?path=<playbook path>[&version=<n>]",
        "reads": "one row from an operator-owned Postgres table with columns path (text), version (integer), content (text); without version the highest version for the path",
        "requires_env": [
          "NOETL_CATALOG_URI_FETCH",
          "NOETL_CATALOG_URI_ALLOW"
        ],
        "rules": "the alias names a credential in this server's credential store (host/port/user/password/database, or connection_string), never user:pass in the URI; schema and table are identifiers [A-Za-z_][A-Za-z0-9_]* of at most 63 bytes; path is required; version is a positive integer",
        "scheme": "db",
        "since_server": "3.160.0"
      },
      {
        "cluster_note": "the catalog tier holds records only when the server records registrations (NOETL_CATALOG_LOG=shadow) and the worker relay takes the server as the tier's producer (NOETL_EHDB_CATALOG_MIRROR_SOURCE=server, unset by default); otherwise the read finds nothing or the relay reports the tier disabled",
        "form": "ehdb://catalog/<catalog_id>",
        "reads": "a registration record in the cluster's EHDB catalog tier, via the worker relay; the record's content_sha256 is checked before the body is returned; found by a paged scan of the tier (a keyed lookup is TARGET)",
        "requires_env": [
          "NOETL_CATALOG_URI_FETCH",
          "NOETL_CATALOG_URI_ALLOW",
          "NOETL_EHDB_WORKER_QUERY_URL",
          "NOETL_CATALOG_LOG"
        ],
        "rules": "only the `catalog` namespace resolves",
        "scheme": "ehdb",
        "since_server": "3.160.0",
        "worker_env": [
          "NOETL_EHDB_CATALOG_MIRROR_SOURCE"
        ]
      }
    ],
    "source_schemes": [
      "noetl",
      "gs",
      "s3",
      "az",
      "minio+http",
      "minio+https",
      "https",
      "http",
      "db",
      "ehdb",
      "file"
    ]
  },
  "document_kind": "Playbook",
  "enabled_tool_kinds": [
    "artifact",
    "container",
    "duckdb",
    "ducklake",
    "gateway",
    "gcs",
    "http",
    "iterator",
    "nats",
    "noop",
    "playbook",
    "playbooks",
    "postgres",
    "python",
    "rhai",
    "script",
    "secrets",
    "shell",
    "snowflake",
    "snowflake_transfer",
    "subscription",
    "task_sequence",
    "transfer",
    "wasm",
    "workbook"
  ],
  "executable": "not_reported",
  "executable_note": "Kinds the parser accepts. Which kinds a live worker can execute is reported by workers (RFC dsl-knowledge-base Phase 3) and is not known to this process.",
  "metadata_extensions": [
    {
      "keys": {
        "description": "required",
        "input_schema": "required; written by hand, never derived from workload; also the tools/call argument allowlist",
        "mode": "sync (default) | async",
        "result_step": "optional; the step whose result is returned",
        "timeout": "sync wait in seconds (default 30, max 120)",
        "tool": "required; MCP tool name, [A-Za-z0-9_.-]{1,64}"
      },
      "path": "metadata.expose.mcp",
      "server_gate_env": "NOETL_MCP_SERVER",
      "serves": "POST /api/mcp (one MCP tool per exposed playbook)"
    },
    {
      "callback_origins_env": "NOETL_AGENT_CALLBACK_ORIGINS",
      "keys": {
        "card": "required mapping; card.name and card.description required, card.version and card.skills optional",
        "input_schema": "required unless expose.mcp.input_schema is set; written by hand; the argument allowlist",
        "result_step": "optional"
      },
      "path": "metadata.expose.agent",
      "server_gate_env": "NOETL_AGENT_ENDPOINT",
      "serves": "GET /api/agents, GET /api/agents/cards/{path}, POST /api/agents/send, GET /api/agents/tasks/{id}"
    },
    {
      "keys": {
        "(list)": "globs over sub-playbook paths, read from the ROOT playbook only; at most 64, each 1-512 chars; malformed entries are ignored, so a typo only narrows the policy"
      },
      "path": "metadata.catalog.hot_reload",
      "requires_env": [
        "NOETL_CATALOG_PINNING",
        "NOETL_CATALOG_CAS"
      ],
      "server_gate_env": "NOETL_CATALOG_HOT_RELOAD",
      "serves": "an explicit `@latest` sub-playbook reference inside this root's pinned execution tree"
    }
  ],
  "orchestrate_core_version": "0.1.0",
  "tool_kinds": [
    {
      "availability": "Needs the server gate AND a worker started with NOETL_WORKER_AGENT_TOOL=true (noetl/worker#398, noetl-tools 4.5.0); otherwise the worker fails the command as an unknown tool. The shared pool refuses `framework: claude-code`. A playbook-bound `tools:` entry (`playbook: <path>`) is refused before the first model call unless the worker also sets NOETL_WORKER_AGENT_PLAYBOOK_TOOLS=true (noetl/worker v6.14.0); see the manifest's worker_runtime.agent.",
      "enabled": false,
      "gate_env": "NOETL_TOOL_KIND_AGENT",
      "gated": true,
      "name": "agent",
      "worker_gate_env": "NOETL_WORKER_AGENT_TOOL"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "artifact"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "container"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "duckdb"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "ducklake"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "gateway"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "gcs"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "http"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "iterator"
    },
    {
      "availability": "Runs on any noetl/worker: noetl-tools McpTool, wrapped by the worker's WorkerMcpTool for auth headers. Only the server gate is needed.",
      "enabled": false,
      "gate_env": "NOETL_TOOL_KIND_MCP",
      "gated": true,
      "name": "mcp"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "nats"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "noop"
    },
    {
      "availability": "Runs on any noetl/worker (noetl-tools PlaybookTool). Fields: `path` or `catalog_id`, `version` (integer), `payload`/`args`, `return_step`, `return_result`. With NOETL_CATALOG_PINNING on, `path` may be a catalog reference (`a/b@3`, `a/b@latest`, `a/b@sha256:...`, `sha256:...`, a source URI) and the child resolves inside the root's pin; see the manifest's catalog_features.",
      "enabled": true,
      "gated": false,
      "name": "playbook"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "playbooks"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "postgres"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "python"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "rhai"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "script"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "secrets"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "shell"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "snowflake"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "snowflake_transfer"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "subscription"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "task_sequence"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "transfer"
    },
    {
      "availability": "Runs on a noetl/worker built with its `wasm-plugin` cargo feature (on by default and in the shipped image), which routes it to the plug-in host instead of the tool registry. Step: `plugin: { path: <string>, version: <integer>, entry: <export, default run> }` plus optional `input` (sent to the plug-in as `args`). The module is loaded from the catalog. Since noetl/worker v6.13.0 every call runs under fuel, wall-clock and memory limits that are ON by default; see the manifest's worker_runtime.wasm_limits.",
      "enabled": true,
      "gated": false,
      "name": "wasm"
    },
    {
      "enabled": true,
      "gated": false,
      "name": "workbook"
    }
  ],
  "worker_runtime": {
    "agent": {
      "budget_note": "positive integers; anything else keeps the default; the model cannot override them (max_turns is the session's own)",
      "budgets": [
        {
          "default": 32,
          "env": "NOETL_AGENT_MAX_TOOL_CALLS",
          "scope": "tool calls per agent step"
        },
        {
          "default": 180,
          "env": "NOETL_AGENT_TOOL_TIMEOUT_SECS",
          "scope": "seconds per playbook-bound child"
        }
      ],
      "event_note": "emitted on the agent's own execution by the hosted loop only (NOETL_WORKER_AGENT_PLAYBOOK_TOOLS=true), through the normal emit path",
      "event_types": [
        {
          "context": "turn, outcome (tool_calls | final), tool_calls [{id, name}]",
          "type": "agent.turn"
        },
        {
          "context": "turn, tool_use_id, tool, binding, playbook, child_execution_id, is_error, duration_ms, input and result previews (2 KiB)",
          "type": "agent.tool_call"
        },
        {
          "context": "turns, tool_calls, child_execution_ids, duration_ms; or refused: tool_call_budget",
          "type": "agent.final"
        }
      ],
      "playbook_tools": {
        "behaviour": "the worker hosts the agent loop; each playbook-bound call starts a child execution (kind: playbook, return_result: true, parent = this execution) that runs on whatever pool its playbook targets; its result is the next turn's tool_result; a failed child is an is_error tool result",
        "default": "OFF (strict \"true\"); without it a playbook-bound tools: entry is refused before the first model call",
        "not_durable": "the loop lives in one command on one worker: if that worker dies mid-loop the step retries from the first turn and children that already ran run again (orchestrator-driven resume is TARGET)",
        "requires_env": [
          "NOETL_TOOL_KIND_AGENT",
          "NOETL_WORKER_AGENT_TOOL"
        ],
        "since_worker": "6.14.0",
        "worker_gate_env": "NOETL_WORKER_AGENT_PLAYBOOK_TOOLS"
      },
      "tool_entry_forms": {
        "other": "`mcp_servers:` / `agents:` entries are answered inside the agent session, as before",
        "playbook_bound": "{ name, description, input_schema, playbook: <catalog path>, result_step: <step> (optional; without it the child's last step result) }"
      }
    },
    "note": "Read by noetl/worker, not by this server; the values here are the worker's code defaults. Which worker version a cluster runs is the cluster's fact, not this file's.",
    "wasm_limits": {
      "default": "ON: every limit applies by default; set a variable to 0 / off / none / unlimited to remove that one limit; an unparseable value keeps the default",
      "limits": [
        {
          "default": 10000000000,
          "env": "NOETL_WASM_FUEL",
          "unit": "fuel units"
        },
        {
          "default": 30000,
          "env": "NOETL_WASM_TIMEOUT_MS",
          "unit": "milliseconds (wall clock)"
        },
        {
          "default": 1024,
          "env": "NOETL_WASM_MAX_MEMORY_MB",
          "unit": "MiB (linear memory)"
        }
      ],
      "on_exceed": "the module is stopped and the step fails with an error naming the variable",
      "since_worker": "6.13.0"
    }
  }
}
