Skip to content

Orchestrator Agent

The Orchestrator is the control plane of Sentinel. It exposes a Hono-powered REST API for monitoring incidents, managing service configs, and performing manual overrides.

  • Serve the management dashboard API
  • Provide incident listing, filtering, and detail views
  • Expose service configuration CRUD
  • Support manual retry and skip operations
  • Report system health and statistics
MethodPathDescription
GET/api/incidentsList incidents with optional filters
GET/api/incidents/:idGet incident details with artifacts
POST/api/incidents/:id/retryReset incident to detected for reprocessing
POST/api/incidents/:id/skipMark incident as wontfix

Query parameters for listing:

ParameterTypeDescription
statusstringFilter by incident status
servicestringFilter by service name
limitnumberPage size (default: 50)
offsetnumberPagination offset
MethodPathDescription
GET/api/config/servicesList all service configs
GET/api/config/services/:nameGet a specific service config
PUT/api/config/services/:nameCreate or update a service config
MethodPathDescription
GET/api/healthHealth check (returns { status: "ok" })
GET/api/statsAggregate counts by incident status
Terminal window
curl 'https://sentinel.example.com/api/incidents?status=fixing&limit=10'
Terminal window
curl 'https://sentinel.example.com/api/incidents/01HXYZ...'

Response includes the incident record plus all associated R2 artifacts.

Terminal window
curl -X POST 'https://sentinel.example.com/api/incidents/01HXYZ.../retry'

This resets the incident status to detected, causing it to re-enter the pipeline from the beginning.

Terminal window
curl -X POST 'https://sentinel.example.com/api/incidents/01HXYZ.../skip'

Marks the incident as wontfix. The LogTailer will still count future occurrences but will not re-queue.

src/agents/orchestrator.ts