feat(sub-workflow): hierarchical workflow composition via SubWorkflowNode#65
Merged
Conversation
…Node
Introduces the Sub-workflow implementation, enabling nested workflow execution with tenant-aware propagation and push-time graph validation.
Core & Execution:
- Added SubWorkflowNodeExecutor with a MAX_DEPTH = 16 safety cap.
- Implemented SubWorkflowGraphValidator for cycle detection and dangling reference checks (single-pass DFS).
- Added _tenant_id and context propagation for nested execution.
DSL & CLI:
- Introduced subWorkflow(id) { } builder with imports() and writes() mappings.
- Added --with flags on run, validate, and visualize for local sub-workflow seeding; build does not accept --with — sub-workflows push independently.
Server & Persistence:
- Added WorkflowPushLock using pg_advisory_xact_lock for cluster-wide concurrency control during workflow updates.
- Integrated push-time validation in WorkflowRegistryService.
- Refactored server services into specialized domain modules (Registry, Execution, Query, State).
Includes a comprehensive update to all module READMEs and developer guides to reflect the new architecture and package structures.
Resolve: #64
Signed-off-by: Aleksandr Suvorov <asuvorov@hensu.io>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Aleksandr Suvorov <hi.alexsuv@gmail.com>
Resolve: #64 Signed-off-by: Aleksandr Suvorov <asuvorov@hensu.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces the Sub-workflow implementation, enabling nested workflow execution with tenant-aware propagation and push-time graph validation.
Core & Execution:
DSL & CLI:
Server & Persistence:
Includes a comprehensive update to all module READMEs and developer guides to reflect the new architecture and package structures.
Resolve: #64