{"abstract":"Overlap phase indication returns a wrong result when the inhibit applies only when every not-during phase is green.","category":"Traffic signal timing plans","checks":8,"contract":"Input {parents, not_during, state: [[phase, G|Y|RC|R]] for timing phases, next: phases to be served next}. The overlap is red while any not_during phase is green. Otherwise it is green while any parent is green. If a parent is terminating (Y or RC) the overlap stays green when any next phase is a parent; otherwise it is yellow if any terminating parent is in yellow, else red. Otherwise red.","contract_signature":"x","evaluation_group":"w2-traffic_signal_timing_plans-overlap-phase","failed_approach":"Treating a yellow not-during phase as inhibiting holds the overlap red longer than stipulated.","family":"w2-traffic_signal_timing_plans-overlap-phase-not-during","id":"FA-68316","implementations":{"attempt":{"sha256":"1620ede17db0642749bd5ee923b7a8003e22b99d79b65b0d5132c449594d5874","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    par = set(x['parents'])\n    nd = set(x['not_during'])\n    cur = {ph: iv for ph, iv in x['state']}\n    if any(cur.get(p) in ('G', 'Y') for p in nd):\n        return 'R'\n    if any(cur.get(p) == 'G' for p in par):\n        return 'G'\n    terminating = [p for p in sorted(par) if cur.get(p) in ('Y', 'RC')]\n    if terminating:\n        if any(p in par for p in x['next']):\n            return 'G'\n        if any(cur[p] == 'Y' for p in terminating):\n            return 'Y'\n        return 'R'\n    return 'R'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'parents': [4, 5, 8], 'not_during': [], 'state': [[5, 'G'], [7, 'G'], [2, 'G']], 'next': []}, 'G'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [2, 3, 8], 'not_during': [5, 7], 'state': [[5, 'Y'], [3, 'Y'], [4, 'Y']], 'next': [5, 8]}, 'G'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [2, 8], 'not_during': [3, 7], 'state': [[1, 'G'], [5, 'RC'], [7, 'R']], 'next': [4, 5]}, 'R'), ({'parents': [1], 'not_during': [3], 'state': [[1, 'G'], [3, 'Y']], 'next': [8]}, 'G'), ({'parents': [3, 5], 'not_during': [], 'state': [[2, 'G'], [6, 'RC'], [7, 'G']], 'next': [3]}, 'R')], [({'parents': [1, 2, 5], 'not_during': [4, 6], 'state': [[2, 'R']], 'next': []}, 'R'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 8], 'not_during': [5], 'state': [[2, 'Y'], [5, 'Y']], 'next': []}, 'Y'), ({'parents': [1, 3, 5], 'not_during': [], 'state': [[8, 'G'], [3, 'G'], [4, 'R']], 'next': [4]}, 'G'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [1, 4, 5], 'not_during': [6, 7], 'state': [[8, 'R']], 'next': []}, 'R'), ({'parents': [6, 7], 'not_during': [1], 'state': [[7, 'Y'], [8, 'RC'], [1, 'Y']], 'next': []}, 'Y')], [({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [1, 6, 8], 'not_during': [3, 7], 'state': [[1, 'RC'], [3, 'Y']], 'next': [1, 3]}, 'G'), ({'parents': [2, 4, 8], 'not_during': [5, 6], 'state': [[8, 'G'], [3, 'RC'], [5, 'G']], 'next': [7]}, 'R'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [1, 4, 7], 'not_during': [8], 'state': [[1, 'R']], 'next': [3]}, 'R'), ({'parents': [2], 'not_during': [1, 4], 'state': [[1, 'G']], 'next': [5]}, 'R'), ({'parents': [1, 2, 4], 'not_during': [5, 8], 'state': [[7, 'RC']], 'next': []}, 'R')], [({'parents': [5, 7], 'not_during': [1, 3], 'state': [[2, 'RC'], [7, 'Y'], [3, 'Y']], 'next': []}, 'Y'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [1, 4, 5], 'not_during': [2, 6], 'state': [[6, 'Y'], [5, 'Y'], [1, 'R']], 'next': []}, 'Y'), ({'parents': [1, 3, 7], 'not_during': [5, 6], 'state': [[1, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2], 'not_during': [4, 7], 'state': [[4, 'RC'], [1, 'RC'], [7, 'R']], 'next': [7, 8]}, 'R'), ({'parents': [1, 2, 5], 'not_during': [4, 8], 'state': [[4, 'R'], [8, 'RC'], [5, 'Y']], 'next': [7, 8]}, 'Y')], [({'parents': [6, 7], 'not_during': [5, 8], 'state': [[8, 'Y'], [7, 'G']], 'next': [4]}, 'G'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [1, 6, 8], 'not_during': [3, 7], 'state': [[6, 'G'], [1, 'Y'], [7, 'G']], 'next': []}, 'R'), ({'parents': [2, 4], 'not_during': [6], 'state': [[4, 'Y'], [6, 'Y']], 'next': [2]}, 'G'), ({'parents': [3, 4, 6], 'not_during': [7], 'state': [[2, 'G'], [5, 'R'], [3, 'Y']], 'next': []}, 'Y'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [1, 2, 4], 'not_during': [], 'state': [[8, 'RC']], 'next': [2, 7]}, 'R')]]\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":"295ab458d9cadcc65bbad115b68df32c5631e50a3a0cf1c12f3e185e870c56be","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    par = set(x['parents'])\n    nd = set(x['not_during'])\n    cur = {ph: iv for ph, iv in x['state']}\n    if all(cur.get(p) == 'G' for p in nd):\n        return 'R'\n    if any(cur.get(p) == 'G' for p in par):\n        return 'G'\n    terminating = [p for p in sorted(par) if cur.get(p) in ('Y', 'RC')]\n    if terminating:\n        if any(p in par for p in x['next']):\n            return 'G'\n        if any(cur[p] == 'Y' for p in terminating):\n            return 'Y'\n        return 'R'\n    return 'R'\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[({'parents': [4, 5, 8], 'not_during': [], 'state': [[5, 'G'], [7, 'G'], [2, 'G']], 'next': []}, 'G'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [2, 3, 8], 'not_during': [5, 7], 'state': [[5, 'Y'], [3, 'Y'], [4, 'Y']], 'next': [5, 8]}, 'G'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [2, 8], 'not_during': [3, 7], 'state': [[1, 'G'], [5, 'RC'], [7, 'R']], 'next': [4, 5]}, 'R'), ({'parents': [1], 'not_during': [3], 'state': [[1, 'G'], [3, 'Y']], 'next': [8]}, 'G'), ({'parents': [3, 5], 'not_during': [], 'state': [[2, 'G'], [6, 'RC'], [7, 'G']], 'next': [3]}, 'R')], [({'parents': [1, 2, 5], 'not_during': [4, 6], 'state': [[2, 'R']], 'next': []}, 'R'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 8], 'not_during': [5], 'state': [[2, 'Y'], [5, 'Y']], 'next': []}, 'Y'), ({'parents': [1, 3, 5], 'not_during': [], 'state': [[8, 'G'], [3, 'G'], [4, 'R']], 'next': [4]}, 'G'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [1, 4, 5], 'not_during': [6, 7], 'state': [[8, 'R']], 'next': []}, 'R'), ({'parents': [6, 7], 'not_during': [1], 'state': [[7, 'Y'], [8, 'RC'], [1, 'Y']], 'next': []}, 'Y')], [({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [1, 6, 8], 'not_during': [3, 7], 'state': [[1, 'RC'], [3, 'Y']], 'next': [1, 3]}, 'G'), ({'parents': [2, 4, 8], 'not_during': [5, 6], 'state': [[8, 'G'], [3, 'RC'], [5, 'G']], 'next': [7]}, 'R'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [1, 4, 7], 'not_during': [8], 'state': [[1, 'R']], 'next': [3]}, 'R'), ({'parents': [2], 'not_during': [1, 4], 'state': [[1, 'G']], 'next': [5]}, 'R'), ({'parents': [1, 2, 4], 'not_during': [5, 8], 'state': [[7, 'RC']], 'next': []}, 'R')], [({'parents': [5, 7], 'not_during': [1, 3], 'state': [[2, 'RC'], [7, 'Y'], [3, 'Y']], 'next': []}, 'Y'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [1, 4, 5], 'not_during': [2, 6], 'state': [[6, 'Y'], [5, 'Y'], [1, 'R']], 'next': []}, 'Y'), ({'parents': [1, 3, 7], 'not_during': [5, 6], 'state': [[1, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2], 'not_during': [4, 7], 'state': [[4, 'RC'], [1, 'RC'], [7, 'R']], 'next': [7, 8]}, 'R'), ({'parents': [1, 2, 5], 'not_during': [4, 8], 'state': [[4, 'R'], [8, 'RC'], [5, 'Y']], 'next': [7, 8]}, 'Y')], [({'parents': [6, 7], 'not_during': [5, 8], 'state': [[8, 'Y'], [7, 'G']], 'next': [4]}, 'G'), ({'parents': [4, 5], 'not_during': [], 'state': [[4, 'RC'], [5, 'Y']], 'next': [1]}, 'Y'), ({'parents': [1, 6, 8], 'not_during': [3, 7], 'state': [[6, 'G'], [1, 'Y'], [7, 'G']], 'next': []}, 'R'), ({'parents': [2, 4], 'not_during': [6], 'state': [[4, 'Y'], [6, 'Y']], 'next': [2]}, 'G'), ({'parents': [3, 4, 6], 'not_during': [7], 'state': [[2, 'G'], [5, 'R'], [3, 'Y']], 'next': []}, 'Y'), ({'parents': [2, 3], 'not_during': [5], 'state': [[3, 'G'], [5, 'G']], 'next': []}, 'R'), ({'parents': [2, 3], 'not_during': [], 'state': [[2, 'RC'], [6, 'RC']], 'next': [3, 7]}, 'G'), ({'parents': [1, 2, 4], 'not_during': [], 'state': [[8, 'RC']], 'next': [2, 7]}, 'R')]]\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-overlap-phase-not-during","generated_at":"2026-09-29T14:48:01.065355+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":"With all() the inhibit fires vacuously when no not-during phases are configured and misses single inhibiting greens.","sha256":"bed2e3b6b9de457eaa01ac69da0bff70b5786c37be13f495988a351e4ff93b2f","title":"Overlap phase indication: the inhibit applies only when every not-during phase is green · 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.006,"exit_code":1,"observations":[{"actual":"G","check":"timing oracle 0","expected":"G","passed":true},{"actual":"Y","check":"timing oracle 1","expected":"Y","passed":true},{"actual":"R","check":"timing oracle 2","expected":"G","passed":false},{"actual":"R","check":"timing oracle 3","expected":"R","passed":true},{"actual":"G","check":"timing oracle 4","expected":"G","passed":true},{"actual":"R","check":"timing oracle 5","expected":"R","passed":true},{"actual":"R","check":"timing oracle 6","expected":"G","passed":false},{"actual":"R","check":"timing oracle 7","expected":"R","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": \"G\", \"expected\": \"G\", \"passed\": true}, {\"check\": \"timing oracle 1\", \"actual\": \"Y\", \"expected\": \"Y\", \"passed\": true}, {\"check\": \"timing oracle 2\", \"actual\": \"R\", \"expected\": \"G\", \"passed\": false}, {\"check\": \"timing oracle 3\", \"actual\": \"R\", \"expected\": \"R\", \"passed\": true}, {\"check\": \"timing oracle 4\", \"actual\": \"G\", \"expected\": \"G\", \"passed\": true}, {\"check\": \"timing oracle 5\", \"actual\": \"R\", \"expected\": \"R\", \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": \"R\", \"expected\": \"G\", \"passed\": false}, {\"check\": \"timing oracle 7\", \"actual\": \"R\", \"expected\": \"R\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.414,"exit_code":1,"observations":[{"actual":"R","check":"timing oracle 0","expected":"G","passed":false},{"actual":"R","check":"timing oracle 1","expected":"Y","passed":false},{"actual":"G","check":"timing oracle 2","expected":"G","passed":true},{"actual":"R","check":"timing oracle 3","expected":"R","passed":true},{"actual":"R","check":"timing oracle 4","expected":"G","passed":false},{"actual":"R","check":"timing oracle 5","expected":"R","passed":true},{"actual":"G","check":"timing oracle 6","expected":"G","passed":true},{"actual":"R","check":"timing oracle 7","expected":"R","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"timing oracle 0\", \"actual\": \"R\", \"expected\": \"G\", \"passed\": false}, {\"check\": \"timing oracle 1\", \"actual\": \"R\", \"expected\": \"Y\", \"passed\": false}, {\"check\": \"timing oracle 2\", \"actual\": \"G\", \"expected\": \"G\", \"passed\": true}, {\"check\": \"timing oracle 3\", \"actual\": \"R\", \"expected\": \"R\", \"passed\": true}, {\"check\": \"timing oracle 4\", \"actual\": \"R\", \"expected\": \"G\", \"passed\": false}, {\"check\": \"timing oracle 5\", \"actual\": \"R\", \"expected\": \"R\", \"passed\": true}, {\"check\": \"timing oracle 6\", \"actual\": \"G\", \"expected\": \"G\", \"passed\": true}, {\"check\": \"timing oracle 7\", \"actual\": \"R\", \"expected\": \"R\", \"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."}}