{"abstract":"Dependencies repeated across groups install repeatedly.","category":"Dependency resolution","checks":7,"contract":"Return sorted unique dependency names from runtime and explicitly enabled optional groups. Exclude inactive markers and disabled entries; a dependency appearing in multiple groups is emitted once.","evaluation_group":"xt-dependency-groups","failed_approach":"The attempted repair substitutes list(selected). Fixture 7 still yields ['z', 'a', 'z'] instead of ['a', 'z'].","family":"xt-dependency-groups-group-union","id":"FA-9401","implementations":{"attempt":{"sha256":"82362bea5a70af463634e1f80c40ed68b41fea978a2ccd99d18949659e8ae799","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows, enabled):\n    selected = []\n    for name, group, marker, disabled in rows:\n        if group != 'runtime' and group not in enabled: continue\n        if not marker: continue\n        if disabled: continue\n        selected.append(name)\n    return list(selected)\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', 'runtime', True, False)], []), ['a'])\ncheck('fixture 3', solve([('a', 'dev', True, False)], []), [])\ncheck('fixture 4', solve([('a', 'dev', True, False)], ['dev']), ['a'])\ncheck('fixture 5', solve([('a', 'runtime', False, False)], []), [])\ncheck('fixture 6', solve([('a', 'runtime', True, True)], []), [])\ncheck('fixture 7', solve([('z', 'runtime', True, False), ('a', 'dev', True, False), ('z', 'dev', True, False)], ['dev']), ['a', 'z'])\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":"ae8b04c7a53243130601e73e9d9366c5aece81f5b4ede615c3cb0a5761cfdf0d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows, enabled):\n    selected = []\n    for name, group, marker, disabled in rows:\n        if group != 'runtime' and group not in enabled: continue\n        if not marker: continue\n        if disabled: continue\n        selected.append(name)\n    return sorted(selected)\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', 'runtime', True, False)], []), ['a'])\ncheck('fixture 3', solve([('a', 'dev', True, False)], []), [])\ncheck('fixture 4', solve([('a', 'dev', True, False)], ['dev']), ['a'])\ncheck('fixture 5', solve([('a', 'runtime', False, False)], []), [])\ncheck('fixture 6', solve([('a', 'runtime', True, True)], []), [])\ncheck('fixture 7', solve([('z', 'runtime', True, False), ('a', 'dev', True, False), ('z', 'dev', True, False)], ['dev']), ['a', 'z'])\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":"1d8ef41da514736c11f17d6de7c87614627de2794085db73fb84824afa7040f1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows, enabled):\n    selected = []\n    for name, group, marker, disabled in rows:\n        if group != 'runtime' and group not in enabled: continue\n        if not marker: continue\n        if disabled: continue\n        selected.append(name)\n    return sorted(set(selected))\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', 'runtime', True, False)], []), ['a'])\ncheck('fixture 3', solve([('a', 'dev', True, False)], []), [])\ncheck('fixture 4', solve([('a', 'dev', True, False)], ['dev']), ['a'])\ncheck('fixture 5', solve([('a', 'runtime', False, False)], []), [])\ncheck('fixture 6', solve([('a', 'runtime', True, True)], []), [])\ncheck('fixture 7', solve([('z', 'runtime', True, False), ('a', 'dev', True, False), ('z', 'dev', True, False)], ['dev']), ['a', 'z'])\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-dependency-groups-group-union","generated_at":"2026-09-29T14:38:29.681732+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of dependency group activation, suitable for testing build and release tooling without external services.","repair":"Deduplicate the sorted activated dependency names.","root_cause":"The implementation substitutes sorted(selected) for sorted(set(selected)), so dependencies repeated across groups install repeatedly.","sha256":"49e519a2c3f5de6bb175da1538f6fec610b29c27f5e94374f49aa38f00d7b223","title":"Dependency group activation: Dependencies repeated across groups install repeatedly · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":35.54,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":[],"check":"fixture 3","expected":[],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":[],"check":"fixture 5","expected":[],"passed":true},{"actual":[],"check":"fixture 6","expected":[],"passed":true},{"actual":["z","a","z"],"check":"fixture 7","expected":["a","z"],"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\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"z\", \"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":35.886,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":[],"check":"fixture 3","expected":[],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":[],"check":"fixture 5","expected":[],"passed":true},{"actual":[],"check":"fixture 6","expected":[],"passed":true},{"actual":["a","z","z"],"check":"fixture 7","expected":["a","z"],"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\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\", \"z\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":35.651,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":[],"check":"fixture 3","expected":[],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":[],"check":"fixture 5","expected":[],"passed":true},{"actual":[],"check":"fixture 6","expected":[],"passed":true},{"actual":["a","z"],"check":"fixture 7","expected":["a","z"],"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\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}