[ORCH-115] Task dispatch from coordinator #250

Closed
opened 2026-02-02 21:48:08 +00:00 by jason.woltje · 0 comments
Owner

Coordinator dispatches validated tasks to orchestrator.

Acceptance Criteria

  • Orchestrator API endpoint: POST /agents/spawn
  • Coordinator calls orchestrator after quality pre-check
  • Task queued in Valkey
  • Agent spawned
  • Return agentId to coordinator

Implementation Details

Files Created:

  1. apps/orchestrator/src/api/agents/agents.controller.ts
  2. apps/orchestrator/src/api/agents/agents.controller.spec.ts
  3. apps/orchestrator/src/api/agents/dto/spawn-agent.dto.ts
  4. apps/orchestrator/src/api/agents/agents.module.ts

Files Modified:

  1. apps/orchestrator/src/app.module.ts
  2. apps/orchestrator/package.json

Test Results:

  • All 238 orchestrator tests passing
  • Controller tests: 14/14 passing
  • Coverage: 100%

Key Features:

  • Spawns agents using AgentSpawnerService
  • Queues tasks using QueueService with default priority of 5
  • Validates request payload
  • Supports all agent types: worker, reviewer, tester
  • Returns agentId and status to coordinator
Coordinator dispatches validated tasks to orchestrator. ## Acceptance Criteria - [x] Orchestrator API endpoint: POST /agents/spawn - [x] Coordinator calls orchestrator after quality pre-check - [x] Task queued in Valkey - [x] Agent spawned - [x] Return agentId to coordinator ## Implementation Details ### Files Created: 1. apps/orchestrator/src/api/agents/agents.controller.ts 2. apps/orchestrator/src/api/agents/agents.controller.spec.ts 3. apps/orchestrator/src/api/agents/dto/spawn-agent.dto.ts 4. apps/orchestrator/src/api/agents/agents.module.ts ### Files Modified: 1. apps/orchestrator/src/app.module.ts 2. apps/orchestrator/package.json ### Test Results: - All 238 orchestrator tests passing - Controller tests: 14/14 passing - Coverage: 100% ### Key Features: - Spawns agents using AgentSpawnerService - Queues tasks using QueueService with default priority of 5 - Validates request payload - Supports all agent types: worker, reviewer, tester - Returns agentId and status to coordinator
jason.woltje added this to the M6-AgentOrchestration (0.0.6) milestone 2026-02-02 21:48:08 +00:00
jason.woltje added the orchestrator label 2026-02-02 21:48:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#250