FAILURE MAP
← Case archive

FA-94000 / Shift rostering labor rules / Member archive

Final fourteen-day window never checked · case 05

A rest shortfall in the last fortnight of the roster is not reported.

Member previewVariant 5 · 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 count 1[["streak", 0], ["streak", 8], ["streak", 9], ["streak", 17], ["streak", 18], ["rest14", 2], ["rest14", 3], ["rest14", 4], ["rest14", 5], ["rest14", 11], ["rest14", 12], ["rest14", 13]][["streak", 0], ["streak", 8], ["streak", 9], ["streak", 17], ["streak", 18], ["rest14", 2], ["rest14", 3], ["rest14", 4], ["rest14", 5], ["rest14", 11], ["rest14", 12], ["rest14", 13], ["rest14", 14]]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 ↗