FAILURE MAP
← Case archive

FA-94093 / Shift rostering labor rules / Member archive

Trainees counted as full heads · case 03

Slots staffed only by trainees appear fully covered.

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: trainee weight 1[[0, 0, 2], [1, 2, 6]][[0, 0, 2], [1, 2, 6], [2, 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 ↗