Glossary
The vocabulary the rules are written in.
The vocabulary the rules are written in. Ported from the registry the corpus was extracted from, with everything that described one implementation's internals removed.
The building blocks
- Workflow: what the author draws on the canvas: nodes connected by edges, stored as one document.
- Node: one step in a workflow ("run this prompt", "save this entity"). Each node on the canvas is an instance of a node type.
- Node type: a reusable, site-configurable definition of a kind of node. It points at the node processor that does the work and can override that processor's defaults.
- Node processor: what actually executes a node. It declares what inputs it accepts (its parameter schema) and what it produces (its output schema).
- Port: a named connection point on a node. Input ports receive values, output ports produce them. Ports are derived from the processor's schemas.
- Edge (wire): a connection from one node's output port to another node's input port. An edge has no declared type; its meaning is deduced from the ports it connects (see GR-EDGE).
- Source, target: the two ends of an edge. The source is the node and output port it leaves; the target is the node and input port it enters.
- Handle: the string the editor stores to say which port an edge attaches
to, e.g.
mynode-input-message.
Special ports and edges
- trigger: a control wire: "run B after A". Carries no data.
- error: a wire that fires only when its source node fails. Every
executable node gets an
erroroutput; it ships hidden. - tool: a wire that offers a node as a callable tool to an AI-agent node, instead of passing data.
- loop_back: a wire feeding a result back into a loop node (ForEach); the one kind of cycle that is deliberately legal.
- unified I/O: optional single
input/outputports that bundle all of a node's input or output values into one JSON object. - Dynamic ports: parameters (
dynamicParameters) and outputs (dynamicOutputs) an author adds to a single node instance, beyond what the node type declares. Once overlaid they are ordinary ports (DYN-8): a dynamic parameter can be an input, a setting or both. - event: a trigger node's reserved input, where what happened outside the workflow enters the run (SCH-47). No wire may target it (R16).
- Reserved names: port/parameter names the system injects or treats
specially (
trigger,error,tool,input,output,event,engine, anything__-prefixed). Authors cannot repurpose them.
Configuration and exposure
data.config: the values the author typed into a node's config form. The only user-owned configuration store.- Gate flags: per-parameter switches set on the node type:
connectable(may receive a wire),configurable(appears in the config form),required. Beside them,when_missingsays what a required parameter with nothing to resolve means:fail(the default) orskip(CFG-20, CFG-21). - Absent, null, empty: the states of a member. Absent means not provided,
nullmeans provided with no value, and an empty"",[],{},falseor0is a value like any other (Conventions, Absent, null and empty). - Required: the member must be present, as in JSON Schema, for launch inputs
(MAN-15), saved config (R6.b) and node parameters (CFG-9) alike. A present
nullmeets it; whether thatnullis acceptable is for the member's type to say. - Exposure: whether a port is visible and usable on a node instance. A
hidden port effectively does not exist: it cannot be wired, and a hidden
output's value is stripped before anyone sees it.
exposed_by_defaulton the node type is nothing more than the default position of the per-instance show/hide toggle. - Parameter resolution: where a parameter's value comes from when a node runs, in priority order: value delivered on a wire → author's saved config → schema default (GR-CFG).
Saving and validating
- Save path vs run path: saving and validating must see the workflow exactly as stored; running is allowed to normalize it first (fill defaults, drop dangling edges).
- Validator / R-codes: the save-time rule checker. Each check has a code (R1–R13). Severity E (error) blocks the save; W (warning) does not.
- Locator: the machine-readable "where" in a validation message, e.g.
node.abc.config.model.
Running
- Orchestrator: the engine that executes a workflow. Four strategies: direct sync (one in-memory pass, no loops), sync pipeline and async (job-queue based, loops possible), StateGraph (adds shared state and loop semantics; the playground default).
- Pipeline / job: the persisted record of one run: the pipeline is the run, each node execution is a job with a status.
- Compilation: turning the stored workflow into an executable plan: which nodes run, in what order, which cycles are legal (RT-CMP).
- Output / error Output: the envelope a node execution returns. A processor signals failure, and the runtime converts that into an error-status Output.
- Error routing: if a failed node has an error wire, the failure flows down it and the run continues; if it has none, the run fails (RT-ERR).
- Branching /
active_branches: a gateway node reports which named branches stay alive; wires leaving inactive branch ports are not followed. - Readiness: when a node has enough inputs to run: several wires into the same port = any one suffices (OR); wires into different ports = all must arrive (AND).
- Interrupt: a node pausing the run to ask a human; resolving the interrupt resumes the run.
- Snapshot / checkpoint: saved run progress, so a run can resume where it stopped.
- StateGraph state / reducers: shared state carried across loop iterations,
merged per field:
messagesappend,datamerges, everything else is replaced. - initialData: the input payload a run is launched with.
- Trigger node: a node that starts runs when something happens outside the
workflow (a record is saved, a schedule comes due, a webhook arrives). Its node
type is a trigger node type, recognisable by its reserved
eventinput. - Firing: one occurrence of an event a switched-on trigger node listens for, starting a run. A firing supplies only its own trigger's event; the workflow's other trigger nodes skip themselves (CFG-21).
Launching from outside
- Launch-input manifest (
input_ports): the workflow's public face. The author explicitly names which inner ports may be filled by an outside caller. Anything not declared does not exist at the launch boundary. - Exposure entry: one manifest row: a
name, and optionally a binding (node_idwithport) and a declaredschema(MAN-2). - Unbound entry: an exposure entry with no binding. It is a declared part of the workflow's contract, built from its own schema; an input sent to it is checked and delivered nowhere, and an output is absent from results (OPEN-27).
- Reserved input: an input a workflow has for each trigger node, named
event:<node id>and bound to that node'seventport. Derived from the trigger nodes, never stored in the manifest, and never offered to callers (MAN-26, MAN-27). - Schema snapshot: a frozen copy of each declared input's schema, so callers validate against what the author published, not against live node-type code. (Not the same as the run-progress snapshot above.)
- Endpoint: a public API route through which a caller reaches a workflow, a session or a run: the launch endpoint, the turn endpoint, the workflow store's endpoints. The GR-API rules constrain what every endpoint accepts and how it refuses, so a caller learns one contract rather than one per route. Only an API route is an endpoint; the two ends of an edge are its source and target.
Sessions
- Session: a persisted conversation bound to one workflow, driven a turn at a time. A session has an owner (MEM-8); reading it and driving it are different permissions (MEM-9), and a session with no workflow refuses every request against it (API-3).
- Turn: one exchange in a session: a caller's message, with optional
inputs, that runs the session's workflow once and yields the assistant's reply. A session runs one turn at a time; a turn'sinputsare judged exactly as a launch's are (API-2). (A step is one node's execution, not a turn.)
Expressions
- Expression engines: the four mini-languages authors write inside nodes:
expression_language (calculations), twig (text templates),
property_path (dot-paths into data), jsonpath (
$.…queries). Chosen per node via the reservedengineparam.