A manifest entry names an input, declares its contract, and can bind it to a port
Three fields say what the input is called and where it goes; the rest is documentation for whoever calls the workflow.
The rule
- A manifest entry MUST carry a
name. - It MAY carry a binding, which is a
node_idand aporttogether: an entry carries both or neither. - An entry that carries neither is unbound.
- It is still a declared input or output, and its contract comes from its own
schema. - An entry MAY carry
schema, a JSON Schema fragment that declares its contract and, inx-data-type, its lane (SCH-10). - It MAY also carry
title,description,examplesandrequired. - These four MUST apply to the input side only.
- A
requiredentry MUST be folded into the built contract's top-level array of required names rather than surviving as a key on the property fragment.
What it means
name is the entry: what the caller calls the input. node_id plus port,
when present, are where it lands inside the workflow. They come as a pair or
not at all. An entry with neither is unbound: the author has declared the
input or output, and its contract, before building what is behind it. Its
schema is then the whole contract, and another workflow can already call
this one. Everything else
an entry may carry — title, description, examples, required — is
metadata for whoever calls the workflow, and it applies only to the input
side; an entry that binds an output port carries none of it into the built
contract.
required is the field worth pausing on. It is not stored as a key on the
property fragment itself; it is folded into the built schema's own top-level required array, the way JSON Schema expects required properties to be named
(MAN-16). An entry can be required without that fact ever appearing next to
its own type and default.
Example
The workflow declares one input, bound to a port, with author-facing metadata attached.
{
"name": "customer_email",
"node_id": "n1",
"port": "key",
"title": "Customer email",
"description": "Email to look up their support history.",
"examples": ["a@b.com", "c@d.com"]
}{
"type": "string",
"title": "Customer email",
"description": "Email to look up their support history.",
"examples": ["a@b.com", "c@d.com"]
}name, node_id and port decided where this property comes from; title,
description and examples only decorate it.
An input declared before anything is built behind it carries its contract itself:
{ "name": "topic", "schema": { "type": "string", "x-data-type": "string" }, "required": true }Why
Fixtures
Test cases whose outcome this rule decides. A case compares absent, null and empty members exactly; the fixtures README defines each operation. Where a case and the rule disagree, the rule is right.
A value for an unbound input is accepted and delivered nowhere resolve-launch-inputs
{ "given": { "inputs": [ { "name": "topic", "schema": { "type": "string", "x-data-type": "string" } } ], "supplied": { "topic": "x" } }, "expect": { "initialData": {} } }An unbound output is absent, never null collect-outputs
{ "given": { "outputs": [ { "name": "summary", "schema": { "type": "string", "x-data-type": "string" } }, { "name": "answer", "node_id": "n1", "port": "text" } ], "produced": { "n1": { "text": "hello" } } }, "expect": { "result": { "answer": "hello" } } }