{"abstract":"Compliant shifts ending at 19:00 are rejected.","category":"Shift rostering labor rules","checks":8,"contract":"Toy youth rule: age 16 or older has no restrictions. Otherwise each shift [day, start, end] must lie within 07:00-19:00 (start >= 420, end <= 1140); daily total minutes may not exceed 180 on a listed school day or 480 otherwise; the weekly total may not exceed 1080 if the week has any school day, else 2400. Return window violations in shift order, then daily caps by day, then the weekly cap as [\"weekly_cap\", -1].","evaluation_group":"w2-shift-rostering-labor-rules-youth-worker-hour-limits","failed_approach":"Testing the start time against 19:00 misses shifts that run past it.","family":"w2-shift-rostering-labor-rules-youth-worker-hour-limits-evening-end-boundary","id":"FA-94071","implementations":{"attempt":{"sha256":"4d31f62f19cea951e49b014bf5538cf65844c1fe277e498b408a4167aff432d6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(age, shifts, school_days):\n    if age >= 16:\n        return []\n    out = []\n    per = {}\n    for d, st, en in shifts:\n        per[d] = per.get(d, 0) + en - st\n        if st < 420 or st > 1140:\n            out.append(['hours_window', d])\n    for d in sorted(per):\n        cap = 180 if d in school_days else 480\n        if per[d] > cap:\n            out.append(['daily_cap', d])\n    week_cap = 1080 if school_days else 2400\n    if sum(per.values()) > week_cap:\n        out.append(['weekly_cap', -1])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: evening end boundary 1', [15, [[5, 960, 1140]], []], []),\n  ('regression variant: evening end boundary 2',\n   [15, [[5, 1020, 1140], [4, 900, 1200], [5, 1080, 1140], [2, 1020, 1201]], [1, 2, 4]],\n   [['hours_window', 4], ['hours_window', 2], ['daily_cap', 2], ['daily_cap', 4]]),\n  ('partial repair guard 3', [14, [[6, 419, 539], [3, 1080, 1440], [4, 419, 659]], [0, 2, 3]],\n   [['hours_window', 6], ['hours_window', 3], ['hours_window', 4], ['daily_cap', 3]]),\n  ('boundary control 4', [15, [[5, 960, 1141]], []], [['hours_window', 5]]),\n  ('boundary control 5', [15, [[0, 900, 1081]], [0, 1, 2, 3, 4]], [['daily_cap', 0]]),\n  ('normal control 6', [14, [[5, 900, 1080], [1, 1020, 1080], [6, 1080, 1440]], [1, 3, 4, 5, 6]],\n   [['hours_window', 6], ['daily_cap', 6]]),\n  ('normal control 7',\n   [15, [[6, 1020, 1200], [4, 360, 540], [1, 1080, 1200], [5, 1080, 1261], [1, 960, 1140], [2, 360, 480]],\n    []],\n   [['hours_window', 6], ['hours_window', 4], ['hours_window', 1], ['hours_window', 5], ['hours_window', 2]]),\n  ('normal control 8',\n   [16, [[0, 420, 540], [6, 1080, 1261], [6, 419, 539], [1, 900, 1081], [1, 480, 540]], []], [])],\n [('regression: evening end boundary 1',\n   [15, [[2, 900, 1020], [3, 900, 1020], [0, 1020, 1140]], [0, 1, 2, 4, 6]], []),\n  ('regression variant: evening end boundary 2',\n   [14, [[5, 1080, 1140], [2, 420, 720], [3, 1020, 1080], [3, 1020, 1140], [1, 420, 900], [6, 900, 1020]],\n    []],\n   []),\n  ('partial repair guard 3', [15, [[3, 1020, 1200], [1, 480, 660]], []], [['hours_window', 3]]),\n  ('boundary control 4', [14, [[5, 480, 960], [6, 480, 960], [0, 900, 1080], [2, 900, 1080]], [0, 2]],\n   [['weekly_cap', -1]]),\n  ('boundary control 5', [16, [[0, 300, 1300]], [0]], []),\n  ('normal control 6', [16, [[5, 1020, 1200], [6, 1080, 1320], [4, 480, 780]], []], []),\n  ('normal control 7',\n   [15, [[0, 1020, 1080], [6, 1020, 1260], [3, 1020, 1320], [6, 480, 660], [2, 480, 960]], []],\n   [['hours_window', 6], ['hours_window', 3]]),\n  ('normal control 8', [15, [[3, 900, 1020], [5, 1080, 1200], [2, 900, 1200]], []],\n   [['hours_window', 5], ['hours_window', 2]])],\n [('regression: evening end boundary 1',\n   [15, [[6, 360, 541], [1, 900, 960], [5, 480, 600], [1, 420, 660], [4, 900, 1020], [1, 1020, 1140]],\n    [0, 1, 4, 5]],\n   [['hours_window', 6], ['daily_cap', 1]]),\n  ('regression variant: evening end boundary 2',\n   [15, [[3, 419, 719], [5, 360, 420], [3, 480, 780], [0, 1080, 1200], [6, 1020, 1140], [1, 480, 661]], []],\n   [['hours_window', 3], ['hours_window', 5], ['hours_window', 0], ['daily_cap', 3]]),\n  ('partial repair guard 3',\n   [14, [[3, 960, 1141], [6, 1020, 1201], [2, 1080, 1260], [0, 1080, 1380], [6, 1080, 1320]], []],\n   [['hours_window', 3], ['hours_window', 6], ['hours_window', 2], ['hours_window', 0], ['hours_window', 6]]),\n  ('boundary control 4', [15, [[5, 960, 1140]], []], []),\n  ('boundary control 5', [15, [[0, 900, 1080]], [0, 1, 2, 3, 4]], []),\n  ('normal control 6',\n   [15, [[0, 1020, 1200], [3, 1020, 1200], [1, 360, 540], [1, 420, 480], [4, 419, 599], [1, 900, 960]],\n    [0, 1, 2, 3, 6]],\n   [['hours_window', 0], ['hours_window', 3], ['hours_window', 1], ['hours_window', 4], ['daily_cap', 1]]),\n  ('normal control 7', [15, [[1, 420, 480]], [0, 1, 2, 3, 5]], []),\n  ('normal control 8', [15, [[5, 420, 540], [6, 420, 601]], [0, 1, 4, 5, 6]], [['daily_cap', 6]])],\n [('regression: evening end boundary 1',\n   [14, [[4, 960, 1080], [3, 1080, 1380], [6, 420, 480], [6, 900, 1080], [1, 1020, 1140], [2, 420, 660]],\n    [0, 1, 3, 6]],\n   [['hours_window', 3], ['daily_cap', 3], ['daily_cap', 6]]),\n  ('regression variant: evening end boundary 2',\n   [14, [[4, 1080, 1380], [6, 1020, 1140], [1, 1020, 1200], [6, 480, 540]], [0, 2, 3, 4, 6]],\n   [['hours_window', 4], ['hours_window', 1], ['daily_cap', 4]]),\n  ('partial repair guard 3', [15, [[5, 480, 600], [2, 360, 540], [4, 960, 1260], [6, 419, 539]], []],\n   [['hours_window', 2], ['hours_window', 4], ['hours_window', 6]]),\n  ('boundary control 4', [15, [[1, 900, 1000], [1, 1020, 1120]], [1]], [['daily_cap', 1]]),\n  ('boundary control 5', [15, [[5, 960, 1141]], []], [['hours_window', 5]]),\n  ('normal control 6', [16, [[2, 1080, 1140], [2, 360, 600]], []], []),\n  ('normal control 7', [16, [[4, 480, 660], [5, 360, 840], [5, 420, 540], [5, 360, 420]], [0, 1, 2, 3, 4]],\n   []),\n  ('normal control 8',\n   [14, [[5, 960, 1141], [6, 1080, 1261], [0, 480, 780], [5, 360, 600], [6, 420, 601], [4, 960, 1080]],\n    [0, 1, 3, 6]],\n   [['hours_window', 5], ['hours_window', 6], ['hours_window', 5], ['daily_cap', 0], ['daily_cap', 6],\n    ['weekly_cap', -1]])],\n [('regression: evening end boundary 1', [14, [[5, 419, 659], [0, 900, 1140]], [1, 2, 5]],\n   [['hours_window', 5], ['daily_cap', 5]]),\n  ('regression variant: evening end boundary 2',\n   [14, [[6, 1020, 1140], [3, 419, 479], [2, 480, 960], [4, 1020, 1320], [4, 1080, 1200], [1, 360, 540]],\n    [0, 1, 3, 4]],\n   [['hours_window', 3], ['hours_window', 4], ['hours_window', 4], ['hours_window', 1], ['daily_cap', 4],\n    ['weekly_cap', -1]]),\n  ('partial repair guard 3',\n   [15, [[3, 420, 660], [0, 960, 1141], [5, 360, 540], [5, 960, 1260], [3, 1080, 1260], [2, 1080, 1440]],\n    [0, 2, 4, 5, 6]],\n   [['hours_window', 0], ['hours_window', 5], ['hours_window', 5], ['hours_window', 3], ['hours_window', 2],\n    ['daily_cap', 0], ['daily_cap', 2], ['daily_cap', 5], ['weekly_cap', -1]]),\n  ('boundary control 4', [15, [[0, 900, 1081]], [0, 1, 2, 3, 4]], [['daily_cap', 0]]),\n  ('boundary control 5', [14, [[5, 480, 960], [6, 480, 960], [0, 900, 1080], [2, 900, 1080]], [0, 2]],\n   [['weekly_cap', -1]]),\n  ('normal control 6', [14, [[5, 900, 1080], [0, 960, 1200]], [0, 1, 3]],\n   [['hours_window', 0], ['daily_cap', 0]]),\n  ('normal control 7',\n   [16, [[1, 420, 480], [0, 960, 1140], [0, 960, 1260], [3, 1020, 1201], [3, 900, 1080], [5, 1020, 1140]],\n    [0, 1, 2, 3, 5]],\n   []),\n  ('normal control 8',\n   [16, [[0, 900, 960], [5, 1020, 1201], [2, 960, 1200], [1, 960, 1440], [6, 960, 1260], [4, 420, 540]],\n    [2, 3, 4, 5, 6]],\n   [])]]\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":"519bacbb33eecb17444e2f47f2c2bce219102a62473b73ee7544b81f0e441412","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(age, shifts, school_days):\n    if age >= 16:\n        return []\n    out = []\n    per = {}\n    for d, st, en in shifts:\n        per[d] = per.get(d, 0) + en - st\n        if st < 420 or en >= 1140:\n            out.append(['hours_window', d])\n    for d in sorted(per):\n        cap = 180 if d in school_days else 480\n        if per[d] > cap:\n            out.append(['daily_cap', d])\n    week_cap = 1080 if school_days else 2400\n    if sum(per.values()) > week_cap:\n        out.append(['weekly_cap', -1])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: evening end boundary 1', [15, [[5, 960, 1140]], []], []),\n  ('regression variant: evening end boundary 2',\n   [15, [[5, 1020, 1140], [4, 900, 1200], [5, 1080, 1140], [2, 1020, 1201]], [1, 2, 4]],\n   [['hours_window', 4], ['hours_window', 2], ['daily_cap', 2], ['daily_cap', 4]]),\n  ('partial repair guard 3', [14, [[6, 419, 539], [3, 1080, 1440], [4, 419, 659]], [0, 2, 3]],\n   [['hours_window', 6], ['hours_window', 3], ['hours_window', 4], ['daily_cap', 3]]),\n  ('boundary control 4', [15, [[5, 960, 1141]], []], [['hours_window', 5]]),\n  ('boundary control 5', [15, [[0, 900, 1081]], [0, 1, 2, 3, 4]], [['daily_cap', 0]]),\n  ('normal control 6', [14, [[5, 900, 1080], [1, 1020, 1080], [6, 1080, 1440]], [1, 3, 4, 5, 6]],\n   [['hours_window', 6], ['daily_cap', 6]]),\n  ('normal control 7',\n   [15, [[6, 1020, 1200], [4, 360, 540], [1, 1080, 1200], [5, 1080, 1261], [1, 960, 1140], [2, 360, 480]],\n    []],\n   [['hours_window', 6], ['hours_window', 4], ['hours_window', 1], ['hours_window', 5], ['hours_window', 2]]),\n  ('normal control 8',\n   [16, [[0, 420, 540], [6, 1080, 1261], [6, 419, 539], [1, 900, 1081], [1, 480, 540]], []], [])],\n [('regression: evening end boundary 1',\n   [15, [[2, 900, 1020], [3, 900, 1020], [0, 1020, 1140]], [0, 1, 2, 4, 6]], []),\n  ('regression variant: evening end boundary 2',\n   [14, [[5, 1080, 1140], [2, 420, 720], [3, 1020, 1080], [3, 1020, 1140], [1, 420, 900], [6, 900, 1020]],\n    []],\n   []),\n  ('partial repair guard 3', [15, [[3, 1020, 1200], [1, 480, 660]], []], [['hours_window', 3]]),\n  ('boundary control 4', [14, [[5, 480, 960], [6, 480, 960], [0, 900, 1080], [2, 900, 1080]], [0, 2]],\n   [['weekly_cap', -1]]),\n  ('boundary control 5', [16, [[0, 300, 1300]], [0]], []),\n  ('normal control 6', [16, [[5, 1020, 1200], [6, 1080, 1320], [4, 480, 780]], []], []),\n  ('normal control 7',\n   [15, [[0, 1020, 1080], [6, 1020, 1260], [3, 1020, 1320], [6, 480, 660], [2, 480, 960]], []],\n   [['hours_window', 6], ['hours_window', 3]]),\n  ('normal control 8', [15, [[3, 900, 1020], [5, 1080, 1200], [2, 900, 1200]], []],\n   [['hours_window', 5], ['hours_window', 2]])],\n [('regression: evening end boundary 1',\n   [15, [[6, 360, 541], [1, 900, 960], [5, 480, 600], [1, 420, 660], [4, 900, 1020], [1, 1020, 1140]],\n    [0, 1, 4, 5]],\n   [['hours_window', 6], ['daily_cap', 1]]),\n  ('regression variant: evening end boundary 2',\n   [15, [[3, 419, 719], [5, 360, 420], [3, 480, 780], [0, 1080, 1200], [6, 1020, 1140], [1, 480, 661]], []],\n   [['hours_window', 3], ['hours_window', 5], ['hours_window', 0], ['daily_cap', 3]]),\n  ('partial repair guard 3',\n   [14, [[3, 960, 1141], [6, 1020, 1201], [2, 1080, 1260], [0, 1080, 1380], [6, 1080, 1320]], []],\n   [['hours_window', 3], ['hours_window', 6], ['hours_window', 2], ['hours_window', 0], ['hours_window', 6]]),\n  ('boundary control 4', [15, [[5, 960, 1140]], []], []),\n  ('boundary control 5', [15, [[0, 900, 1080]], [0, 1, 2, 3, 4]], []),\n  ('normal control 6',\n   [15, [[0, 1020, 1200], [3, 1020, 1200], [1, 360, 540], [1, 420, 480], [4, 419, 599], [1, 900, 960]],\n    [0, 1, 2, 3, 6]],\n   [['hours_window', 0], ['hours_window', 3], ['hours_window', 1], ['hours_window', 4], ['daily_cap', 1]]),\n  ('normal control 7', [15, [[1, 420, 480]], [0, 1, 2, 3, 5]], []),\n  ('normal control 8', [15, [[5, 420, 540], [6, 420, 601]], [0, 1, 4, 5, 6]], [['daily_cap', 6]])],\n [('regression: evening end boundary 1',\n   [14, [[4, 960, 1080], [3, 1080, 1380], [6, 420, 480], [6, 900, 1080], [1, 1020, 1140], [2, 420, 660]],\n    [0, 1, 3, 6]],\n   [['hours_window', 3], ['daily_cap', 3], ['daily_cap', 6]]),\n  ('regression variant: evening end boundary 2',\n   [14, [[4, 1080, 1380], [6, 1020, 1140], [1, 1020, 1200], [6, 480, 540]], [0, 2, 3, 4, 6]],\n   [['hours_window', 4], ['hours_window', 1], ['daily_cap', 4]]),\n  ('partial repair guard 3', [15, [[5, 480, 600], [2, 360, 540], [4, 960, 1260], [6, 419, 539]], []],\n   [['hours_window', 2], ['hours_window', 4], ['hours_window', 6]]),\n  ('boundary control 4', [15, [[1, 900, 1000], [1, 1020, 1120]], [1]], [['daily_cap', 1]]),\n  ('boundary control 5', [15, [[5, 960, 1141]], []], [['hours_window', 5]]),\n  ('normal control 6', [16, [[2, 1080, 1140], [2, 360, 600]], []], []),\n  ('normal control 7', [16, [[4, 480, 660], [5, 360, 840], [5, 420, 540], [5, 360, 420]], [0, 1, 2, 3, 4]],\n   []),\n  ('normal control 8',\n   [14, [[5, 960, 1141], [6, 1080, 1261], [0, 480, 780], [5, 360, 600], [6, 420, 601], [4, 960, 1080]],\n    [0, 1, 3, 6]],\n   [['hours_window', 5], ['hours_window', 6], ['hours_window', 5], ['daily_cap', 0], ['daily_cap', 6],\n    ['weekly_cap', -1]])],\n [('regression: evening end boundary 1', [14, [[5, 419, 659], [0, 900, 1140]], [1, 2, 5]],\n   [['hours_window', 5], ['daily_cap', 5]]),\n  ('regression variant: evening end boundary 2',\n   [14, [[6, 1020, 1140], [3, 419, 479], [2, 480, 960], [4, 1020, 1320], [4, 1080, 1200], [1, 360, 540]],\n    [0, 1, 3, 4]],\n   [['hours_window', 3], ['hours_window', 4], ['hours_window', 4], ['hours_window', 1], ['daily_cap', 4],\n    ['weekly_cap', -1]]),\n  ('partial repair guard 3',\n   [15, [[3, 420, 660], [0, 960, 1141], [5, 360, 540], [5, 960, 1260], [3, 1080, 1260], [2, 1080, 1440]],\n    [0, 2, 4, 5, 6]],\n   [['hours_window', 0], ['hours_window', 5], ['hours_window', 5], ['hours_window', 3], ['hours_window', 2],\n    ['daily_cap', 0], ['daily_cap', 2], ['daily_cap', 5], ['weekly_cap', -1]]),\n  ('boundary control 4', [15, [[0, 900, 1081]], [0, 1, 2, 3, 4]], [['daily_cap', 0]]),\n  ('boundary control 5', [14, [[5, 480, 960], [6, 480, 960], [0, 900, 1080], [2, 900, 1080]], [0, 2]],\n   [['weekly_cap', -1]]),\n  ('normal control 6', [14, [[5, 900, 1080], [0, 960, 1200]], [0, 1, 3]],\n   [['hours_window', 0], ['daily_cap', 0]]),\n  ('normal control 7',\n   [16, [[1, 420, 480], [0, 960, 1140], [0, 960, 1260], [3, 1020, 1201], [3, 900, 1080], [5, 1020, 1140]],\n    [0, 1, 2, 3, 5]],\n   []),\n  ('normal control 8',\n   [16, [[0, 900, 960], [5, 1020, 1201], [2, 960, 1200], [1, 960, 1440], [6, 960, 1260], [4, 420, 540]],\n    [2, 3, 4, 5, 6]],\n   [])]]\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"},"fixed":{"sha256":"acb8550264651813614b7b2bd3a8a2f743496d952ee9f83be79b6cbd78a459c4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(age, shifts, school_days):\n    if age >= 16:\n        return []\n    out = []\n    per = {}\n    for d, st, en in shifts:\n        per[d] = per.get(d, 0) + en - st\n        if st < 420 or en > 1140:\n            out.append(['hours_window', d])\n    for d in sorted(per):\n        cap = 180 if d in school_days else 480\n        if per[d] > cap:\n            out.append(['daily_cap', d])\n    week_cap = 1080 if school_days else 2400\n    if sum(per.values()) > week_cap:\n        out.append(['weekly_cap', -1])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: evening end boundary 1', [15, [[5, 960, 1140]], []], []),\n  ('regression variant: evening end boundary 2',\n   [15, [[5, 1020, 1140], [4, 900, 1200], [5, 1080, 1140], [2, 1020, 1201]], [1, 2, 4]],\n   [['hours_window', 4], ['hours_window', 2], ['daily_cap', 2], ['daily_cap', 4]]),\n  ('partial repair guard 3', [14, [[6, 419, 539], [3, 1080, 1440], [4, 419, 659]], [0, 2, 3]],\n   [['hours_window', 6], ['hours_window', 3], ['hours_window', 4], ['daily_cap', 3]]),\n  ('boundary control 4', [15, [[5, 960, 1141]], []], [['hours_window', 5]]),\n  ('boundary control 5', [15, [[0, 900, 1081]], [0, 1, 2, 3, 4]], [['daily_cap', 0]]),\n  ('normal control 6', [14, [[5, 900, 1080], [1, 1020, 1080], [6, 1080, 1440]], [1, 3, 4, 5, 6]],\n   [['hours_window', 6], ['daily_cap', 6]]),\n  ('normal control 7',\n   [15, [[6, 1020, 1200], [4, 360, 540], [1, 1080, 1200], [5, 1080, 1261], [1, 960, 1140], [2, 360, 480]],\n    []],\n   [['hours_window', 6], ['hours_window', 4], ['hours_window', 1], ['hours_window', 5], ['hours_window', 2]]),\n  ('normal control 8',\n   [16, [[0, 420, 540], [6, 1080, 1261], [6, 419, 539], [1, 900, 1081], [1, 480, 540]], []], [])],\n [('regression: evening end boundary 1',\n   [15, [[2, 900, 1020], [3, 900, 1020], [0, 1020, 1140]], [0, 1, 2, 4, 6]], []),\n  ('regression variant: evening end boundary 2',\n   [14, [[5, 1080, 1140], [2, 420, 720], [3, 1020, 1080], [3, 1020, 1140], [1, 420, 900], [6, 900, 1020]],\n    []],\n   []),\n  ('partial repair guard 3', [15, [[3, 1020, 1200], [1, 480, 660]], []], [['hours_window', 3]]),\n  ('boundary control 4', [14, [[5, 480, 960], [6, 480, 960], [0, 900, 1080], [2, 900, 1080]], [0, 2]],\n   [['weekly_cap', -1]]),\n  ('boundary control 5', [16, [[0, 300, 1300]], [0]], []),\n  ('normal control 6', [16, [[5, 1020, 1200], [6, 1080, 1320], [4, 480, 780]], []], []),\n  ('normal control 7',\n   [15, [[0, 1020, 1080], [6, 1020, 1260], [3, 1020, 1320], [6, 480, 660], [2, 480, 960]], []],\n   [['hours_window', 6], ['hours_window', 3]]),\n  ('normal control 8', [15, [[3, 900, 1020], [5, 1080, 1200], [2, 900, 1200]], []],\n   [['hours_window', 5], ['hours_window', 2]])],\n [('regression: evening end boundary 1',\n   [15, [[6, 360, 541], [1, 900, 960], [5, 480, 600], [1, 420, 660], [4, 900, 1020], [1, 1020, 1140]],\n    [0, 1, 4, 5]],\n   [['hours_window', 6], ['daily_cap', 1]]),\n  ('regression variant: evening end boundary 2',\n   [15, [[3, 419, 719], [5, 360, 420], [3, 480, 780], [0, 1080, 1200], [6, 1020, 1140], [1, 480, 661]], []],\n   [['hours_window', 3], ['hours_window', 5], ['hours_window', 0], ['daily_cap', 3]]),\n  ('partial repair guard 3',\n   [14, [[3, 960, 1141], [6, 1020, 1201], [2, 1080, 1260], [0, 1080, 1380], [6, 1080, 1320]], []],\n   [['hours_window', 3], ['hours_window', 6], ['hours_window', 2], ['hours_window', 0], ['hours_window', 6]]),\n  ('boundary control 4', [15, [[5, 960, 1140]], []], []),\n  ('boundary control 5', [15, [[0, 900, 1080]], [0, 1, 2, 3, 4]], []),\n  ('normal control 6',\n   [15, [[0, 1020, 1200], [3, 1020, 1200], [1, 360, 540], [1, 420, 480], [4, 419, 599], [1, 900, 960]],\n    [0, 1, 2, 3, 6]],\n   [['hours_window', 0], ['hours_window', 3], ['hours_window', 1], ['hours_window', 4], ['daily_cap', 1]]),\n  ('normal control 7', [15, [[1, 420, 480]], [0, 1, 2, 3, 5]], []),\n  ('normal control 8', [15, [[5, 420, 540], [6, 420, 601]], [0, 1, 4, 5, 6]], [['daily_cap', 6]])],\n [('regression: evening end boundary 1',\n   [14, [[4, 960, 1080], [3, 1080, 1380], [6, 420, 480], [6, 900, 1080], [1, 1020, 1140], [2, 420, 660]],\n    [0, 1, 3, 6]],\n   [['hours_window', 3], ['daily_cap', 3], ['daily_cap', 6]]),\n  ('regression variant: evening end boundary 2',\n   [14, [[4, 1080, 1380], [6, 1020, 1140], [1, 1020, 1200], [6, 480, 540]], [0, 2, 3, 4, 6]],\n   [['hours_window', 4], ['hours_window', 1], ['daily_cap', 4]]),\n  ('partial repair guard 3', [15, [[5, 480, 600], [2, 360, 540], [4, 960, 1260], [6, 419, 539]], []],\n   [['hours_window', 2], ['hours_window', 4], ['hours_window', 6]]),\n  ('boundary control 4', [15, [[1, 900, 1000], [1, 1020, 1120]], [1]], [['daily_cap', 1]]),\n  ('boundary control 5', [15, [[5, 960, 1141]], []], [['hours_window', 5]]),\n  ('normal control 6', [16, [[2, 1080, 1140], [2, 360, 600]], []], []),\n  ('normal control 7', [16, [[4, 480, 660], [5, 360, 840], [5, 420, 540], [5, 360, 420]], [0, 1, 2, 3, 4]],\n   []),\n  ('normal control 8',\n   [14, [[5, 960, 1141], [6, 1080, 1261], [0, 480, 780], [5, 360, 600], [6, 420, 601], [4, 960, 1080]],\n    [0, 1, 3, 6]],\n   [['hours_window', 5], ['hours_window', 6], ['hours_window', 5], ['daily_cap', 0], ['daily_cap', 6],\n    ['weekly_cap', -1]])],\n [('regression: evening end boundary 1', [14, [[5, 419, 659], [0, 900, 1140]], [1, 2, 5]],\n   [['hours_window', 5], ['daily_cap', 5]]),\n  ('regression variant: evening end boundary 2',\n   [14, [[6, 1020, 1140], [3, 419, 479], [2, 480, 960], [4, 1020, 1320], [4, 1080, 1200], [1, 360, 540]],\n    [0, 1, 3, 4]],\n   [['hours_window', 3], ['hours_window', 4], ['hours_window', 4], ['hours_window', 1], ['daily_cap', 4],\n    ['weekly_cap', -1]]),\n  ('partial repair guard 3',\n   [15, [[3, 420, 660], [0, 960, 1141], [5, 360, 540], [5, 960, 1260], [3, 1080, 1260], [2, 1080, 1440]],\n    [0, 2, 4, 5, 6]],\n   [['hours_window', 0], ['hours_window', 5], ['hours_window', 5], ['hours_window', 3], ['hours_window', 2],\n    ['daily_cap', 0], ['daily_cap', 2], ['daily_cap', 5], ['weekly_cap', -1]]),\n  ('boundary control 4', [15, [[0, 900, 1081]], [0, 1, 2, 3, 4]], [['daily_cap', 0]]),\n  ('boundary control 5', [14, [[5, 480, 960], [6, 480, 960], [0, 900, 1080], [2, 900, 1080]], [0, 2]],\n   [['weekly_cap', -1]]),\n  ('normal control 6', [14, [[5, 900, 1080], [0, 960, 1200]], [0, 1, 3]],\n   [['hours_window', 0], ['daily_cap', 0]]),\n  ('normal control 7',\n   [16, [[1, 420, 480], [0, 960, 1140], [0, 960, 1260], [3, 1020, 1201], [3, 900, 1080], [5, 1020, 1140]],\n    [0, 1, 2, 3, 5]],\n   []),\n  ('normal control 8',\n   [16, [[0, 900, 960], [5, 1020, 1201], [2, 960, 1200], [1, 960, 1440], [6, 960, 1260], [4, 420, 540]],\n    [2, 3, 4, 5, 6]],\n   [])]]\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-youth-worker-hour-limits-evening-end-boundary","generated_at":"2026-09-29T14:52:00.889031+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Minor-worker hour limits are strict roster constraints with many boundary conditions.","repair":"Only ends after 19:00 violate the window.","root_cause":"The latest end comparison is inclusive.","sha256":"62d9f5d376a4e2c457332597fad6b7aa539e20b9aa2109da16a1b731f80f37ea","title":"Shift ending exactly at 19:00 flagged outside permitted hours · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.533,"exit_code":1,"observations":[{"actual":[],"check":"regression: evening end boundary 1","expected":[],"passed":true},{"actual":[["daily_cap",2],["daily_cap",4]],"check":"regression variant: evening end boundary 2","expected":[["hours_window",4],["hours_window",2],["daily_cap",2],["daily_cap",4]],"passed":false},{"actual":[["hours_window",6],["hours_window",4],["daily_cap",3]],"check":"partial repair guard 3","expected":[["hours_window",6],["hours_window",3],["hours_window",4],["daily_cap",3]],"passed":false},{"actual":[],"check":"boundary control 4","expected":[["hours_window",5]],"passed":false},{"actual":[["daily_cap",0]],"check":"boundary control 5","expected":[["daily_cap",0]],"passed":true},{"actual":[["daily_cap",6]],"check":"normal control 6","expected":[["hours_window",6],["daily_cap",6]],"passed":false},{"actual":[["hours_window",4],["hours_window",2]],"check":"normal control 7","expected":[["hours_window",6],["hours_window",4],["hours_window",1],["hours_window",5],["hours_window",2]],"passed":false},{"actual":[],"check":"normal control 8","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: evening end boundary 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"regression variant: evening end boundary 2\", \"actual\": [[\"daily_cap\", 2], [\"daily_cap\", 4]], \"expected\": [[\"hours_window\", 4], [\"hours_window\", 2], [\"daily_cap\", 2], [\"daily_cap\", 4]], \"passed\": false}, {\"check\": \"partial repair guard 3\", \"actual\": [[\"hours_window\", 6], [\"hours_window\", 4], [\"daily_cap\", 3]], \"expected\": [[\"hours_window\", 6], [\"hours_window\", 3], [\"hours_window\", 4], [\"daily_cap\", 3]], \"passed\": false}, {\"check\": \"boundary control 4\", \"actual\": [], \"expected\": [[\"hours_window\", 5]], \"passed\": false}, {\"check\": \"boundary control 5\", \"actual\": [[\"daily_cap\", 0]], \"expected\": [[\"daily_cap\", 0]], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [[\"daily_cap\", 6]], \"expected\": [[\"hours_window\", 6], [\"daily_cap\", 6]], \"passed\": false}, {\"check\": \"normal control 7\", \"actual\": [[\"hours_window\", 4], [\"hours_window\", 2]], \"expected\": [[\"hours_window\", 6], [\"hours_window\", 4], [\"hours_window\", 1], [\"hours_window\", 5], [\"hours_window\", 2]], \"passed\": false}, {\"check\": \"normal control 8\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.649,"exit_code":1,"observations":[{"actual":[["hours_window",5]],"check":"regression: evening end boundary 1","expected":[],"passed":false},{"actual":[["hours_window",5],["hours_window",4],["hours_window",5],["hours_window",2],["daily_cap",2],["daily_cap",4]],"check":"regression variant: evening end boundary 2","expected":[["hours_window",4],["hours_window",2],["daily_cap",2],["daily_cap",4]],"passed":false},{"actual":[["hours_window",6],["hours_window",3],["hours_window",4],["daily_cap",3]],"check":"partial repair guard 3","expected":[["hours_window",6],["hours_window",3],["hours_window",4],["daily_cap",3]],"passed":true},{"actual":[["hours_window",5]],"check":"boundary control 4","expected":[["hours_window",5]],"passed":true},{"actual":[["daily_cap",0]],"check":"boundary control 5","expected":[["daily_cap",0]],"passed":true},{"actual":[["hours_window",6],["daily_cap",6]],"check":"normal control 6","expected":[["hours_window",6],["daily_cap",6]],"passed":true},{"actual":[["hours_window",6],["hours_window",4],["hours_window",1],["hours_window",5],["hours_window",1],["hours_window",2]],"check":"normal control 7","expected":[["hours_window",6],["hours_window",4],["hours_window",1],["hours_window",5],["hours_window",2]],"passed":false},{"actual":[],"check":"normal control 8","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: evening end boundary 1\", \"actual\": [[\"hours_window\", 5]], \"expected\": [], \"passed\": false}, {\"check\": \"regression variant: evening end boundary 2\", \"actual\": [[\"hours_window\", 5], [\"hours_window\", 4], [\"hours_window\", 5], [\"hours_window\", 2], [\"daily_cap\", 2], [\"daily_cap\", 4]], \"expected\": [[\"hours_window\", 4], [\"hours_window\", 2], [\"daily_cap\", 2], [\"daily_cap\", 4]], \"passed\": false}, {\"check\": \"partial repair guard 3\", \"actual\": [[\"hours_window\", 6], [\"hours_window\", 3], [\"hours_window\", 4], [\"daily_cap\", 3]], \"expected\": [[\"hours_window\", 6], [\"hours_window\", 3], [\"hours_window\", 4], [\"daily_cap\", 3]], \"passed\": true}, {\"check\": \"boundary control 4\", \"actual\": [[\"hours_window\", 5]], \"expected\": [[\"hours_window\", 5]], \"passed\": true}, {\"check\": \"boundary control 5\", \"actual\": [[\"daily_cap\", 0]], \"expected\": [[\"daily_cap\", 0]], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [[\"hours_window\", 6], [\"daily_cap\", 6]], \"expected\": [[\"hours_window\", 6], [\"daily_cap\", 6]], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [[\"hours_window\", 6], [\"hours_window\", 4], [\"hours_window\", 1], [\"hours_window\", 5], [\"hours_window\", 1], [\"hours_window\", 2]], \"expected\": [[\"hours_window\", 6], [\"hours_window\", 4], [\"hours_window\", 1], [\"hours_window\", 5], [\"hours_window\", 2]], \"passed\": false}, {\"check\": \"normal control 8\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.416,"exit_code":0,"observations":[{"actual":[],"check":"regression: evening end boundary 1","expected":[],"passed":true},{"actual":[["hours_window",4],["hours_window",2],["daily_cap",2],["daily_cap",4]],"check":"regression variant: evening end boundary 2","expected":[["hours_window",4],["hours_window",2],["daily_cap",2],["daily_cap",4]],"passed":true},{"actual":[["hours_window",6],["hours_window",3],["hours_window",4],["daily_cap",3]],"check":"partial repair guard 3","expected":[["hours_window",6],["hours_window",3],["hours_window",4],["daily_cap",3]],"passed":true},{"actual":[["hours_window",5]],"check":"boundary control 4","expected":[["hours_window",5]],"passed":true},{"actual":[["daily_cap",0]],"check":"boundary control 5","expected":[["daily_cap",0]],"passed":true},{"actual":[["hours_window",6],["daily_cap",6]],"check":"normal control 6","expected":[["hours_window",6],["daily_cap",6]],"passed":true},{"actual":[["hours_window",6],["hours_window",4],["hours_window",1],["hours_window",5],["hours_window",2]],"check":"normal control 7","expected":[["hours_window",6],["hours_window",4],["hours_window",1],["hours_window",5],["hours_window",2]],"passed":true},{"actual":[],"check":"normal control 8","expected":[],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: evening end boundary 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"regression variant: evening end boundary 2\", \"actual\": [[\"hours_window\", 4], [\"hours_window\", 2], [\"daily_cap\", 2], [\"daily_cap\", 4]], \"expected\": [[\"hours_window\", 4], [\"hours_window\", 2], [\"daily_cap\", 2], [\"daily_cap\", 4]], \"passed\": true}, {\"check\": \"partial repair guard 3\", \"actual\": [[\"hours_window\", 6], [\"hours_window\", 3], [\"hours_window\", 4], [\"daily_cap\", 3]], \"expected\": [[\"hours_window\", 6], [\"hours_window\", 3], [\"hours_window\", 4], [\"daily_cap\", 3]], \"passed\": true}, {\"check\": \"boundary control 4\", \"actual\": [[\"hours_window\", 5]], \"expected\": [[\"hours_window\", 5]], \"passed\": true}, {\"check\": \"boundary control 5\", \"actual\": [[\"daily_cap\", 0]], \"expected\": [[\"daily_cap\", 0]], \"passed\": true}, {\"check\": \"normal control 6\", \"actual\": [[\"hours_window\", 6], [\"daily_cap\", 6]], \"expected\": [[\"hours_window\", 6], [\"daily_cap\", 6]], \"passed\": true}, {\"check\": \"normal control 7\", \"actual\": [[\"hours_window\", 6], [\"hours_window\", 4], [\"hours_window\", 1], [\"hours_window\", 5], [\"hours_window\", 2]], \"expected\": [[\"hours_window\", 6], [\"hours_window\", 4], [\"hours_window\", 1], [\"hours_window\", 5], [\"hours_window\", 2]], \"passed\": true}, {\"check\": \"normal control 8\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}