FAILURE MAP
← Case archive

FA-93855 / Shift rostering labor rules / Member archive

Exactly-minimum rest flagged as a short rest violation · case 05

A roster giving precisely the required rest is rejected.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input shifts as [worker, start, end] absolute minutes and a minimum rest "HH:MM". For each worker, walk shifts by start time, comparing each start with the latest end seen so far (and that shift index): a negative gap is an overlap, a gap below the minimum rest is short_rest; exactly the minimum is compliant. Return [worker, earlier index, later index, kind] rows ordered by worker then start.

Why this case matters

Rest-period validation is the most common roster labor rule; errors either hide fatigue risks or block legal rosters.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: rest threshold inclusive 1[["ana", 4, 3, "short_rest"], ["ana", 3, 9, "short_rest"], ["ben", 6, 0, "short_rest"], ["ben", 7, 1, "short_rest"], ["chi", 10, 2, "short_rest"], ["chi", 2, 8, "short_rest"], ["chi", 8, 5, "overlap"]][["ana", 4, 3, "short_rest"], ["ana", 3, 9, "short_rest"], ["ben", 6, 0, "short_rest"], ["ben", 7, 1, "short_rest"], ["chi", 10, 2, "short_rest"], ["chi", 8, 5, "overlap"]]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 ↗