Collection
A collection is a folder of assembly lines. Each line has a folder with its pipeline file and its agent files. A collection is usually a git repository.
The words MUST, MUST NOT, SHOULD and MAY are used as in RFC 2119.
1. Layout
Section titled “1. Layout”my-collection/ README.md ignored docs/ ignored write-note/ a line folder assembly-line.yaml agents/ note-writer.md review-note/ assembly-line.yaml agents/ note-reviewer.mdA line folder MAY sit one level down, in a group folder. A group folder holds line folders and nothing else that is read.
my-collection/ stock/ a group folder write-note/ a line folder, and the line is write-note assembly-line.yaml agents/ note-writer.md ours/ review-note/ assembly-line.yaml| Path | What it is |
|---|---|
<line>/assembly-line.yaml |
The line’s pipeline file |
<line>/agents/<agent>.md |
An agent file |
<line>/agents/<agent>.extra.md |
An extension of an agent the host ships |
<group>/<line>/assembly-line.yaml, <group>/<line>/agents/<agent>.md, <group>/<line>/agents/<agent>.extra.md |
The same three files, for a line folder in a group folder |
floor-collection.yaml at the top level |
The collection’s settings: host_keys, the frontmatter keys its host owns, and groups, the order of its group folders |
Any other file at the top level, anything under docs/, skills/ or agent-skills/ (the host’s skills), anything under a folder whose name starts with . |
Ignored |
Any other .md, .yml or .yaml file in a line folder or a group folder |
Refused |
| Any other file in a line folder or a group folder | Ignored |
-
line.idinassembly-line.yamlMUST equal the name of its own folder, the last one. A group folder is in no name. If not, the file is refused withthe folder F must hold the pipeline of that name, and its line is X. -
A refused path says
a collection does not read this path: a line folder holds assembly-line.yaml, agents/<agent>.md and agents/<agent>.extra.md. A file namedassembly-line.ymlis refused this way. -
An agent’s id is its file name. It MUST be unique in the whole collection, not only in its folder. A second file for the same agent is refused with
<agent> is already set by <path>. Rule 11 settles a second file that sits in another listed group. -
A station MAY name an agent that another line’s folder defines.
-
A collection has no manifest and no version file.
-
A group folder MUST NOT sit in another group folder. A line file two folders down is refused as in rule 2.
-
The name of a line folder or a group folder MUST NOT start with
., and MUST NOT beskillsoragent-skills. A group folder MUST NOT be nameddocs. A line folder in a group MUST NOT be namedagents. Such a path is ignored or refused as in rule 2. -
A folder that holds a line file is a line folder, not a group. A line file below it is refused with
the folder G holds a line, so it is not a group: move L out of it. -
A line’s id MUST be unique in the whole collection. Of two line folders with the same name that rule 11 does not settle, the first by path owns the name and the second is refused with
<line> is already set by <path>. The first owns the name whether or not its file can be read, so a broken file never lets another folder’s copy through. Path order is the only order here:ours/triage/comes before a top-leveltriage/, and wins over it. -
Lines are read, and applied, in the order of their names, then of their paths. Moving a line folder into a group folder does not change that order.
-
floor-collection.yamlMAY holdgroups, a list of group folder names in order. A line, or an agent, held in several listed groups is read from the group listed last. The files in the earlier groups are left out and are not refused.groups:- stock- oursWith this list,
ours/write-note/is read andstock/write-note/is left out. One name is one line on the host: the two never run side by side. -
A group need not be listed to be read. A folder that holds a line file is not a group, listed or not, so rule 8 still refuses a line file below it. A duplicate that the list does not settle is refused as in rule 9, or as in rule 3 for an agent: two folders of which one is in an unlisted group, or a top-level line folder and a grouped one.
-
groupsMUST be a list of distinct folder names, each one folder and not a path. If not, the collection is refused withfloor-collection.yaml: groups is a list of distinct folder names. A listed name with no folder is accepted.
2. Rules
Section titled “2. Rules”A collection is stricter than a pipeline file on its own. floor-pipeline lint checks each assembly-line.yaml against these rules and refuses the file when one fails.
| Rule id | Rule |
|---|---|
agent-settings-in-pipeline |
The file MUST NOT have an agent_definitions block. An agent is defined in its own file. |
undeclared-agent |
A station’s agent_definition MUST be an agent the collection defines or the host ships. |
undeclared-bag |
A station MUST have both needs and produces. Either MAY be an empty list. |
unkeyed-line |
Exactly one argument MUST set subject: true. |
unknown-key |
The line, a station and a schedule MUST NOT carry a key the floor does not know. The message names the key and where it is, such as stations.review.produces[0]: unknown key "optional". A key of an agent’s config is not checked. |
unseeded-need |
A required need MUST be an argument, a line file, or something a station in the file produces. A git need MUST be a git argument. |
unsupplied-input |
Every {name} in an agent’s prompt MUST be a need or a produce of the station, or a name the floor fills. See Placeholders. |
outcome-without-edge |
Every outcome a station lists MUST have an edge from the node, or the node an always edge. |
undeclared-outcome |
An edge’s on MUST be an outcome the node’s station lists, or always. |
ambiguous-edge |
Two edges MUST NOT leave one node on the same on. |
dangling-edge |
Both ends of an edge MUST name a node. |
dead-end |
A node other than the exit and the fail node MUST have an outgoing edge. |
unreachable |
Every node MUST be reachable from the entry, or from a node that sets start. |
unbounded-retry |
An edge from a node to itself MUST set iteration_max or unattended_max. |
unresolvable-conversation-key |
A station’s conversation_key MUST be a declared argument. |
3. Environment variables
Section titled “3. Environment variables”${NAME} in assembly-line.yaml and in an agent file’s frontmatter is filled when the collection is applied. See Placeholders.
4. Checking a collection
Section titled “4. Checking a collection”npx @re-cinq/floor-pipeline lint .A clean collection prints one line and the exit code is 0.
collection ok: 1 agents, 1 pipelines, 0 extensionsA refused file prints <path>: <reason> and the exit code is 1.
write-note/assembly-line.yaml: no arg carries subject: true, so the floor cannot refuse a second run for the same subjectLint needs no floor and no environment variables.
5. Applying a collection
Section titled “5. Applying a collection”FLOOR_SERVICE_TOKEN=... npx @re-cinq/floor-pipeline apply . --floor http://localhost:8180- Every agent is put first, then each line with its stations, in the order of the line folders’ names.
- When a file is refused, nothing is put.
- Applying the same collection twice changes nothing. A changed file makes a new version of what it defines.
- Applying sets an agent’s settings. Repository variants the floor holds for that agent are kept.
- Removing a file from a collection removes nothing from the floor. Use the
archivekey of a pipeline file.
A host can load a collection its own way. Lore reads one from a git repository on each push and adds agents and lines of its own.
6. Example
Section titled “6. Example”The starter collection is in examples/starter.
# yaml-language-server: $schema=https://re-cinq.github.io/floor/schemas/pipeline.schema.jsonline: id: write-note entry: write exit: done fail: stopped start: on: - note.requested args: topic: "{topic}" args: topic: kind: value subject: true nodes: - id: write station: write-note - id: publish station: publish-note - id: done - id: stopped edges: - from: write to: publish on: success - from: write to: write on: failed iteration_max: 1 - from: publish to: done on: success - from: publish to: stopped on: failedstations: write-note: description: An agent writes one sentence about the topic into a file. kind: agent agent_definition: note-writer outcomes: - success - failed result_required: true needs: - name: topic kind: value produces: - name: note kind: file path: note.md publish-note: description: A worker of yours reads the note and publishes it. kind: service outcomes: - success - failed needs: - name: note kind: file produces: - name: note_url kind: value---model: claude-sonnet-5-5image: ${AGENT_IMAGE}timeout_minutes: 10config: max_turns: 10---Write one short sentence about {topic} into the file {note_path}. Do nothing else.
When the file is written, end your reply with this line on its own:
LORE_NODE_RESULT: success7. Limits
Section titled “7. Limits”- Lint does not run every check the floor runs. It does not check an agent’s
config, a fan-out, or that a need is produced on every path into a node. A collection that passes lint can be refused on apply. applyputs one definition at a time. When the floor refuses one, the definitions before it stay put.