{"abstract":"Replica count changes are ignored.","category":"Deployment models","checks":7,"contract":"Compare desired and actual image, environment mapping, replica count, ordered command and resource limits. Return changed fields in fixed schema order.","evaluation_group":"xt-deployment-drift","failed_approach":"The attempted repair substitutes desired['replicas'] < actual['replicas']. Fixture 5 still yields [] instead of ['replicas'].","family":"xt-deployment-drift-scale-drift","id":"FA-10116","implementations":{"attempt":{"sha256":"c946cae6ae5cf6107ada03975f53d3d83afa5edcd0c89cb90e6dfb6195d1f1f3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(desired, actual):\n    result = []\n    if desired['image'] != actual['image']: result.append('image')\n    if desired['env'] != actual['env']: result.append('env')\n    if desired['replicas'] < actual['replicas']: result.append('replicas')\n    if desired['command'] != actual['command']: result.append('command')\n    if desired['limits'] != actual['limits']: result.append('limits')\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), [])\ncheck('fixture 2', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v2', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['image'])\ncheck('fixture 3', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '2'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['env'])\ncheck('fixture 4', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 3, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])\ncheck('fixture 5', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 1, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])\ncheck('fixture 6', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['b', 'a'], 'limits': {'memory': 1}}), ['command'])\ncheck('fixture 7', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 2}}), ['limits'])\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":"97ba2911ddf6ffa01d7a4ff9a0dab746535b7c8960f5d1b3a0fe1b4a3bc74faa","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(desired, actual):\n    result = []\n    if desired['image'] != actual['image']: result.append('image')\n    if desired['env'] != actual['env']: result.append('env')\n    if False: result.append('replicas')\n    if desired['command'] != actual['command']: result.append('command')\n    if desired['limits'] != actual['limits']: result.append('limits')\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), [])\ncheck('fixture 2', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v2', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['image'])\ncheck('fixture 3', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '2'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['env'])\ncheck('fixture 4', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 3, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])\ncheck('fixture 5', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 1, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])\ncheck('fixture 6', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['b', 'a'], 'limits': {'memory': 1}}), ['command'])\ncheck('fixture 7', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 2}}), ['limits'])\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":"962434b1e97b03316623228d0a3d7cfabbd039093f7fa7f7f5be26d4d5478322","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(desired, actual):\n    result = []\n    if desired['image'] != actual['image']: result.append('image')\n    if desired['env'] != actual['env']: result.append('env')\n    if desired['replicas'] != actual['replicas']: result.append('replicas')\n    if desired['command'] != actual['command']: result.append('command')\n    if desired['limits'] != actual['limits']: result.append('limits')\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), [])\ncheck('fixture 2', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v2', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['image'])\ncheck('fixture 3', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '2'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['env'])\ncheck('fixture 4', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 3, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])\ncheck('fixture 5', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 1, 'command': ['a', 'b'], 'limits': {'memory': 1}}), ['replicas'])\ncheck('fixture 6', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['b', 'a'], 'limits': {'memory': 1}}), ['command'])\ncheck('fixture 7', solve({'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 1}}, {'image': 'v1', 'env': {'A': '1'}, 'replicas': 2, 'command': ['a', 'b'], 'limits': {'memory': 2}}), ['limits'])\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-deployment-drift-scale-drift","generated_at":"2026-09-29T14:38:35.998925+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of deployment drift report, suitable for testing build and release tooling without external services.","repair":"Detect both increases and decreases in desired replicas.","root_cause":"The implementation substitutes False for desired['replicas'] != actual['replicas'], so replica count changes are ignored.","sha256":"57a2f004c4b800af9552c2ec3a91c17fcead48c0634146d84f625c5e788c25bf","title":"Deployment drift report: Replica count changes are ignored · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.049,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["image"],"check":"fixture 2","expected":["image"],"passed":true},{"actual":["env"],"check":"fixture 3","expected":["env"],"passed":true},{"actual":["replicas"],"check":"fixture 4","expected":["replicas"],"passed":true},{"actual":[],"check":"fixture 5","expected":["replicas"],"passed":false},{"actual":["command"],"check":"fixture 6","expected":["command"],"passed":true},{"actual":["limits"],"check":"fixture 7","expected":["limits"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"image\"], \"expected\": [\"image\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"env\"], \"expected\": [\"env\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"replicas\"], \"expected\": [\"replicas\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [\"replicas\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"command\"], \"expected\": [\"command\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"limits\"], \"expected\": [\"limits\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.13,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["image"],"check":"fixture 2","expected":["image"],"passed":true},{"actual":["env"],"check":"fixture 3","expected":["env"],"passed":true},{"actual":[],"check":"fixture 4","expected":["replicas"],"passed":false},{"actual":[],"check":"fixture 5","expected":["replicas"],"passed":false},{"actual":["command"],"check":"fixture 6","expected":["command"],"passed":true},{"actual":["limits"],"check":"fixture 7","expected":["limits"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"image\"], \"expected\": [\"image\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"env\"], \"expected\": [\"env\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [\"replicas\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [\"replicas\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"command\"], \"expected\": [\"command\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"limits\"], \"expected\": [\"limits\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.088,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["image"],"check":"fixture 2","expected":["image"],"passed":true},{"actual":["env"],"check":"fixture 3","expected":["env"],"passed":true},{"actual":["replicas"],"check":"fixture 4","expected":["replicas"],"passed":true},{"actual":["replicas"],"check":"fixture 5","expected":["replicas"],"passed":true},{"actual":["command"],"check":"fixture 6","expected":["command"],"passed":true},{"actual":["limits"],"check":"fixture 7","expected":["limits"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"image\"], \"expected\": [\"image\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"env\"], \"expected\": [\"env\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"replicas\"], \"expected\": [\"replicas\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"replicas\"], \"expected\": [\"replicas\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"command\"], \"expected\": [\"command\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"limits\"], \"expected\": [\"limits\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}