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

  1. Architecture map
  2. Entity model
  3. The request state machine
  4. Workflow configuration storage
  5. Stored procedure contracts
  6. Service layer — RequestService
  7. Service layer — AdminRequestService
  8. Service layer — Approval_WorkflowsService and ApprovalWorkflowService
  9. API surface
  10. Caching strategy
  11. Notification fan-out
  12. Audit trail
  13. Working-day computation
  14. Leave balance bookkeeping
  15. Loan integration push
  16. Routing details — what spReviewEmployeeRequest must do
  17. Dead and dormant code