Skip to content

feat: implement hierarchical dispatch workflows#100

Open
m2ux wants to merge 27 commits intoworkflowsfrom
feature/hierarchical-dispatch-workflows
Open

feat: implement hierarchical dispatch workflows#100
m2ux wants to merge 27 commits intoworkflowsfrom
feature/hierarchical-dispatch-workflows

Conversation

@m2ux
Copy link
Copy Markdown
Owner

@m2ux m2ux commented Apr 8, 2026

Summary

  • Implements the meta orchestrator hierarchical dispatch model
  • Adds 02-dispatch-workflow.toon activity
  • Updates 05-worker-prompt-template.md to support independent client agent sessions
  • Adds 09-client-dispatch-protocol.md resource documenting the dispatch lifecycle

Test plan

  • Verified via unit and integration tests in the main workflow-server repository

m2ux and others added 27 commits April 8, 2026 13:57
Add version and name to dispatch-workflow activity (required by ActivitySchema).
Add YAML frontmatter with id and version to 6 meta resource files (00, 05-09)
so parseFrontmatter can extract structured metadata.

Made-with: Cursor
- Remove non-schema orchestrator block from 02-dispatch-workflow.toon
- Use activity-level rules, problem, recognition, and outcome fields
- Replace step 'instruction' with schema-compliant 'description'
- Add skills reference (primary: orchestrator-management)
- Use condition object in transitions instead of free-text
- Update meta workflow executionModel to declare orchestrator and client roles
- Add client_workflow_completed variable for transition evaluation

Made-with: Cursor
- Split single sub-agent model into activity-orchestrator and activity-worker
- Update dispatch-workflow to delegate full workflow execution to activity-orchestrator
- Rename orchestrator-management to workflow-orchestrator
- Define explicit checkpoint bubbling rules in client-dispatch-protocol
- Update workflow references and downstream templates

Made-with: Cursor
Corrects the array length specifier for the `yield-checkpoint` block from 3 to 4,
resolving a TOON parser schema validation error.

Made-with: Cursor
Updates `remediate-vuln` to correctly adopt changes in `work-package`
including fixing the `strategic-review` unsigned commit variables,
updating the `start` transition to `design-philosophy` directly,
and correctly importing the local `start`, `strategic-review` and
`submit` activities instead of importing `11-strategic-review.toon`
from `work-package`.

Made-with: Cursor
Updates the array length specifier for `activities` from 12 to 14.
This resolves a TOON parsing error that prevented the `remediate-vuln`
workflow from being discovered or started by the server.

Made-with: Cursor
The discover tool no longer returns the list of available workflows.
Updated the bootstrap documentation to state that discover returns
the server info and bootstrap procedure, and that agents should use
list_workflows to match the user's goal.

Made-with: Cursor
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