Audience. Backend engineers, DBAs, integration teams. Companion to business.md.
Source files referenced are paths from the repo root.
⚠️ VERIFY markers flag claims that need engineering review — code patterns I'm inferring from but haven't fully validated, or behaviours that live in external SPs.
Table of Contents
- Architecture map
- Entity model
- The request state machine
- Workflow configuration storage
- Stored procedure contracts
- Service layer — RequestService
- Service layer — AdminRequestService
- Service layer — Approval_WorkflowsService and ApprovalWorkflowService
- API surface
- Caching strategy
- Notification fan-out
- Audit trail
- Working-day computation
- Leave balance bookkeeping
- Loan integration push
- Routing details — what spReviewEmployeeRequest must do
- Dead and dormant code