FAILURE MAP
← Case archive

FA-94087 / Shift rostering labor rules / Member archive

Shift covering part of a slot counts toward staffing · case 02

A worker leaving halfway through a slot is counted for the whole slot.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Shifts [worker, role, start, end], a list of required headcount per slot and a slot length. A shift covers slot k only if it spans the whole slot [k*slot, (k+1)*slot). Coverage is counted in half-heads: trainees 1, staff and supervisors 2; a worker counts once per slot at their best role weight. Return [slot, have, need] (half-heads) for every understaffed slot.

Why this case matters

Coverage checks decide whether a roster meets minimum staffing ratios.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: partial slot coverage 1[[0, 3, 4], [2, 5, 6], [3, 5, 6]][[0, 1, 4], [2, 5, 6], [3, 5, 6]]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 ↗