{"abstract":"Order-only edges contaminate content prerequisites.","category":"Build systems","checks":8,"contract":"Return sorted unique reachable target names including roots. Traverse normal prerequisites, exclude order-only prerequisites, retain unknown leaves, and stop cycles.","evaluation_group":"xt-target-closure","failed_approach":"The attempted repair substitutes if kind == 'order'. Fixture 3 still yields ['a', 'c'] instead of ['a', 'b'].","family":"xt-target-closure-edge-kind","id":"FA-9141","implementations":{"attempt":{"sha256":"90c78b3ad09e0ce28aab2e92817a5bf22b7c8de9dee9c1d6c5341ce079b7c80e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(roots, edges):\n    seen = set()\n    stack = list(roots)\n    while stack:\n        node = stack.pop()\n        if node in seen:\n            continue\n        seen.add(node)\n        stack.extend(dep for dep, kind in edges.get(node, []) if kind == 'order')\n    return sorted(seen)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], {}), [])\ncheck('fixture 2', solve(['a'], {}), ['a'])\ncheck('fixture 3', solve(['a'], {'a': [('b', 'normal'), ('c', 'order')]}), ['a', 'b'])\ncheck('fixture 4', solve(['a'], {'a': [('b', 'normal')], 'b': [('c', 'normal')]}), ['a', 'b', 'c'])\ncheck('fixture 5', solve(['z', 'a'], {}), ['a', 'z'])\ncheck('fixture 6', solve(['a', 'a'], {'a': [('b', 'normal')]}), ['a', 'b'])\ncheck('fixture 7', solve(['a'], {'a': [('b', 'normal')], 'b': [('a', 'normal')]}), ['a', 'b'])\ncheck('fixture 8', solve(['a'], {'a': [('b', 'order')]}), ['a'])\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":"47e6c5a8f18633cd1cfa0b1a2a4bc746745bee9bd429fab3733252ea7210a62c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(roots, edges):\n    seen = set()\n    stack = list(roots)\n    while stack:\n        node = stack.pop()\n        if node in seen:\n            continue\n        seen.add(node)\n        stack.extend(dep for dep, kind in edges.get(node, []) if True)\n    return sorted(seen)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], {}), [])\ncheck('fixture 2', solve(['a'], {}), ['a'])\ncheck('fixture 3', solve(['a'], {'a': [('b', 'normal'), ('c', 'order')]}), ['a', 'b'])\ncheck('fixture 4', solve(['a'], {'a': [('b', 'normal')], 'b': [('c', 'normal')]}), ['a', 'b', 'c'])\ncheck('fixture 5', solve(['z', 'a'], {}), ['a', 'z'])\ncheck('fixture 6', solve(['a', 'a'], {'a': [('b', 'normal')]}), ['a', 'b'])\ncheck('fixture 7', solve(['a'], {'a': [('b', 'normal')], 'b': [('a', 'normal')]}), ['a', 'b'])\ncheck('fixture 8', solve(['a'], {'a': [('b', 'order')]}), ['a'])\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":"fb736e0b08304b845b394f4b47290c65c7e176c81d696953ae08cfde7c6b4012","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(roots, edges):\n    seen = set()\n    stack = list(roots)\n    while stack:\n        node = stack.pop()\n        if node in seen:\n            continue\n        seen.add(node)\n        stack.extend(dep for dep, kind in edges.get(node, []) if kind == 'normal')\n    return sorted(seen)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], {}), [])\ncheck('fixture 2', solve(['a'], {}), ['a'])\ncheck('fixture 3', solve(['a'], {'a': [('b', 'normal'), ('c', 'order')]}), ['a', 'b'])\ncheck('fixture 4', solve(['a'], {'a': [('b', 'normal')], 'b': [('c', 'normal')]}), ['a', 'b', 'c'])\ncheck('fixture 5', solve(['z', 'a'], {}), ['a', 'z'])\ncheck('fixture 6', solve(['a', 'a'], {'a': [('b', 'normal')]}), ['a', 'b'])\ncheck('fixture 7', solve(['a'], {'a': [('b', 'normal')], 'b': [('a', 'normal')]}), ['a', 'b'])\ncheck('fixture 8', solve(['a'], {'a': [('b', 'order')]}), ['a'])\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":" 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":"xt-target-closure-edge-kind","generated_at":"2026-09-29T14:38:27.404276+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of build prerequisite closure, suitable for testing build and release tooling without external services.","repair":"Traverse exactly normal prerequisite edges.","root_cause":"The implementation substitutes if True for if kind == 'normal', so order-only edges contaminate content prerequisites.","sha256":"3a021602092aff7d021f17a33e47f37b1ab8376565542a049f70dc5083b94274","title":"Build prerequisite closure: Order-only edges contaminate content prerequisites · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.444,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a","c"],"check":"fixture 3","expected":["a","b"],"passed":false},{"actual":["a"],"check":"fixture 4","expected":["a","b","c"],"passed":false},{"actual":["a","z"],"check":"fixture 5","expected":["a","z"],"passed":true},{"actual":["a"],"check":"fixture 6","expected":["a","b"],"passed":false},{"actual":["a"],"check":"fixture 7","expected":["a","b"],"passed":false},{"actual":["a","b"],"check":"fixture 8","expected":["a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"c\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 8\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.129,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a","b","c"],"check":"fixture 3","expected":["a","b"],"passed":false},{"actual":["a","b","c"],"check":"fixture 4","expected":["a","b","c"],"passed":true},{"actual":["a","z"],"check":"fixture 5","expected":["a","z"],"passed":true},{"actual":["a","b"],"check":"fixture 6","expected":["a","b"],"passed":true},{"actual":["a","b"],"check":"fixture 7","expected":["a","b"],"passed":true},{"actual":["a","b"],"check":"fixture 8","expected":["a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.061,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a","b"],"check":"fixture 3","expected":["a","b"],"passed":true},{"actual":["a","b","c"],"check":"fixture 4","expected":["a","b","c"],"passed":true},{"actual":["a","z"],"check":"fixture 5","expected":["a","z"],"passed":true},{"actual":["a","b"],"check":"fixture 6","expected":["a","b"],"passed":true},{"actual":["a","b"],"check":"fixture 7","expected":["a","b"],"passed":true},{"actual":["a"],"check":"fixture 8","expected":["a"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 8\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}