FAILURE MAP
← Case archive

FA-94098 / Shift rostering labor rules / Member archive

Duplicate shift records double count one worker · case 03

A worker with overlapping duplicate entries covers a slot twice.

Member previewVariant 3 · 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: worker dedupe 1[[0, 2, 4], [1, 0, 6], [5, 1, 2]][[0, 2, 4], [1, 0, 6], [2, 2, 4], [5, 1, 2]]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 ↗