NoETL DSL Reference
The NoETL Domain-Specific Language (DSL) defines how playbooks are structured and executed under the current DSL model.
Generated reference
The exact current grammar and tool kinds, generated from the code that parses playbooks: Generated DSL reference. The guides below explain the concepts.
Start Here
- NoETL standard Step Spec (v10) - Latest decisions (policies, routing, loops, spec layering)
- DSL Specification (standard) - Normative playbook/step schema + semantics
- DSL Specification (Detailed) - Full technical walkthrough
- Formal Specification (standard) - Normative execution model and grammar notes
Runtime
- Execution Model - Control plane vs data plane responsibilities
- Runtime Event Model - standard event taxonomy and envelope
- Runtime Results - Reference-first storage (ResultRef/Manifest patterns)
- Pagination - Streaming pagination with
jump/breakinside iterations
Analysis
- DSL Analysis & Evaluation - Turing-completeness, BPMN 2.0 coverage, and Petri net analysis
- Workflow Patterns Comparison - Van der Aalst patterns comparison across NoETL, BPMN, Argo, GitHub Actions, Step Functions
DSL Overview
Minimal playbook
apiVersion: noetl.io/v2
kind: Playbook
metadata:
name: example_workflow
path: workflows/example
version: "2.0"
keychain:
- name: pg_k8s
kind: postgres_credential
workload:
api_url: "https://api.example.com"
workflow:
- step: start
next:
spec: { mode: exclusive }
arcs:
- step: fetch
- step: fetch
tool:
- call:
kind: http
method: GET
url: "{{ workload.api_url }}/ping"
spec:
policy:
rules:
- when: "{{ outcome.status == 'error' and outcome.http.status in [429,500,502,503,504] }}"
then: { do: retry, attempts: 5, backoff: exponential, delay: 2 }
- when: "{{ outcome.status == 'error' }}"
then: { do: fail }
- else:
then:
do: break
set_ctx:
ping_ok: true
next:
spec: { mode: exclusive }
arcs:
- step: end
when: "{{ event.name == 'step.done' }}"
- step: end
tool:
- done:
kind: noop
Key Concepts
| Concept | Description |
|---|---|
| Playbook | Top-level YAML document: metadata, optional keychain, optional executor, workload, workflow, optional workbook |
| Keychain | Optional credential declarations resolved before execution; exposed as keychain.* (read-only) |
| Workload | Immutable merged input (playbook defaults + request payload) |
| ctx | Execution-scoped mutable context, patched via task policy actions (set_ctx) |
| iter | Iteration-scoped mutable context inside loops (step.loop), patched via set_iter |
| Step | Petri-net transition: admission policy + ordered tool pipeline + next router arcs |
| Task | Labeled tool invocation in a pipeline (evaluated by the worker) |
| Next router | step.next with next.spec + next.arcs[] (evaluated by the server) |
Available Tool Kinds
Tool kinds are implementation-defined and extensible. Common kinds include:
http, postgres, duckdb, python, secrets, playbook, workbook, noop, script.
Template Namespaces
Access data in templates using these namespaces:
# Immutable workload inputs
"{{ workload.api_url }}"
# Resolved credentials (read-only)
"{{ keychain.openai_token }}"
# Execution-scoped context (cross-step)
"{{ ctx.customer_id }}"
# Iteration-scoped context (inside loops)
"{{ iter.endpoint }}"
# Token payload / arc inscription
"{{ args.page_size }}"
# Pipeline locals (inside a step pipeline)
"{{ _prev }}"
"{{ _task }}"
# Outcome envelope (inside task policy evaluation)
"{{ outcome.status }}"
# Boundary event (inside routing evaluation)
"{{ event.name }}"
Step Routing
Routing is expressed as Petri-net arcs on step.next:
next:
spec: { mode: exclusive }
arcs:
- step: success_handler
when: "{{ event.name == 'step.done' }}"
- step: error_handler
when: "{{ event.name == 'step.failed' }}"