Module: routes/healing

Self-healing telemetry routes (CAP-004). Mounted at /api/v1 behind requireAuth + workspaceScope, so every handler runs with req.workspaceId already populated.

Endpoints

Method Path Description
GET /api/v1/healing/summary Workspace-wide self-healing summary for the /healing page.

The summary endpoint aggregates healingRepo rows scoped to the requesting workspace via getByTestIds() (SQL-level key LIKE filter — never loads other workspaces' rows into memory) and merges the healing.savings metric_samples series across all of the workspace's projects by timestamp so the <TrendChart> reflects whole-workspace savings, not a single project.

Source: