Missed rest break
The rule
Staff get a rest break for each block of hours they work: here, one for every 4 hours, counting a block once the day goes past it (4 hours of work calls for none, 4 hours and a minute for one, 8 hours and a minute for two). A day with fewer punched breaks than its work calls for is a missed break, which a supervisor follows up (and some employers pay a premium for).
Who uses it
Employers who must give rest breaks and prove they did: California and other states with rest break rules, and employers in Canada, Europe and Australia with breaks in law or in an award. Also any employer whose safety rules require breaks on long shifts (drivers, machine operators).
How the recipe does it
Configuration only: a package (package.toml) of one policy layer with
the standard missed_break step, on each workday.
[[layer]]id = "breaks"[[layer.step]]id = "breaks"uses = "standard/missed_break"params = { every = "4h" }- The day’s work is added up, and one break is due for each
everyof work it goes past. - The breaks taken are the day’s punched breaks (
break_starttobreak_end). - With fewer breaks than due, a
missed_breakexception is raised about the day, saying how many were due and how many taken. It is at the workday’s start, and an approval that waits on exceptions waits on it.
Work and breaks are in the workday each starts in: on a night shift, a
break after midnight counts for the next workday. Use standard/attribute
if your policy keeps a night shift on one workday.
Parameters
| Parameter | Meaning (default) |
|---|---|
every | Work that calls for one break ("4h"); a day exactly this long calls for none. |
kind | The exception raised ("missed_break"). |
What the scenarios show
one-break-for-each-four-hours: exactly 4 hours, 4 hours and a minute with no break, a 7 hour 45 minute day with its break, and an 8 hour 45 minute day with only one of two breaks.a-night-shift-across-midnight: a break taken after midnight is the next workday’s, which has the work that calls for it.
Legal note
This is a common way companies implement a missed break check; check the rules where you operate. Rules differ on how many breaks are due for how many hours, whether the “major fraction” of a block counts, and on what a missed break costs.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/missed_break. 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 = "missed_break"version = "1.0.0"description = "A workday whose hours call for more rest breaks than were punched raises a missed_break exception."
# One break due for each 4 hours a day's work goes past; fewer punched# breaks raises missed_break about the day.[[layer]]id = "breaks"[[layer.step]]id = "breaks"uses = "standard/missed_break"params = { every = "4h" }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 night shift from 20:00 to 04:30 with a break at midnight: each segment is in the workday it starts in. Monday has 4 hours of work, which call for no break; the break and the 4 hours 15 minutes after it are Tuesday's, which has the one break its work calls for. No exception
description = "A night shift from 20:00 to 04:30 with a break at midnight: each segment is in the workday it starts in. Monday has 4 hours of work, which call for no break; the break and the 4 hours 15 minutes after it are Tuesday's, which has the one break its work calls for. No exception"
punch = [ { at = "2026-10-05 20:00", kind = "in" }, { at = "2026-10-06 00:00", kind = "break_start" }, { at = "2026-10-06 00:15", kind = "break_end" }, { at = "2026-10-06 04:30", kind = "out" },]
[policy]zone = "America/Chicago"
[expect]week = "2026-10-05"days = { "2026-10-05" = "4h", "2026-10-06" = "4h 15m" }Monday's exactly 4 hours call for no break; Tuesday's 4 hours and a minute call for one, and none was taken; Wednesday's 7 hours 45 minutes of work have their one break; Thursday's 8 hours 45 minutes call for two and have one
description = "Monday's exactly 4 hours call for no break; Tuesday's 4 hours and a minute call for one, and none was taken; Wednesday's 7 hours 45 minutes of work have their one break; Thursday's 8 hours 45 minutes call for two and have one"
punch = [ { at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 12:01", kind = "out" }, { at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 10:00", kind = "break_start" }, { at = "2026-10-07 10:15", kind = "break_end" }, { at = "2026-10-07 16:00", kind = "out" }, { at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 10:00", kind = "break_start" }, { at = "2026-10-08 10:15", kind = "break_end" }, { at = "2026-10-08 17:00", kind = "out" },]
[policy]zone = "America/Chicago"
[expect]week = "2026-10-05"exceptions = [ { kind = "missed_break", at = "2026-10-06 00:00" }, { kind = "missed_break", at = "2026-10-08 00:00" },]