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

fix: clarify connection constraints for parallel execution#568

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/clarify-parallel-execution-rulesbreaking-brake/cc-wf-studio:fix/clarify-parallel-execution-rulesCopy head branch name to clipboard
Feb 16, 2026
Merged

fix: clarify connection constraints for parallel execution#568
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/clarify-parallel-execution-rulesbreaking-brake/cc-wf-studio:fix/clarify-parallel-execution-rulesCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

The workflow schema documentation contained contradictory rules that could mislead users (including AI agents) about parallel execution capabilities.

Current Behavior

  1. Schema aiGenerationRules stated: "Every Start node's 'output' port MUST have exactly one outgoing connection"
  2. Schema aiGenerationRules stated: "Every non-End node's output port(s) MUST have exactly one outgoing connection per port"
  3. Schema listed "One connection per output port" as a forbidden constraint
  4. ❌ Result: Users believed parallel execution was not allowed, even though the validation rules actually permitted it

Expected Behavior

  1. Schema should clarify that Start nodes can have at least one outgoing connection
  2. Schema should clarify that non-End nodes can have at least one outgoing connection per port
  3. Documentation should reflect that parallel execution (multiple connections from a single port) is supported
  4. ✅ AI agents and users can confidently create workflows with parallel execution paths

Solution

Updated schema documentation to accurately reflect actual workflow validation behavior and enable parallel execution support.

Changes

Files Modified:

  • resources/workflow-schema.json
  • resources/workflow-schema-basic.json
  • resources/workflow-schema.toon (auto-generated)
  • resources/workflow-schema-basic.toon (auto-generated)

Schema Updates:

  1. Changed START_OUTPUT rule: "exactly one" → "at least one outgoing connection"
  2. Changed NON_END_OUTPUT rule: "exactly one" → "at least one outgoing connection per port"
  3. Moved "One connection per output port" from forbidden to required section as "At least one connection per output port"
  4. Aligns documentation with actual exportValidationRules that only require connectivity, not single connections

Impact

  • Enables clear guidance for AI-generated workflows to support parallel execution
  • Aligns schema documentation with actual validation behavior
  • Users can now confidently create workflows with multiple downstream connections
  • Conditional nodes (ifElse, switch) continue to work correctly with multiple branches

Testing

  • Format check: npm run format
  • Lint check: npm run lint
  • Full check: npm run check
  • Build verification: npm run build
  • Schema generation verified (TOON schemas updated correctly)

Related Issues

Addresses #564 - Clarify 'completenessRules.aiGenerationRules' for parallel execution

🤖 Generated with Claude Code

- 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>
@breaking-brake breaking-brake changed the title Fix: clarify connection constraints for parallel execution fix: clarify connection constraints for parallel execution Feb 16, 2026
@breaking-brake breaking-brake merged commit 8f9d58f into main Feb 16, 2026
3 checks passed
@breaking-brake breaking-brake deleted the fix/clarify-parallel-execution-rules branch February 16, 2026 14:30
@breaking-brake breaking-brake mentioned this pull request Feb 16, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Feb 16, 2026
## [3.22.0](v3.21.0...v3.22.0) (2026-02-16)

### Features

* add Gemini CLI provider integration ([#565](#565)) ([8b0fd76](8b0fd76))

### Bug Fixes

* clarify connection constraints for parallel execution support ([#568](#568)) ([8f9d58f](8f9d58f)), closes [#564](#564)

### Improvements

* enhance workflow schema for AI editing quality ([#559](#559)) ([1a53ccc](1a53ccc))
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

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