FAILURE MAP
← Case archive

FA-94004 / Shift rostering labor rules / Member archive

Fortnight rest window slices thirteen days · case 04

A day off on the fourteenth day of a window is ignored, producing false shortfalls.

Member previewVariant 4 · 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: fortnight window length 1[["streak", 1], ["streak", 2], ["streak", 3], ["streak", 11], ["streak", 12], ["streak", 13], ["streak", 14], ["streak", 15], ["streak", 16], ["rest14", 0], ["rest14", 1], ["rest14", 2], ["rest14", 3], ["rest14", 4], ["rest14", 5], ["rest14", 6]][["streak", 1], ["streak", 2], ["streak", 3], ["streak", 11], ["streak", 12], ["streak", 13], ["streak", 14], ["streak", 15], ["streak", 16], ["rest14", 0], ["rest14", 1], ["rest14", 2], ["rest14", 3], ["rest14", 4], ["rest14", 5]]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 ↗