Attendance points
The rule
A no-fault attendance policy gives each occurrence a number of points: half a point for arriving late or leaving early past a grace period, a full point for a no show. Excused absences (approved leave, holidays, days taken off the schedule) earn none. Reaching a set total within a rolling period (often 12 months) leads to a warning or further steps.
Who uses it
Manufacturing, distribution, call centres, retail and healthcare: large hourly workforces where a clear, uniform points scale replaces case by case judgement of each absence.
How the recipe does it
Configuration only: a package (package.toml) of one layer running the
standard late, early and no_show steps, each raising an
attendance_point exception with its points: half a point for arriving
or leaving more than 5 minutes off the shift, a point for a no show.
[[layer]]id = "points"[[layer.step]]id = "late"uses = "standard/late"params = { grace = "5m", kind = "attendance_point", points = 0.5 }[[layer.step]]id = "early"uses = "standard/early"params = { grace = "5m", kind = "attendance_point", points = 0.5 }[[layer.step]]id = "no_show"uses = "standard/no_show"params = { kind = "attendance_point", points = 1 }late: the first work of a scheduled shift, started by an in punch more thangraceafter the shift’s start. A lunch out and back in the middle of the shift is not the shift’s first work.early: the last work of a scheduled shift, ended by an out punch more thangracebefore the shift’s end.no_show: a scheduled day with no work that no day taken off, holiday or approved leave excuses, about the day.- Each is an
attendance_pointexception whose detail says the points and why:0.5 points: late,1 point: no show.
An occurrence that earns no points is left out of the policy: a policy
that counts no points for leaving early has no early step.
The policy keeps nothing between pay periods, so the running total is a
report over the attendance_point exceptions (each has its day and its
points in the detail), counted over whatever rolling period the policy
sets. That keeps the points auditable: every point is an exception a
supervisor can see, explain or resolve.
Parameters
| Step | Parameter | Meaning |
|---|---|---|
| all three | kind | The exception raised: attendance_point. |
| all three | points | Points for the occurrence: 0.5 late or early, 1 a no show. |
late, early | grace | How far past the start, or before the end, is still on time (default none). |
What the scenarios show
a-week-of-points: on time at the grace, late, early, both on one day (two points), and a no show about the day.excused-days-and-lunch-earn-none: lunch out and back, approved vacation, a holiday, a day off and an unscheduled day earn nothing; only an early end does.
Legal note
This is a common way companies implement attendance points; check the rules where you operate. Protected absences (sick leave, family and medical leave, disability-related absence) must not earn points: record them as leave so they are excused.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/attendance_points. Test it, or your own copy of it, with hourctl attend test, and publish it with hourctl attend pkg publish.
The policy package
The package’s layers, with the standard steps each one runs and their settings:
name = "attendance_points"version = "1.0.0"description = "Late arrivals, early departures and no shows each earn points, raised as exceptions that say how many, for a points tally."
# Each occurrence is an attendance_point exception with its points: half a# point for arriving more than 5 minutes late or leaving more than 5# minutes early, a point for a scheduled day not worked and not excused.[[layer]]id = "points"[[layer.step]]id = "late"uses = "standard/late"params = { grace = "5m", kind = "attendance_point", points = 0.5 }[[layer.step]]id = "early"uses = "standard/early"params = { grace = "5m", kind = "attendance_point", points = 0.5 }[[layer.step]]id = "no_show"uses = "standard/no_show"params = { kind = "attendance_point", points = 1 }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
A 08:00 to 16:00 shift, five minutes' grace: Monday on time (in at the grace); Tuesday late; Wednesday left early; Thursday both, two points about the same stretch of work; Friday a no show, about the day
description = "A 08:00 to 16:00 shift, five minutes' grace: Monday on time (in at the grace); Tuesday late; Wednesday left early; Thursday both, two points about the same stretch of work; Friday a no show, about the day"
punch = [ { at = "2026-10-05 08:05", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" }, { at = "2026-10-06 08:06", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" }, { at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 15:00", kind = "out" }, { at = "2026-10-08 08:30", kind = "in" }, { at = "2026-10-08 15:30", kind = "out" },]
[policy]zone = "America/Chicago"
[[shift_definition]]id = "days"start = "08:00"end = "16:00"days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[expect]week = "2026-10-05"exceptions = [ { kind = "attendance_point", at = "2026-10-06 08:06", detail = "0.5 points: late" }, { kind = "attendance_point", at = "2026-10-07 08:00", detail = "0.5 points: left early" }, { kind = "attendance_point", at = "2026-10-08 08:30", detail = "0.5 points: late" }, { kind = "attendance_point", at = "2026-10-08 08:30", detail = "0.5 points: left early" }, { kind = "attendance_point", at = "2026-10-09 00:00", detail = "1 point: no show" },]No points for what is excused or on time: Monday's lunch out and back is neither late nor early; Tuesday is approved vacation; Wednesday a holiday; Thursday taken off; Friday unscheduled. Only Monday's end, ten minutes early, is a point
description = "No points for what is excused or on time: Monday's lunch out and back is neither late nor early; Tuesday is approved vacation; Wednesday a holiday; Thursday taken off; Friday unscheduled. Only Monday's end, ten minutes early, is a point"
punch = [ { at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-05 12:30", kind = "in" }, { at = "2026-10-05 15:50", kind = "out" },]
[policy]zone = "America/Chicago"
[[category]]id = "vacation"worked = false
[[holiday]]id = "founders"name = "Founders Day"date = "2026-10-07"
[[shift_definition]]id = "days"start = "08:00"end = "16:00"days = ["monday", "tuesday", "wednesday", "thursday"]
[[leave]]category = "vacation"days = { "2026-10-06" = "8h" }recorded = "2026-09-28 09:00"
[[approval]]subject = "leave:lv1:2026-10-06"stage = "approval"decision = "approve"recorded = "2026-09-28 09:00"
[[schedule_override]]date = "2026-10-08"kind = "off"recorded = "2026-10-01 09:00"
[expect]week = "2026-10-05"exceptions = [{ kind = "attendance_point", at = "2026-10-05 12:30" }]