{"abstract":"Only the first requested target enters the closure.","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 stack = list(roots[1:]). Fixture 2 still yields [] instead of ['a'].","family":"xt-target-closure-root-seed","id":"FA-9131","implementations":{"attempt":{"sha256":"759f0fb4bbc9a06f1e61fd6654848f95a35e443bb568af67381eb7d906e91d24","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[1:])\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"},"broken":{"sha256":"0c3543ccdf6d4b85e2579fd80820bcce409394e6773851ec7795d9604edd7117","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[:1])\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"},"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-root-seed","generated_at":"2026-09-29T14:38:27.367608+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":"Seed traversal with every requested target.","root_cause":"The implementation substitutes stack = list(roots[:1]) for stack = list(roots), so only the first requested target enters the closure.","sha256":"e21d7341a32e1e3340e492dbe080d0b05c0709d31920a62501b7301a529b45df","title":"Build prerequisite closure: Only the first requested target enters the closure · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.236,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[],"check":"fixture 2","expected":["a"],"passed":false},{"actual":[],"check":"fixture 3","expected":["a","b"],"passed":false},{"actual":[],"check":"fixture 4","expected":["a","b","c"],"passed":false},{"actual":["a"],"check":"fixture 5","expected":["a","z"],"passed":false},{"actual":["a","b"],"check":"fixture 6","expected":["a","b"],"passed":true},{"actual":[],"check":"fixture 7","expected":["a","b"],"passed":false},{"actual":[],"check":"fixture 8","expected":["a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [\"a\"], \"expected\": [\"a\", \"z\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 8\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.296,"exit_code":1,"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":["z"],"check":"fixture 5","expected":["a","z"],"passed":false},{"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":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\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"z\"], \"expected\": [\"a\", \"z\"], \"passed\": false}, {\"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\": false}\n"},"fixed":{"elapsed_ms":38.645,"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"}