[ORCH-004] Task Dispatcher Service #99

Closed
opened 2026-01-29 23:30:13 +00:00 by jason.woltje · 0 comments
Owner

Phase 2: Orchestrator Integration

Dispatcher service for delegating work to Orchestrator service (`apps/orchestrator/`) (replaces original Coordinator Service concept).

Deliverables

[ ] Orchestrator Gateway API client
[ ] Task dispatch logic (serialize context, send to Orchestrator service)
[ ] Callback endpoint for progress/completion updates
[ ] Backend configuration API (add/remove/test Orchestrator instances)
[ ] Backend health check (periodic reachability test)

Task Dispatch Flow

User creates task → Mosaic Stack saves to DB (PENDING)
                  → Dispatcher sends to Orchestrator service
                  → Update state to DISPATCHED
                  → Orchestrator spawns agent
                  → Callbacks update state (RUNNING → COMPLETED/FAILED)

Removed (handled by Orchestrator service)

Health monitoring (heartbeat checks)
Automatic task assignment
Dependency resolution
Distributed lock for coordinator

Dependencies

#98 Valkey Integration
#102 Gateway Integration

#95 Agent Orchestration EPIC
#114 Kill Authority Implementation
• ORCH-130 (apps/api orchestrator client implementation)

## Phase 2: Orchestrator Integration Dispatcher service for delegating work to Orchestrator service (\`apps/orchestrator/\`) (replaces original Coordinator Service concept). ## Deliverables [ ] Orchestrator Gateway API client [ ] Task dispatch logic (serialize context, send to Orchestrator service) [ ] Callback endpoint for progress/completion updates [ ] Backend configuration API (add/remove/test Orchestrator instances) [ ] Backend health check (periodic reachability test) ## Task Dispatch Flow ``` User creates task → Mosaic Stack saves to DB (PENDING) → Dispatcher sends to Orchestrator service → Update state to DISPATCHED → Orchestrator spawns agent → Callbacks update state (RUNNING → COMPLETED/FAILED) ``` ## Removed (handled by Orchestrator service) • ~~Health monitoring (heartbeat checks)~~ • ~~Automatic task assignment~~ • ~~Dependency resolution~~ • ~~Distributed lock for coordinator~~ ## Dependencies • #98 Valkey Integration • #102 Gateway Integration ## Related • #95 Agent Orchestration EPIC • #114 Kill Authority Implementation • ORCH-130 (apps/api orchestrator client implementation)
jason.woltje added this to the M6-AgentOrchestration (0.0.6) milestone 2026-01-29 23:30:13 +00:00
jason.woltje added the phase-2apiapip0 labels 2026-01-29 23:30:13 +00:00
jason.woltje changed title from [ORCH-004] Coordinator Service to [ORCH-004] Task Dispatcher Service 2026-01-30 03:03:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#99