# SLA stage configuration matrix

`activityName` in `sla_configurations` **must equal** the workflow stage string when the case enters that step.

Legend: **Configured** = row in `SLA_STAGE_CATALOG` · **Runtime** = timer starts on transition today

---

## Onboarding (14 internal SLA rows — pipeline label)

See [ONBOARDING_SLA_RULES.md](./ONBOARDING_SLA_RULES.md) for applicant vs internal steps.

| Activity (config) | Owner role(s) | TAT | Runtime |
|-------------------|---------------|-----|---------|
| ~~Submitted~~ | — | — | **Excluded** (applicant action done) |
| ~~Questionnaire~~ | — | — | **Excluded** — use `QUESTIONNAIRE_REMINDER` to **prospect** |
| Shortlist | DD Admin | 3 days | Yes |
| 1st Level Interview | RBM, DD-ZM | 2 days | Yes |
| 2nd Level Interview | DD Lead, ZBH | 3 days | Yes |
| 3rd Level Interview | NBH, DD Head | 5 days | Yes |
| FDD | FDD | 10 days | Yes |
| LOI Approval | NBH | 5 days | Yes |
| Security Deposit | Finance | 7 days | Yes |
| LOI Issue | DD Admin | 3 days | Yes |
| Dealer Code Generation | DD Admin | 2 days | Yes |
| Architecture Work | Architecture Team | 14 days | Yes |
| Statutory Work | DD Admin, Legal | 14 days | Yes |
| LOA | NBH | 5 days | Yes |
| EOR Complete | DD Admin | 7 days | Yes |
| Inauguration | ASM | 3 days | Yes |

**Not separately configured (optional future):** per-statutory sub-status (`Statutory GST`, …), interview scheduling pending states.

---

## Termination (12 configured — matches `TERMINATION_STAGES`)

| Activity | Owner | TAT | Runtime |
|----------|-------|-----|---------|
| RBM + DD-ZM Review | RBM, DD-ZM | 3 days | Yes |
| ZBH Review | ZBH | 3 days | Yes |
| DD Lead Review | DD Lead | 5 days | Yes |
| Legal Verification | Legal Admin | 7 days | Yes |
| DD Head Review | DD Head | 5 days | Yes |
| NBH Evaluation | NBH | 5 days | Yes |
| Show Cause Notice (SCN) | Legal Admin, DD Admin | 5 days | Yes |
| Evaluation of Dealer SCN Response | DD Lead, ZBH, RBM, DD Head | 5 days | Yes |
| NBH Final Approval | NBH | 3 days | Yes |
| CCO Approval | CCO | 3 days | Yes |
| CEO Final Approval | CEO | 5 days | Yes |
| Legal - Termination Letter | Legal Admin | 5 days | Yes |

**Skipped (terminal / no approval TAT):** Submitted, Terminated, Rejected.

---

## Resignation (8 configured — matches `RESIGNATION_STAGES`)

| Activity | Owner | TAT | Runtime |
|----------|-------|-----|---------|
| ASM | ASM | 2 days | Yes |
| RBM + DD-ZM Review | RBM, DD-ZM | 3 days | Yes |
| ZBH | ZBH | 3 days | Yes |
| DD Lead | DD Lead | 5 days | Yes |
| NBH | NBH | 5 days | Yes |
| Legal | Legal Admin | 7 days | Yes |
| DD Admin | DD Admin | 3 days | Yes |
| Awaiting F&F | DD Lead, DD Admin | 7 days | Yes |

**Not configured:** post–F&F department clearance rows (`Spares Clearance`, …) — use F&F module rows if enabled later.

---

## Relocation (7 configured — matches `RELOCATION_STAGES`)

| Activity | Owner | TAT | Runtime |
|----------|-------|-----|---------|
| ASM Review | ASM | 2 days | Yes |
| RBM Review | RBM | 3 days | Yes |
| DD ZM Review | DD-ZM | 3 days | Yes |
| ZBH Review | ZBH | 3 days | Yes |
| DD Lead Review | DD Lead | 5 days | Yes |
| NBH Approval | NBH | 5 days | Yes |
| Legal Clearance | Legal Admin | 7 days | Yes |

---

## Constitutional change (7 configured — matches `CONSTITUTIONAL_STAGES`)

| Activity | Owner | TAT | Runtime |
|----------|-------|-----|---------|
| ASM Review | ASM | 2 days | Yes |
| ZM/RBM Review | RBM, DD-ZM | 3 days | Yes |
| ZBH Review | ZBH | 3 days | Yes |
| DD Lead Review | DD Lead | 5 days | Yes |
| DD Head Review | DD Head | 5 days | Yes |
| NBH Approval | NBH | 5 days | Yes |
| Legal Review | Legal Admin | 7 days | Yes |

---

## F&F settlement (16 configured — **config only**)

| Activity pattern | Owner | TAT | Runtime |
|------------------|-------|-----|---------|
| F&F Clearance: {Department} × 16 | Finance / DD Admin | 5 days each | **Not wired** |

**Pending:** call `syncSlaOnStageTransition({ entityType: 'fnf', … })` when department clearance status → Pending and stop when Cleared.

---

## Legacy config rows (safe to deactivate)

After re-seed, old names no longer match workflows. Deactivate or delete in Master UI if still present:

- `ASM Review`, `ZM Review`, `Level 1 Interview` (old onboarding names)
- `Resignation ASM Review`, `Termination Evaluation`, `Relocation ASM Review`, `Constitution Legal Review`, etc.
