FAILURE MAP
← Case archive

FA-93954 / Shift rostering labor rules / Member archive

Meal logged outside the shift satisfies the entitlement · case 04

A meal taken before clock-in or after clock-out cancels the missing-meal finding.

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 outside shift 1{"late": [], "meals_required": 1, "missing_meal": 0, "missing_rest": 1}{"late": [], "meals_required": 1, "missing_meal": 1, "missing_rest": 1}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 ↗