{"abstract":"Inactive optional groups are installed.","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 group == 'runtime' and group not in enabled. Fixture 2 still yields [] instead of ['a'].","family":"xt-dependency-groups-optional-selection","id":"FA-9386","implementations":{"attempt":{"sha256":"486082347336175c61379dbb0fba561dba55a87d59ea3a272d75e9a131d1729e","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"},"broken":{"sha256":"d7f6d40e578f72006598afa6bb04e9d29626a211807960e26f9cbea946487f2e","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 False: 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"},"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-optional-selection","generated_at":"2026-09-29T14:38:29.581011+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":"Skip optional groups that were not enabled.","root_cause":"The implementation substitutes False for group != 'runtime' and group not in enabled, so inactive optional groups are installed.","sha256":"02f81532ddcd9a97d084282e52b8a6d5b135f444ed97600103e1a905d37097e7","title":"Dependency group activation: Inactive optional groups are installed · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.49,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[],"check":"fixture 2","expected":["a"],"passed":false},{"actual":["a"],"check":"fixture 3","expected":[],"passed":false},{"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":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"a\"], \"expected\": [], \"passed\": false}, {\"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\": false}\n"},"broken":{"elapsed_ms":38.057,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 3","expected":[],"passed":false},{"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":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\"], \"expected\": [], \"passed\": false}, {\"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\": false}\n"},"fixed":{"elapsed_ms":37.964,"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"}