{"abstract":"Nested mappings keep removed subkeys.","category":"Configuration","checks":8,"contract":"Merge mappings left to right. None deletes a key, false and zero are retained, lists replace instead of concatenate, and mapping values replace atomically.","contract_signature":"layers","evaluation_group":"xt-config-overlay","failed_approach":"The attempted repair substitutes else: result[key] = result.get(key, value) if isinstance(value, dict) else value. Fixture 7 still yields {'a': {'x': 1}} instead of {'a': {'y': 2}}.","family":"xt-config-overlay-mapping-replace","id":"FA-9601","implementations":{"attempt":{"sha256":"f4b8194778fab3f0a478c4a6542388795f0abcc78216b481d10dbf36dace027e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(layers):\n    result = {}\n    for layer in layers:\n        for key, value in layer.items():\n            if value is None: result.pop(key, None)\n            else: result[key] = result.get(key, value) if isinstance(value, dict) else value\n    return result\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': 1}, {'a': 2}]), {'a': 2})\ncheck('fixture 3', solve([{'a': 1}, {'a': None}]), {})\ncheck('fixture 4', solve([{'a': True}, {'a': False}]), {'a': False})\ncheck('fixture 5', solve([{'a': 2}, {'a': 0}]), {'a': 0})\ncheck('fixture 6', solve([{'a': [1]}, {'a': [2]}]), {'a': [2]})\ncheck('fixture 7', solve([{'a': {'x': 1}}, {'a': {'y': 2}}]), {'a': {'y': 2}})\ncheck('fixture 8', solve([{'a': 1}, {'b': 2}]), {'a': 1, 'b': 2})\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":"74cb509727922d1efccf4a81c7a0824a2ea7b5cf9a3a31ced3f1d8cbe6ffda3f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(layers):\n    result = {}\n    for layer in layers:\n        for key, value in layer.items():\n            if value is None: result.pop(key, None)\n            else: result[key] = dict(result.get(key, {}), **value) if isinstance(value, dict) else value\n    return result\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': 1}, {'a': 2}]), {'a': 2})\ncheck('fixture 3', solve([{'a': 1}, {'a': None}]), {})\ncheck('fixture 4', solve([{'a': True}, {'a': False}]), {'a': False})\ncheck('fixture 5', solve([{'a': 2}, {'a': 0}]), {'a': 0})\ncheck('fixture 6', solve([{'a': [1]}, {'a': [2]}]), {'a': [2]})\ncheck('fixture 7', solve([{'a': {'x': 1}}, {'a': {'y': 2}}]), {'a': {'y': 2}})\ncheck('fixture 8', solve([{'a': 1}, {'b': 2}]), {'a': 1, 'b': 2})\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-config-overlay-mapping-replace","generated_at":"2026-09-29T14:38:31.455809+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of explicit configuration overlay, suitable for testing build and release tooling without external services.","root_cause":"The implementation substitutes else: result[key] = dict(result.get(key, {}), **value) if isinstance(value, dict) else value for else: result[key] = value, so nested mappings keep removed subkeys.","sha256":"371ba0fae74d61bfddcd33152168f38d450db59580aff083c556a83d715d0377","title":"Explicit configuration overlay: Nested mappings keep removed subkeys · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":39.346,"exit_code":1,"observations":[{"actual":{},"check":"fixture 1","expected":{},"passed":true},{"actual":{"a":2},"check":"fixture 2","expected":{"a":2},"passed":true},{"actual":{},"check":"fixture 3","expected":{},"passed":true},{"actual":{"a":false},"check":"fixture 4","expected":{"a":false},"passed":true},{"actual":{"a":0},"check":"fixture 5","expected":{"a":0},"passed":true},{"actual":{"a":[2]},"check":"fixture 6","expected":{"a":[2]},"passed":true},{"actual":{"a":{"x":1}},"check":"fixture 7","expected":{"a":{"y":2}},"passed":false},{"actual":{"a":1,"b":2},"check":"fixture 8","expected":{"a":1,"b":2},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": {\"a\": 2}, \"expected\": {\"a\": 2}, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"a\": false}, \"expected\": {\"a\": false}, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": {\"a\": 0}, \"expected\": {\"a\": 0}, \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"a\": [2]}, \"expected\": {\"a\": [2]}, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": {\"a\": {\"x\": 1}}, \"expected\": {\"a\": {\"y\": 2}}, \"passed\": false}, {\"check\": \"fixture 8\", \"actual\": {\"a\": 1, \"b\": 2}, \"expected\": {\"a\": 1, \"b\": 2}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":35.672,"exit_code":1,"observations":[{"actual":{},"check":"fixture 1","expected":{},"passed":true},{"actual":{"a":2},"check":"fixture 2","expected":{"a":2},"passed":true},{"actual":{},"check":"fixture 3","expected":{},"passed":true},{"actual":{"a":false},"check":"fixture 4","expected":{"a":false},"passed":true},{"actual":{"a":0},"check":"fixture 5","expected":{"a":0},"passed":true},{"actual":{"a":[2]},"check":"fixture 6","expected":{"a":[2]},"passed":true},{"actual":{"a":{"x":1,"y":2}},"check":"fixture 7","expected":{"a":{"y":2}},"passed":false},{"actual":{"a":1,"b":2},"check":"fixture 8","expected":{"a":1,"b":2},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": {\"a\": 2}, \"expected\": {\"a\": 2}, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"a\": false}, \"expected\": {\"a\": false}, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": {\"a\": 0}, \"expected\": {\"a\": 0}, \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"a\": [2]}, \"expected\": {\"a\": [2]}, \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": {\"a\": {\"x\": 1, \"y\": 2}}, \"expected\": {\"a\": {\"y\": 2}}, \"passed\": false}, {\"check\": \"fixture 8\", \"actual\": {\"a\": 1, \"b\": 2}, \"expected\": {\"a\": 1, \"b\": 2}, \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}