{"abstract":"Dual-ring barrier sequencing returns a wrong result when skipped phases still consume their duration.","category":"Traffic signal timing plans","checks":8,"contract":"Input {ring1: [[1,d],[2,d],[3,d],[4,d]], ring2: [[5,d],[6,d],[7,d],[8,d]] with durations including clearance, calls, lag}. Phases 1-2/5-6 are left of the barrier and 3-4/7-8 right of it. On each side both rings start together at the barrier; if the first phase of a ring's pair is in lag the pair is swapped. Phases without calls are skipped and take no time. Both rings cross a barrier together when the slower ring finishes. Return {starts: sorted [phase, start], cycle}.","contract_signature":"x","evaluation_group":"w2-traffic_signal_timing_plans-ring-barrier","failed_approach":"Treating the main-street phases as always timing is a recall assumption the contract does not make.","family":"w2-traffic_signal_timing_plans-ring-barrier-skip-consumes","id":"FA-68116","implementations":{"attempt":{"sha256":"a38f928455915a589692282f30ef2f9f9d2cefa18673d6f5484eee2d8d6b971b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    calls = set(x['calls'])\n    lag = set(x['lag'])\n    t0 = 0\n    starts = []\n    for side in (0, 1):\n        ends = []\n        for ring in (x['ring1'], x['ring2']):\n            pair = ring[2 * side:2 * side + 2]\n            if pair[0][0] in lag:\n                pair = [pair[1], pair[0]]\n            t = t0\n            for ph, dur in pair:\n                if ph in calls:\n                    starts.append([ph, t])\n                    t += dur\n                elif ph in (2, 6):\n                    t += dur\n            ends.append(t)\n        t0 = max(ends)\n    return {'starts': sorted(starts), 'cycle': t0}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'ring1': [[1, 21], [2, 10], [3, 24], [4, 36]], 'ring2': [[5, 8], [6, 10], [7, 11], [8, 12]], 'calls': [1, 3, 4, 5, 6, 8], 'lag': [6, 8]}, {'starts': [[1, 0], [3, 21], [4, 45], [5, 0], [6, 8], [8, 21]], 'cycle': 81}), ({'ring1': [[1, 37], [2, 15], [3, 25], [4, 24]], 'ring2': [[5, 27], [6, 31], [7, 30], [8, 40]], 'calls': [1, 2, 3, 5], 'lag': [1, 7]}, {'starts': [[1, 15], [2, 0], [3, 52], [5, 0]], 'cycle': 77}), ({'ring1': [[1, 29], [2, 37], [3, 36], [4, 30]], 'ring2': [[5, 13], [6, 32], [7, 33], [8, 14]], 'calls': [1, 2, 3, 4, 5, 6, 7], 'lag': [4]}, {'starts': [[1, 0], [2, 29], [3, 66], [4, 102], [5, 0], [6, 13], [7, 66]], 'cycle': 132}), ({'ring1': [[1, 19], [2, 31], [3, 11], [4, 28]], 'ring2': [[5, 27], [6, 22], [7, 24], [8, 10]], 'calls': [1, 2, 3, 5, 7, 8], 'lag': [2, 7]}, {'starts': [[1, 0], [2, 19], [3, 50], [5, 0], [7, 60], [8, 50]], 'cycle': 84}), ({'ring1': [[1, 14], [2, 25], [3, 38], [4, 20]], 'ring2': [[5, 8], [6, 21], [7, 18], [8, 9]], 'calls': [1, 2, 3, 4, 5, 6, 7], 'lag': [3, 4, 6]}, {'starts': [[1, 0], [2, 14], [3, 59], [4, 39], [5, 0], [6, 8], [7, 39]], 'cycle': 97}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 18], [2, 34], [3, 12], [4, 19]], 'ring2': [[5, 28], [6, 32], [7, 40], [8, 28]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [2, 4, 7]}, {'starts': [[1, 0], [2, 18], [3, 60], [4, 72], [5, 0], [6, 28], [7, 88], [8, 60]], 'cycle': 128})], [({'ring1': [[1, 25], [2, 39], [3, 14], [4, 17]], 'ring2': [[5, 19], [6, 19], [7, 21], [8, 8]], 'calls': [1, 3, 5, 7, 8], 'lag': [1]}, {'starts': [[1, 0], [3, 25], [5, 0], [7, 25], [8, 46]], 'cycle': 54}), ({'ring1': [[1, 22], [2, 38], [3, 34], [4, 26]], 'ring2': [[5, 20], [6, 35], [7, 33], [8, 39]], 'calls': [2, 3, 4, 5, 6, 7, 8], 'lag': [2, 6]}, {'starts': [[2, 0], [3, 55], [4, 89], [5, 0], [6, 20], [7, 55], [8, 88]], 'cycle': 127}), ({'ring1': [[1, 30], [2, 30], [3, 9], [4, 21]], 'ring2': [[5, 27], [6, 20], [7, 39], [8, 23]], 'calls': [1, 2, 3, 4, 7, 8], 'lag': [3, 8]}, {'starts': [[1, 0], [2, 30], [3, 81], [4, 60], [7, 60], [8, 99]], 'cycle': 122}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 26], [2, 35], [3, 18], [4, 27]], 'ring2': [[5, 23], [6, 11], [7, 35], [8, 40]], 'calls': [1, 2, 4, 5, 7, 8], 'lag': [2]}, {'starts': [[1, 0], [2, 26], [4, 61], [5, 0], [7, 61], [8, 96]], 'cycle': 136}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 24], [2, 31], [3, 27], [4, 26]], 'ring2': [[5, 26], [6, 9], [7, 31], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [4, 5]}, {'starts': [[1, 0], [2, 24], [3, 55], [4, 82], [5, 9], [6, 0], [7, 55], [8, 86]], 'cycle': 116}), ({'ring1': [[1, 27], [2, 34], [3, 25], [4, 19]], 'ring2': [[5, 21], [6, 36], [7, 36], [8, 11]], 'calls': [1, 2, 4, 5, 7], 'lag': [5]}, {'starts': [[1, 0], [2, 27], [4, 61], [5, 0], [7, 61]], 'cycle': 97})], [({'ring1': [[1, 16], [2, 39], [3, 27], [4, 11]], 'ring2': [[5, 9], [6, 21], [7, 35], [8, 30]], 'calls': [1, 2, 3, 5, 6, 7], 'lag': [3, 6, 7]}, {'starts': [[1, 0], [2, 16], [3, 55], [5, 0], [6, 9], [7, 55]], 'cycle': 90}), ({'ring1': [[1, 28], [2, 39], [3, 11], [4, 35]], 'ring2': [[5, 12], [6, 27], [7, 28], [8, 32]], 'calls': [1, 2, 3, 6, 8], 'lag': [2, 8]}, {'starts': [[1, 0], [2, 28], [3, 67], [6, 0], [8, 67]], 'cycle': 99}), ({'ring1': [[1, 37], [2, 28], [3, 14], [4, 40]], 'ring2': [[5, 20], [6, 13], [7, 26], [8, 20]], 'calls': [1, 2, 3, 4, 7, 8], 'lag': [1, 6]}, {'starts': [[1, 28], [2, 0], [3, 65], [4, 79], [7, 65], [8, 91]], 'cycle': 119}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 21], [2, 16], [3, 29], [4, 37]], 'ring2': [[5, 30], [6, 28], [7, 16], [8, 39]], 'calls': [1, 2, 3, 4, 5, 6, 8], 'lag': [4, 7, 8]}, {'starts': [[1, 0], [2, 21], [3, 58], [4, 87], [5, 0], [6, 30], [8, 58]], 'cycle': 124}), ({'ring1': [[1, 23], [2, 24], [3, 12], [4, 26]], 'ring2': [[5, 11], [6, 28], [7, 38], [8, 34]], 'calls': [1, 3, 5, 7], 'lag': [2, 4, 5, 7]}, {'starts': [[1, 0], [3, 23], [5, 0], [7, 23]], 'cycle': 61}), ({'ring1': [[1, 37], [2, 15], [3, 36], [4, 34]], 'ring2': [[5, 15], [6, 33], [7, 31], [8, 19]], 'calls': [2, 3, 4, 5, 8], 'lag': [1, 3, 6]}, {'starts': [[2, 0], [3, 49], [4, 15], [5, 0], [8, 15]], 'cycle': 85})], [({'ring1': [[1, 18], [2, 28], [3, 16], [4, 40]], 'ring2': [[5, 14], [6, 18], [7, 14], [8, 8]], 'calls': [1, 3, 4, 5, 7, 8], 'lag': [7]}, {'starts': [[1, 0], [3, 18], [4, 34], [5, 0], [7, 26], [8, 18]], 'cycle': 74}), ({'ring1': [[1, 25], [2, 37], [3, 29], [4, 39]], 'ring2': [[5, 20], [6, 22], [7, 35], [8, 25]], 'calls': [2, 3, 5, 6, 8], 'lag': [6, 8]}, {'starts': [[2, 0], [3, 42], [5, 0], [6, 20], [8, 42]], 'cycle': 71}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 24], [2, 32], [3, 15], [4, 34]], 'ring2': [[5, 25], [6, 14], [7, 27], [8, 24]], 'calls': [1, 2, 3, 5, 6, 7, 8], 'lag': [8]}, {'starts': [[1, 0], [2, 24], [3, 56], [5, 0], [6, 25], [7, 56], [8, 83]], 'cycle': 107}), ({'ring1': [[1, 11], [2, 16], [3, 39], [4, 30]], 'ring2': [[5, 39], [6, 32], [7, 25], [8, 16]], 'calls': [1, 2, 3, 6, 8], 'lag': []}, {'starts': [[1, 0], [2, 11], [3, 32], [6, 0], [8, 32]], 'cycle': 71}), ({'ring1': [[1, 28], [2, 19], [3, 22], [4, 16]], 'ring2': [[5, 12], [6, 13], [7, 24], [8, 33]], 'calls': [1, 4, 5, 7, 8], 'lag': [5, 7]}, {'starts': [[1, 0], [4, 28], [5, 0], [7, 61], [8, 28]], 'cycle': 85}), ({'ring1': [[1, 13], [2, 17], [3, 17], [4, 21]], 'ring2': [[5, 23], [6, 15], [7, 9], [8, 12]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 17], [2, 0], [3, 38], [4, 55], [5, 0], [6, 23], [7, 38], [8, 47]], 'cycle': 76})], [({'ring1': [[1, 36], [2, 14], [3, 25], [4, 8]], 'ring2': [[5, 20], [6, 12], [7, 38], [8, 10]], 'calls': [2, 3, 4, 5, 8], 'lag': [1, 7]}, {'starts': [[2, 0], [3, 20], [4, 45], [5, 0], [8, 20]], 'cycle': 53}), ({'ring1': [[1, 24], [2, 12], [3, 31], [4, 23]], 'ring2': [[5, 26], [6, 34], [7, 9], [8, 27]], 'calls': [1, 3, 4, 6, 7], 'lag': [2, 3]}, {'starts': [[1, 0], [3, 57], [4, 34], [6, 0], [7, 34]], 'cycle': 88}), ({'ring1': [[1, 40], [2, 8], [3, 11], [4, 14]], 'ring2': [[5, 14], [6, 38], [7, 12], [8, 25]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [8]}, {'starts': [[1, 0], [2, 40], [3, 52], [4, 63], [5, 0], [6, 14], [7, 52], [8, 64]], 'cycle': 89}), ({'ring1': [[1, 38], [2, 25], [3, 11], [4, 13]], 'ring2': [[5, 31], [6, 32], [7, 29], [8, 35]], 'calls': [1, 2, 3, 4, 5, 7, 8], 'lag': [2, 7]}, {'starts': [[1, 0], [2, 38], [3, 63], [4, 74], [5, 0], [7, 98], [8, 63]], 'cycle': 127}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 36], [2, 21], [3, 23], [4, 13]], 'ring2': [[5, 29], [6, 11], [7, 32], [8, 38]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [6, 7, 8]}, {'starts': [[1, 0], [2, 36], [3, 57], [4, 80], [5, 0], [6, 29], [7, 95], [8, 57]], 'cycle': 127}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 38], [2, 13], [3, 11], [4, 35]], 'ring2': [[5, 34], [6, 11], [7, 12], [8, 15]], 'calls': [1, 2, 5, 7, 8], 'lag': [1, 4, 5]}, {'starts': [[1, 13], [2, 0], [5, 0], [7, 51], [8, 63]], 'cycle': 78})]]\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":"3dc533741ded6c5f353346fb8df6071c576ac16f647b69154f8fb87b47024e7e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    calls = set(x['calls'])\n    lag = set(x['lag'])\n    t0 = 0\n    starts = []\n    for side in (0, 1):\n        ends = []\n        for ring in (x['ring1'], x['ring2']):\n            pair = ring[2 * side:2 * side + 2]\n            if pair[0][0] in lag:\n                pair = [pair[1], pair[0]]\n            t = t0\n            for ph, dur in pair:\n                if ph in calls:\n                    starts.append([ph, t])\n                t += dur\n            ends.append(t)\n        t0 = max(ends)\n    return {'starts': sorted(starts), 'cycle': t0}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'ring1': [[1, 21], [2, 10], [3, 24], [4, 36]], 'ring2': [[5, 8], [6, 10], [7, 11], [8, 12]], 'calls': [1, 3, 4, 5, 6, 8], 'lag': [6, 8]}, {'starts': [[1, 0], [3, 21], [4, 45], [5, 0], [6, 8], [8, 21]], 'cycle': 81}), ({'ring1': [[1, 37], [2, 15], [3, 25], [4, 24]], 'ring2': [[5, 27], [6, 31], [7, 30], [8, 40]], 'calls': [1, 2, 3, 5], 'lag': [1, 7]}, {'starts': [[1, 15], [2, 0], [3, 52], [5, 0]], 'cycle': 77}), ({'ring1': [[1, 29], [2, 37], [3, 36], [4, 30]], 'ring2': [[5, 13], [6, 32], [7, 33], [8, 14]], 'calls': [1, 2, 3, 4, 5, 6, 7], 'lag': [4]}, {'starts': [[1, 0], [2, 29], [3, 66], [4, 102], [5, 0], [6, 13], [7, 66]], 'cycle': 132}), ({'ring1': [[1, 19], [2, 31], [3, 11], [4, 28]], 'ring2': [[5, 27], [6, 22], [7, 24], [8, 10]], 'calls': [1, 2, 3, 5, 7, 8], 'lag': [2, 7]}, {'starts': [[1, 0], [2, 19], [3, 50], [5, 0], [7, 60], [8, 50]], 'cycle': 84}), ({'ring1': [[1, 14], [2, 25], [3, 38], [4, 20]], 'ring2': [[5, 8], [6, 21], [7, 18], [8, 9]], 'calls': [1, 2, 3, 4, 5, 6, 7], 'lag': [3, 4, 6]}, {'starts': [[1, 0], [2, 14], [3, 59], [4, 39], [5, 0], [6, 8], [7, 39]], 'cycle': 97}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 18], [2, 34], [3, 12], [4, 19]], 'ring2': [[5, 28], [6, 32], [7, 40], [8, 28]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [2, 4, 7]}, {'starts': [[1, 0], [2, 18], [3, 60], [4, 72], [5, 0], [6, 28], [7, 88], [8, 60]], 'cycle': 128})], [({'ring1': [[1, 25], [2, 39], [3, 14], [4, 17]], 'ring2': [[5, 19], [6, 19], [7, 21], [8, 8]], 'calls': [1, 3, 5, 7, 8], 'lag': [1]}, {'starts': [[1, 0], [3, 25], [5, 0], [7, 25], [8, 46]], 'cycle': 54}), ({'ring1': [[1, 22], [2, 38], [3, 34], [4, 26]], 'ring2': [[5, 20], [6, 35], [7, 33], [8, 39]], 'calls': [2, 3, 4, 5, 6, 7, 8], 'lag': [2, 6]}, {'starts': [[2, 0], [3, 55], [4, 89], [5, 0], [6, 20], [7, 55], [8, 88]], 'cycle': 127}), ({'ring1': [[1, 30], [2, 30], [3, 9], [4, 21]], 'ring2': [[5, 27], [6, 20], [7, 39], [8, 23]], 'calls': [1, 2, 3, 4, 7, 8], 'lag': [3, 8]}, {'starts': [[1, 0], [2, 30], [3, 81], [4, 60], [7, 60], [8, 99]], 'cycle': 122}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 26], [2, 35], [3, 18], [4, 27]], 'ring2': [[5, 23], [6, 11], [7, 35], [8, 40]], 'calls': [1, 2, 4, 5, 7, 8], 'lag': [2]}, {'starts': [[1, 0], [2, 26], [4, 61], [5, 0], [7, 61], [8, 96]], 'cycle': 136}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 24], [2, 31], [3, 27], [4, 26]], 'ring2': [[5, 26], [6, 9], [7, 31], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [4, 5]}, {'starts': [[1, 0], [2, 24], [3, 55], [4, 82], [5, 9], [6, 0], [7, 55], [8, 86]], 'cycle': 116}), ({'ring1': [[1, 27], [2, 34], [3, 25], [4, 19]], 'ring2': [[5, 21], [6, 36], [7, 36], [8, 11]], 'calls': [1, 2, 4, 5, 7], 'lag': [5]}, {'starts': [[1, 0], [2, 27], [4, 61], [5, 0], [7, 61]], 'cycle': 97})], [({'ring1': [[1, 16], [2, 39], [3, 27], [4, 11]], 'ring2': [[5, 9], [6, 21], [7, 35], [8, 30]], 'calls': [1, 2, 3, 5, 6, 7], 'lag': [3, 6, 7]}, {'starts': [[1, 0], [2, 16], [3, 55], [5, 0], [6, 9], [7, 55]], 'cycle': 90}), ({'ring1': [[1, 28], [2, 39], [3, 11], [4, 35]], 'ring2': [[5, 12], [6, 27], [7, 28], [8, 32]], 'calls': [1, 2, 3, 6, 8], 'lag': [2, 8]}, {'starts': [[1, 0], [2, 28], [3, 67], [6, 0], [8, 67]], 'cycle': 99}), ({'ring1': [[1, 37], [2, 28], [3, 14], [4, 40]], 'ring2': [[5, 20], [6, 13], [7, 26], [8, 20]], 'calls': [1, 2, 3, 4, 7, 8], 'lag': [1, 6]}, {'starts': [[1, 28], [2, 0], [3, 65], [4, 79], [7, 65], [8, 91]], 'cycle': 119}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 21], [2, 16], [3, 29], [4, 37]], 'ring2': [[5, 30], [6, 28], [7, 16], [8, 39]], 'calls': [1, 2, 3, 4, 5, 6, 8], 'lag': [4, 7, 8]}, {'starts': [[1, 0], [2, 21], [3, 58], [4, 87], [5, 0], [6, 30], [8, 58]], 'cycle': 124}), ({'ring1': [[1, 23], [2, 24], [3, 12], [4, 26]], 'ring2': [[5, 11], [6, 28], [7, 38], [8, 34]], 'calls': [1, 3, 5, 7], 'lag': [2, 4, 5, 7]}, {'starts': [[1, 0], [3, 23], [5, 0], [7, 23]], 'cycle': 61}), ({'ring1': [[1, 37], [2, 15], [3, 36], [4, 34]], 'ring2': [[5, 15], [6, 33], [7, 31], [8, 19]], 'calls': [2, 3, 4, 5, 8], 'lag': [1, 3, 6]}, {'starts': [[2, 0], [3, 49], [4, 15], [5, 0], [8, 15]], 'cycle': 85})], [({'ring1': [[1, 18], [2, 28], [3, 16], [4, 40]], 'ring2': [[5, 14], [6, 18], [7, 14], [8, 8]], 'calls': [1, 3, 4, 5, 7, 8], 'lag': [7]}, {'starts': [[1, 0], [3, 18], [4, 34], [5, 0], [7, 26], [8, 18]], 'cycle': 74}), ({'ring1': [[1, 25], [2, 37], [3, 29], [4, 39]], 'ring2': [[5, 20], [6, 22], [7, 35], [8, 25]], 'calls': [2, 3, 5, 6, 8], 'lag': [6, 8]}, {'starts': [[2, 0], [3, 42], [5, 0], [6, 20], [8, 42]], 'cycle': 71}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 24], [2, 32], [3, 15], [4, 34]], 'ring2': [[5, 25], [6, 14], [7, 27], [8, 24]], 'calls': [1, 2, 3, 5, 6, 7, 8], 'lag': [8]}, {'starts': [[1, 0], [2, 24], [3, 56], [5, 0], [6, 25], [7, 56], [8, 83]], 'cycle': 107}), ({'ring1': [[1, 11], [2, 16], [3, 39], [4, 30]], 'ring2': [[5, 39], [6, 32], [7, 25], [8, 16]], 'calls': [1, 2, 3, 6, 8], 'lag': []}, {'starts': [[1, 0], [2, 11], [3, 32], [6, 0], [8, 32]], 'cycle': 71}), ({'ring1': [[1, 28], [2, 19], [3, 22], [4, 16]], 'ring2': [[5, 12], [6, 13], [7, 24], [8, 33]], 'calls': [1, 4, 5, 7, 8], 'lag': [5, 7]}, {'starts': [[1, 0], [4, 28], [5, 0], [7, 61], [8, 28]], 'cycle': 85}), ({'ring1': [[1, 13], [2, 17], [3, 17], [4, 21]], 'ring2': [[5, 23], [6, 15], [7, 9], [8, 12]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 17], [2, 0], [3, 38], [4, 55], [5, 0], [6, 23], [7, 38], [8, 47]], 'cycle': 76})], [({'ring1': [[1, 36], [2, 14], [3, 25], [4, 8]], 'ring2': [[5, 20], [6, 12], [7, 38], [8, 10]], 'calls': [2, 3, 4, 5, 8], 'lag': [1, 7]}, {'starts': [[2, 0], [3, 20], [4, 45], [5, 0], [8, 20]], 'cycle': 53}), ({'ring1': [[1, 24], [2, 12], [3, 31], [4, 23]], 'ring2': [[5, 26], [6, 34], [7, 9], [8, 27]], 'calls': [1, 3, 4, 6, 7], 'lag': [2, 3]}, {'starts': [[1, 0], [3, 57], [4, 34], [6, 0], [7, 34]], 'cycle': 88}), ({'ring1': [[1, 40], [2, 8], [3, 11], [4, 14]], 'ring2': [[5, 14], [6, 38], [7, 12], [8, 25]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [8]}, {'starts': [[1, 0], [2, 40], [3, 52], [4, 63], [5, 0], [6, 14], [7, 52], [8, 64]], 'cycle': 89}), ({'ring1': [[1, 38], [2, 25], [3, 11], [4, 13]], 'ring2': [[5, 31], [6, 32], [7, 29], [8, 35]], 'calls': [1, 2, 3, 4, 5, 7, 8], 'lag': [2, 7]}, {'starts': [[1, 0], [2, 38], [3, 63], [4, 74], [5, 0], [7, 98], [8, 63]], 'cycle': 127}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [2, 4, 6, 7, 8], 'lag': []}, {'starts': [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], 'cycle': 72}), ({'ring1': [[1, 36], [2, 21], [3, 23], [4, 13]], 'ring2': [[5, 29], [6, 11], [7, 32], [8, 38]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [6, 7, 8]}, {'starts': [[1, 0], [2, 36], [3, 57], [4, 80], [5, 0], [6, 29], [7, 95], [8, 57]], 'cycle': 127}), ({'ring1': [[1, 12], [2, 30], [3, 10], [4, 25]], 'ring2': [[5, 15], [6, 20], [7, 12], [8, 30]], 'calls': [1, 2, 3, 4, 5, 6, 7, 8], 'lag': [1]}, {'starts': [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], 'cycle': 84}), ({'ring1': [[1, 38], [2, 13], [3, 11], [4, 35]], 'ring2': [[5, 34], [6, 11], [7, 12], [8, 15]], 'calls': [1, 2, 5, 7, 8], 'lag': [1, 4, 5]}, {'starts': [[1, 13], [2, 0], [5, 0], [7, 51], [8, 63]], 'cycle': 78})]]\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-ring-barrier-skip-consumes","generated_at":"2026-09-29T14:47:59.187735+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":"The time advance is outside the call test, so a phase with no demand still holds the ring for its full duration.","sha256":"bb49ed8bad69d4b1a4e126dfe7af7d2c0fb7e1c329c4f9b5039fe6f80d93dbb3","title":"Dual-ring barrier sequencing: skipped phases still consume their duration · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":40.85,"exit_code":1,"observations":[{"actual":{"cycle":91,"starts":[[1,0],[3,31],[4,55],[5,0],[6,8],[8,31]]},"check":"timing oracle 0","expected":{"cycle":81,"starts":[[1,0],[3,21],[4,45],[5,0],[6,8],[8,21]]},"passed":false},{"actual":{"cycle":83,"starts":[[1,15],[2,0],[3,58],[5,0]]},"check":"timing oracle 1","expected":{"cycle":77,"starts":[[1,15],[2,0],[3,52],[5,0]]},"passed":false},{"actual":{"cycle":132,"starts":[[1,0],[2,29],[3,66],[4,102],[5,0],[6,13],[7,66]]},"check":"timing oracle 2","expected":{"cycle":132,"starts":[[1,0],[2,29],[3,66],[4,102],[5,0],[6,13],[7,66]]},"passed":true},{"actual":{"cycle":84,"starts":[[1,0],[2,19],[3,50],[5,0],[7,60],[8,50]]},"check":"timing oracle 3","expected":{"cycle":84,"starts":[[1,0],[2,19],[3,50],[5,0],[7,60],[8,50]]},"passed":true},{"actual":{"cycle":97,"starts":[[1,0],[2,14],[3,59],[4,39],[5,0],[6,8],[7,39]]},"check":"timing oracle 4","expected":{"cycle":97,"starts":[[1,0],[2,14],[3,59],[4,39],[5,0],[6,8],[7,39]]},"passed":true},{"actual":{"cycle":84,"starts":[[1,30],[2,0],[3,42],[4,52],[5,0],[6,15],[7,42],[8,54]]},"check":"timing oracle 5","expected":{"cycle":84,"starts":[[1,30],[2,0],[3,42],[4,52],[5,0],[6,15],[7,42],[8,54]]},"passed":true},{"actual":{"cycle":72,"starts":[[2,0],[4,30],[6,0],[7,30],[8,42]]},"check":"timing oracle 6","expected":{"cycle":72,"starts":[[2,0],[4,30],[6,0],[7,30],[8,42]]},"passed":true},{"actual":{"cycle":128,"starts":[[1,0],[2,18],[3,60],[4,72],[5,0],[6,28],[7,88],[8,60]]},"check":"timing oracle 7","expected":{"cycle":128,"starts":[[1,0],[2,18],[3,60],[4,72],[5,0],[6,28],[7,88],[8,60]]},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": {\"starts\": [[1, 0], [3, 31], [4, 55], [5, 0], [6, 8], [8, 31]], \"cycle\": 91}, \"expected\": {\"starts\": [[1, 0], [3, 21], [4, 45], [5, 0], [6, 8], [8, 21]], \"cycle\": 81}, \"passed\": false}, {\"check\": \"timing oracle 1\", \"actual\": {\"starts\": [[1, 15], [2, 0], [3, 58], [5, 0]], \"cycle\": 83}, \"expected\": {\"starts\": [[1, 15], [2, 0], [3, 52], [5, 0]], \"cycle\": 77}, \"passed\": false}, {\"check\": \"timing oracle 2\", \"actual\": {\"starts\": [[1, 0], [2, 29], [3, 66], [4, 102], [5, 0], [6, 13], [7, 66]], \"cycle\": 132}, \"expected\": {\"starts\": [[1, 0], [2, 29], [3, 66], [4, 102], [5, 0], [6, 13], [7, 66]], \"cycle\": 132}, \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": {\"starts\": [[1, 0], [2, 19], [3, 50], [5, 0], [7, 60], [8, 50]], \"cycle\": 84}, \"expected\": {\"starts\": [[1, 0], [2, 19], [3, 50], [5, 0], [7, 60], [8, 50]], \"cycle\": 84}, \"passed\": true}, {\"check\": \"timing oracle 4\", \"actual\": {\"starts\": [[1, 0], [2, 14], [3, 59], [4, 39], [5, 0], [6, 8], [7, 39]], \"cycle\": 97}, \"expected\": {\"starts\": [[1, 0], [2, 14], [3, 59], [4, 39], [5, 0], [6, 8], [7, 39]], \"cycle\": 97}, \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": {\"starts\": [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], \"cycle\": 84}, \"expected\": {\"starts\": [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], \"cycle\": 84}, \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": {\"starts\": [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], \"cycle\": 72}, \"expected\": {\"starts\": [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], \"cycle\": 72}, \"passed\": true}, {\"check\": \"timing oracle 7\", \"actual\": {\"starts\": [[1, 0], [2, 18], [3, 60], [4, 72], [5, 0], [6, 28], [7, 88], [8, 60]], \"cycle\": 128}, \"expected\": {\"starts\": [[1, 0], [2, 18], [3, 60], [4, 72], [5, 0], [6, 28], [7, 88], [8, 60]], \"cycle\": 128}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.706,"exit_code":1,"observations":[{"actual":{"cycle":91,"starts":[[1,0],[3,31],[4,55],[5,0],[6,8],[8,42]]},"check":"timing oracle 0","expected":{"cycle":81,"starts":[[1,0],[3,21],[4,45],[5,0],[6,8],[8,21]]},"passed":false},{"actual":{"cycle":128,"starts":[[1,15],[2,0],[3,58],[5,0]]},"check":"timing oracle 1","expected":{"cycle":77,"starts":[[1,15],[2,0],[3,52],[5,0]]},"passed":false},{"actual":{"cycle":132,"starts":[[1,0],[2,29],[3,66],[4,102],[5,0],[6,13],[7,66]]},"check":"timing oracle 2","expected":{"cycle":132,"starts":[[1,0],[2,29],[3,66],[4,102],[5,0],[6,13],[7,66]]},"passed":true},{"actual":{"cycle":89,"starts":[[1,0],[2,19],[3,50],[5,0],[7,60],[8,50]]},"check":"timing oracle 3","expected":{"cycle":84,"starts":[[1,0],[2,19],[3,50],[5,0],[7,60],[8,50]]},"passed":false},{"actual":{"cycle":97,"starts":[[1,0],[2,14],[3,59],[4,39],[5,0],[6,8],[7,39]]},"check":"timing oracle 4","expected":{"cycle":97,"starts":[[1,0],[2,14],[3,59],[4,39],[5,0],[6,8],[7,39]]},"passed":true},{"actual":{"cycle":84,"starts":[[1,30],[2,0],[3,42],[4,52],[5,0],[6,15],[7,42],[8,54]]},"check":"timing oracle 5","expected":{"cycle":84,"starts":[[1,30],[2,0],[3,42],[4,52],[5,0],[6,15],[7,42],[8,54]]},"passed":true},{"actual":{"cycle":84,"starts":[[2,12],[4,52],[6,15],[7,42],[8,54]]},"check":"timing oracle 6","expected":{"cycle":72,"starts":[[2,0],[4,30],[6,0],[7,30],[8,42]]},"passed":false},{"actual":{"cycle":128,"starts":[[1,0],[2,18],[3,60],[4,72],[5,0],[6,28],[7,88],[8,60]]},"check":"timing oracle 7","expected":{"cycle":128,"starts":[[1,0],[2,18],[3,60],[4,72],[5,0],[6,28],[7,88],[8,60]]},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": {\"starts\": [[1, 0], [3, 31], [4, 55], [5, 0], [6, 8], [8, 42]], \"cycle\": 91}, \"expected\": {\"starts\": [[1, 0], [3, 21], [4, 45], [5, 0], [6, 8], [8, 21]], \"cycle\": 81}, \"passed\": false}, {\"check\": \"timing oracle 1\", \"actual\": {\"starts\": [[1, 15], [2, 0], [3, 58], [5, 0]], \"cycle\": 128}, \"expected\": {\"starts\": [[1, 15], [2, 0], [3, 52], [5, 0]], \"cycle\": 77}, \"passed\": false}, {\"check\": \"timing oracle 2\", \"actual\": {\"starts\": [[1, 0], [2, 29], [3, 66], [4, 102], [5, 0], [6, 13], [7, 66]], \"cycle\": 132}, \"expected\": {\"starts\": [[1, 0], [2, 29], [3, 66], [4, 102], [5, 0], [6, 13], [7, 66]], \"cycle\": 132}, \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": {\"starts\": [[1, 0], [2, 19], [3, 50], [5, 0], [7, 60], [8, 50]], \"cycle\": 89}, \"expected\": {\"starts\": [[1, 0], [2, 19], [3, 50], [5, 0], [7, 60], [8, 50]], \"cycle\": 84}, \"passed\": false}, {\"check\": \"timing oracle 4\", \"actual\": {\"starts\": [[1, 0], [2, 14], [3, 59], [4, 39], [5, 0], [6, 8], [7, 39]], \"cycle\": 97}, \"expected\": {\"starts\": [[1, 0], [2, 14], [3, 59], [4, 39], [5, 0], [6, 8], [7, 39]], \"cycle\": 97}, \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": {\"starts\": [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], \"cycle\": 84}, \"expected\": {\"starts\": [[1, 30], [2, 0], [3, 42], [4, 52], [5, 0], [6, 15], [7, 42], [8, 54]], \"cycle\": 84}, \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": {\"starts\": [[2, 12], [4, 52], [6, 15], [7, 42], [8, 54]], \"cycle\": 84}, \"expected\": {\"starts\": [[2, 0], [4, 30], [6, 0], [7, 30], [8, 42]], \"cycle\": 72}, \"passed\": false}, {\"check\": \"timing oracle 7\", \"actual\": {\"starts\": [[1, 0], [2, 18], [3, 60], [4, 72], [5, 0], [6, 28], [7, 88], [8, 60]], \"cycle\": 128}, \"expected\": {\"starts\": [[1, 0], [2, 18], [3, 60], [4, 72], [5, 0], [6, 28], [7, 88], [8, 60]], \"cycle\": 128}, \"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."}}