Meal and break attestation
The rule
Where meal and rest breaks are owed, punches alone do not prove they were taken: a person may be called back from lunch without punching, or cut a break short at a supervisor’s request. So at clock-out the person confirms they got their breaks, or says which they did not and why:
- a break missed, cut short or taken late is one the employer did not provide, and pays its premium even where the punches look compliant;
- a meal the person waived of their own choice owes no premium, where the law allows a waiver (a first meal on a day of no more than 6 hours);
- a day of work the person has not attested is followed up.
Who uses it
Employers in states with meal and rest break premiums (California’s is the best known): retail, restaurants, warehouses, healthcare.
How the recipe does it
The app the person clocks out at sends what they confirm as an
attestation fact, beside the punch: the workday, and the breaks not
taken as due, each with its kind, which one, the issue and the reason.
{ "attestation": { "id": "104552-2026-10-05", "workday": "2026-10-05", "recorded": "2026-10-05T23:31:00Z", "breaks": [{ "break": "meal", "issue": "missed", "reason": "called back to cover the counter" }] } }The package’s layer pays the premiums from the punches first, then reads the attestation with three business rules:
[[layer.step]]id = "attested_meal"uses = "standard/attested_break_premium"params = { break = "meal", category = "meal_premium" }
[[layer.step]]id = "attested_rest"uses = "standard/attested_break_premium"params = { break = "rest", category = "rest_premium" }
[[layer.step]]id = "meal_waiver"uses = "standard/attested_meal_waiver"params = { premium_step = "meal_premium", up_to = "6h", to = "meal_premium_waived" }
[[layer.step]]id = "attested"uses = "standard/attestation_required"attested_break_premiumpays the premium for a break attested missed, short or late, unless the day has the premium already: one premium a day for each kind of break, from the punches or from the attestation.attested_meal_waivertakes back the premium themeal_premiumstep paid on a day of no more than 6 hours whose first meal is attested waived: it goes tomeal_premium_waived, a category set up as not paid. A policy that allows no waiver leaves the rule out.attestation_requiredraisesattestation_missingabout a day of work, once its work has ended, with no attestation. An attestation recorded later settles it.
A person who attests a day again (a mistake put right) has the attestation stored last stand.
Parameters
| Parameter | Meaning |
|---|---|
break | (attested_break_premium) The kind of break: meal or rest. |
premium, category | (attested_break_premium) The premium paid, and its category. |
premium_step | (attested_meal_waiver) The id of the step whose premium a waiver takes back. |
meal | (attested_meal_waiver) Which of the day’s meals the waiver is of (1, the first). |
up_to | (attested_meal_waiver) The longest day a waiver holds on. |
to | (attested_meal_waiver) Where the premium taken back goes. |
after, kind | (attestation_required) How much work a day has before it needs an attestation, and the exception raised. |
What the scenarios show
a-break-not-provided-is-paid-though-the-punches-look-compliant: a meal attested missed and a rest break attested cut short each pay their premium, though the punches show them taken; a day attested with every break taken pays nothing.a-meal-waived-on-a-short-day-owes-no-premium: a waiver on a day of 5 hours 30 minutes takes the premium back; on a day of 8 hours it does not hold.a-day-not-attested-is-raised-for-review: a day of work ended with no attestation is an exception; a day still being worked is not yet.
Legal note
This is a common way employers record meal and rest breaks; check the rules where you operate. Which breaks are owed, when a meal may be waived and on how long a day, and what makes a break one the employer did not provide differ by law and by court decision: the business rules’ parameters say them.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/break_attestation. 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 = "break_attestation"version = "1.0.0"description = "At clock-out the person confirms they got their meal and rest breaks, or says which they did not and why: a break the employer did not provide pays its premium even where the punches look compliant, a meal waived of the person's own choice on a short day owes none, and a day left unattested is raised for review."
# Punched lunches go to meal and breaks to rest_break. The premiums are# paid from the punches first (meal_premium, rest_break_premium); then# from what the person attested: a meal or a rest break missed, cut short# or taken late pays its premium, once a day for each kind. A first meal# waived on a day of no more than 6 hours owes no meal premium: it goes to# meal_premium_waived, a category set up as not paid. A day of work with# no attestation is an exception for review.[[layer]]id = "breaks"settings = { categories = { break = "rest_break", lunch = "meal" } }[[layer.step]]id = "meal_premium"uses = "standard/meal_premium"params = { by = "5h" }
[[layer.step]]id = "rest_premium"uses = "standard/rest_break_premium"params = { every = "4h", from = "3h30m" }
[[layer.step]]id = "attested_meal"uses = "standard/attested_break_premium"params = { break = "meal", category = "meal_premium" }
[[layer.step]]id = "attested_rest"uses = "standard/attested_break_premium"params = { break = "rest", category = "rest_premium" }
[[layer.step]]id = "meal_waiver"uses = "standard/attested_meal_waiver"params = { premium_step = "meal_premium", up_to = "6h", to = "meal_premium_waived" }
[[layer.step]]id = "attested"uses = "standard/attestation_required"Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
Each day's punches show a lunch at noon and two rest breaks, as due. On Monday the person attests they missed the meal, called back to cover the counter: an hour of meal_premium. On Tuesday the person attests the second rest break was cut short by a delivery: an hour of rest_premium. Wednesday is attested with every break taken: nothing
description = "Each day's punches show a lunch at noon and two rest breaks, as due. On Monday the person attests they missed the meal, called back to cover the counter: an hour of meal_premium. On Tuesday the person attests the second rest break was cut short by a delivery: an hour of rest_premium. Wednesday is attested with every break taken: nothing"
punch = [ { at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 10:00", kind = "break_start" }, { at = "2026-10-05 10:10", kind = "break_end" }, { at = "2026-10-05 12:00", kind = "lunch_start" }, { at = "2026-10-05 12:30", kind = "lunch_end" }, { at = "2026-10-05 14:30", kind = "break_start" }, { at = "2026-10-05 14:40", kind = "break_end" }, { at = "2026-10-05 16:30", kind = "out" }, { at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 10:00", kind = "break_start" }, { at = "2026-10-06 10:10", kind = "break_end" }, { at = "2026-10-06 12:00", kind = "lunch_start" }, { at = "2026-10-06 12:30", kind = "lunch_end" }, { at = "2026-10-06 14:30", kind = "break_start" }, { at = "2026-10-06 14:40", kind = "break_end" }, { at = "2026-10-06 16:30", kind = "out" }, { at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 10:00", kind = "break_start" }, { at = "2026-10-07 10:10", kind = "break_end" }, { at = "2026-10-07 12:00", kind = "lunch_start" }, { at = "2026-10-07 12:30", kind = "lunch_end" }, { at = "2026-10-07 14:30", kind = "break_start" }, { at = "2026-10-07 14:40", kind = "break_end" }, { at = "2026-10-07 16:30", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[attestation]]workday = "2026-10-05"recorded = "2026-10-05 16:30"breaks = [{ break = "meal", issue = "missed", reason = "called back to cover the counter" }]
[[attestation]]workday = "2026-10-06"recorded = "2026-10-06 16:30"breaks = [{ break = "rest", number = 2, issue = "short", reason = "cut short by a delivery" }]
[[attestation]]workday = "2026-10-07"recorded = "2026-10-07 16:30"
[[category]]id = "meal"worked = falsepaid = false
[[category]]id = "rest_break"worked = false
[[category]]id = "meal_premium"worked = false
[[category]]id = "rest_premium"worked = false
[expect]week = "2026-10-05"stamps = [ "2026-10-05 00:00-01:00 meal_premium: attested_meal [[email protected]/breaks rev 1]: added 1h in meal_premium: meal break missed, attested", "2026-10-06 00:00-01:00 rest_premium: attested_rest [[email protected]/breaks rev 1]: added 1h in rest_premium: rest break short, attested",]Monday is attested, every break taken: nothing to review. Tuesday's work ended with no attestation: an attestation_missing exception about the day, for someone to follow up. Wednesday's work has not ended yet (the person is still clocked in): nothing is asked of it until it has
description = "Monday is attested, every break taken: nothing to review. Tuesday's work ended with no attestation: an attestation_missing exception about the day, for someone to follow up. Wednesday's work has not ended yet (the person is still clocked in): nothing is asked of it until it has"
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:00", kind = "out" }, { at = "2026-10-07 08:00", kind = "in" },]
[policy]zone = "America/Los_Angeles"
[[attestation]]workday = "2026-10-05"recorded = "2026-10-05 12:00"
[[category]]id = "rest_break"worked = false
[[category]]id = "rest_premium"worked = false
[expect]week = "2026-10-05"exceptions = [ { kind = "attestation_missing", at = "2026-10-06 00:00" },]Monday is 5 hours 30 minutes of work and a rest break, with no meal past the fifth hour: the punches owe an hour of meal_premium, but the person attests they waived the meal of their own choice, and a first meal may be waived on a day of no more than 6 hours: the hour goes to meal_premium_waived, not paid. Tuesday is 8 hours with its rest breaks, no meal, and the same waiver attested, but past 6 hours a waiver does not hold: the hour is paid
description = "Monday is 5 hours 30 minutes of work and a rest break, with no meal past the fifth hour: the punches owe an hour of meal_premium, but the person attests they waived the meal of their own choice, and a first meal may be waived on a day of no more than 6 hours: the hour goes to meal_premium_waived, not paid. Tuesday is 8 hours with its rest breaks, no meal, and the same waiver attested, but past 6 hours a waiver does not hold: the hour is paid"
punch = [ { at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 10:00", kind = "break_start" }, { at = "2026-10-05 10:10", kind = "break_end" }, { at = "2026-10-05 13:40", kind = "out" }, { at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 10:00", kind = "break_start" }, { at = "2026-10-06 10:10", kind = "break_end" }, { at = "2026-10-06 14:00", kind = "break_start" }, { at = "2026-10-06 14:10", kind = "break_end" }, { at = "2026-10-06 16:20", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[attestation]]workday = "2026-10-05"recorded = "2026-10-05 13:40"breaks = [{ break = "meal", issue = "waived", reason = "wanted to leave early" }]
[[attestation]]workday = "2026-10-06"recorded = "2026-10-06 16:20"breaks = [{ break = "meal", issue = "waived", reason = "wanted to leave early" }]
[[category]]id = "meal"worked = falsepaid = false
[[category]]id = "rest_break"worked = false
[[category]]id = "meal_premium"worked = false
[[category]]id = "meal_premium_waived"worked = falsepaid = false
[[category]]id = "rest_premium"worked = false
[expect]week = "2026-10-05"stamps = [ "2026-10-05 00:00-01:00 meal_premium_waived: meal_premium [[email protected]/breaks rev 1]: added 1h in meal_premium: no meal started by the end of hour 5h", "2026-10-05 00:00-01:00 meal_premium_waived: meal_waiver [[email protected]/breaks rev 1]: moved 1h from meal_premium to meal_premium_waived: meal 1 waived, attested", "2026-10-06 00:00-01:00 meal_premium: meal_premium [[email protected]/breaks rev 1]: added 1h in meal_premium: no meal started by the end of hour 5h",]exceptions = []