Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

Changelog

Every change to a published specification, newest first.

View as Markdown

All notable changes to the OpenFlange specifications, schemas and conformance fixtures are recorded here. The format follows Keep a Changelog. Each specification is versioned independently (see COMPATIBILITY.md); entries name the specification they affect.

Nothing in this repository has been published or released yet. Dates are the dates of the drafts.

[Unreleased] #

Added #

  • Declared batch mode (RFC 0003, experimental, feature batch). A pipe with one input and an executable or script implementation may declare batch: {maxItems, maxWaitMs, delivery}; the runner hands it up to maxItems items at a time and never holds an item for longer than maxWaitMs. Batch boundaries are not semantic.
    • Pipe specification 5.7 (declaration, preconditions, invariants), 9.5 (process_batch(items, params) for Starlark scripts), 14.7.
    • Pipeline specification 3.8 (node batch settings: tighten only, E_PARAM), 6.5 (effective settings in the plan), 8.11 (delivery rule: one batch in flight, one accumulating; at most 2 × maxItems items).
    • CLI specification 5.1 (one JSON array per line; one answer line per input line) and 5.2 (delivery: file: NDJSON batch files, one process per batch with {batch.input}/{batch.output}, or a long-running process acknowledging {"ok": true}); batch in OPENFLANGE_CONFIG.
    • Test specification 3.4: a test may pin batch.
    • Not valid on builtin, expression, pipeline and http implementations (E_MANIFEST); the HTTP Pipe Protocol is unchanged.
    • Schemas: pipe (batch, batchOverride), pipeline, plan, test, cli-config. Conformance: manifests/*/batch-*, pipelines/*/batch-*, runs/batch/.
  • Usage reporting endpoint (CLI specification 5.3, experimental; was proposed in section 5). usage: {url} in OPENFLANGE_CONFIG; an executable POSTs one or more JSON objects — numbers are counters and are summed, strings are labels — with the configuration's bearer token. Offered to every executable with additional ports and, for single-port pipes, when the manifest sets the new implementation.usage: true (executable, and script outside Starlark; pipe specification 8). Status codes, limits (64 KiB, 64 members) and the rule that a report never fails a run and is never logged are specified. Schemas: pipe (implementation.usage), cli-config. Conformance: manifests/valid/usage-{executable,script-python}, manifests/invalid/usage-{on-starlark,on-expression,not-a-boolean}.
  • Text assertions (test specification 5, experimental; were proposed): minLength, maxLength and pattern on text outputs. The test schema now accepts them in expect.outputs (it only described them before). Conformance: two tests in runs/std/json-roundtrip.
  • Batch mode, follow-ups to RFC 0003 (experimental):
    • CLI specification 9.1: --batch [<node>=]<maxItems>[,<maxWaitMs>] on run and validate tightens batch settings from the command line (E_PARAM when it would loosen them); openflange test --batch applies to tests that pin no batch of their own (test specification 3.4).
    • Pipeline specification 10 and the run-report schema: per-node batch statistics (batches, maxBatchItems, avgBatchItems, waitFlushes, maxFlushes, eofFlushes, highWaterItems).
    • CLI specification 5.1: on a windows input one window frame is one item of a batch (proposed, like window framing).
    • CLI specification 5.2: a runner refuses file delivery with E_UNSUPPORTED, before reading data, when the temporary directory is missing, not writable or has an unsafe path, and should not keep in memory the items it has written to a batch file.
    • CLI specification 9.1: --output and --report create missing parent directories.
    • RFC 0003 records the above and resolves its open question on usage counters.

Fixed #

  • HTTP Pipe Protocol, section 11: the curl example now passes -X POST with -T (it sent PUT, which servers answer with 405).
  • CLI specification, section 3: the rule for which ports use the standard streams now matches the pipe specification — an executable binds what stdin/stdout name (by default the sole port; none with several ports and no binding), a script in r, python or node binds its first-declared input and output (8.3); every other port uses the loopback endpoints. It said "by default the sole input and the sole output" for both.
  • CLI specification, section 6.3 rule 3: a runner SHOULD warn when a connected additional input was never attached (it is still discarded).

