Skip to main content

Module coordinator

Module coordinator 

Source
Expand description

Coordinator โ€” lightweight gateway that manages worker registration, routing, and health monitoring.

Can run as:

  • Standalone binary: soma-coordinator --token sk-xxx --port 9090
  • Embedded: Coordinator::new().start_local() for development

The coordinator does NOT execute plans. It:

  1. Accepts worker registrations (with capabilities + heartbeats)
  2. Authenticates connections via bearer token
  3. Routes client plan submissions to appropriate workers
  4. Forwards worker events back to the client

Structsยง

WorkerRegistry
The worker registry โ€” tracks all known workers and their status.
WorkerStatus
Status of a registered worker.