Orchestration Domain
The Orchestration domain contains 2 critical agents that coordinate all other agents and enforce SO1’s stage-gated execution model.Overview
| Agent | Stage | Purpose |
|---|---|---|
| Factory Orchestrator | Cross-cutting | Task decomposition and multi-agent coordination |
| FORGE Gatekeeper | Cross-cutting | Stage gate validation and VTM production |
Orchestration agents operate across all FORGE stages, providing coordination and compliance throughout the lifecycle.
When to Use
Use Factory Orchestrator
- Complex multi-agent tasks
- Unclear which agent to use
- Multiple domains involved
- Need task decomposition
Use FORGE Gatekeeper
- Validate stage transitions
- Generate VTM reports
- Audit agent compliance
- Check gate conditions
Domain Characteristics
Cross-Cutting Nature
Unlike other domains that operate in specific FORGE stages, Orchestration agents work across all stages:Primary Responsibilities
| Responsibility | Factory Orchestrator | FORGE Gatekeeper |
|---|---|---|
| Task decomposition | ✅ Primary | ❌ |
| Agent selection | ✅ Primary | ❌ |
| State management | ✅ Primary | ❌ |
| Gate validation | ❌ | ✅ Primary |
| VTM production | ❌ | ✅ Primary |
| Compliance audit | ❌ | ✅ Primary |
Usage Examples
Example 1: Multi-Domain Task
- Decompose into 4 tasks
- Assign: Workflow Architect, Hono Backend, Runbook Writer, Mintlify Author
- Define execution order (some parallel, some sequential)
- Coordinate handoffs between agents
Example 2: Gate Validation
- Check all Stage 2 agents completed
- Verify exit conditions met
- Generate validation report
- Update VTM with results
Integration Points
Control Plane API
| Endpoint | Used By | Purpose |
|---|---|---|
/api/workflows | Factory Orchestrator | Create n8n workflows |
/api/jobs | Factory Orchestrator | Track execution state |
/api/validation | FORGE Gatekeeper | Submit gate validations |
Veritas Integration
| Agent | Consumes | Produces |
|---|---|---|
| Factory Orchestrator | Task decomposition patterns, routing heuristics | Multi-step chains |
| FORGE Gatekeeper | Compliance patterns, audit templates | Validation tasks |
Outputs
- Factory Orchestrator
- FORGE Gatekeeper
Task Breakdown (Markdown):
- Requirement analysis
- Task decomposition
- Agent assignments
- Execution order
- Risk assessment
- Task-to-agent mapping
- Dependencies
- Parallel execution groups
- Timeline of agent invocations
- Decision records
- State transitions
Best Practices
When to use Factory Orchestrator
When to use Factory Orchestrator
Use the Factory Orchestrator when:
- ✅ You have a complex task spanning multiple domains
- ✅ You’re unsure which specific agent to use
- ✅ You need automatic task decomposition
- ✅ You want coordinated multi-agent execution
- ❌ You know exactly which single agent you need
- ❌ Task is simple and domain-specific
- ❌ You prefer manual agent selection
When to invoke FORGE Gatekeeper
When to invoke FORGE Gatekeeper
The Gatekeeper is automatically invoked by:
- Factory Orchestrator at each stage transition
- Individual agents when producing final output
- Audit an existing implementation
- Generate VTM for documentation
- Validate compliance before deployment
Decision logging
Decision logging
Both agents log all decisions in ADR format:This ensures full traceability of orchestration choices.