Changed #

  • Registry specification, section 3.2: the on-disk layout is now specified. The public registry is an inGitDB database with collections pipes and publishers, record files pipes/$records/<publisher>~2F<name>.yaml (key <publisher>/<name>, key_encoding: tilde-v1) and publishers/$records/<publisher>.yaml, two-layer validation (ingitdb validate, then the registry's own checks), quoted date strings, and x- keys only when declared in the collection definition. Optional publication as an OpenVaultDB database is described; for the public registry it is prepared, not yet live. The logical model, entry fields, index and facets are unchanged, and private or federated registries only need to produce the same portable index.

  • tools/validate.py: the sibling-registry check reads pipes/$records/*.yaml and publishers/$records/*.yaml (not the collection definitions) and checks that entry file names are the tilde-v1 encoding of their key.

  • Parameters (baseline amendment 1): minLength, maxLength and pattern for string parameters, in the pipe specification (section 7) and pipe-v0.1.schema.json. Lengths are counted in Unicode code points; pattern is RE2 syntax, unanchored. mask-email.character now declares minLength: 1, maxLength: 1, so "**" and "" are E_PARAM.

  • Lock integrity (baseline amendment 2): the hash input is length-prefixed, <path> 0x00 <decimal byte length> 0x00 <content> per file in sorted path order. Lock specification section 4 has a worked example whose hash is recomputed by tools/validate.py from examples/lock-integrity/. Integrity values computed with the earlier draft rule are no longer valid.

  • Pipeline outputs (baseline amendment 3): the shorthand string form (email: mask.outputs.email) is accepted, in the pipeline specification (section 3.5) and pipeline-v0.1.schema.json.

  • Conformance fixtures for the above. New: manifests valid/parameter-string-constraints and invalid/parameter-{default-violates-maxlength,default-violates-pattern,minlength-above-maxlength,minlength-negative,minlength-on-integer,pattern-not-a-regex}; pipelines valid/parameter-string-constraints, valid/pipeline-output-shorthand and invalid/parameter-{pattern-mismatch,string-too-long,string-too-short}. Removed: pipelines invalid/pipeline-output-shorthand (now valid). Changed expectations: in runs/email, character: "**" and "" now expect E_PARAM, with one new test through the composite and one for a four-byte single code point. Every copy of the mask-email manifest in the fixtures gained minLength: 1, maxLength: 1 on character; the expectations of those cases are unchanged.

[0.1.0-draft] - 2026-12-03 #

First complete set of drafts. All contracts are experimental unless stated; window framing and processing-time windows are proposed.

Added #

  • Specification drafts (version: 0.1.0-draft, status: experimental):
    • openflange.org/pipe/v0.1 - specs/pipe/v0.1.md: the OPENFLANGE.md manifest, ports, parameters, implementations, permissions, package discovery, the mandatory attribution link.
    • openflange.org/pipeline/v0.1 - specs/pipeline/v0.1.md: pipeline.yaml, consumer-side mappings, validation and error codes, the execution plan, and the stream and execution semantics (media types, NDJSON rules, lossless numbers, ordering, backpressure, port and run states, failure and partial output, run report).
    • openflange.org/cli/v0.1 - specs/cli/v0.1.md: stdin/stdout protocol, execution configuration and loopback HTTP endpoints for additional ports, and the standalone openflange command set.
    • openflange.org/http/v0.1 - specs/http/v0.1.md: discovery, sessions, independent concurrent input and output streams, status codes, authoritative session status.
    • openflange.org/registry/v0.1 - specs/registry/v0.1.md: Git-backed registry entries, publisher namespaces, generated indexes.
    • openflange.org/std/v0.1 - specs/std/v0.1.md: the portable standard library (std: pipes).
    • openflange.org/test/v0.1 - specs/test/v0.1.md: portable test files.
    • openflange.org/lock/v0.1 - specs/lock/v0.1.md: openflange.lock.yaml.
    • openflange.org/package/v0.1 - specs/package/v0.1.md: packages and the openflange.yaml index.
    • openflange.org/layout/v0.1 - specs/layout/v0.1.md: pipeline.layout.yaml.
  • Every specification opens with a plain summary, an "At a glance" list, a minimal example and a citation rule, and cross-references other specifications by absolute https://openflange.org/<name>/v0.1#anchor URLs (the intended publication addresses; not live).
  • Pipe manifest fields cardinality (one-to-one | any) and deterministic, and the definition of a function-like pipe.
  • JSON Schema 2020-12 files under schemas/, with $ids under https://openflange.org/schemas/: pipe manifest frontmatter, pipeline, layout, lockfile, test file, package index, registry entry, registry publisher, registry index, CLI execution configuration, HTTP pipe list, pipe definition, session request, session response and session status, run report, execution plan, structured error, window frame, registry facets.
  • Portable conformance fixtures under conformance/: valid and invalid manifests, valid and invalid pipelines, and runnable cases in the portable test format (email fixture, branching, precision passthrough, ordering, empty and disconnected ports, failure after output, windows, standard pipes).
  • RFC process (rfcs/README.md), RFC template, and RFC 0001: Window framing and count windows (proposed), and RFC 0002: Pipes as query-language functions (proposed).
  • examples/: transcriptions of the concrete baseline and brief examples, checked against the schemas.
  • tools/validate.py and a CI workflow that runs it.
  • Draft governance, contribution, compatibility and brand documents.
  • Licence split: CC BY 4.0 for specifications and documentation, Apache-2.0 for schemas, tools, fixtures and code examples.

Known limitations #

  • std/ is empty: the standard library manifests are to be supplied by the Go reference implementation.
  • The run fixtures have not yet been executed by an OpenFlange runner. They are checked statically by tools/validate.py; see conformance/README.md for what was cross-checked and how.
  • Deferred, not specified in v0.1: event-time watermarks, session windows, checkpointing and recovery, distributed scheduling, WASM implementations, HTTP stream reconnect, dynamic ports.

Source: CHANGELOG.md in the spec repository.