{"abstract":"Long days pay minutes past 12 hours at both 1.5x and 2x.","category":"Shift rostering labor rules","checks":8,"contract":"Seven daily worked minutes (Mon..Sun) and an hourly rate in cents. Daily: first 480 minutes regular, next 240 at 1.5x, beyond 720 at 2x. If all seven days are worked, day 7 pays its first 480 minutes at 1.5x and the rest at 2x. Regular minutes above 2400 in the week move to 1.5x (daily overtime minutes never count toward the weekly threshold). Pay is computed exactly and rounded half up to a cent once. Return [regular, ot15, ot2, pay_cents].","contract_signature":"days, rate","evaluation_group":"w2-shift-rostering-labor-rules-daily-weekly-overtime","failed_approach":"Dropping the whole 1.5x band on days over 12 hours underpays hours 8 to 12.","family":"w2-shift-rostering-labor-rules-daily-weekly-overtime-daily-overtime-band-cap","id":"FA-93876","implementations":{"attempt":{"sha256":"d4097d8a6d4735b52511e5801e6a12e9cb5d99a42681e350ce53a7fb0872511a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(days, rate):\n    reg = ot15 = ot2 = 0\n    seventh = all(m > 0 for m in days)\n    for d, m in enumerate(days):\n        if d == 6 and seventh:\n            ot15 += min(m, 480)\n            ot2 += max(m - 480, 0)\n            continue\n        reg += min(m, 480)\n        ot15 += min(max(m - 480, 0), 240) if m <= 720 else 0\n        ot2 += max(m - 720, 0)\n    excess = max(reg - 2400, 0)\n    reg -= excess\n    ot15 += excess\n    units = reg * rate * 2 + ot15 * rate * 3 + ot2 * rate * 4\n    pay = (units + 60) // 120\n    return [reg, ot15, ot2, pay]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: daily overtime band cap 1', [[900, 0, 0, 0, 0, 0, 0], 1725], [480, 240, 180, 34500]),\n  ('regression variant: daily overtime band cap 2', [[480, 0, 480, 721, 720, 240, 720], 1810],\n   [2400, 960, 1, 115900]),\n  ('partial repair guard 3', [[900, 720, 721, 600, 201, 720, 0], 2250], [2400, 1281, 181, 175631]),\n  ('boundary control 4', [[480, 480, 480, 480, 480, 480, 0], 2000], [2400, 480, 0, 104000]),\n  ('boundary control 5', [[9, 0, 0, 0, 0, 0, 0], 30], [9, 0, 0, 5]),\n  ('normal control 6', [[600, 510, 300, 300, 510, 480, 300], 1725], [2400, 600, 0, 94875]),\n  ('normal control 7', [[900, 721, 0, 900, 481, 450, 780], 30], [2400, 1411, 421, 2679]),\n  ('normal control 8', [[600, 450, 721, 600, 481, 720, 480], 1500], [2400, 1651, 1, 121963])],\n [('regression: daily overtime band cap 1', [[481, 119, 900, 256, 240, 20, 480], 2000],\n   [1595, 721, 180, 101217]),\n  ('regression variant: daily overtime band cap 2', [[0, 240, 0, 540, 780, 0, 0], 30], [1200, 300, 60, 885]),\n  ('partial repair guard 3', [[450, 0, 908, 480, 721, 540, 540], 2250], [2400, 1050, 189, 163238]),\n  ('boundary control 4', [[0, 480, 480, 480, 480, 480, 480], 1500], [2400, 480, 0, 78000]),\n  ('boundary control 5', [[480, 480, 480, 480, 480, 480, 0], 2000], [2400, 480, 0, 104000]),\n  ('normal control 6', [[780, 480, 0, 240, 0, 0, 481], 1500], [1680, 241, 60, 54038]),\n  ('normal control 7', [[510, 510, 480, 600, 480, 600, 480], 2000], [2400, 1260, 0, 143000]),\n  ('normal control 8', [[721, 150, 480, 450, 504, 540, 450], 30], [2400, 894, 1, 1872])],\n [('regression: daily overtime band cap 1', [[540, 450, 450, 900, 720, 240, 540], 2250],\n   [2400, 1200, 240, 175500]),\n  ('regression variant: daily overtime band cap 2', [[480, 721, 240, 481, 498, 450, 481], 1725],\n   [2400, 949, 2, 110041]),\n  ('partial repair guard 3', [[450, 780, 450, 480, 481, 481, 0], 1500], [2400, 662, 60, 87825]),\n  ('boundary control 4', [[27, 0, 0, 0, 0, 0, 0], 30], [27, 0, 0, 14]),\n  ('boundary control 5', [[0, 480, 480, 480, 480, 480, 480], 1500], [2400, 480, 0, 78000]),\n  ('normal control 6', [[480, 480, 480, 480, 300, 480, 510], 90], [2400, 780, 30, 5445]),\n  ('normal control 7', [[0, 37, 780, 0, 240, 240, 240], 30], [1237, 240, 60, 859]),\n  ('normal control 8', [[900, 600, 900, 481, 737, 381, 780], 1500], [2400, 1702, 677, 157675])],\n [('regression: daily overtime band cap 1', [[0, 721, 240, 480, 900, 480, 0], 2250],\n   [2160, 480, 181, 121575]),\n  ('regression variant: daily overtime band cap 2', [[480, 600, 600, 720, 480, 780, 540], 2000],\n   [2400, 1680, 120, 172000]),\n  ('partial repair guard 3', [[335, 540, 0, 900, 0, 540, 240], 1725], [2015, 360, 180, 83806]),\n  ('boundary control 4', [[600, 600, 600, 600, 600, 0, 0], 1500], [2400, 600, 0, 82500]),\n  ('boundary control 5', [[27, 0, 0, 0, 0, 0, 0], 30], [27, 0, 0, 14]),\n  ('normal control 6', [[721, 150, 480, 450, 504, 540, 450], 30], [2400, 894, 1, 1872]),\n  ('normal control 7', [[510, 480, 300, 300, 600, 300, 510], 1725], [2340, 630, 30, 96169]),\n  ('normal control 8', [[300, 600, 510, 600, 510, 600, 600], 1810], [2400, 1200, 120, 133940])],\n [('regression: daily overtime band cap 1', [[780, 780, 721, 450, 0, 0, 0], 2250], [1890, 720, 121, 120450]),\n  ('regression variant: daily overtime band cap 2', [[480, 480, 481, 946, 720, 540, 450], 2000],\n   [2400, 1471, 226, 168617]),\n  ('partial repair guard 3', [[0, 14, 481, 481, 720, 720, 900], 2250], [2400, 736, 180, 144900]),\n  ('boundary control 4', [[540, 540, 540, 540, 540, 540, 60], 2000], [2400, 900, 0, 125000]),\n  ('boundary control 5', [[600, 600, 600, 600, 600, 0, 0], 1500], [2400, 600, 0, 82500]),\n  ('normal control 6', [[300, 480, 600, 300, 510, 510, 510], 2000], [2400, 780, 30, 121000]),\n  ('normal control 7', [[300, 480, 600, 300, 480, 480, 480], 2000], [2400, 720, 0, 116000]),\n  ('normal control 8', [[510, 480, 300, 510, 300, 480, 480], 30], [2400, 660, 0, 1695])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"1a4933728bd9cf7171185372208a142eb727f0452cf532c20ea3fe8222592f5b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(days, rate):\n    reg = ot15 = ot2 = 0\n    seventh = all(m > 0 for m in days)\n    for d, m in enumerate(days):\n        if d == 6 and seventh:\n            ot15 += min(m, 480)\n            ot2 += max(m - 480, 0)\n            continue\n        reg += min(m, 480)\n        ot15 += max(m - 480, 0)\n        ot2 += max(m - 720, 0)\n    excess = max(reg - 2400, 0)\n    reg -= excess\n    ot15 += excess\n    units = reg * rate * 2 + ot15 * rate * 3 + ot2 * rate * 4\n    pay = (units + 60) // 120\n    return [reg, ot15, ot2, pay]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: daily overtime band cap 1', [[900, 0, 0, 0, 0, 0, 0], 1725], [480, 240, 180, 34500]),\n  ('regression variant: daily overtime band cap 2', [[480, 0, 480, 721, 720, 240, 720], 1810],\n   [2400, 960, 1, 115900]),\n  ('partial repair guard 3', [[900, 720, 721, 600, 201, 720, 0], 2250], [2400, 1281, 181, 175631]),\n  ('boundary control 4', [[480, 480, 480, 480, 480, 480, 0], 2000], [2400, 480, 0, 104000]),\n  ('boundary control 5', [[9, 0, 0, 0, 0, 0, 0], 30], [9, 0, 0, 5]),\n  ('normal control 6', [[600, 510, 300, 300, 510, 480, 300], 1725], [2400, 600, 0, 94875]),\n  ('normal control 7', [[900, 721, 0, 900, 481, 450, 780], 30], [2400, 1411, 421, 2679]),\n  ('normal control 8', [[600, 450, 721, 600, 481, 720, 480], 1500], [2400, 1651, 1, 121963])],\n [('regression: daily overtime band cap 1', [[481, 119, 900, 256, 240, 20, 480], 2000],\n   [1595, 721, 180, 101217]),\n  ('regression variant: daily overtime band cap 2', [[0, 240, 0, 540, 780, 0, 0], 30], [1200, 300, 60, 885]),\n  ('partial repair guard 3', [[450, 0, 908, 480, 721, 540, 540], 2250], [2400, 1050, 189, 163238]),\n  ('boundary control 4', [[0, 480, 480, 480, 480, 480, 480], 1500], [2400, 480, 0, 78000]),\n  ('boundary control 5', [[480, 480, 480, 480, 480, 480, 0], 2000], [2400, 480, 0, 104000]),\n  ('normal control 6', [[780, 480, 0, 240, 0, 0, 481], 1500], [1680, 241, 60, 54038]),\n  ('normal control 7', [[510, 510, 480, 600, 480, 600, 480], 2000], [2400, 1260, 0, 143000]),\n  ('normal control 8', [[721, 150, 480, 450, 504, 540, 450], 30], [2400, 894, 1, 1872])],\n [('regression: daily overtime band cap 1', [[540, 450, 450, 900, 720, 240, 540], 2250],\n   [2400, 1200, 240, 175500]),\n  ('regression variant: daily overtime band cap 2', [[480, 721, 240, 481, 498, 450, 481], 1725],\n   [2400, 949, 2, 110041]),\n  ('partial repair guard 3', [[450, 780, 450, 480, 481, 481, 0], 1500], [2400, 662, 60, 87825]),\n  ('boundary control 4', [[27, 0, 0, 0, 0, 0, 0], 30], [27, 0, 0, 14]),\n  ('boundary control 5', [[0, 480, 480, 480, 480, 480, 480], 1500], [2400, 480, 0, 78000]),\n  ('normal control 6', [[480, 480, 480, 480, 300, 480, 510], 90], [2400, 780, 30, 5445]),\n  ('normal control 7', [[0, 37, 780, 0, 240, 240, 240], 30], [1237, 240, 60, 859]),\n  ('normal control 8', [[900, 600, 900, 481, 737, 381, 780], 1500], [2400, 1702, 677, 157675])],\n [('regression: daily overtime band cap 1', [[0, 721, 240, 480, 900, 480, 0], 2250],\n   [2160, 480, 181, 121575]),\n  ('regression variant: daily overtime band cap 2', [[480, 600, 600, 720, 480, 780, 540], 2000],\n   [2400, 1680, 120, 172000]),\n  ('partial repair guard 3', [[335, 540, 0, 900, 0, 540, 240], 1725], [2015, 360, 180, 83806]),\n  ('boundary control 4', [[600, 600, 600, 600, 600, 0, 0], 1500], [2400, 600, 0, 82500]),\n  ('boundary control 5', [[27, 0, 0, 0, 0, 0, 0], 30], [27, 0, 0, 14]),\n  ('normal control 6', [[721, 150, 480, 450, 504, 540, 450], 30], [2400, 894, 1, 1872]),\n  ('normal control 7', [[510, 480, 300, 300, 600, 300, 510], 1725], [2340, 630, 30, 96169]),\n  ('normal control 8', [[300, 600, 510, 600, 510, 600, 600], 1810], [2400, 1200, 120, 133940])],\n [('regression: daily overtime band cap 1', [[780, 780, 721, 450, 0, 0, 0], 2250], [1890, 720, 121, 120450]),\n  ('regression variant: daily overtime band cap 2', [[480, 480, 481, 946, 720, 540, 450], 2000],\n   [2400, 1471, 226, 168617]),\n  ('partial repair guard 3', [[0, 14, 481, 481, 720, 720, 900], 2250], [2400, 736, 180, 144900]),\n  ('boundary control 4', [[540, 540, 540, 540, 540, 540, 60], 2000], [2400, 900, 0, 125000]),\n  ('boundary control 5', [[600, 600, 600, 600, 600, 0, 0], 1500], [2400, 600, 0, 82500]),\n  ('normal control 6', [[300, 480, 600, 300, 510, 510, 510], 2000], [2400, 780, 30, 121000]),\n  ('normal control 7', [[300, 480, 600, 300, 480, 480, 480], 2000], [2400, 720, 0, 116000]),\n  ('normal control 8', [[510, 480, 300, 510, 300, 480, 480], 30], [2400, 660, 0, 1695])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Stipulated toy labor rule for a bounded roster model; it is not legal advice and does not claim conformance with any jurisdiction, award, or collective agreement. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-shift-rostering-labor-rules-daily-weekly-overtime-daily-overtime-band-cap","generated_at":"2026-09-29T14:51:59.141585+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Overtime classification mistakes are a classic payroll-roster defect: pyramiding, seventh-day rules and rounding stage all change what workers are paid.","root_cause":"The 1.5x daily band is not capped at the 240 minutes between the 8- and 12-hour thresholds.","sha256":"3d34bfc20ba1566ed09ac5c1d98965d5883caeeb2ba6bf09c949d94ba4582988","title":"Double-time minutes also counted in the time-and-a-half band · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":40.027,"exit_code":1,"observations":[{"actual":[480,0,180,24150],"check":"regression: daily overtime band cap 1","expected":[480,240,180,34500],"passed":false},{"actual":[2400,720,1,105040],"check":"regression variant: daily overtime band cap 2","expected":[2400,960,1,115900],"passed":false},{"actual":[2400,801,181,148631],"check":"partial repair guard 3","expected":[2400,1281,181,175631],"passed":false},{"actual":[2400,480,0,104000],"check":"boundary control 4","expected":[2400,480,0,104000],"passed":true},{"actual":[9,0,0,5],"check":"boundary control 5","expected":[9,0,0,5],"passed":true},{"actual":[2400,600,0,94875],"check":"normal control 6","expected":[2400,600,0,94875],"passed":true},{"actual":[2400,451,421,1959],"check":"normal control 7","expected":[2400,1411,421,2679],"passed":false},{"actual":[2400,1411,1,112963],"check":"normal control 8","expected":[2400,1651,1,121963],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: daily overtime band cap 1\", \"actual\": [480, 0, 180, 24150], \"expected\": [480, 240, 180, 34500], \"passed\": false}, {\"check\": \"regression variant: daily overtime band cap 2\", \"actual\": [2400, 720, 1, 105040], \"expected\": [2400, 960, 1, 115900], \"passed\": false}, {\"check\": \"partial repair guard 3\", \"actual\": [2400, 801, 181, 148631], \"expected\": [2400, 1281, 181, 175631], \"passed\": false}, {\"check\": \"boundary control 4\", \"actual\": [2400, 480, 0, 104000], \"expected\": [2400, 480, 0, 104000], \"passed\": true}, {\"check\": \"boundary control 5\", \"actual\": [9, 0, 0, 5], \"expected\": [9, 0, 0, 5], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [2400, 600, 0, 94875], \"expected\": [2400, 600, 0, 94875], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [2400, 451, 421, 1959], \"expected\": [2400, 1411, 421, 2679], \"passed\": false}, {\"check\": \"normal control 8\", \"actual\": [2400, 1411, 1, 112963], \"expected\": [2400, 1651, 1, 121963], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.802,"exit_code":1,"observations":[{"actual":[480,420,180,42263],"check":"regression: daily overtime band cap 1","expected":[480,240,180,34500],"passed":false},{"actual":[2400,961,1,115946],"check":"regression variant: daily overtime band cap 2","expected":[2400,960,1,115900],"passed":false},{"actual":[2400,1462,181,185813],"check":"partial repair guard 3","expected":[2400,1281,181,175631],"passed":false},{"actual":[2400,480,0,104000],"check":"boundary control 4","expected":[2400,480,0,104000],"passed":true},{"actual":[9,0,0,5],"check":"boundary control 5","expected":[9,0,0,5],"passed":true},{"actual":[2400,600,0,94875],"check":"normal control 6","expected":[2400,600,0,94875],"passed":true},{"actual":[2400,1832,421,2995],"check":"normal control 7","expected":[2400,1411,421,2679],"passed":false},{"actual":[2400,1652,1,122000],"check":"normal control 8","expected":[2400,1651,1,121963],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: daily overtime band cap 1\", \"actual\": [480, 420, 180, 42263], \"expected\": [480, 240, 180, 34500], \"passed\": false}, {\"check\": \"regression variant: daily overtime band cap 2\", \"actual\": [2400, 961, 1, 115946], \"expected\": [2400, 960, 1, 115900], \"passed\": false}, {\"check\": \"partial repair guard 3\", \"actual\": [2400, 1462, 181, 185813], \"expected\": [2400, 1281, 181, 175631], \"passed\": false}, {\"check\": \"boundary control 4\", \"actual\": [2400, 480, 0, 104000], \"expected\": [2400, 480, 0, 104000], \"passed\": true}, {\"check\": \"boundary control 5\", \"actual\": [9, 0, 0, 5], \"expected\": [9, 0, 0, 5], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [2400, 600, 0, 94875], \"expected\": [2400, 600, 0, 94875], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [2400, 1832, 421, 2995], \"expected\": [2400, 1411, 421, 2679], \"passed\": false}, {\"check\": \"normal control 8\", \"actual\": [2400, 1652, 1, 122000], \"expected\": [2400, 1651, 1, 121963], \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}