FAILURE MAP
← Case archive

FA-94008 / Shift rostering labor rules / Member archive

Leave days satisfy the fortnightly day-off minimum · case 03

Windows containing leave but no rostered days off pass the rest check.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

A day pattern (W worked, O rostered off, L leave) and the count of consecutive worked days immediately before it. Any worked day that makes the streak exceed six is a streak violation; O or L ends a streak. Every 14-day window fully inside the pattern (each start index) needs at least two O days; leave does not count as a rostered day off. Return [kind, index] rows: streaks in day order, then windows.

Why this case matters

Consecutive-day limits and fortnightly day-off minimums are standard roster labor rules.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: leave counted as rest 1[["streak", 15], ["streak", 16], ["streak", 17]][["streak", 15], ["streak", 16], ["streak", 17], ["rest14", 3], ["rest14", 4]]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 ↗