Audience: On-call / Ops / Support escalation. Symptom → diagnosis → fix → prevention.

Disciplinary touches pay and employment status (deductions, suspensions, terminations) and crosses into Requests and Payroll. Errors here have HR/legal weight — handle carefully and preserve the record.


1. Suspension "stuck"

Symptom: a suspension never activates; status shows "Pending … Review (0/3)".

Diagnose: it's awaiting approvers — the role chain (via Requests). 0/3 means no approver has acted.

Fix: chase the named approvers; if an approver has left, fix the approval chain in Requests.

Prevent: keep the suspension approval chain's roles staffed. This is not an engineering bug.

2. Trigger not firing at threshold

Symptom: an employee passed the policy count but no trigger appeared.

Diagnose: check the policy has HasThreshold = true and the right ViolationCount; confirm the violations are the matching type and count toward it (declined ones may not); check the violation Source/status.

Fix: correct the policy; if logic looks right but no trigger, escalate to engineering with the policy + violation ids.

Prevent: test thresholds after policy changes.

3. Trigger fired but action didn't land

Symptom: a trigger was approved but no deduction/suspension happened.

Diagnose: approval executes the action; a Deduction should reach payroll (via Amount), a Suspension should create an EmployeeSuspension. Check the downstream record.

Fix: trace the action's target module; re-drive if the write dropped. Capture logs — a lost consequence on an approved trigger is a real bug.

4. Suspension not recovered in payroll

Symptom: an unpaid suspension wasn't deducted.

Diagnose: check HasBeenRecovered / RecoveredInPayrollId on the EmployeeSuspension. It may not have been picked up by a run, or the person had a payroll exemption covering the period.