Free to start, no credit card. 15 runs a day, 3 of them with AI. Create free account
documentize.cloud

Architecture note

One grammar for pipelines

A user recipe and a built-in template are the same YAML file, so the visual builder and the DSL stay a single object.

The decision

A recipe built by clicking through the UI and a recipe written by hand are the same YAML file. There is no separate, prettier user-facing format.

This matters because the alternative — a bespoke UI-only representation that gets translated into the internal template format — is exactly how the orchestrator ended up with two YAML dialects (see The engine already exists). One grammar means the "save as recipe" button in the builder produces something that could ship as a built-in template, and a built-in template can be opened and forked by a user.

The shipped base

A real, shipping pipeline definition — the grammar below extends it.

# Workflow/Template/zip-office-to-zip-pdf.yaml — real, shipping
taskType: "zip-office-to-zip-pdf"
description: "Convert a zip of office documents to a zip of PDFs"
settings:
  maxPagesPerPart: 1
  supportsSplitting: false
  requiresMerging: false

steps:
  - name: "extract_archive"
    pluginName: "archive-extract"
    dependsOn: []
    priority: 0
  - name: "convert_to_pdf"
    pluginName: "soffice-convert"
    dependsOn: ["extract_archive"]
    priority: 100
  - name: "create_archive"
    pluginName: "archive-create"
    dependsOn: ["convert_to_pdf"]
    priority: 200

Named steps, a dependency graph, parallelism and priority — that is already a real pipeline DSL, authored originally only by us as a shipped template. Four additions make it authorable by a workspace, and all four are implemented.

The recipe grammar (v1)

New fields only; nothing existing changes shape. Parsed, serialised and validated by the Cloud.Recipes library.

# A workspace recipe. New fields marked with ← new.
version: 1                          ← new — lets the grammar evolve
name: "Contracts to archived PDF/A"
inputs:                             ← new — named library files, not "the task's files"
  from: library
  match: "contracts/**/*.docx"
  limit: 500
surface: serverless                 ← new — where it runs

settings:
  maxPagesPerPart: 100
  supportsSplitting: true
  requiresMerging: true

steps:
  - name: to_pdf
    pluginName: soffice-convert
    with:                            ← new — named, validated options
      output-format: pdf
    dependsOn: []

  - name: archive_quality
    pluginName: pdf-saveas
    with: { output-format: pdfa2b }
    dependsOn: [to_pdf]

  - name: stamp
    pluginName: esign
    dependsOn: [archive_quality]

The validator rejects unknown plugins or options, type mismatches, missing required options, cycles, inputs over the limit and, for surface: serverless, a branching graph or a step with no serverless equivalent. with: keys are the CLI option names from the catalogue.

AdditionWhy it's neededState
versionThe grammar will change over time; nothing on disk today carries a version marker.Done
inputsToday the input set is implicit — whatever the task happened to carry. A recipe must name its own inputs to be re-runnable on demand.Done — resolved against the workspace library (glob, or files picked one by one)
withA step currently receives the same task payload as every other step in its pipeline, with only the id rewritten — there is no way to give two steps different settings.Done — merged per step through the catalogue
surfaceWhich execution surface a run is submitted to.Done — hosted or serverless

One schema, three surfaces

The mechanic that keeps the DSL, the web form and the agent tool arguments from drifting apart.

Every plugin already declares its parameters as a small, typed options class — that declaration is the single source for the plugin's command-line flags, its JSON binding and its generated help text. A build-time pass over every plugin's options type can publish that declaration as one document, listing each plugin's cost, concurrency and parameters together.

ConsumerWhat it gets
Run builder UIGenerated form fields with labels, help text, defaults and validation — no per-plugin front-end code.
Recipe YAMLValidation of every with: block against the same schema.
MCP toolsPlugin and option descriptions served from the live catalogue (list_plugins) instead of baked into tool schemas.
This documentationThe console's public plugin catalogue page, generated rather than maintained.
Why this matters more than it looks

Without a shared schema, adding a plugin means separately updating a form, a YAML validator, an MCP tool signature and a documentation page. With one, adding a plugin means adding a plugin.