Skip to content

People and employment

Each person has an employment history. It records when they were hired and when they left. It records when they went on leave and came back. It also records details about them that pay rules care about, such as whether they’re exempt from overtime or which state they work in.

Like everything else the engine keeps, the history is only ever added to. Each change is recorded with the day it takes effect, who made it, and why.

ChangeWhat it records
HiredThe person starts, or is rehired after leaving.
TerminatedThe person leaves.
Leave started, leave endedA leave of absence begins or ends.
ChangedOnly their details change. For example, they become exempt, or move to another state.

A leave of absence here is part of the employment history. Time off asked for day by day, such as a week of vacation, is a leave request instead.

Changes are recorded like any other fact, through the attendance API or the command line.

A change can also say where the person is from its day. That means their organization in each of the tenant’s hierarchies, and their work location (employers, organizations and locations). Each person is also an employee record of one employer, which never changes. Someone who moves to another employer of the tenant starts a new record (employee records).

Any change can also set details. The engine calls them attributes. Examples are exempt, pay type, the state they work in, their payroll id, and whatever your policies and exports need. Details carry on from the day they’re set until a later change sets them again or clears them. Each timecard shows the person’s details as they stood on the last day of its pay period. That is what a payroll export writes.

A change can be dated in the past or the future. To fix one, record a new change that replaces it. To remove one, record a change that voids it. The original stays on record, as it does for labor entries.

From the history, the engine works out where a person stood on any day:

EmployedWhether they were employed that day.
HiredTheir latest hire on or before that day, and their very first.
TerminatedWhen they left, if they’ve left since their latest hire. Leaving also ends any leave they were on.
On leaveSince when, if they were on leave that day.
Days employedDays since their latest hire, while they’re employed.
DetailsEvery detail in force that day.

Read it with hourctl -t acme attend person <person> --day 2026-10-12, or GET /api/attendance/tenants/{tenant}/people/{person}?day=2026-10-12 (attendance API).

The engine does nothing with employment on its own. Being exempt, on leave, newly hired or terminated means whatever your policy’s rules say it means. Rules can read a person’s employment on any day.

Details, organizations and locations also decide which layers of the policy apply to someone, day by day. A layer for attributes.minor = true, for jurisdiction = us-ca, or for under unions:local-42 applies from the day the person’s employment says so (eligibility rules).

Example. Overtime over 8 hours a day applies only while someone isn’t exempt, and holiday pay starts after 90 days. Someone hired on July 20 becomes exempt on Wednesday, October 14:

DayWorkedTimecardWhy
Mon, Oct 12 (a holiday)nothingno holiday payonly 84 days employed
Tue, Oct 1310 hours8.00 work, 2.00 overtimenot yet exempt
Wed, Oct 1410 hours10.00 workexempt

Change the history (correct the hire date, say) and the affected timecards are worked out again, like any other change.