The author's words win over the node's
A node's own annotation describes the port in general. The author describes what this workflow means by it, so the author's text is the one a caller sees.
The rule
- Author-supplied metadata on a manifest entry MUST be overlaid onto the contract fragment after the fragment has been reduced.
- It MUST override any annotation the bound port declares.
- The overlay MUST apply to the input side only.
- An absent member MUST leave the port's own annotation in place.
- A present member MUST be overlaid, an empty one included.
- A member sent as
nullMUST remove the port's annotation.
What it means
A port's own schema can carry a title or a description written by whoever built the node type — a general description of what the parameter is. The author writing a manifest entry can say something more specific to this workflow, and when they do, their words are what a caller sees, overlaid onto the fragment after MAN-5 has already reduced it. The overlay applies only to the input side.
What the author sends decides how far the overlay goes. A field the author
did not send leaves the port's own words in place. A field sent with text,
even an empty string, replaces them: the empty string is a choice, as it is
everywhere in this specification. A field sent as null removes the port's
words without putting any in their place. An editor that means "I did not
touch this" leaves the field out.
Example
The workflow declares one input, name, bound to a port whose node type
has its own title for the same field.
GET /api/flowdrop/workflows/{workflow_id}/schema?annotated=1
{"parameter_schema": {"properties": {"name": {"type": "string", "title": "Author Title"}}}}GET /api/flowdrop/workflows/{workflow_id}/schema?annotated=1
{"parameter_schema": {"properties": {"name": {"type": "string", "title": "Text value", "description": "A plain text field."}}}}An authored title stands even when the bound port's own annotation disagrees; a field the author never sent is filled from the port instead of publishing nothing.
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.
Author metadata: absent keeps, empty overlays, null removes overlay-metadata
{ "given": { "port": { "title": "Port title", "description": "Port words", "examples": [ "port" ] }, "entry": { "description": "", "examples": null } }, "expect": { "annotations": { "title": "Port title", "description": "" } } }