FA-93972 / Shift rostering labor rules / Member archive
Callback at the exact guarantee end merges into the old window · case 02
A callback starting exactly when the previous guarantee ends gets no guarantee of its own.
Case contract
Callback work intervals [start, end] and a minimum guarantee in minutes. Sorted by start, each callback that does not start inside the current guarantee window opens a new window from its start to max(end, start + guarantee); a callback starting before the window end extends the window to its own end if later. Return [paid minutes as the sum of window lengths, window count].
Why this case matters
Callback and show-up minimum-pay rules routinely double pay or underpay when callbacks cluster.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: window merge boundary 1 | [300, 1] | [450, 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 ↗