{"abstract":"Missing parents are treated as empty profiles.","category":"Configuration","checks":7,"contract":"Resolve parent chains before child values, reject missing profiles, reject cycles, remove the reserved parent field, and allow explicit false values to override.","evaluation_group":"xt-profile-inheritance","failed_approach":"The attempted repair substitutes if name not in profiles: return {}. Fixture 2 still yields {} instead of 'missing'.","family":"xt-profile-inheritance-missing-parent","id":"FA-9661","implementations":{"attempt":{"sha256":"03e1b174f87b518b9f84983762aac90eb0b827cb36ddbf5739da23622b43da73","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(profiles, name):\n    chain = []\n    seen = set()\n    while name is not None:\n        if name in seen: return 'cycle'\n        if name not in profiles: return {}\n        seen.add(name)\n        chain.append(profiles[name])\n        name = profiles[name].get('parent')\n    result = {}\n    for profile in reversed(chain):\n        result.update({k:v for k,v in profile.items() if k != 'parent'})\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({}, None), {})\ncheck('fixture 2', solve({}, 'x'), 'missing')\ncheck('fixture 3', solve({'a': {'x': 1}}, 'a'), {'x': 1})\ncheck('fixture 4', solve({'a': {'x': 1, 'y': 4}, 'b': {'parent': 'a', 'x': 2}}, 'b'), {'x': 2, 'y': 4})\ncheck('fixture 5', solve({'a': {'parent': 'b'}, 'b': {'parent': 'a'}}, 'a'), 'cycle')\ncheck('fixture 6', solve({'a': {'x': True}, 'b': {'parent': 'a', 'x': False}}, 'b'), {'x': False})\ncheck('fixture 7', solve({'a': {'parent': 'absent'}}, 'a'), 'missing')\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":"d4638afb33b8690529b430e7ebf29bd7e98d624015614106243d72bb5cf723e3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(profiles, name):\n    chain = []\n    seen = set()\n    while name is not None:\n        if name in seen: return 'cycle'\n        if name not in profiles: break\n        seen.add(name)\n        chain.append(profiles[name])\n        name = profiles[name].get('parent')\n    result = {}\n    for profile in reversed(chain):\n        result.update({k:v for k,v in profile.items() if k != 'parent'})\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({}, None), {})\ncheck('fixture 2', solve({}, 'x'), 'missing')\ncheck('fixture 3', solve({'a': {'x': 1}}, 'a'), {'x': 1})\ncheck('fixture 4', solve({'a': {'x': 1, 'y': 4}, 'b': {'parent': 'a', 'x': 2}}, 'b'), {'x': 2, 'y': 4})\ncheck('fixture 5', solve({'a': {'parent': 'b'}, 'b': {'parent': 'a'}}, 'a'), 'cycle')\ncheck('fixture 6', solve({'a': {'x': True}, 'b': {'parent': 'a', 'x': False}}, 'b'), {'x': False})\ncheck('fixture 7', solve({'a': {'parent': 'absent'}}, 'a'), 'missing')\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":"6a1cce5e15fa2ca759e9c4e412da8f8392a5a05b28d9bd0b964eab12773d920a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(profiles, name):\n    chain = []\n    seen = set()\n    while name is not None:\n        if name in seen: return 'cycle'\n        if name not in profiles: return 'missing'\n        seen.add(name)\n        chain.append(profiles[name])\n        name = profiles[name].get('parent')\n    result = {}\n    for profile in reversed(chain):\n        result.update({k:v for k,v in profile.items() if k != 'parent'})\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({}, None), {})\ncheck('fixture 2', solve({}, 'x'), 'missing')\ncheck('fixture 3', solve({'a': {'x': 1}}, 'a'), {'x': 1})\ncheck('fixture 4', solve({'a': {'x': 1, 'y': 4}, 'b': {'parent': 'a', 'x': 2}}, 'b'), {'x': 2, 'y': 4})\ncheck('fixture 5', solve({'a': {'parent': 'b'}, 'b': {'parent': 'a'}}, 'a'), 'cycle')\ncheck('fixture 6', solve({'a': {'x': True}, 'b': {'parent': 'a', 'x': False}}, 'b'), {'x': False})\ncheck('fixture 7', solve({'a': {'parent': 'absent'}}, 'a'), 'missing')\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-profile-inheritance-missing-parent","generated_at":"2026-09-29T14:38:31.945644+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of profile inheritance expansion, suitable for testing build and release tooling without external services.","repair":"Fail profile expansion when a named parent does not exist.","root_cause":"The implementation substitutes if name not in profiles: break for if name not in profiles: return 'missing', so missing parents are treated as empty profiles.","sha256":"08328f94d6074765ca196d39a1d587b4cf7f3c9dcd017f377325713bee903f38","title":"Profile inheritance expansion: Missing parents are treated as empty profiles · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.88,"exit_code":1,"observations":[{"actual":{},"check":"fixture 1","expected":{},"passed":true},{"actual":{},"check":"fixture 2","expected":"missing","passed":false},{"actual":{"x":1},"check":"fixture 3","expected":{"x":1},"passed":true},{"actual":{"x":2,"y":4},"check":"fixture 4","expected":{"x":2,"y":4},"passed":true},{"actual":"cycle","check":"fixture 5","expected":"cycle","passed":true},{"actual":{"x":false},"check":"fixture 6","expected":{"x":false},"passed":true},{"actual":{},"check":"fixture 7","expected":"missing","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": {}, \"expected\": \"missing\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": {\"x\": 1}, \"expected\": {\"x\": 1}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"x\": 2, \"y\": 4}, \"expected\": {\"x\": 2, \"y\": 4}, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"cycle\", \"expected\": \"cycle\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"x\": false}, \"expected\": {\"x\": false}, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": {}, \"expected\": \"missing\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.694,"exit_code":1,"observations":[{"actual":{},"check":"fixture 1","expected":{},"passed":true},{"actual":{},"check":"fixture 2","expected":"missing","passed":false},{"actual":{"x":1},"check":"fixture 3","expected":{"x":1},"passed":true},{"actual":{"x":2,"y":4},"check":"fixture 4","expected":{"x":2,"y":4},"passed":true},{"actual":"cycle","check":"fixture 5","expected":"cycle","passed":true},{"actual":{"x":false},"check":"fixture 6","expected":{"x":false},"passed":true},{"actual":{},"check":"fixture 7","expected":"missing","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": {}, \"expected\": \"missing\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": {\"x\": 1}, \"expected\": {\"x\": 1}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"x\": 2, \"y\": 4}, \"expected\": {\"x\": 2, \"y\": 4}, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"cycle\", \"expected\": \"cycle\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"x\": false}, \"expected\": {\"x\": false}, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": {}, \"expected\": \"missing\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.454,"exit_code":0,"observations":[{"actual":{},"check":"fixture 1","expected":{},"passed":true},{"actual":"missing","check":"fixture 2","expected":"missing","passed":true},{"actual":{"x":1},"check":"fixture 3","expected":{"x":1},"passed":true},{"actual":{"x":2,"y":4},"check":"fixture 4","expected":{"x":2,"y":4},"passed":true},{"actual":"cycle","check":"fixture 5","expected":"cycle","passed":true},{"actual":{"x":false},"check":"fixture 6","expected":{"x":false},"passed":true},{"actual":"missing","check":"fixture 7","expected":"missing","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"missing\", \"expected\": \"missing\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {\"x\": 1}, \"expected\": {\"x\": 1}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"x\": 2, \"y\": 4}, \"expected\": {\"x\": 2, \"y\": 4}, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"cycle\", \"expected\": \"cycle\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"x\": false}, \"expected\": {\"x\": false}, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": \"missing\", \"expected\": \"missing\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}