Skip to content

feat(flow): decision node, regex matches operator and flow-wide error handler - #209

Merged
akirilyuk merged 4 commits into
mainfrom
feature/flow-decision-node
Nov 27, 2026
Merged

akirilyuk merged 4 commits into
mainfrom
feature/flow-decision-node

Conversation

@akirilyuk

Copy link
Copy Markdown
Contributor

Summary

  • New decision node: an ordered list of branches, each with a rule group. The first branch whose rules match wins; otherwise the flow goes to default. The trace and flow_step exit edge is the branch id, or default.
  • New matches rule operator. It tests a string variable against a regular expression; flags: "i" makes it case-insensitive. Patterns are limited to 500 characters and compiled with the u flag. An invalid pattern is a validation error (FLOW_INVALID_REGEX).
  • New flow-wide onError target. On route, http, mcp and llm nodes, onError is now optional: a node without one sends its errors to the flow's handler. If neither is set, validation fails with FLOW_MISSING_ERROR_TARGET. A duplicate branch id fails with FLOW_DUPLICATE_BRANCH_ID.
  • README sections, the regenerated JSON Schema, and the 0.38.0 version and CHANGELOG entry.

These changes are additive within flow version: 1, so existing flows validate unchanged.

Verified locally and via CI; no extra manual steps.

@akirilyuk
akirilyuk merged commit 75e8791 into main Nov 27, 2026
6 checks passed
@akirilyuk
akirilyuk deleted the feature/flow-decision-node branch November 27, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant