{"abstract":"Employees with daily overtime early in the week hit weekly overtime too soon.","category":"Payroll withholding rules","checks":10,"contract":"Input seven daily hour counts (workweek order). If all seven days are worked, day 7 hours are 1.5x up to 8 and double beyond 8. Other days: first 8 regular, 8-12 at 1.5x, over 12 double; regular hours beyond a weekly total of 40 regular hours become 1.5x. Return [regular, overtime, double].","contract_signature":"x","evaluation_group":"w2-payroll-withholding-daily-weekly-overtime","failed_approach":"The attempt counts double-time hours toward the threshold instead.","family":"w2-payroll-withholding-daily-weekly-overtime-weekly-regular-hour-room","id":"FA-59266","implementations":{"attempt":{"sha256":"4cc2829aa3f5f60d04ae22025ff2ad560bf1dbe1bb1bb159a2c4a38f35d087cb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    hours = x\n    reg = ot = dt = 0\n    worked_all = all(h > 0 for h in hours)\n    for i, h in enumerate(hours):\n        if i == 6 and worked_all:\n            ot += min(h, 8)\n            dt += max(0, h - 8)\n            continue\n        d_reg = min(h, 8)\n        d_ot = max(0, min(h, 12) - 8)\n        d_dt = max(0, h - 12)\n        room = max(0, 40 - reg - dt)\n        if d_reg > room:\n            d_ot += d_reg - room\n            d_reg = room\n        reg += d_reg\n        ot += d_ot\n        dt += d_dt\n    return [reg, ot, dt]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression', [8, 7, 14, 0, 12, 0, 8], [39, 8, 2]), ('regression (boundary)', [10, 10, 10, 10, 10, 0, 0], [40, 10, 0]), ('partial-repair probe', [14, 9, 8, 7, 0, 12, 0], [39, 9, 2]), ('partial-repair probe', [8, 8, 7, 8, 0, 14, 6], [40, 9, 2]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 0, 0, 8, 0, 0, 8], [16, 0, 0]), ('normal control', [0, 8, 0, 1, 6, 7, 6], [28, 0, 0]), ('normal control', [0, 8, 0, 6, 0, 0, 12], [22, 4, 0]), ('normal control', [12, 0, 8, 0, 12, 0, 13], [32, 12, 1])], [('regression', [14, 9, 8, 7, 0, 12, 0], [39, 9, 2]), ('regression', [12, 12, 8, 7, 0, 8, 0], [39, 8, 0]), ('partial-repair probe', [8, 8, 7, 8, 0, 14, 6], [40, 9, 2]), ('partial-repair probe', [13, 8, 0, 0, 12, 14, 8], [40, 12, 3]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 0, 0, 7, 10, 8, 0], [23, 2, 0]), ('normal control', [8, 8, 5, 0, 0, 10, 0], [29, 2, 0]), ('normal control', [0, 7, 12, 8, 0, 7, 0], [30, 4, 0]), ('normal control', [0, 4, 4, 9, 8, 8, 0], [32, 1, 0])], [('regression', [8, 8, 7, 8, 0, 14, 6], [40, 9, 2]), ('regression', [6, 8, 9, 0, 8, 3, 8], [40, 2, 0]), ('partial-repair probe', [12, 8, 7, 14, 8, 0, 4], [40, 11, 2]), ('partial-repair probe', [0, 11, 8, 14, 0, 8, 12], [40, 11, 2]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 12, 0, 0, 10, 8, 0], [24, 6, 0]), ('normal control', [0, 0, 7, 0, 6, 8, 12], [29, 4, 0]), ('normal control', [0, 12, 8, 0, 7, 0, 8], [31, 4, 0]), ('normal control', [0, 2, 8, 8, 12, 12, 0], [34, 8, 0])], [('regression', [13, 8, 0, 0, 12, 14, 8], [40, 12, 3]), ('regression', [0, 12, 10, 8, 8, 12, 0], [40, 10, 0]), ('partial-repair probe', [7, 8, 12, 14, 0, 0, 12], [39, 12, 2]), ('partial-repair probe', [8, 14, 0, 9, 9, 0, 8], [40, 6, 2]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [8, 8, 0, 12, 12, 0, 0], [32, 8, 0]), ('normal control', [8, 0, 0, 12, 8, 0, 7], [31, 4, 0]), ('normal control', [7, 0, 8, 0, 8, 12, 0], [31, 4, 0]), ('normal control', [9, 9, 6, 8, 0, 12, 0], [38, 6, 0])], [('regression', [12, 8, 7, 14, 8, 0, 4], [40, 11, 2]), ('regression', [8, 7, 14, 0, 12, 0, 8], [39, 8, 2]), ('partial-repair probe', [8, 11, 13, 10, 10, 5, 12], [40, 24, 5]), ('partial-repair probe', [0, 13, 6, 4, 8, 8, 8], [40, 6, 1]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 6, 0, 10, 9, 0, 8], [30, 3, 0]), ('normal control', [0, 0, 7, 0, 12, 12, 12], [31, 12, 0]), ('normal control', [0, 10, 0, 0, 12, 8, 11], [32, 9, 0]), ('normal control', [0, 12, 12, 8, 0, 0, 9], [32, 9, 0])]]\nfor i, (label, args, expected) in enumerate(fixtures[N-1]):\n    check(\"%s %d\" % (label, i), 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":"3533eab7ba54d6fb8ecab528c86b478647316b8d07258797fb6ed356a3973605","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    hours = x\n    reg = ot = dt = 0\n    worked_all = all(h > 0 for h in hours)\n    for i, h in enumerate(hours):\n        if i == 6 and worked_all:\n            ot += min(h, 8)\n            dt += max(0, h - 8)\n            continue\n        d_reg = min(h, 8)\n        d_ot = max(0, min(h, 12) - 8)\n        d_dt = max(0, h - 12)\n        room = max(0, 40 - reg - ot)\n        if d_reg > room:\n            d_ot += d_reg - room\n            d_reg = room\n        reg += d_reg\n        ot += d_ot\n        dt += d_dt\n    return [reg, ot, dt]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression', [8, 7, 14, 0, 12, 0, 8], [39, 8, 2]), ('regression (boundary)', [10, 10, 10, 10, 10, 0, 0], [40, 10, 0]), ('partial-repair probe', [14, 9, 8, 7, 0, 12, 0], [39, 9, 2]), ('partial-repair probe', [8, 8, 7, 8, 0, 14, 6], [40, 9, 2]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 0, 0, 8, 0, 0, 8], [16, 0, 0]), ('normal control', [0, 8, 0, 1, 6, 7, 6], [28, 0, 0]), ('normal control', [0, 8, 0, 6, 0, 0, 12], [22, 4, 0]), ('normal control', [12, 0, 8, 0, 12, 0, 13], [32, 12, 1])], [('regression', [14, 9, 8, 7, 0, 12, 0], [39, 9, 2]), ('regression', [12, 12, 8, 7, 0, 8, 0], [39, 8, 0]), ('partial-repair probe', [8, 8, 7, 8, 0, 14, 6], [40, 9, 2]), ('partial-repair probe', [13, 8, 0, 0, 12, 14, 8], [40, 12, 3]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 0, 0, 7, 10, 8, 0], [23, 2, 0]), ('normal control', [8, 8, 5, 0, 0, 10, 0], [29, 2, 0]), ('normal control', [0, 7, 12, 8, 0, 7, 0], [30, 4, 0]), ('normal control', [0, 4, 4, 9, 8, 8, 0], [32, 1, 0])], [('regression', [8, 8, 7, 8, 0, 14, 6], [40, 9, 2]), ('regression', [6, 8, 9, 0, 8, 3, 8], [40, 2, 0]), ('partial-repair probe', [12, 8, 7, 14, 8, 0, 4], [40, 11, 2]), ('partial-repair probe', [0, 11, 8, 14, 0, 8, 12], [40, 11, 2]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 12, 0, 0, 10, 8, 0], [24, 6, 0]), ('normal control', [0, 0, 7, 0, 6, 8, 12], [29, 4, 0]), ('normal control', [0, 12, 8, 0, 7, 0, 8], [31, 4, 0]), ('normal control', [0, 2, 8, 8, 12, 12, 0], [34, 8, 0])], [('regression', [13, 8, 0, 0, 12, 14, 8], [40, 12, 3]), ('regression', [0, 12, 10, 8, 8, 12, 0], [40, 10, 0]), ('partial-repair probe', [7, 8, 12, 14, 0, 0, 12], [39, 12, 2]), ('partial-repair probe', [8, 14, 0, 9, 9, 0, 8], [40, 6, 2]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [8, 8, 0, 12, 12, 0, 0], [32, 8, 0]), ('normal control', [8, 0, 0, 12, 8, 0, 7], [31, 4, 0]), ('normal control', [7, 0, 8, 0, 8, 12, 0], [31, 4, 0]), ('normal control', [9, 9, 6, 8, 0, 12, 0], [38, 6, 0])], [('regression', [12, 8, 7, 14, 8, 0, 4], [40, 11, 2]), ('regression', [8, 7, 14, 0, 12, 0, 8], [39, 8, 2]), ('partial-repair probe', [8, 11, 13, 10, 10, 5, 12], [40, 24, 5]), ('partial-repair probe', [0, 13, 6, 4, 8, 8, 8], [40, 6, 1]), ('boundary control', [8, 8, 8, 8, 8, 8, 8], [40, 16, 0]), ('boundary control', [0, 0, 0, 0, 0, 0, 13], [8, 4, 1]), ('normal control', [0, 6, 0, 10, 9, 0, 8], [30, 3, 0]), ('normal control', [0, 0, 7, 0, 12, 12, 12], [31, 12, 0]), ('normal control', [0, 10, 0, 0, 12, 8, 11], [32, 9, 0]), ('normal control', [0, 12, 12, 8, 0, 0, 9], [32, 9, 0])]]\nfor i, (label, args, expected) in enumerate(fixtures[N-1]):\n    check(\"%s %d\" % (label, i), 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":"A deterministic teaching model of a stipulated payroll rule with toy thresholds and rates. It makes no claim of conformance to any tax authority, statute or jurisdiction and is not payroll software. 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-payroll-withholding-daily-weekly-overtime-weekly-regular-hour-room","generated_at":"2026-09-29T14:46:34.704271+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Stacked daily and weekly overtime rules must not double count hours or miss the seventh consecutive day.","root_cause":"Daily overtime hours are counted toward the 40-hour weekly regular threshold.","sha256":"4728aac2e502b5777457f3d6fdb29787aa06bd1902a8267d42f94bb264c6d690","title":"Daily, weekly and seventh-day overtime split: weekly regular-hour room · 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":44.122,"exit_code":1,"observations":[{"actual":[38,9,2],"check":"regression 0","expected":[39,8,2],"passed":false},{"actual":[40,10,0],"check":"regression (boundary) 1","expected":[40,10,0],"passed":true},{"actual":[38,10,2],"check":"partial-repair probe 2","expected":[39,9,2],"passed":false},{"actual":[39,10,2],"check":"partial-repair probe 3","expected":[40,9,2],"passed":false},{"actual":[40,16,0],"check":"boundary control 4","expected":[40,16,0],"passed":true},{"actual":[8,4,1],"check":"boundary control 5","expected":[8,4,1],"passed":true},{"actual":[16,0,0],"check":"normal control 6","expected":[16,0,0],"passed":true},{"actual":[28,0,0],"check":"normal control 7","expected":[28,0,0],"passed":true},{"actual":[22,4,0],"check":"normal control 8","expected":[22,4,0],"passed":true},{"actual":[32,12,1],"check":"normal control 9","expected":[32,12,1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 0\", \"actual\": [38, 9, 2], \"expected\": [39, 8, 2], \"passed\": false}, {\"check\": \"regression (boundary) 1\", \"actual\": [40, 10, 0], \"expected\": [40, 10, 0], \"passed\": true}, {\"check\": \"partial-repair probe 2\", \"actual\": [38, 10, 2], \"expected\": [39, 9, 2], \"passed\": false}, {\"check\": \"partial-repair probe 3\", \"actual\": [39, 10, 2], \"expected\": [40, 9, 2], \"passed\": false}, {\"check\": \"boundary control 4\", \"actual\": [40, 16, 0], \"expected\": [40, 16, 0], \"passed\": true}, {\"check\": \"boundary control 5\", \"actual\": [8, 4, 1], \"expected\": [8, 4, 1], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [16, 0, 0], \"expected\": [16, 0, 0], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [28, 0, 0], \"expected\": [28, 0, 0], \"passed\": true}, {\"check\": \"normal control 8\", \"actual\": [22, 4, 0], \"expected\": [22, 4, 0], \"passed\": true}, {\"check\": \"normal control 9\", \"actual\": [32, 12, 1], \"expected\": [32, 12, 1], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.897,"exit_code":1,"observations":[{"actual":[32,15,2],"check":"regression 0","expected":[39,8,2],"passed":false},{"actual":[32,18,0],"check":"regression (boundary) 1","expected":[40,10,0],"passed":false},{"actual":[35,13,2],"check":"partial-repair probe 2","expected":[39,9,2],"passed":false},{"actual":[39,10,2],"check":"partial-repair probe 3","expected":[40,9,2],"passed":false},{"actual":[40,16,0],"check":"boundary control 4","expected":[40,16,0],"passed":true},{"actual":[8,4,1],"check":"boundary control 5","expected":[8,4,1],"passed":true},{"actual":[16,0,0],"check":"normal control 6","expected":[16,0,0],"passed":true},{"actual":[28,0,0],"check":"normal control 7","expected":[28,0,0],"passed":true},{"actual":[22,4,0],"check":"normal control 8","expected":[22,4,0],"passed":true},{"actual":[32,12,1],"check":"normal control 9","expected":[32,12,1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 0\", \"actual\": [32, 15, 2], \"expected\": [39, 8, 2], \"passed\": false}, {\"check\": \"regression (boundary) 1\", \"actual\": [32, 18, 0], \"expected\": [40, 10, 0], \"passed\": false}, {\"check\": \"partial-repair probe 2\", \"actual\": [35, 13, 2], \"expected\": [39, 9, 2], \"passed\": false}, {\"check\": \"partial-repair probe 3\", \"actual\": [39, 10, 2], \"expected\": [40, 9, 2], \"passed\": false}, {\"check\": \"boundary control 4\", \"actual\": [40, 16, 0], \"expected\": [40, 16, 0], \"passed\": true}, {\"check\": \"boundary control 5\", \"actual\": [8, 4, 1], \"expected\": [8, 4, 1], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [16, 0, 0], \"expected\": [16, 0, 0], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [28, 0, 0], \"expected\": [28, 0, 0], \"passed\": true}, {\"check\": \"normal control 8\", \"actual\": [22, 4, 0], \"expected\": [22, 4, 0], \"passed\": true}, {\"check\": \"normal control 9\", \"actual\": [32, 12, 1], \"expected\": [32, 12, 1], \"passed\": true}], \"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."}}