FAILURE MAP
← Case archive

FA-93929 / Shift rostering labor rules / Member archive

Meal deadline measured from midnight instead of shift start · case 04

Shifts starting after midnight report every meal as late.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: meal deadline origin 1{"late": [1], "meals_required": 1, "missing_meal": 0, "missing_rest": 0}{"late": [], "meals_required": 1, "missing_meal": 0, "missing_rest": 0}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 ↗