FA-93928 / Shift rostering labor rules / Member archive
Meal deadline measured from midnight instead of shift start · case 03
Shifts starting after midnight report every meal as late.
Case contract
Shift [start, end] and breaks [start, end, kind]. Meals required: one if the shift exceeds 300 minutes, two if it exceeds 600. A meal counts if it lasts at least 30 minutes and lies inside the shift; the k-th counted meal (by start) is late if it starts after shift start + 300*k. Rest breaks required: none under 210 minutes, else (L + 120) // 240 (one per four hours or major fraction); a rest counts if kind is rest and it lasts at least 10 minutes. Return required meals, late meal ordinals, missing meals and missing rests.
Why this case matters
Break-entitlement checks gate roster publication and trigger premium pay; every boundary here is a distinct audit finding.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: meal deadline origin 1 | {"late": [1], "meals_required": 2, "missing_meal": 1, "missing_rest": 2} | {"late": [], "meals_required": 2, "missing_meal": 1, "missing_rest": 2} | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