{"abstract":"Actuated phase gap-out and max-out returns a wrong result when a phase without a conflicting call reports a gap-out.","category":"Traffic signal timing plans","checks":8,"contract":"Input {min_green, gap, max_green, actuations: integer seconds since green start (any order), conflict_call: seconds or null}. Each actuation at a keeps the phase eligible until a+gap; an actuation exactly at expiry extends; actuations during min green always extend. Gap-out time = max(min_green, final expiry). With no conflicting call return ['rest', gap time]. The max timer starts at the call (a call before green start counts as 0); max-out at call+max_green. If gap time <= max-out the phase ends by 'gap-out' at max(gap time, call), else by 'max-out'.","evaluation_group":"w2-traffic_signal_timing_plans-gap-max-out","failed_approach":"Reporting the rest state at min green loses the time at which the passage timer actually expired.","family":"w2-traffic_signal_timing_plans-gap-max-out-rest-verdict","id":"FA-67996","implementations":{"attempt":{"sha256":"5f4a1f76cbcf858518c2533cdc3d02e0996d17220d2a3a403a4984c1f18c32a2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    m, p, M = x['min_green'], x['gap'], x['max_green']\n    exp = 0\n    for a in sorted(x['actuations']):\n        if a > exp and a > m:\n            break\n        exp = max(exp, a + p)\n    gap_end = max(m, exp)\n    tc = x['conflict_call']\n    if tc is None:\n        return ['rest', m]\n    tc = max(tc, 0)\n    max_end = tc + M\n    if gap_end <= max_end:\n        return ['gap-out', max(gap_end, tc)]\n    return ['max-out', max_end]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'min_green': 9, 'gap': 4, 'max_green': 41, 'actuations': [29, 38, 20, 27, 14, 32, 45, 46, 25, 35, 30, 43, 12, 7, 4, 34, 48, 11], 'conflict_call': None}, ['rest', 18]), ({'min_green': 6, 'gap': 5, 'max_green': 34, 'actuations': [1, 2, 3, 4, 11, 13, 14, 15, 18, 20, 22, 23, 24, 25, 26, 28, 31, 35, 37, 39, 40, 41, 42, 45, 46, 48, 49, 50, 52, 53, 54, 58, 59], 'conflict_call': 11}, ['gap-out', 11]), ({'min_green': 5, 'gap': 3, 'max_green': 15, 'actuations': [2, 21, 25, 43, 48, 59], 'conflict_call': 10}, ['gap-out', 10]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 9, 'gap': 2, 'max_green': 19, 'actuations': [3, 6, 9, 10, 16, 22, 25, 26, 31, 34, 36, 41, 42, 43, 44, 49, 50, 52, 57, 59], 'conflict_call': 7}, ['gap-out', 12]), ({'min_green': 10, 'gap': 2, 'max_green': 3, 'actuations': [], 'conflict_call': 0}, ['max-out', 3]), ({'min_green': 6, 'gap': 4, 'max_green': 39, 'actuations': [0, 4, 9, 12, 14, 16, 22, 23, 26, 29, 34, 35, 41, 45, 47, 54, 56, 58], 'conflict_call': None}, ['rest', 8]), ({'min_green': 5, 'gap': 3, 'max_green': 25, 'actuations': [9, 3, 6], 'conflict_call': None}, ['rest', 12])], [({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 8, 'gap': 4, 'max_green': 31, 'actuations': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 16, 17, 18, 19, 22, 25, 27, 31, 33, 35, 36, 44, 46, 48, 49, 53, 56, 57, 59], 'conflict_call': None}, ['rest', 40]), ({'min_green': 7, 'gap': 5, 'max_green': 26, 'actuations': [1, 2, 17, 18, 25, 34, 44, 45, 47, 55], 'conflict_call': None}, ['rest', 7]), ({'min_green': 4, 'gap': 4, 'max_green': 19, 'actuations': [0, 2, 3, 11, 12, 14, 16, 21, 23, 27, 29, 30, 31, 32, 43, 45, 46, 47, 48, 49, 59], 'conflict_call': 33}, ['gap-out', 33]), ({'min_green': 8, 'gap': 4, 'max_green': 43, 'actuations': [38, 33, 28, 12, 27, 43, 11, 17, 59, 1, 21], 'conflict_call': None}, ['rest', 8]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 10, 'gap': 5, 'max_green': 24, 'actuations': [0, 2, 3, 6, 8, 10, 11, 12, 13, 14, 20, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 47, 49, 50, 51, 52, 53], 'conflict_call': None}, ['rest', 19]), ({'min_green': 10, 'gap': 2, 'max_green': 3, 'actuations': [], 'conflict_call': 0}, ['max-out', 3])], [({'min_green': 6, 'gap': 5, 'max_green': 35, 'actuations': [7, 49, 54, 39, 46, 35, 28, 18, 47, 33], 'conflict_call': -2}, ['gap-out', 6]), ({'min_green': 5, 'gap': 3, 'max_green': 18, 'actuations': [15, 33, 35, 48, 57], 'conflict_call': None}, ['rest', 5]), ({'min_green': 12, 'gap': 3, 'max_green': 5, 'actuations': [1], 'conflict_call': 2}, ['max-out', 7]), ({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 5, 'gap': 3, 'max_green': 41, 'actuations': [0, 2, 4, 10, 13, 14, 35, 37, 39, 47, 48, 53, 54, 55], 'conflict_call': 35}, ['gap-out', 35]), ({'min_green': 5, 'gap': 2, 'max_green': 42, 'actuations': [22, 2, 3, 11, 44, 15, 38, 20, 5, 12, 36, 24, 4, 23, 34, 50, 56, 57, 54, 30, 1, 0, 39, 41, 29, 40, 45, 9, 58, 53, 17, 21, 55, 27, 32, 35, 43, 28], 'conflict_call': None}, ['rest', 7]), ({'min_green': 10, 'gap': 2, 'max_green': 25, 'actuations': [25, 26, 9, 22, 29, 6, 2, 50], 'conflict_call': None}, ['rest', 11]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15])], [({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 6, 'gap': 3, 'max_green': 34, 'actuations': [55, 46, 15, 21, 43, 38, 47, 58, 45, 29, 41, 19, 0, 31, 57, 13, 40, 52, 39, 49, 14, 6], 'conflict_call': 18}, ['gap-out', 18]), ({'min_green': 6, 'gap': 2, 'max_green': 42, 'actuations': [2, 14, 15, 17, 19, 27, 28, 31, 34, 46], 'conflict_call': None}, ['rest', 6]), ({'min_green': 6, 'gap': 2, 'max_green': 12, 'actuations': [1, 3, 5, 7, 9, 11, 13], 'conflict_call': 3}, ['gap-out', 15]), ({'min_green': 6, 'gap': 3, 'max_green': 27, 'actuations': [1, 5, 6, 7, 9, 11, 13, 16, 17, 23, 25, 27, 29, 32, 37, 39, 40, 42, 44, 45, 46, 48, 53, 55, 56, 58, 59], 'conflict_call': 31}, ['gap-out', 31]), ({'min_green': 5, 'gap': 3, 'max_green': 10, 'actuations': [0, 3, 6, 9, 12], 'conflict_call': 5}, ['gap-out', 15]), ({'min_green': 5, 'gap': 5, 'max_green': 18, 'actuations': [2, 3, 15, 24, 26, 27, 32, 34, 35, 37, 46, 51, 54, 59], 'conflict_call': None}, ['rest', 8]), ({'min_green': 6, 'gap': 3, 'max_green': 28, 'actuations': [1, 2, 6, 10, 24, 29, 31, 35, 36, 41, 51, 53], 'conflict_call': None}, ['rest', 9])], [({'min_green': 7, 'gap': 3, 'max_green': 23, 'actuations': [1, 3, 4, 5, 6, 8, 9, 13, 17, 18, 19, 21, 26, 28, 30, 31, 38, 39, 42, 44, 45, 48, 53, 55, 56, 57], 'conflict_call': 9}, ['gap-out', 12]), ({'min_green': 4, 'gap': 5, 'max_green': 43, 'actuations': [4, 7, 12, 17, 18, 22, 24, 25, 29, 30, 32, 39, 45, 48, 55, 56, 59], 'conflict_call': None}, ['rest', 37]), ({'min_green': 6, 'gap': 4, 'max_green': 16, 'actuations': [36, 59, 43, 57, 30, 45, 23, 28, 37, 17, 56, 12, 13, 48, 29, 38, 20, 5, 42, 11, 41], 'conflict_call': None}, ['rest', 9]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 9, 'gap': 2, 'max_green': 35, 'actuations': [0, 10, 11, 12, 14, 15, 16, 18, 26, 28, 31, 32, 35, 37, 40, 43, 45, 46, 47, 51, 54], 'conflict_call': None}, ['rest', 9]), ({'min_green': 4, 'gap': 2, 'max_green': 26, 'actuations': [46, 4, 6, 1, 50, 19, 33, 51, 15, 34, 49, 58, 32, 29, 14, 24, 40], 'conflict_call': 35}, ['gap-out', 35]), ({'min_green': 5, 'gap': 3, 'max_green': 20, 'actuations': [1, 4, 7, 10, 13], 'conflict_call': 2}, ['gap-out', 16])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check('timing oracle' + ' %d' % 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":"a2ff733782697fefee488b1a8b193eece1f1e6b69e6946d5dd0ab0c66d850992","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    m, p, M = x['min_green'], x['gap'], x['max_green']\n    exp = 0\n    for a in sorted(x['actuations']):\n        if a > exp and a > m:\n            break\n        exp = max(exp, a + p)\n    gap_end = max(m, exp)\n    tc = x['conflict_call']\n    if tc is None:\n        return ['gap-out', gap_end]\n    tc = max(tc, 0)\n    max_end = tc + M\n    if gap_end <= max_end:\n        return ['gap-out', max(gap_end, tc)]\n    return ['max-out', max_end]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'min_green': 9, 'gap': 4, 'max_green': 41, 'actuations': [29, 38, 20, 27, 14, 32, 45, 46, 25, 35, 30, 43, 12, 7, 4, 34, 48, 11], 'conflict_call': None}, ['rest', 18]), ({'min_green': 6, 'gap': 5, 'max_green': 34, 'actuations': [1, 2, 3, 4, 11, 13, 14, 15, 18, 20, 22, 23, 24, 25, 26, 28, 31, 35, 37, 39, 40, 41, 42, 45, 46, 48, 49, 50, 52, 53, 54, 58, 59], 'conflict_call': 11}, ['gap-out', 11]), ({'min_green': 5, 'gap': 3, 'max_green': 15, 'actuations': [2, 21, 25, 43, 48, 59], 'conflict_call': 10}, ['gap-out', 10]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 9, 'gap': 2, 'max_green': 19, 'actuations': [3, 6, 9, 10, 16, 22, 25, 26, 31, 34, 36, 41, 42, 43, 44, 49, 50, 52, 57, 59], 'conflict_call': 7}, ['gap-out', 12]), ({'min_green': 10, 'gap': 2, 'max_green': 3, 'actuations': [], 'conflict_call': 0}, ['max-out', 3]), ({'min_green': 6, 'gap': 4, 'max_green': 39, 'actuations': [0, 4, 9, 12, 14, 16, 22, 23, 26, 29, 34, 35, 41, 45, 47, 54, 56, 58], 'conflict_call': None}, ['rest', 8]), ({'min_green': 5, 'gap': 3, 'max_green': 25, 'actuations': [9, 3, 6], 'conflict_call': None}, ['rest', 12])], [({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 8, 'gap': 4, 'max_green': 31, 'actuations': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 16, 17, 18, 19, 22, 25, 27, 31, 33, 35, 36, 44, 46, 48, 49, 53, 56, 57, 59], 'conflict_call': None}, ['rest', 40]), ({'min_green': 7, 'gap': 5, 'max_green': 26, 'actuations': [1, 2, 17, 18, 25, 34, 44, 45, 47, 55], 'conflict_call': None}, ['rest', 7]), ({'min_green': 4, 'gap': 4, 'max_green': 19, 'actuations': [0, 2, 3, 11, 12, 14, 16, 21, 23, 27, 29, 30, 31, 32, 43, 45, 46, 47, 48, 49, 59], 'conflict_call': 33}, ['gap-out', 33]), ({'min_green': 8, 'gap': 4, 'max_green': 43, 'actuations': [38, 33, 28, 12, 27, 43, 11, 17, 59, 1, 21], 'conflict_call': None}, ['rest', 8]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 10, 'gap': 5, 'max_green': 24, 'actuations': [0, 2, 3, 6, 8, 10, 11, 12, 13, 14, 20, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 47, 49, 50, 51, 52, 53], 'conflict_call': None}, ['rest', 19]), ({'min_green': 10, 'gap': 2, 'max_green': 3, 'actuations': [], 'conflict_call': 0}, ['max-out', 3])], [({'min_green': 6, 'gap': 5, 'max_green': 35, 'actuations': [7, 49, 54, 39, 46, 35, 28, 18, 47, 33], 'conflict_call': -2}, ['gap-out', 6]), ({'min_green': 5, 'gap': 3, 'max_green': 18, 'actuations': [15, 33, 35, 48, 57], 'conflict_call': None}, ['rest', 5]), ({'min_green': 12, 'gap': 3, 'max_green': 5, 'actuations': [1], 'conflict_call': 2}, ['max-out', 7]), ({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 5, 'gap': 3, 'max_green': 41, 'actuations': [0, 2, 4, 10, 13, 14, 35, 37, 39, 47, 48, 53, 54, 55], 'conflict_call': 35}, ['gap-out', 35]), ({'min_green': 5, 'gap': 2, 'max_green': 42, 'actuations': [22, 2, 3, 11, 44, 15, 38, 20, 5, 12, 36, 24, 4, 23, 34, 50, 56, 57, 54, 30, 1, 0, 39, 41, 29, 40, 45, 9, 58, 53, 17, 21, 55, 27, 32, 35, 43, 28], 'conflict_call': None}, ['rest', 7]), ({'min_green': 10, 'gap': 2, 'max_green': 25, 'actuations': [25, 26, 9, 22, 29, 6, 2, 50], 'conflict_call': None}, ['rest', 11]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15])], [({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 6, 'gap': 3, 'max_green': 34, 'actuations': [55, 46, 15, 21, 43, 38, 47, 58, 45, 29, 41, 19, 0, 31, 57, 13, 40, 52, 39, 49, 14, 6], 'conflict_call': 18}, ['gap-out', 18]), ({'min_green': 6, 'gap': 2, 'max_green': 42, 'actuations': [2, 14, 15, 17, 19, 27, 28, 31, 34, 46], 'conflict_call': None}, ['rest', 6]), ({'min_green': 6, 'gap': 2, 'max_green': 12, 'actuations': [1, 3, 5, 7, 9, 11, 13], 'conflict_call': 3}, ['gap-out', 15]), ({'min_green': 6, 'gap': 3, 'max_green': 27, 'actuations': [1, 5, 6, 7, 9, 11, 13, 16, 17, 23, 25, 27, 29, 32, 37, 39, 40, 42, 44, 45, 46, 48, 53, 55, 56, 58, 59], 'conflict_call': 31}, ['gap-out', 31]), ({'min_green': 5, 'gap': 3, 'max_green': 10, 'actuations': [0, 3, 6, 9, 12], 'conflict_call': 5}, ['gap-out', 15]), ({'min_green': 5, 'gap': 5, 'max_green': 18, 'actuations': [2, 3, 15, 24, 26, 27, 32, 34, 35, 37, 46, 51, 54, 59], 'conflict_call': None}, ['rest', 8]), ({'min_green': 6, 'gap': 3, 'max_green': 28, 'actuations': [1, 2, 6, 10, 24, 29, 31, 35, 36, 41, 51, 53], 'conflict_call': None}, ['rest', 9])], [({'min_green': 7, 'gap': 3, 'max_green': 23, 'actuations': [1, 3, 4, 5, 6, 8, 9, 13, 17, 18, 19, 21, 26, 28, 30, 31, 38, 39, 42, 44, 45, 48, 53, 55, 56, 57], 'conflict_call': 9}, ['gap-out', 12]), ({'min_green': 4, 'gap': 5, 'max_green': 43, 'actuations': [4, 7, 12, 17, 18, 22, 24, 25, 29, 30, 32, 39, 45, 48, 55, 56, 59], 'conflict_call': None}, ['rest', 37]), ({'min_green': 6, 'gap': 4, 'max_green': 16, 'actuations': [36, 59, 43, 57, 30, 45, 23, 28, 37, 17, 56, 12, 13, 48, 29, 38, 20, 5, 42, 11, 41], 'conflict_call': None}, ['rest', 9]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 9, 'gap': 2, 'max_green': 35, 'actuations': [0, 10, 11, 12, 14, 15, 16, 18, 26, 28, 31, 32, 35, 37, 40, 43, 45, 46, 47, 51, 54], 'conflict_call': None}, ['rest', 9]), ({'min_green': 4, 'gap': 2, 'max_green': 26, 'actuations': [46, 4, 6, 1, 50, 19, 33, 51, 15, 34, 49, 58, 32, 29, 14, 24, 40], 'conflict_call': 35}, ['gap-out', 35]), ({'min_green': 5, 'gap': 3, 'max_green': 20, 'actuations': [1, 4, 7, 10, 13], 'conflict_call': 2}, ['gap-out', 16])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check('timing oracle' + ' %d' % 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"},"fixed":{"sha256":"c9a7da90a69734ef4aa836320cbdafc55604f9c40351bbd26c18779358296b15","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    m, p, M = x['min_green'], x['gap'], x['max_green']\n    exp = 0\n    for a in sorted(x['actuations']):\n        if a > exp and a > m:\n            break\n        exp = max(exp, a + p)\n    gap_end = max(m, exp)\n    tc = x['conflict_call']\n    if tc is None:\n        return ['rest', gap_end]\n    tc = max(tc, 0)\n    max_end = tc + M\n    if gap_end <= max_end:\n        return ['gap-out', max(gap_end, tc)]\n    return ['max-out', max_end]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'min_green': 9, 'gap': 4, 'max_green': 41, 'actuations': [29, 38, 20, 27, 14, 32, 45, 46, 25, 35, 30, 43, 12, 7, 4, 34, 48, 11], 'conflict_call': None}, ['rest', 18]), ({'min_green': 6, 'gap': 5, 'max_green': 34, 'actuations': [1, 2, 3, 4, 11, 13, 14, 15, 18, 20, 22, 23, 24, 25, 26, 28, 31, 35, 37, 39, 40, 41, 42, 45, 46, 48, 49, 50, 52, 53, 54, 58, 59], 'conflict_call': 11}, ['gap-out', 11]), ({'min_green': 5, 'gap': 3, 'max_green': 15, 'actuations': [2, 21, 25, 43, 48, 59], 'conflict_call': 10}, ['gap-out', 10]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 9, 'gap': 2, 'max_green': 19, 'actuations': [3, 6, 9, 10, 16, 22, 25, 26, 31, 34, 36, 41, 42, 43, 44, 49, 50, 52, 57, 59], 'conflict_call': 7}, ['gap-out', 12]), ({'min_green': 10, 'gap': 2, 'max_green': 3, 'actuations': [], 'conflict_call': 0}, ['max-out', 3]), ({'min_green': 6, 'gap': 4, 'max_green': 39, 'actuations': [0, 4, 9, 12, 14, 16, 22, 23, 26, 29, 34, 35, 41, 45, 47, 54, 56, 58], 'conflict_call': None}, ['rest', 8]), ({'min_green': 5, 'gap': 3, 'max_green': 25, 'actuations': [9, 3, 6], 'conflict_call': None}, ['rest', 12])], [({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 8, 'gap': 4, 'max_green': 31, 'actuations': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 16, 17, 18, 19, 22, 25, 27, 31, 33, 35, 36, 44, 46, 48, 49, 53, 56, 57, 59], 'conflict_call': None}, ['rest', 40]), ({'min_green': 7, 'gap': 5, 'max_green': 26, 'actuations': [1, 2, 17, 18, 25, 34, 44, 45, 47, 55], 'conflict_call': None}, ['rest', 7]), ({'min_green': 4, 'gap': 4, 'max_green': 19, 'actuations': [0, 2, 3, 11, 12, 14, 16, 21, 23, 27, 29, 30, 31, 32, 43, 45, 46, 47, 48, 49, 59], 'conflict_call': 33}, ['gap-out', 33]), ({'min_green': 8, 'gap': 4, 'max_green': 43, 'actuations': [38, 33, 28, 12, 27, 43, 11, 17, 59, 1, 21], 'conflict_call': None}, ['rest', 8]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 10, 'gap': 5, 'max_green': 24, 'actuations': [0, 2, 3, 6, 8, 10, 11, 12, 13, 14, 20, 22, 24, 25, 26, 27, 28, 30, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 47, 49, 50, 51, 52, 53], 'conflict_call': None}, ['rest', 19]), ({'min_green': 10, 'gap': 2, 'max_green': 3, 'actuations': [], 'conflict_call': 0}, ['max-out', 3])], [({'min_green': 6, 'gap': 5, 'max_green': 35, 'actuations': [7, 49, 54, 39, 46, 35, 28, 18, 47, 33], 'conflict_call': -2}, ['gap-out', 6]), ({'min_green': 5, 'gap': 3, 'max_green': 18, 'actuations': [15, 33, 35, 48, 57], 'conflict_call': None}, ['rest', 5]), ({'min_green': 12, 'gap': 3, 'max_green': 5, 'actuations': [1], 'conflict_call': 2}, ['max-out', 7]), ({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 5, 'gap': 3, 'max_green': 41, 'actuations': [0, 2, 4, 10, 13, 14, 35, 37, 39, 47, 48, 53, 54, 55], 'conflict_call': 35}, ['gap-out', 35]), ({'min_green': 5, 'gap': 2, 'max_green': 42, 'actuations': [22, 2, 3, 11, 44, 15, 38, 20, 5, 12, 36, 24, 4, 23, 34, 50, 56, 57, 54, 30, 1, 0, 39, 41, 29, 40, 45, 9, 58, 53, 17, 21, 55, 27, 32, 35, 43, 28], 'conflict_call': None}, ['rest', 7]), ({'min_green': 10, 'gap': 2, 'max_green': 25, 'actuations': [25, 26, 9, 22, 29, 6, 2, 50], 'conflict_call': None}, ['rest', 11]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15])], [({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 6, 'gap': 3, 'max_green': 34, 'actuations': [55, 46, 15, 21, 43, 38, 47, 58, 45, 29, 41, 19, 0, 31, 57, 13, 40, 52, 39, 49, 14, 6], 'conflict_call': 18}, ['gap-out', 18]), ({'min_green': 6, 'gap': 2, 'max_green': 42, 'actuations': [2, 14, 15, 17, 19, 27, 28, 31, 34, 46], 'conflict_call': None}, ['rest', 6]), ({'min_green': 6, 'gap': 2, 'max_green': 12, 'actuations': [1, 3, 5, 7, 9, 11, 13], 'conflict_call': 3}, ['gap-out', 15]), ({'min_green': 6, 'gap': 3, 'max_green': 27, 'actuations': [1, 5, 6, 7, 9, 11, 13, 16, 17, 23, 25, 27, 29, 32, 37, 39, 40, 42, 44, 45, 46, 48, 53, 55, 56, 58, 59], 'conflict_call': 31}, ['gap-out', 31]), ({'min_green': 5, 'gap': 3, 'max_green': 10, 'actuations': [0, 3, 6, 9, 12], 'conflict_call': 5}, ['gap-out', 15]), ({'min_green': 5, 'gap': 5, 'max_green': 18, 'actuations': [2, 3, 15, 24, 26, 27, 32, 34, 35, 37, 46, 51, 54, 59], 'conflict_call': None}, ['rest', 8]), ({'min_green': 6, 'gap': 3, 'max_green': 28, 'actuations': [1, 2, 6, 10, 24, 29, 31, 35, 36, 41, 51, 53], 'conflict_call': None}, ['rest', 9])], [({'min_green': 7, 'gap': 3, 'max_green': 23, 'actuations': [1, 3, 4, 5, 6, 8, 9, 13, 17, 18, 19, 21, 26, 28, 30, 31, 38, 39, 42, 44, 45, 48, 53, 55, 56, 57], 'conflict_call': 9}, ['gap-out', 12]), ({'min_green': 4, 'gap': 5, 'max_green': 43, 'actuations': [4, 7, 12, 17, 18, 22, 24, 25, 29, 30, 32, 39, 45, 48, 55, 56, 59], 'conflict_call': None}, ['rest', 37]), ({'min_green': 6, 'gap': 4, 'max_green': 16, 'actuations': [36, 59, 43, 57, 30, 45, 23, 28, 37, 17, 56, 12, 13, 48, 29, 38, 20, 5, 42, 11, 41], 'conflict_call': None}, ['rest', 9]), ({'min_green': 6, 'gap': 2, 'max_green': 15, 'actuations': [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38], 'conflict_call': -3}, ['max-out', 15]), ({'min_green': 8, 'gap': 3, 'max_green': 30, 'actuations': [2, 6], 'conflict_call': 20}, ['gap-out', 20]), ({'min_green': 9, 'gap': 2, 'max_green': 35, 'actuations': [0, 10, 11, 12, 14, 15, 16, 18, 26, 28, 31, 32, 35, 37, 40, 43, 45, 46, 47, 51, 54], 'conflict_call': None}, ['rest', 9]), ({'min_green': 4, 'gap': 2, 'max_green': 26, 'actuations': [46, 4, 6, 1, 50, 19, 33, 51, 15, 34, 49, 58, 32, 29, 14, 24, 40], 'conflict_call': 35}, ['gap-out', 35]), ({'min_green': 5, 'gap': 3, 'max_green': 20, 'actuations': [1, 4, 7, 10, 13], 'conflict_call': 2}, ['gap-out', 16])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check('timing oracle' + ' %d' % 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, bounded toy model with a stipulated contract; it makes no claim of conformance to any agency manual or standard. 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-traffic_signal_timing_plans-gap-max-out-rest-verdict","generated_at":"2026-09-29T14:47:58.065752+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Signal timing arithmetic is exact and integer or rational; a wrong rule silently produces unsafe or inefficient timing plans.","repair":"Restore the no-call verdict rule so that the step reads `return ['rest', gap_end]`.","root_cause":"With no conflicting demand the phase must rest in green; reporting gap-out would terminate it needlessly.","sha256":"8abdb0727b56a911210dc7f19d5137f3dfb1d54f557a38c4f59caeb53208970e","title":"Actuated phase gap-out and max-out: a phase without a conflicting call reports a gap-out · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.313,"exit_code":1,"observations":[{"actual":["rest",9],"check":"timing oracle 0","expected":["rest",18],"passed":false},{"actual":["gap-out",11],"check":"timing oracle 1","expected":["gap-out",11],"passed":true},{"actual":["gap-out",10],"check":"timing oracle 2","expected":["gap-out",10],"passed":true},{"actual":["max-out",15],"check":"timing oracle 3","expected":["max-out",15],"passed":true},{"actual":["gap-out",12],"check":"timing oracle 4","expected":["gap-out",12],"passed":true},{"actual":["max-out",3],"check":"timing oracle 5","expected":["max-out",3],"passed":true},{"actual":["rest",6],"check":"timing oracle 6","expected":["rest",8],"passed":false},{"actual":["rest",5],"check":"timing oracle 7","expected":["rest",12],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": [\"rest\", 9], \"expected\": [\"rest\", 18], \"passed\": false}, {\"check\": \"timing oracle 1\", \"actual\": [\"gap-out\", 11], \"expected\": [\"gap-out\", 11], \"passed\": true}, {\"check\": \"timing oracle 2\", \"actual\": [\"gap-out\", 10], \"expected\": [\"gap-out\", 10], \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": [\"max-out\", 15], \"expected\": [\"max-out\", 15], \"passed\": true}, {\"check\": \"timing oracle 4\", \"actual\": [\"gap-out\", 12], \"expected\": [\"gap-out\", 12], \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": [\"max-out\", 3], \"expected\": [\"max-out\", 3], \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": [\"rest\", 6], \"expected\": [\"rest\", 8], \"passed\": false}, {\"check\": \"timing oracle 7\", \"actual\": [\"rest\", 5], \"expected\": [\"rest\", 12], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.311,"exit_code":1,"observations":[{"actual":["gap-out",18],"check":"timing oracle 0","expected":["rest",18],"passed":false},{"actual":["gap-out",11],"check":"timing oracle 1","expected":["gap-out",11],"passed":true},{"actual":["gap-out",10],"check":"timing oracle 2","expected":["gap-out",10],"passed":true},{"actual":["max-out",15],"check":"timing oracle 3","expected":["max-out",15],"passed":true},{"actual":["gap-out",12],"check":"timing oracle 4","expected":["gap-out",12],"passed":true},{"actual":["max-out",3],"check":"timing oracle 5","expected":["max-out",3],"passed":true},{"actual":["gap-out",8],"check":"timing oracle 6","expected":["rest",8],"passed":false},{"actual":["gap-out",12],"check":"timing oracle 7","expected":["rest",12],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": [\"gap-out\", 18], \"expected\": [\"rest\", 18], \"passed\": false}, {\"check\": \"timing oracle 1\", \"actual\": [\"gap-out\", 11], \"expected\": [\"gap-out\", 11], \"passed\": true}, {\"check\": \"timing oracle 2\", \"actual\": [\"gap-out\", 10], \"expected\": [\"gap-out\", 10], \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": [\"max-out\", 15], \"expected\": [\"max-out\", 15], \"passed\": true}, {\"check\": \"timing oracle 4\", \"actual\": [\"gap-out\", 12], \"expected\": [\"gap-out\", 12], \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": [\"max-out\", 3], \"expected\": [\"max-out\", 3], \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": [\"gap-out\", 8], \"expected\": [\"rest\", 8], \"passed\": false}, {\"check\": \"timing oracle 7\", \"actual\": [\"gap-out\", 12], \"expected\": [\"rest\", 12], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.693,"exit_code":0,"observations":[{"actual":["rest",18],"check":"timing oracle 0","expected":["rest",18],"passed":true},{"actual":["gap-out",11],"check":"timing oracle 1","expected":["gap-out",11],"passed":true},{"actual":["gap-out",10],"check":"timing oracle 2","expected":["gap-out",10],"passed":true},{"actual":["max-out",15],"check":"timing oracle 3","expected":["max-out",15],"passed":true},{"actual":["gap-out",12],"check":"timing oracle 4","expected":["gap-out",12],"passed":true},{"actual":["max-out",3],"check":"timing oracle 5","expected":["max-out",3],"passed":true},{"actual":["rest",8],"check":"timing oracle 6","expected":["rest",8],"passed":true},{"actual":["rest",12],"check":"timing oracle 7","expected":["rest",12],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": [\"rest\", 18], \"expected\": [\"rest\", 18], \"passed\": true}, {\"check\": \"timing oracle 1\", \"actual\": [\"gap-out\", 11], \"expected\": [\"gap-out\", 11], \"passed\": true}, {\"check\": \"timing oracle 2\", \"actual\": [\"gap-out\", 10], \"expected\": [\"gap-out\", 10], \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": [\"max-out\", 15], \"expected\": [\"max-out\", 15], \"passed\": true}, {\"check\": \"timing oracle 4\", \"actual\": [\"gap-out\", 12], \"expected\": [\"gap-out\", 12], \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": [\"max-out\", 3], \"expected\": [\"max-out\", 3], \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": [\"rest\", 8], \"expected\": [\"rest\", 8], \"passed\": true}, {\"check\": \"timing oracle 7\", \"actual\": [\"rest\", 12], \"expected\": [\"rest\", 12], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}