SLA implementation tracking
This folder tracks SRS §9.4 SLA Configuration & Escalation Management against the codebase.
Source of truth (code)
| Area |
Location |
| Activity catalog (all modules) |
backend/src/common/config/slaStageCatalog.ts |
| Seed script |
backend/scripts/seed-sla-configs.ts |
| Admin “Initialize defaults” API |
POST /api/master/sla-configs/initialize |
| Runtime engine |
backend/src/services/SLAService.ts |
| BullMQ worker |
backend/src/common/queues/sla.worker.ts (ENABLE_REDIS=true) |
| Stage sync on transition |
backend/src/common/utils/slaWorkflowSync.ts |
Apply / refresh configuration
cd backend
npx tsx scripts/seed-sla-configs.ts
Or use Master → SLA Configuration → Initialize defaults in the UI.
Environment
| Variable |
Effect |
ENABLE_REDIS=true |
Runs SLA breach checker on schedule |
DEBUG_SLA_FAST_MODE=true |
1 hour TAT ≈ 1 minute (dev only) |
DB note
If sla_tracking.metadata (or entityType / entityId) is missing on an older database, run:
npx tsx scripts/migrate-sla-tracking-schema.ts