HR & Payroll
A multi-country HR and payroll workspace built around effective-dated employment facts, attendance and leave records, statutory contribution rules, and derived settlement outputs. Its payroll engine consumes governed source data instead of copying legacy payroll results.

Template reference
This page explains the shipped workflow. The public repository contains the template's source and its maintained implementation notes.
How it works
- 1
Maintain employees, employments, terms, statutory facts, pay components, shifts, and leave rules.
- 2
Capture rosters, time, leave, claims, and repayment agreements as governed source facts.
- 3
Run the eight-stage payroll calculation: pick, validate, gather, measure, accumulate, contribute, settle, and persist.
- 4
Reconcile derived payslip lines, contributions, net pay, and employer cost against the documented financial oracle.
What it includes
- Employees, employments, employment terms, and statutory facts
- Component types, pay components, contribution treatments, rates, and overtime rules
- Shift definitions, rosters, time entries, leave, claims, and repayment agreements
- Payroll runs, payslips, lines, contribution outputs, and source tracing
- Platform approvals on source mutations — no duplicate approval state in domain models
Who it's for
- HR and people operations teams running multi-entity or multi-country payroll
- Payroll and finance teams reconciling statutory calculation outputs
- Organizations replacing spreadsheet payroll with governed source facts
Collections
| Collection | Purpose |
|---|---|
| employees | Person identity and core HR records. |
| employments | Employment records connecting people and companies. |
| employment_terms | Effective-dated contractual and payroll terms. |
| employment_statutory_facts | Effective-dated statutory standing for employment. |
| pay_components | Company pay items classified through component types. |
| payroll_runs | Derived payroll settlement runs. |
| payslips | Persisted per-employment settlement outputs. |
Apps
- hr_controller — people, payroll, scheduling, time, leave, claims, and repayment agreements
- hr_employee — self-service views for the workforce
Outcomes teams track
- Explicit source-to-payslip tracing for every derived settlement
- Complete statutory treatment decisions before a component type can activate
- Reconciliation that exposes unexplained differences instead of masking them
Start from this template
We can provision this workspace, adapt its records and screens, and release it through preview and production checkpoints.