{"abstract":"Identical artifacts require redundant promotion.","category":"Deployment models","checks":6,"contract":"Reject unknown targets, reject downgrade unless allowed, skip identical digests, reject missing test evidence, otherwise update target to candidate digest and version while preserving other environments.","evaluation_group":"xt-promotion-plan","failed_approach":"The attempted repair substitutes if version == old_version + 1: return 'unchanged'. Fixture 4 still yields 'untested' instead of 'unchanged'.","family":"xt-promotion-plan-digest-noop","id":"FA-10216","implementations":{"attempt":{"sha256":"fabb6131a0f5504a7d834cfaf477aa264049169a6c0671a8e35fd8d5b98fdf20","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(environments, target, version, digest, tested, allow_downgrade):\n    if target not in environments: return 'unknown'\n    old_version, old_digest = environments[target]\n    if version < old_version and not allow_downgrade: return 'downgrade'\n    if version == old_version + 1: return 'unchanged'\n    if not tested: return 'untested'\n    result = dict(environments)\n    result[target] = (version, digest)\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({}, 'prod', 1, 'a', True, False), 'unknown')\ncheck('fixture 2', solve({'prod': (2, 'b')}, 'prod', 1, 'a', True, False), 'downgrade')\ncheck('fixture 3', solve({'prod': (2, 'b')}, 'prod', 1, 'a', True, True), {'prod': (1, 'a')})\ncheck('fixture 4', solve({'prod': (1, 'a')}, 'prod', 1, 'a', False, False), 'unchanged')\ncheck('fixture 5', solve({'prod': (1, 'a')}, 'prod', 2, 'b', False, False), 'untested')\ncheck('fixture 6', solve({'prod': (1, 'a'), 'stage': (2, 'b')}, 'prod', 2, 'b', True, False), {'prod': (2, 'b'), 'stage': (2, 'b')})\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":"dba4e35e9bda07bbadf4bc96f672c5b644ff84927e2a64d560b99305f3d3fa1e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(environments, target, version, digest, tested, allow_downgrade):\n    if target not in environments: return 'unknown'\n    old_version, old_digest = environments[target]\n    if version < old_version and not allow_downgrade: return 'downgrade'\n    if False: return 'unchanged'\n    if not tested: return 'untested'\n    result = dict(environments)\n    result[target] = (version, digest)\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({}, 'prod', 1, 'a', True, False), 'unknown')\ncheck('fixture 2', solve({'prod': (2, 'b')}, 'prod', 1, 'a', True, False), 'downgrade')\ncheck('fixture 3', solve({'prod': (2, 'b')}, 'prod', 1, 'a', True, True), {'prod': (1, 'a')})\ncheck('fixture 4', solve({'prod': (1, 'a')}, 'prod', 1, 'a', False, False), 'unchanged')\ncheck('fixture 5', solve({'prod': (1, 'a')}, 'prod', 2, 'b', False, False), 'untested')\ncheck('fixture 6', solve({'prod': (1, 'a'), 'stage': (2, 'b')}, 'prod', 2, 'b', True, False), {'prod': (2, 'b'), 'stage': (2, 'b')})\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":"da9ffb36334f677e30b5cece004ddbd130b619c2077b96c8e4b30fa9ea92394c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(environments, target, version, digest, tested, allow_downgrade):\n    if target not in environments: return 'unknown'\n    old_version, old_digest = environments[target]\n    if version < old_version and not allow_downgrade: return 'downgrade'\n    if digest == old_digest: return 'unchanged'\n    if not tested: return 'untested'\n    result = dict(environments)\n    result[target] = (version, digest)\n    return result\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve({}, 'prod', 1, 'a', True, False), 'unknown')\ncheck('fixture 2', solve({'prod': (2, 'b')}, 'prod', 1, 'a', True, False), 'downgrade')\ncheck('fixture 3', solve({'prod': (2, 'b')}, 'prod', 1, 'a', True, True), {'prod': (1, 'a')})\ncheck('fixture 4', solve({'prod': (1, 'a')}, 'prod', 1, 'a', False, False), 'unchanged')\ncheck('fixture 5', solve({'prod': (1, 'a')}, 'prod', 2, 'b', False, False), 'untested')\ncheck('fixture 6', solve({'prod': (1, 'a'), 'stage': (2, 'b')}, 'prod', 2, 'b', True, False), {'prod': (2, 'b'), 'stage': (2, 'b')})\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-promotion-plan-digest-noop","generated_at":"2026-09-29T14:38:36.894819+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of environment promotion plan, suitable for testing build and release tooling without external services.","repair":"Treat equal artifact digests as unchanged before test gating.","root_cause":"The implementation substitutes if False: return 'unchanged' for if digest == old_digest: return 'unchanged', so identical artifacts require redundant promotion.","sha256":"ee12aff9b1f113cf427420bf8bde1a581d9a5402ee4fabd5e7a523901f5e33a2","title":"Environment promotion plan: Identical artifacts require redundant promotion · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.102,"exit_code":1,"observations":[{"actual":"unknown","check":"fixture 1","expected":"unknown","passed":true},{"actual":"downgrade","check":"fixture 2","expected":"downgrade","passed":true},{"actual":{"prod":[1,"a"]},"check":"fixture 3","expected":{"prod":[1,"a"]},"passed":true},{"actual":"untested","check":"fixture 4","expected":"unchanged","passed":false},{"actual":"unchanged","check":"fixture 5","expected":"untested","passed":false},{"actual":"unchanged","check":"fixture 6","expected":{"prod":[2,"b"],"stage":[2,"b"]},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"unknown\", \"expected\": \"unknown\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"downgrade\", \"expected\": \"downgrade\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {\"prod\": [1, \"a\"]}, \"expected\": {\"prod\": [1, \"a\"]}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"untested\", \"expected\": \"unchanged\", \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": \"unchanged\", \"expected\": \"untested\", \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": \"unchanged\", \"expected\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.863,"exit_code":1,"observations":[{"actual":"unknown","check":"fixture 1","expected":"unknown","passed":true},{"actual":"downgrade","check":"fixture 2","expected":"downgrade","passed":true},{"actual":{"prod":[1,"a"]},"check":"fixture 3","expected":{"prod":[1,"a"]},"passed":true},{"actual":"untested","check":"fixture 4","expected":"unchanged","passed":false},{"actual":"untested","check":"fixture 5","expected":"untested","passed":true},{"actual":{"prod":[2,"b"],"stage":[2,"b"]},"check":"fixture 6","expected":{"prod":[2,"b"],"stage":[2,"b"]},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"unknown\", \"expected\": \"unknown\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"downgrade\", \"expected\": \"downgrade\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {\"prod\": [1, \"a\"]}, \"expected\": {\"prod\": [1, \"a\"]}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"untested\", \"expected\": \"unchanged\", \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": \"untested\", \"expected\": \"untested\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"expected\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.616,"exit_code":0,"observations":[{"actual":"unknown","check":"fixture 1","expected":"unknown","passed":true},{"actual":"downgrade","check":"fixture 2","expected":"downgrade","passed":true},{"actual":{"prod":[1,"a"]},"check":"fixture 3","expected":{"prod":[1,"a"]},"passed":true},{"actual":"unchanged","check":"fixture 4","expected":"unchanged","passed":true},{"actual":"untested","check":"fixture 5","expected":"untested","passed":true},{"actual":{"prod":[2,"b"],"stage":[2,"b"]},"check":"fixture 6","expected":{"prod":[2,"b"],"stage":[2,"b"]},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"unknown\", \"expected\": \"unknown\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"downgrade\", \"expected\": \"downgrade\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {\"prod\": [1, \"a\"]}, \"expected\": {\"prod\": [1, \"a\"]}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"unchanged\", \"expected\": \"unchanged\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"untested\", \"expected\": \"untested\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"expected\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}