Parallel Execution
"Why do one thing when you can do three?"
When This Skill Activates
- Running multiple independent tasks concurrently
- Keywords: "parallel", "concurrent", "simultaneously", "batch"
- Default for: Starlight Orchestrator
What This Skill Does
Manages parallel execution of independent tasks across agents, tools, and systems. Ensures thread safety, proper result collection, and efficient resource usage.
Procedures
Procedure 1: Parallelization Analysis
- List all tasks to be executed
- Build dependency graph
- Identify independent tasks (no dependencies on each other)
- Group independent tasks for parallel execution
- Sequence dependent tasks after their prerequisites
- Calculate resource requirements for parallel batch
Procedure 2: Parallel Dispatch
- Confirm all parallel tasks are truly independent
- Limit concurrent agents to 3 (token budget constraint)
- Dispatch tasks to assigned agents simultaneously
- Monitor all tasks for completion or failure
- Collect results as each task completes
- Handle failures without blocking other parallel tasks
Procedure 3: Result Collection
- Wait for all parallel tasks to complete
- Collect all results
- Check for conflicts in results
- If conflicts: resolve using Synthesis Protocol
- Merge into unified output
- Report any failed tasks separately
Integration Points
- Vault: Operational Vault (execution metrics)
- Agents: Orchestrator (primary), up to 3 concurrent agents
- Engine: Orchestration Engine (parallel pattern)
Quality Criteria
- Were only truly independent tasks run in parallel?
- Were results properly collected and merged?
- Were failures handled gracefully?
- Was the concurrent agent limit respected?