Different pipes. One standard.

Начните вводить запрос.

Поиск работает прямо в браузере по статическому индексу, собранному вместе с сайтом (Pagefind). Ваш запрос никуда не отправляется.

Раскладка пайплайна

Обозначает файл pipeline.layout.yaml, в котором визуальный инструмент хранит положение каждого узла на холсте. Раннеры его игнорируют, поэтому перемещение блока на холсте не меняет работу пайплайна; формат относится к спецификации пайплайна, которая отделяет раскладку от графа.

Коротко

Идентификатор
openflange.org/layout/v0.1 — открывается по адресу https://openflange.org/layout/v0.1/
Статус
Экспериментально
Версия
v0.1 (документ 0.1.0-draft), последняя · все версии
Обновлено
Схемы
Где описан
Спецификация пайплайна, „3.7 Layout“
Связанные
Пайплайн
Форматы
HTML (эта страница) · Открыть в формате Markdown (на английском) · лицензия CC BY 4.0

Нормативным является английский текст

Ниже приведена спецификация «OpenFlange Pipeline Layout» на языке оригинала — английском. Нормативную силу имеет только английский текст; краткое описание и подписи на этой странице носят справочный характер.

This specification defines pipeline.layout.yaml, the optional file in which design tools keep the visual position of a pipeline's nodes and other tool state. Layout is kept apart from pipeline.yaml so that the executable graph stays canonical; runners ignore layout files entirely.

This document is published at https://openflange.org/layout/v0.1. Its identifier, openflange.org/layout/v0.1, is that URL without the scheme, and is the value documents of this kind carry in spec:.

At a glance #

Minimal example #

pipeline.layout.yaml, next to a pipeline.yaml with nodes lowercase and mask:

yaml
spec: openflange.org/layout/v0.1
nodes:
  lowercase: {x: 120, y: 80}
  mask: {x: 360, y: 80}

1. Introduction #

A visual designer needs to remember where the user put each node. That information is not part of what a pipeline means, changes far more often than the graph, and differs between tools. OpenFlange therefore keeps it out of the pipeline file — where a layout key is forbidden — and in a separate, optional file.

1.1 Conventions #

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in RFC 2119 and RFC 8174 when, and only when, they appear in capitals.

Fenced examples whose info string contains openflange:<kind> are normative and machine-checked against the JSON Schemas at https://openflange.org/schemas/.

1.2 Citing this document #

Normative statements are cited by section number, for example layout/v0.1 §4.2, and numbered or bulleted rules within a section by their position, for example layout/v0.1 §4.2(3). Section numbers are stable within v0.1: sections are appended, never renumbered. Every heading has a stable fragment identifier derived from its text (lower-cased; characters other than letters, digits, spaces, hyphens and underscores removed; spaces replaced by hyphens), so a section is addressable as https://openflange.org/layout/v0.1#<fragment>. Cross-references to other OpenFlange specifications are absolute URLs of that form. This document does not rely on images; its diagrams are text.

2. Terminology and maturity #

The terms pipe, source, sink, pipeline, subpipeline, node, port, stream, run and dataset are defined in the Pipe specification, section 2; workflow is reserved for future control-flow orchestration and is not used here.

  • layout file — the file pipeline.layout.yaml.
  • tool — software that displays or edits pipelines.
Feature Maturity
Layout file and node coordinates (3) experimental
Tool state in x- extensions (3) experimental

Nothing is stable or deprecated in v0.1.

3. The layout file #

  1. The layout of the pipeline file <dir>/pipeline.yaml is <dir>/pipeline.layout.yaml. For a pipeline file with another name <name>.yaml, it is <name>.layout.yaml.
  2. The file is parsed with the safe YAML rules of the Pipe specification, section 4.2 and validates against https://openflange.org/schemas/layout-v0.1.schema.json.
Key Required Meaning
spec yes The constant openflange.org/layout/v0.1.
nodes no Map of element id to position.
x-<vendor>-<name> no Tool-specific state, at the top level and inside positions.
  1. A key of nodes is a node id of the pipeline, or inputs.<name> / outputs.<name> for the pipeline's external ports.
  2. A position is {x: <number>, y: <number>}: the top-left corner of the element in an abstract coordinate space whose x axis grows to the right and y axis grows downwards. The unit is tool-defined; tools SHOULD use CSS pixels at 100 % zoom.
  3. Runners MUST ignore layout files. A missing, stale or invalid layout file MUST NOT affect validation or execution, and MUST NOT produce an error from openflange validate or openflange run.
  4. Tools MUST tolerate layout entries for nodes that no longer exist (SHOULD drop them on save) and nodes without an entry (SHOULD place them automatically).
  5. Tools MUST NOT store secrets, credentials, cached records or data previews in a layout file. Layout files are meant to be committed.
  6. Tools MUST preserve x- keys they do not understand when rewriting the file.

A position needs both coordinates:

yaml
spec: openflange.org/layout/v0.1
nodes:
  lowercase: {x: 120}

4. Security considerations #

Layout files are untrusted input for tools: safe YAML (size limit, no aliases, no custom tags, duplicate keys rejected) and schema validation apply, and coordinates SHOULD be clamped to a sane range before rendering (resource exhaustion). A layout file has no effect on execution, so it cannot change permissions, grants, trusted mode or what a subprocess may do; it never contains paths that are opened (no path traversal), URLs that are fetched (no SSRF or redirects), package scripts or secrets. Extension values are data and MUST NOT be evaluated as code.

5. Compatibility and versioning #

The format is identified by openflange.org/layout/v0.1. Unknown keys are rejected except x- extensions. While experimental, a later 0.x version MAY change incompatibly, with a changelog entry. See COMPATIBILITY.md in the specification repository.

6. Deferred #

Not part of v0.1: edge routing and waypoints, groups and annotations, viewport state, multiple named layouts, and layout for nested pipelines shown inline. Execution-related deferrals (event-time watermarks, session windows, checkpointing, distributed scheduling, WASM, reconnect, dynamic ports) are listed in the Pipeline specification and do not concern layout.

Источник: specs/layout/v0.1.md в репозитории спецификаций. Ключевые слова, такие как MUST и SHOULD, используются в значении, определённом в RFC 2119.