Canonical documentation for the Disciplinary subsystem — how a company defines what counts as a violation, records violations against employees, automatically escalates at thresholds, and applies consequences up to suspension and termination.
Source of truth:
core-backend-servicesource (DisciplinaryService.cs2,049 lines + 45 endpoints) plus a live pass (Playwright, "Pade Demo" tenant, 2026-07-20; screenshots).
Start with surface-map.md.
| Doc | Audience | What it answers | Status |
|---|---|---|---|
| surface-map.md | Everyone | Inventory, model, routes, enums | ✅ Done 2026-07-20 |
| business.md | PMs, QA, Support, HR | What it is — policies, violations, actions, suspensions | ✅ Done 2026-07-20 |
| technical.md | Engineers | The model, triggers, Requests + Payroll ties | ✅ Done 2026-07-20 |
| configuration.md | Admins, HR | Policies, thresholds, exemptions, violation types | ✅ Done 2026-07-20 |
| glossary.md | Everyone | Data dictionary | ✅ Done 2026-07-20 |
| api-reference.md | Engineers | The endpoint surface | ✅ Done 2026-07-20 |
| user-journey.md | PMs, UX, Support | Record, escalate, suspend, dispute journeys | ✅ Done 2026-07-20 |
| how-to.md | Admins, HR | Create a policy, record a violation, suspend, exempt | ✅ Done 2026-07-20 |
| knowledge-base.md | End users | FAQ — disputing, exemptions, suspension pay | ✅ Done 2026-07-20 |
| runbook.md | On-call / Ops | Stuck triggers, suspension recovery, approval chains | ✅ Done 2026-07-20 |
| onboarding.md | New engineers | Ramp into DisciplinaryService |
✅ Done 2026-07-20 |
| rfds/ | Engineers | Design decisions | ✅ Done 2026-07-20 (3 records) |
A ViolationPolicy ties a violation type to a ViolationAction (Deduction, Demotion, Redeployment, Suspension, Termination, or Probation), optionally with a threshold (HasThreshold + ViolationCount = N). People can be exempted from a policy. A violation is recorded as an EmployeeViolation — raised either by a person (Source = Employee) or automatically (Source = System) — against an offender, optionally naming a TargetPersonId (a victim), and carrying a timeline of Action/Comment/Update items (which the employee can discuss via a chat). When violations of a type cross the policy threshold, the System raises an EmployeeViolationTrigger proposing the policy's action (with an Amount for deductions), which enters New and awaits review. Consequences reach two other modules: Suspensions run through the Requests role-chain approval (the live list shows "Pending HR Admin's Review (0/3)") and are recovered in Payroll (RecoveredInPayrollId); deductions and payroll exemptions land in the payroll run. Three separate exemption types exist — from a policy, from a payroll run, and from milestone emails.
Verified live: the routes (/dashboard/disciplinary/{policies, violation-types, violations, triggers, suspensions}; the bare /dashboard/disciplinary 404s), each screen's columns and actions, and — crucially — two behaviours in real data:
Also verified policy exemptions render as counts ("Improper dressing — 17 employees exempted").