Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f9d58f

Browse filesBrowse files
fix: clarify connection constraints for parallel execution support (#568)
- Changed 'One connection per output port' from forbidden to required as 'At least one' - Aligns schema documentation with actual parallel execution capabilities - Updated both START_OUTPUT and NON_END_OUTPUT rules to use 'at least one' instead of 'exactly one' - Applied to both workflow-schema.json and workflow-schema-basic.json Relates to #564 Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 4f58332 commit 8f9d58f
Copy full SHA for 8f9d58f

4 files changed

+16-16Lines changed: 16 additions & 16 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎resources/workflow-schema-basic.json‎

Copy file name to clipboardExpand all lines: resources/workflow-schema-basic.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,10 @@
475475
"Start node cannot have input connections",
476476
"End node cannot have output connections",
477477
"No cycles allowed",
478-
"No self-connections",
479-
"One connection per output port"
478+
"No self-connections"
480479
],
481480
"required": [
481+
"At least one connection per output port",
482482
"Exactly one Start node per workflow",
483483
"At least one End node per workflow",
484484
"All non-Start nodes must have input connection",
@@ -617,12 +617,12 @@
617617
"rules": [
618618
{
619619
"id": "START_OUTPUT",
620-
"rule": "Every Start node's 'output' port MUST have exactly one outgoing connection",
620+
"rule": "Every Start node's 'output' port MUST have at least one outgoing connection",
621621
"aiGuidance": "When generating/adding a Start node, immediately create a connection from its 'output' port to the next node"
622622
},
623623
{
624624
"id": "NON_END_OUTPUT",
625-
"rule": "Every non-End node's output port(s) MUST have exactly one outgoing connection per port",
625+
"rule": "Every non-End node's output port(s) MUST have at least one outgoing connection per port",
626626
"example": "IfElse node with branch-0 and branch-1 requires both branches to be connected"
627627
},
628628
{
Collapse file

‎resources/workflow-schema-basic.toon‎

Copy file name to clipboardExpand all lines: resources/workflow-schema-basic.toon
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ connections:
321321
description: "Comprehensive specification for workflow connections. Defines connection object structure, port naming conventions, and completeness rules for AI-generated workflows."
322322
overview:
323323
description: High-level connection constraints that apply to all workflows
324-
forbidden[5]: Start node cannot have input connections,End node cannot have output connections,No cycles allowed,No self-connections,One connection per output port
325-
required[4]: Exactly one Start node per workflow,At least one End node per workflow,All non-Start nodes must have input connection,All non-End nodes must have output connection
324+
forbidden[4]: Start node cannot have input connections,End node cannot have output connections,No cycles allowed,No self-connections
325+
required[5]: At least one connection per output port,Exactly one Start node per workflow,At least one End node per workflow,All non-Start nodes must have input connection,All non-End nodes must have output connection
326326
format:
327327
description: Connection object structure in connections array
328328
objectStructure:
@@ -421,10 +421,10 @@ connections:
421421
description: Guidelines for AI-generated and AI-refined workflows. The AI system should ensure these rules are satisfied when generating/refining workflows. These guarantee that generated workflows are complete and ready to export.
422422
rules[10]:
423423
- id: START_OUTPUT
424-
rule: Every Start node's 'output' port MUST have exactly one outgoing connection
424+
rule: Every Start node's 'output' port MUST have at least one outgoing connection
425425
aiGuidance: "When generating/adding a Start node, immediately create a connection from its 'output' port to the next node"
426426
- id: NON_END_OUTPUT
427-
rule: Every non-End node's output port(s) MUST have exactly one outgoing connection per port
427+
rule: Every non-End node's output port(s) MUST have at least one outgoing connection per port
428428
example: IfElse node with branch-0 and branch-1 requires both branches to be connected
429429
- id: NON_START_INPUT
430430
rule: Every non-Start node's 'input' port MUST have exactly one incoming connection
Collapse file

‎resources/workflow-schema.json‎

Copy file name to clipboardExpand all lines: resources/workflow-schema.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,10 @@
469469
"Start node cannot have input connections",
470470
"End node cannot have output connections",
471471
"No cycles allowed",
472-
"No self-connections",
473-
"One connection per output port"
472+
"No self-connections"
474473
],
475474
"required": [
475+
"At least one connection per output port",
476476
"Exactly one Start node per workflow",
477477
"At least one End node per workflow",
478478
"All non-Start nodes must have input connection",
@@ -599,12 +599,12 @@
599599
"rules": [
600600
{
601601
"id": "START_OUTPUT",
602-
"rule": "Every Start node's 'output' port MUST have exactly one outgoing connection",
602+
"rule": "Every Start node's 'output' port MUST have at least one outgoing connection",
603603
"aiGuidance": "When generating/adding a Start node, immediately create a connection from its 'output' port to the next node"
604604
},
605605
{
606606
"id": "NON_END_OUTPUT",
607-
"rule": "Every non-End node's output port(s) MUST have exactly one outgoing connection per port",
607+
"rule": "Every non-End node's output port(s) MUST have at least one outgoing connection per port",
608608
"example": "IfElse node with branch-0 and branch-1 requires both branches to be connected"
609609
},
610610
{
Collapse file

‎resources/workflow-schema.toon‎

Copy file name to clipboardExpand all lines: resources/workflow-schema.toon
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ connections:
433433
description: "Comprehensive specification for workflow connections. Defines connection object structure, port naming conventions, and completeness rules for AI-generated workflows."
434434
overview:
435435
description: High-level connection constraints that apply to all workflows
436-
forbidden[5]: Start node cannot have input connections,End node cannot have output connections,No cycles allowed,No self-connections,One connection per output port
437-
required[4]: Exactly one Start node per workflow,At least one End node per workflow,All non-Start nodes must have input connection,All non-End nodes must have output connection
436+
forbidden[4]: Start node cannot have input connections,End node cannot have output connections,No cycles allowed,No self-connections
437+
required[5]: At least one connection per output port,Exactly one Start node per workflow,At least one End node per workflow,All non-Start nodes must have input connection,All non-End nodes must have output connection
438438
format:
439439
description: Connection object structure in connections array
440440
objectStructure:
@@ -533,10 +533,10 @@ connections:
533533
description: Guidelines for AI-generated and AI-refined workflows. The AI system should ensure these rules are satisfied when generating/refining workflows. These guarantee that generated workflows are complete and ready to export.
534534
rules[10]:
535535
- id: START_OUTPUT
536-
rule: Every Start node's 'output' port MUST have exactly one outgoing connection
536+
rule: Every Start node's 'output' port MUST have at least one outgoing connection
537537
aiGuidance: "When generating/adding a Start node, immediately create a connection from its 'output' port to the next node"
538538
- id: NON_END_OUTPUT
539-
rule: Every non-End node's output port(s) MUST have exactly one outgoing connection per port
539+
rule: Every non-End node's output port(s) MUST have at least one outgoing connection per port
540540
example: IfElse node with branch-0 and branch-1 requires both branches to be connected
541541
- id: NON_START_INPUT
542542
rule: Every non-Start node's 'input' port MUST have exactly one incoming connection

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.