Status: Faithful inventory of the archived entities, enums and controller families. This is not an exhaustive executable API specification: payloads, method/route pairs, status codes and numeric enum IDs are not supplied by the source.

Entity and relationship map

All listed domain records are TenantDb, company-scoped in the source. Names below are code symbols; a conceptual field list is not a complete database schema.

Record Documented fields / relationship
ViolationPolicy EmployeeViolationTypeId, ViolationActionId, ViolationCount, HasThreshold; references type/action.
ViolationPolicyExemption Connects a policy and Person; policy automation exemption.
ViolationAction Catalog of the six consequence types below.
EmployeeViolation PersonId (offender), optional TargetPersonId (affected person), EmployeeViolationTypeId, EmployeeViolationSourceId, EmployeeViolationStatusId.
EmployeeViolationItem Child timeline item with type, state and status; Action/Comment/Update are item types, not incident statuses.
EmployeeViolationTrigger ViolationActionId, Amount, EmployeeViolationTriggerStatusId; proposed consequence awaiting review. Complete trigger-to-policy/incident foreign-key schema is not provided.
EmployeeSuspension EmployeeRequestId → Requests; IsSuspended, SuspensionDate, IsReinstated, ReinstatementDate; HasBeenRecovered, RecoveredInPayrollId → Payroll.
PayrollExemption PayrollId, PersonId, StartDate, StopDate, Period, IntervalId; run/period exclusion, not recovery.
MilestoneEmailExemption PersonId; communications preference, not policy or payroll exemption.

Task articles establish paid/unpaid suspension choice; the archive does not name its persistence column. The source lists read models as ViewEmployeeViolation(+Item, +Trigger), ViewViolationPolicy(+Exemption), ViewEmployeeSuspension and ViewPayrollExemption. This is grouped source notation, not an expanded declaration of table/view names; verify exact declarations before writing SQL.

Enum dictionary

Keep source spelling, including StatuParams; no numeric assignments are inferred.

Enum Values
ViolationActionParams Deduction, Demotion, Redeployment, Suspension, Termination, Probation.
EmployeeViolationSourceParams Employee, System.
EmployeeViolationStatuParams New, Approved, Declined.
EmployeeViolationTriggerStatuParams New, Approved, Declined.
EmployeeViolationItemTypeParams Action, Comment, Update.
EmployeeViolationItemStatuParams Not started, In progress, Completed.
EmployeeViolationItemStateParams Upcoming, Current, Ending, Due, Other.

Incident approval, trigger approval, request-chain progress, suspension lifecycle and payroll recovery are independent. A timeline Completed item is not proof of paid recovery or completed case review.

API inventory — not a generated route catalog

Controller prefix Archived scope Exact fragments supplied by source
Admin/Disciplinary (31 operations) Policies/types CRUD; violations, attachments, triggers, suspensions/bulk/batch; policy/payroll exemptions. view/policies, selectviolations, view/violations, selectviolationtriggers, selectsuspensions, selectsuspensionschedules. Other action names are described, not exhaustively enumerated.
Disciplinary (6) Shared action/status lookups and download. Individual routes/methods not enumerated.
Employee/Disciplinary (5) My violations, response/comment, create violation request. Individual routes/methods not enumerated.
Employee/MileStoneEmailExemptions (3) Email preference opt-in/out. Individual routes/methods not enumerated.

Counts describe the archived controller inventory, not current endpoint coverage. Archived screens also call middleware /admin/disciplinary/*; the middleware/core split is not completely mapped. UI routes in 03 · User flows & screen map are not API endpoints.

Authentication, validation and consistency contracts

Class [Authorize]; Authorization: Bearer <token>; tenant from claims. The named view permission does not establish every write/approval grant. Verify action-level record scope and evidence-download access in the actual handler.

The archive does not specify full request/response schemas, attachment limits, paging, structured errors, validation timing, currency/rounding, callback signatures, SQL procedures or safe retry keys. Do not invent these. Before implementation, capture actual DTOs/handlers and recipient contracts, including threshold count/reset/deduplication and suspension approval/payroll apply/reversal. A New trigger is not an execution receipt; a successful approval is not proof that every downstream effect completed.

Sources: Disciplinary & violations — technical view · Disciplinary — API reference.