feat: hierarchical dispatch model for meta orchestrator#99
Open
feat: hierarchical dispatch model for meta orchestrator#99
Conversation
- Add psid (parent_sid) to SessionPayload for parent-child session correlation - Add dispatch_workflow tool: creates independent client sessions with dispatch packages - Add get_workflow_status tool: polls client workflow status without sharing tokens - Replace meta workflow activities (start-workflow → dispatch-workflow) - Update orchestrator/worker management skills for inline dispatch-and-manage pattern - Add client dispatch protocol documentation - Update worker prompt template for independent client agents - Add tests for dispatch, status, and parent-child correlation Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
…ma violations Update test workflow paths from ../workflows to ../.engineering/workflows to match the current project layout. Update engineering submodule pointer to include meta workflow fixes (missing version/name on dispatch-workflow, missing YAML frontmatter on 6 resource files). Made-with: Cursor
Made-with: Cursor
- Make executionModel optional in Zod and JSON schemas - Remove executionModel from meta workflow - Update refine guard to handle undefined executionModel - Fix missing response object in dispatch_workflow tool handler - Update test to accept workflows without executionModel Made-with: Cursor
Made-with: Cursor
- Ensure all prompt content is loaded from the workflow resource (meta/05)
- Throw error if template fails to load rather than falling back to hardcoded strings
- Add support for {initial_activity} placeholder substitution
Made-with: Cursor
Made-with: Cursor
- Update dispatch_workflow tool to use activity-orchestrator prompt - Update tests for renamed workflow-orchestrator and activity-worker skills - Update .engineering submodule reference Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
…docs Made-with: Cursor
…or rename Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
…mpt rename Made-with: Cursor
…nt yields Made-with: Cursor
Made-with: Cursor
added 8 commits
April 8, 2026 20:21
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
This reverts commit 262ab65.
This reverts commit ce71a3b.
Reverts changes made in a previous commit that pointed `WORKFLOW_DIR` to `.engineering/workflows`. The correct path is `workflows`, which is an active worktree containing the workflow files. Made-with: Cursor
The discover tool's output of available_workflows duplicates the functionality of list_workflows and was confusing. Removing it focuses discover on providing the server identity and bootstrap procedure. Made-with: Cursor
added 2 commits
April 9, 2026 14:27
…anges Made-with: Cursor
…l calls Made-with: Cursor
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.
Summary
dispatch_workflowandget_workflow_statusMCP tools for creating independent client sessions with parent-child correlationstart-workflow→resume-workflow) withdispatch-workflowthat manages client lifecycle inline (dispatch → await result → handle checkpoints → evaluate transitions)Key Changes
Server code:
SessionPayload.psid— optional parent SID field for trace correlationdispatch_workflowtool — creates client session, generates dispatch package (token, prompt, metadata)get_workflow_statustool — polls client session status without requiring its tokenWorkflow data:
02-dispatch-workflow.toonactivity with 7-step inline dispatch lifecycle10-orchestrator-management.toonwith dispatch-client, handle-client-checkpoint, process-client-result phases11-worker-management.toonfor independent client agents with checkpoint yield protocol05-worker-prompt-template.mdfor client agents using their own session tokens09-client-dispatch-protocol.mddocumenting the dispatch → manage → complete lifecycle03-end-workflow.toonto verify all dispatched clients completedTests:
Test plan
npm run typecheckpassesnpm testpasses (28 tests total, 13 new)