The NoETL Book
Foreword
Introduction
How to Read This Book: Status Badges, Quizzes and Traces
Part I — Getting Started
1.
Getting Started
❱
1.1.
Installation
1.2.
Hello, Playbook
1.3.
Running It Locally with the CLI
2.
Project: Fetch, Transform, Store — Your First Real Playbook
Part II — The Model
3.
What NoETL Is
❱
3.1.
Declarative Orchestration
3.2.
Event Sourcing: The Log Is the Truth
3.3.
Ephemeral Blueprints and Stateless Workers
3.4.
Two Catalogs: Internal Objects vs Business Data
4.
Anatomy of a Playbook
❱
4.1.
apiVersion, kind, metadata
4.2.
workload, vars and Templating
4.3.
workflow: Steps
4.4.
keychain: Credentials by Reference
4.5.
workbook: Reusable Tasks
5.
Tools
❱
5.1.
The Tool Kinds
5.2.
The Ordered Tool List: One Command, One Slot
5.3.
Results, References and Size Limits
6.
Control Flow
❱
6.1.
next, Arcs and Routers
6.2.
when Guards
6.3.
loop: — Sequential, Parallel, Cursor
6.4.
Back-Edges: Loops as Goto
6.5.
Errors, Timeouts and Retries — What Is Enforced
7.
Composition: Sub-Playbooks
❱
7.1.
kind: playbook and Child Executions
7.2.
What a Hop Costs
Part III — The Three Runtimes
8.
The Local Runtime: noetl run
❱
8.1.
One Process, One Interpreter
8.2.
Local Tool Kinds and Their Limits
8.3.
Iterating Without loop: — Arcs, SQL and Rhai
8.4.
The Local Event Buffer and noetl push
9.
The Daemon: noetl subscribe and noetl serve
❱
9.1.
Subscriptions: NATS, Pub/Sub, Kafka
9.2.
Spooling and the Event Trail
9.3.
Dispatching to a Server
10.
The Distributed Runtime
❱
10.1.
Gateway: The Gatekeeper
10.2.
Server: The Orchestrate-Core Drive
10.3.
The Command Bus and Worker Pools
10.4.
Slots, Pools and KEDA Autoscaling
10.5.
Following One Execution End to End
11.
Choosing a Runtime, and When Not to Use NoETL
❱
11.1.
What NoETL Is Good At
11.2.
When a Program Is Better
11.3.
When an Existing Tool Is Better
11.4.
NoETL and AI Agents
11.5.
NoETL and MCP Servers
11.6.
NoETL and Microservices
11.7.
A Decision Guide
12.
Project: Taking Your Playbook Distributed
Part IV — The Substrate: EHDB and ehgraph
13.
EHDB: The Event Horizon Database
❱
13.1.
Why NATS Was Replaced
13.2.
The Append Log: Parts, Segments, Manifest
13.3.
Bloom Filters and the Prune Floor
13.4.
Two Buses: Commands and Events
13.5.
Writer Election and Fencing
13.6.
Durability: Tail Replication and the Unsealed Tail
13.7.
The Chain Store
14.
EHDB as the State Substrate
❱
14.1.
Embedded State: One EHDB per Shard
14.2.
The Execution-Partitioned Event Store (RFC #355)
14.3.
What Retiring Reconcile and Re-Drive Buys
15.
ehgraph: A Graph Database for Topology
❱
15.1.
Three Stores, Three Jobs
15.2.
The Model: a Labeled Property Graph with History
15.3.
Querying: openCypher, Query API v2 and Bolt
15.4.
Transactions
15.5.
ehgraph Inside the Server
15.6.
Operations: Backup, Compaction and Budgets
15.7.
Where It Is Heading: a Read Model for Runtime Topology
Part V — Distribution: Catalog and Instances
16.
The Catalog
❱
16.1.
Two Catalogs
16.2.
The Model
16.3.
Four Datasets
16.4.
The HTTP API
16.5.
Ingest and a New Type
16.6.
What the EHDB Pin Requires
16.7.
Not in These Sources
17.
Cross-Instance Execution: "Run It on B"
❱
17.1.
Instance Identity and the Peer Registry
17.2.
remote: import vs remote: delegate
17.3.
Pins Across Instances
17.4.
Flags and the Fail-Closed Allowlist
17.5.
Which Runtimes Can Call Another Instance
17.6.
What Is Still TARGET
Part VI — Interop and Concurrency
18.
MCP and Agents
❱
18.1.
kind: mcp: Calling MCP Servers
18.2.
kind: agent: Agent Steps
18.3.
A Playbook as an MCP Server
18.4.
A Playbook as an Agent
18.5.
The Interop Matrix Across Runtimes
19.
Project: Expose a Playbook as an MCP Tool and Call It from an Agent
20.
Coroutines and Structured Concurrency
❱
20.1.
Concurrency Today: Fan-Out, Fan-In and Its Gaps
20.2.
Leaf Units and Ownership
20.3.
spawn, join, select
20.4.
Cancellation and Slots
20.5.
Flags and the Staged Rollout
Part VII — Resources and Performance
21.
The Resource Model
❱
21.1.
Labels: MEASURED, DEPLOYED, DEFAULT, GUIDANCE, TARGET
21.2.
Per-Step-Kind Costs
21.3.
Limits: WASM Fuel, Agent Caps, Context Sizes
21.4.
The Slot and Pool Model
21.5.
Estimating a Playbook Before You Run It
21.6.
What Is Not Yet Measured
22.
Orchestration Overhead
❱
22.1.
Where a Step's Time Goes
22.2.
Postgres vs EHDB on the Hot Path
22.3.
The Ranked Fixes
22.4.
Measuring Honestly
23.
WASM at the Edge
❱
23.1.
Purity: What Can Compile
23.2.
From Playbook to Module: The Compiler Stages
23.3.
A Playbook in a Cloudflare Worker
23.4.
Parity and Limits
24.
Project: Ship a Pure Playbook to the Edge
Part VIII — Applied
25.
Agent and Bot Fleets on NoETL
❱
25.1.
The Shared-VM Baseline
25.2.
Isolation and Scoped Credentials
25.3.
Cost and Concurrency
25.4.
The Architecture to Win
26.
Case Study: A Quantum Compilation Pipeline on the Local Runtime
❱
26.1.
The Pipeline and Its Honest Defaults
26.2.
Validate Before You Run
26.3.
Long-Running Compute: Budgets and Deadlines
26.4.
Shell as the Escape Hatch
Part IX — Operations
27.
Deployment Modes
❱
27.1.
Local kind First
27.2.
Production on GKE
27.3.
Deploy by Digest
28.
Releases and Version Pinning
29.
Rollout and Rollback Discipline
30.
Observability and Alerting
31.
Credentials and Secrets
32.
Representation Drift: Keeping What You Know True
Part X — In Practice: Case Studies
33.
Case Study: The Travel Playbooks
❱
33.1.
From Screen to Playbook to Firestore
33.2.
The Profile Flow: Read, Save, Read Back
33.3.
Provider Calls: Inline or Child Playbook
33.4.
The Itinerary Planner: State Across Turns
33.5.
Regression-Testing a Playbook Family
34.
Case Study: Authentication and Authorization
❱
34.1.
Sign-In Is a Playbook
34.2.
Deny by Default: Two Roles and an Allowlist
34.3.
Who Owns an Execution
34.4.
Granting Roles and Verified Email
35.
Case Study: Standing Up the Platform
❱
35.1.
NoETL Provisions NoETL
35.2.
Images: Cloud Build and the Release Pipeline
35.3.
Worker Pools and KEDA
35.4.
Secrets and the EHDB Substrate
35.5.
What the Recipe Declares vs What Runs
Part XI — Data Pipelines: Lineage, Governance and Mesh
36.
Data Lineage on NoETL
❱
36.1.
What the Event Log Records About a Run
36.2.
References That Name Their Producer
36.3.
Declared Lineage: the Registry
36.4.
Recording Dataset Lineage Yourself
37.
Data Governance on NoETL
❱
37.1.
Access Control
37.2.
Audit and Reproducibility
37.3.
Secrets and Personal Data
37.4.
Retention and the Right to Erasure
37.5.
Policy in Playbooks
38.
NoETL and Data Mesh
❱
38.1.
Domain Ownership
38.2.
Data as a Product
38.3.
The Self-Serve Platform
38.4.
Federated Governance
Appendix A: DSL Reference
Appendix B: Tool Kinds Reference
Appendix C: Feature Flags and Environment Variables
Appendix D: The Resource Model, Annotated
Appendix E: Status Ledger — REAL vs TARGET by Chapter
Appendix F: Myths and Corrections
Appendix G: Glossary
Appendix H: Contributing to This Book
Light
Rust
Coal
Navy
Ayu
The NoETL Book
Foreword
STUB
Reserved for the project owner.