{"abstract":"Volume-density added initial and gap reduction returns a wrong result when the reduction is quantised to whole reduction periods.","category":"Traffic signal timing plans","checks":8,"contract":"Input {min_green, added_per_act_tenths, max_initial, red_actuations, initial_gap_tenths, min_gap_tenths, time_before_reduction, time_to_reduce, call, t}. Variable initial = min(max_initial, max(min_green, ceil(actuations*added/10))) seconds. Gap reduction is timed from the conflicting call (a call before green start counts from 0): until time_before_reduction elapses the allowed gap is the initial gap; during time_to_reduce it falls linearly with the reduction amount truncated to whole tenths; afterwards it is the minimum gap. Return {initial, gap_tenths}.","contract_signature":"x","evaluation_group":"w2-traffic_signal_timing_plans-volume-density","failed_approach":"Interpolating the gap itself and flooring it truncates the gap instead of the reduction amount, reducing one tenth too much.","family":"w2-traffic_signal_timing_plans-volume-density-interpolation","id":"FA-68016","implementations":{"attempt":{"sha256":"3826bd65eca5a57872304f8c1c7f1081aef5ba35f7b2e777db9b1422773315a2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    m = x['min_green']\n    initial = min(x['max_initial'], max(m, -(-x['red_actuations'] * x['added_per_act_tenths'] // 10)))\n    g0, gm = x['initial_gap_tenths'], x['min_gap_tenths']\n    el = x['t'] - max(x['call'], 0)\n    if el <= x['time_before_reduction']:\n        gap = g0\n    elif el >= x['time_before_reduction'] + x['time_to_reduce']:\n        gap = gm\n    else:\n        done = el - x['time_before_reduction']\n        gap = (g0 * (x['time_to_reduce'] - done) + gm * done) // x['time_to_reduce']\n    return {'initial': initial, 'gap_tenths': gap}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 10, 'red_actuations': 15, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 13, 'time_to_reduce': 19, 'call': 12, 't': 11}, {'initial': 10, 'gap_tenths': 50}), ({'min_green': 5, 'added_per_act_tenths': 25, 'max_initial': 11, 'red_actuations': 17, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 9, 'time_to_reduce': 29, 'call': -4, 't': 36}, {'initial': 11, 'gap_tenths': 17}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 16, 'red_actuations': 13, 'initial_gap_tenths': 35, 'min_gap_tenths': 10, 'time_before_reduction': 2, 'time_to_reduce': 24, 'call': 14, 't': 46}, {'initial': 16, 'gap_tenths': 10}), ({'min_green': 7, 'added_per_act_tenths': 25, 'max_initial': 30, 'red_actuations': 5, 'initial_gap_tenths': 30, 'min_gap_tenths': 20, 'time_before_reduction': 5, 'time_to_reduce': 10, 'call': 11, 't': 58}, {'initial': 13, 'gap_tenths': 20}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 13, 'red_actuations': 16, 'initial_gap_tenths': 30, 'min_gap_tenths': 10, 'time_before_reduction': 11, 'time_to_reduce': 12, 'call': 14, 't': 43}, {'initial': 13, 'gap_tenths': 10})], [({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 9, 'added_per_act_tenths': 10, 'max_initial': 22, 'red_actuations': 0, 'initial_gap_tenths': 50, 'min_gap_tenths': 15, 'time_before_reduction': 8, 'time_to_reduce': 22, 'call': 6, 't': 7}, {'initial': 9, 'gap_tenths': 50}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 25, 'red_actuations': 1, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 8, 'time_to_reduce': 5, 'call': -1, 't': 37}, {'initial': 5, 'gap_tenths': 15}), ({'min_green': 6, 'added_per_act_tenths': 15, 'max_initial': 10, 'red_actuations': 4, 'initial_gap_tenths': 40, 'min_gap_tenths': 10, 'time_before_reduction': 0, 'time_to_reduce': 28, 'call': 9, 't': 30}, {'initial': 6, 'gap_tenths': 18}), ({'min_green': 6, 'added_per_act_tenths': 20, 'max_initial': 28, 'red_actuations': 8, 'initial_gap_tenths': 35, 'min_gap_tenths': 10, 'time_before_reduction': 1, 'time_to_reduce': 26, 'call': -2, 't': 29}, {'initial': 16, 'gap_tenths': 10}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 6, 'added_per_act_tenths': 15, 'max_initial': 26, 'red_actuations': 6, 'initial_gap_tenths': 30, 'min_gap_tenths': 15, 'time_before_reduction': 15, 'time_to_reduce': 8, 'call': -2, 't': 34}, {'initial': 9, 'gap_tenths': 15}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20})], [({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 26, 'red_actuations': 16, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 4, 'time_to_reduce': 18, 'call': 14, 't': 8}, {'initial': 24, 'gap_tenths': 35}), ({'min_green': 5, 'added_per_act_tenths': 10, 'max_initial': 11, 'red_actuations': 8, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 1, 'time_to_reduce': 10, 'call': -4, 't': 19}, {'initial': 8, 'gap_tenths': 15}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 6, 'added_per_act_tenths': 20, 'max_initial': 14, 'red_actuations': 13, 'initial_gap_tenths': 50, 'min_gap_tenths': 10, 'time_before_reduction': 6, 'time_to_reduce': 6, 'call': 4, 't': 0}, {'initial': 14, 'gap_tenths': 50}), ({'min_green': 6, 'added_per_act_tenths': 20, 'max_initial': 29, 'red_actuations': 17, 'initial_gap_tenths': 35, 'min_gap_tenths': 10, 'time_before_reduction': 6, 'time_to_reduce': 15, 'call': 12, 't': 36}, {'initial': 29, 'gap_tenths': 10}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 5, 'added_per_act_tenths': 10, 'max_initial': 18, 'red_actuations': 16, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 11, 'time_to_reduce': 25, 'call': 5, 't': 28}, {'initial': 16, 'gap_tenths': 26})], [({'min_green': 8, 'added_per_act_tenths': 15, 'max_initial': 29, 'red_actuations': 15, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 3, 'time_to_reduce': 23, 'call': 0, 't': 2}, {'initial': 23, 'gap_tenths': 40}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 9, 'added_per_act_tenths': 10, 'max_initial': 10, 'red_actuations': 1, 'initial_gap_tenths': 50, 'min_gap_tenths': 15, 'time_before_reduction': 9, 'time_to_reduce': 30, 'call': 8, 't': 26}, {'initial': 9, 'gap_tenths': 40}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 4, 'added_per_act_tenths': 25, 'max_initial': 17, 'red_actuations': 5, 'initial_gap_tenths': 35, 'min_gap_tenths': 20, 'time_before_reduction': 6, 'time_to_reduce': 6, 'call': -1, 't': 21}, {'initial': 13, 'gap_tenths': 20}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 14, 'red_actuations': 17, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 5, 'call': 9, 't': 47}, {'initial': 14, 'gap_tenths': 15}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 22, 'red_actuations': 2, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 5, 'call': -4, 't': 3}, {'initial': 10, 'gap_tenths': 50})], [({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 4, 'added_per_act_tenths': 10, 'max_initial': 24, 'red_actuations': 15, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 1, 'time_to_reduce': 27, 'call': 13, 't': 35}, {'initial': 15, 'gap_tenths': 20}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 7, 'added_per_act_tenths': 15, 'max_initial': 12, 'red_actuations': 3, 'initial_gap_tenths': 30, 'min_gap_tenths': 20, 'time_before_reduction': 3, 'time_to_reduce': 6, 'call': 0, 't': 40}, {'initial': 7, 'gap_tenths': 20}), ({'min_green': 10, 'added_per_act_tenths': 20, 'max_initial': 30, 'red_actuations': 18, 'initial_gap_tenths': 35, 'min_gap_tenths': 20, 'time_before_reduction': 0, 'time_to_reduce': 26, 'call': 0, 't': 33}, {'initial': 30, 'gap_tenths': 20}), ({'min_green': 4, 'added_per_act_tenths': 20, 'max_initial': 13, 'red_actuations': 8, 'initial_gap_tenths': 30, 'min_gap_tenths': 20, 'time_before_reduction': 6, 'time_to_reduce': 23, 'call': 0, 't': 55}, {'initial': 13, 'gap_tenths': 20}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 8, 'added_per_act_tenths': 15, 'max_initial': 28, 'red_actuations': 0, 'initial_gap_tenths': 50, 'min_gap_tenths': 15, 'time_before_reduction': 15, 'time_to_reduce': 10, 'call': 5, 't': 20}, {'initial': 8, 'gap_tenths': 50})]]\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":"404063a7b9c0972ae2a5229df60b8c403ca1c4cde6d1006c52f269fb8105593b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    m = x['min_green']\n    initial = min(x['max_initial'], max(m, -(-x['red_actuations'] * x['added_per_act_tenths'] // 10)))\n    g0, gm = x['initial_gap_tenths'], x['min_gap_tenths']\n    el = x['t'] - max(x['call'], 0)\n    if el <= x['time_before_reduction']:\n        gap = g0\n    elif el >= x['time_before_reduction'] + x['time_to_reduce']:\n        gap = gm\n    else:\n        done = el - x['time_before_reduction']\n        gap = g0 - (g0 - gm) * (done // x['time_to_reduce'])\n    return {'initial': initial, 'gap_tenths': gap}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 10, 'red_actuations': 15, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 13, 'time_to_reduce': 19, 'call': 12, 't': 11}, {'initial': 10, 'gap_tenths': 50}), ({'min_green': 5, 'added_per_act_tenths': 25, 'max_initial': 11, 'red_actuations': 17, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 9, 'time_to_reduce': 29, 'call': -4, 't': 36}, {'initial': 11, 'gap_tenths': 17}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 16, 'red_actuations': 13, 'initial_gap_tenths': 35, 'min_gap_tenths': 10, 'time_before_reduction': 2, 'time_to_reduce': 24, 'call': 14, 't': 46}, {'initial': 16, 'gap_tenths': 10}), ({'min_green': 7, 'added_per_act_tenths': 25, 'max_initial': 30, 'red_actuations': 5, 'initial_gap_tenths': 30, 'min_gap_tenths': 20, 'time_before_reduction': 5, 'time_to_reduce': 10, 'call': 11, 't': 58}, {'initial': 13, 'gap_tenths': 20}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 13, 'red_actuations': 16, 'initial_gap_tenths': 30, 'min_gap_tenths': 10, 'time_before_reduction': 11, 'time_to_reduce': 12, 'call': 14, 't': 43}, {'initial': 13, 'gap_tenths': 10})], [({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 9, 'added_per_act_tenths': 10, 'max_initial': 22, 'red_actuations': 0, 'initial_gap_tenths': 50, 'min_gap_tenths': 15, 'time_before_reduction': 8, 'time_to_reduce': 22, 'call': 6, 't': 7}, {'initial': 9, 'gap_tenths': 50}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 25, 'red_actuations': 1, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 8, 'time_to_reduce': 5, 'call': -1, 't': 37}, {'initial': 5, 'gap_tenths': 15}), ({'min_green': 6, 'added_per_act_tenths': 15, 'max_initial': 10, 'red_actuations': 4, 'initial_gap_tenths': 40, 'min_gap_tenths': 10, 'time_before_reduction': 0, 'time_to_reduce': 28, 'call': 9, 't': 30}, {'initial': 6, 'gap_tenths': 18}), ({'min_green': 6, 'added_per_act_tenths': 20, 'max_initial': 28, 'red_actuations': 8, 'initial_gap_tenths': 35, 'min_gap_tenths': 10, 'time_before_reduction': 1, 'time_to_reduce': 26, 'call': -2, 't': 29}, {'initial': 16, 'gap_tenths': 10}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 6, 'added_per_act_tenths': 15, 'max_initial': 26, 'red_actuations': 6, 'initial_gap_tenths': 30, 'min_gap_tenths': 15, 'time_before_reduction': 15, 'time_to_reduce': 8, 'call': -2, 't': 34}, {'initial': 9, 'gap_tenths': 15}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20})], [({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 26, 'red_actuations': 16, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 4, 'time_to_reduce': 18, 'call': 14, 't': 8}, {'initial': 24, 'gap_tenths': 35}), ({'min_green': 5, 'added_per_act_tenths': 10, 'max_initial': 11, 'red_actuations': 8, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 1, 'time_to_reduce': 10, 'call': -4, 't': 19}, {'initial': 8, 'gap_tenths': 15}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 6, 'added_per_act_tenths': 20, 'max_initial': 14, 'red_actuations': 13, 'initial_gap_tenths': 50, 'min_gap_tenths': 10, 'time_before_reduction': 6, 'time_to_reduce': 6, 'call': 4, 't': 0}, {'initial': 14, 'gap_tenths': 50}), ({'min_green': 6, 'added_per_act_tenths': 20, 'max_initial': 29, 'red_actuations': 17, 'initial_gap_tenths': 35, 'min_gap_tenths': 10, 'time_before_reduction': 6, 'time_to_reduce': 15, 'call': 12, 't': 36}, {'initial': 29, 'gap_tenths': 10}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 5, 'added_per_act_tenths': 10, 'max_initial': 18, 'red_actuations': 16, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 11, 'time_to_reduce': 25, 'call': 5, 't': 28}, {'initial': 16, 'gap_tenths': 26})], [({'min_green': 8, 'added_per_act_tenths': 15, 'max_initial': 29, 'red_actuations': 15, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 3, 'time_to_reduce': 23, 'call': 0, 't': 2}, {'initial': 23, 'gap_tenths': 40}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 9, 'added_per_act_tenths': 10, 'max_initial': 10, 'red_actuations': 1, 'initial_gap_tenths': 50, 'min_gap_tenths': 15, 'time_before_reduction': 9, 'time_to_reduce': 30, 'call': 8, 't': 26}, {'initial': 9, 'gap_tenths': 40}), ({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 4, 'added_per_act_tenths': 25, 'max_initial': 17, 'red_actuations': 5, 'initial_gap_tenths': 35, 'min_gap_tenths': 20, 'time_before_reduction': 6, 'time_to_reduce': 6, 'call': -1, 't': 21}, {'initial': 13, 'gap_tenths': 20}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 14, 'red_actuations': 17, 'initial_gap_tenths': 40, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 5, 'call': 9, 't': 47}, {'initial': 14, 'gap_tenths': 15}), ({'min_green': 10, 'added_per_act_tenths': 15, 'max_initial': 22, 'red_actuations': 2, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 5, 'call': -4, 't': 3}, {'initial': 10, 'gap_tenths': 50})], [({'min_green': 5, 'added_per_act_tenths': 15, 'max_initial': 20, 'red_actuations': 7, 'initial_gap_tenths': 40, 'min_gap_tenths': 20, 'time_before_reduction': 10, 'time_to_reduce': 15, 'call': 3, 't': 20}, {'initial': 11, 'gap_tenths': 31}), ({'min_green': 4, 'added_per_act_tenths': 10, 'max_initial': 24, 'red_actuations': 15, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 1, 'time_to_reduce': 27, 'call': 13, 't': 35}, {'initial': 15, 'gap_tenths': 20}), ({'min_green': 8, 'added_per_act_tenths': 20, 'max_initial': 12, 'red_actuations': 9, 'initial_gap_tenths': 35, 'min_gap_tenths': 15, 'time_before_reduction': 5, 'time_to_reduce': 20, 'call': -4, 't': 12}, {'initial': 12, 'gap_tenths': 28}), ({'min_green': 7, 'added_per_act_tenths': 15, 'max_initial': 12, 'red_actuations': 3, 'initial_gap_tenths': 30, 'min_gap_tenths': 20, 'time_before_reduction': 3, 'time_to_reduce': 6, 'call': 0, 't': 40}, {'initial': 7, 'gap_tenths': 20}), ({'min_green': 10, 'added_per_act_tenths': 20, 'max_initial': 30, 'red_actuations': 18, 'initial_gap_tenths': 35, 'min_gap_tenths': 20, 'time_before_reduction': 0, 'time_to_reduce': 26, 'call': 0, 't': 33}, {'initial': 30, 'gap_tenths': 20}), ({'min_green': 4, 'added_per_act_tenths': 20, 'max_initial': 13, 'red_actuations': 8, 'initial_gap_tenths': 30, 'min_gap_tenths': 20, 'time_before_reduction': 6, 'time_to_reduce': 23, 'call': 0, 't': 55}, {'initial': 13, 'gap_tenths': 20}), ({'min_green': 6, 'added_per_act_tenths': 25, 'max_initial': 25, 'red_actuations': 3, 'initial_gap_tenths': 50, 'min_gap_tenths': 20, 'time_before_reduction': 8, 'time_to_reduce': 12, 'call': 0, 't': 40}, {'initial': 8, 'gap_tenths': 20}), ({'min_green': 8, 'added_per_act_tenths': 15, 'max_initial': 28, 'red_actuations': 0, 'initial_gap_tenths': 50, 'min_gap_tenths': 15, 'time_before_reduction': 15, 'time_to_reduce': 10, 'call': 5, 't': 20}, {'initial': 8, 'gap_tenths': 50})]]\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-volume-density-interpolation","generated_at":"2026-09-29T14:47:58.301228+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.","root_cause":"Integer division happens before multiplying by the gap range, so the allowed gap stays at the initial gap for the whole reduction period.","sha256":"e4c54ada5dc4234ce846a7abbafced9a6a73339b51749e84ece8fc9e7e6bb31d","title":"Volume-density added initial and gap reduction: the reduction is quantised to whole reduction periods · 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":39.938,"exit_code":1,"observations":[{"actual":{"gap_tenths":28,"initial":12},"check":"timing oracle 0","expected":{"gap_tenths":28,"initial":12},"passed":true},{"actual":{"gap_tenths":30,"initial":11},"check":"timing oracle 1","expected":{"gap_tenths":31,"initial":11},"passed":false},{"actual":{"gap_tenths":50,"initial":10},"check":"timing oracle 2","expected":{"gap_tenths":50,"initial":10},"passed":true},{"actual":{"gap_tenths":16,"initial":11},"check":"timing oracle 3","expected":{"gap_tenths":17,"initial":11},"passed":false},{"actual":{"gap_tenths":20,"initial":8},"check":"timing oracle 4","expected":{"gap_tenths":20,"initial":8},"passed":true},{"actual":{"gap_tenths":10,"initial":16},"check":"timing oracle 5","expected":{"gap_tenths":10,"initial":16},"passed":true},{"actual":{"gap_tenths":20,"initial":13},"check":"timing oracle 6","expected":{"gap_tenths":20,"initial":13},"passed":true},{"actual":{"gap_tenths":10,"initial":13},"check":"timing oracle 7","expected":{"gap_tenths":10,"initial":13},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": {\"initial\": 12, \"gap_tenths\": 28}, \"expected\": {\"initial\": 12, \"gap_tenths\": 28}, \"passed\": true}, {\"check\": \"timing oracle 1\", \"actual\": {\"initial\": 11, \"gap_tenths\": 30}, \"expected\": {\"initial\": 11, \"gap_tenths\": 31}, \"passed\": false}, {\"check\": \"timing oracle 2\", \"actual\": {\"initial\": 10, \"gap_tenths\": 50}, \"expected\": {\"initial\": 10, \"gap_tenths\": 50}, \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": {\"initial\": 11, \"gap_tenths\": 16}, \"expected\": {\"initial\": 11, \"gap_tenths\": 17}, \"passed\": false}, {\"check\": \"timing oracle 4\", \"actual\": {\"initial\": 8, \"gap_tenths\": 20}, \"expected\": {\"initial\": 8, \"gap_tenths\": 20}, \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": {\"initial\": 16, \"gap_tenths\": 10}, \"expected\": {\"initial\": 16, \"gap_tenths\": 10}, \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": {\"initial\": 13, \"gap_tenths\": 20}, \"expected\": {\"initial\": 13, \"gap_tenths\": 20}, \"passed\": true}, {\"check\": \"timing oracle 7\", \"actual\": {\"initial\": 13, \"gap_tenths\": 10}, \"expected\": {\"initial\": 13, \"gap_tenths\": 10}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.295,"exit_code":1,"observations":[{"actual":{"gap_tenths":35,"initial":12},"check":"timing oracle 0","expected":{"gap_tenths":28,"initial":12},"passed":false},{"actual":{"gap_tenths":40,"initial":11},"check":"timing oracle 1","expected":{"gap_tenths":31,"initial":11},"passed":false},{"actual":{"gap_tenths":50,"initial":10},"check":"timing oracle 2","expected":{"gap_tenths":50,"initial":10},"passed":true},{"actual":{"gap_tenths":40,"initial":11},"check":"timing oracle 3","expected":{"gap_tenths":17,"initial":11},"passed":false},{"actual":{"gap_tenths":20,"initial":8},"check":"timing oracle 4","expected":{"gap_tenths":20,"initial":8},"passed":true},{"actual":{"gap_tenths":10,"initial":16},"check":"timing oracle 5","expected":{"gap_tenths":10,"initial":16},"passed":true},{"actual":{"gap_tenths":20,"initial":13},"check":"timing oracle 6","expected":{"gap_tenths":20,"initial":13},"passed":true},{"actual":{"gap_tenths":10,"initial":13},"check":"timing oracle 7","expected":{"gap_tenths":10,"initial":13},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": {\"initial\": 12, \"gap_tenths\": 35}, \"expected\": {\"initial\": 12, \"gap_tenths\": 28}, \"passed\": false}, {\"check\": \"timing oracle 1\", \"actual\": {\"initial\": 11, \"gap_tenths\": 40}, \"expected\": {\"initial\": 11, \"gap_tenths\": 31}, \"passed\": false}, {\"check\": \"timing oracle 2\", \"actual\": {\"initial\": 10, \"gap_tenths\": 50}, \"expected\": {\"initial\": 10, \"gap_tenths\": 50}, \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": {\"initial\": 11, \"gap_tenths\": 40}, \"expected\": {\"initial\": 11, \"gap_tenths\": 17}, \"passed\": false}, {\"check\": \"timing oracle 4\", \"actual\": {\"initial\": 8, \"gap_tenths\": 20}, \"expected\": {\"initial\": 8, \"gap_tenths\": 20}, \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": {\"initial\": 16, \"gap_tenths\": 10}, \"expected\": {\"initial\": 16, \"gap_tenths\": 10}, \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": {\"initial\": 13, \"gap_tenths\": 20}, \"expected\": {\"initial\": 13, \"gap_tenths\": 20}, \"passed\": true}, {\"check\": \"timing oracle 7\", \"actual\": {\"initial\": 13, \"gap_tenths\": 10}, \"expected\": {\"initial\": 13, \"gap_tenths\": 10}, \"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."}}