{"abstract":"Promotion erases unrelated environments.","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.","contract_signature":"environments, target, version, digest, tested, allow_downgrade","evaluation_group":"xt-promotion-plan","failed_approach":"The attempted repair substitutes result = {target: environments[target]}. Fixture 6 still yields {'prod': (2, 'b')} instead of {'prod': (2, 'b'), 'stage': (2, 'b')}.","family":"xt-promotion-plan-environment-preservation","id":"FA-10226","implementations":{"attempt":{"sha256":"5af9a70699a78b9a738287bc0f96eb2193dd79707af3bd867d55bc31d97cdebc","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 = {target: environments[target]}\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":"12947dc1820a8a9c4c940b46c598addd89a917897de262fad8b493f07d117e2d","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 = {}\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-environment-preservation","generated_at":"2026-09-29T14:38:37.037536+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.","root_cause":"The implementation substitutes result = {} for result = dict(environments), so promotion erases unrelated environments.","sha256":"37759c87bc4ae2b416addf916fa96598bb8f81c34a3db2a38d0709d514b7bdd2","title":"Environment promotion plan: Promotion erases unrelated environments · 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":40.353,"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":"unchanged","check":"fixture 4","expected":"unchanged","passed":true},{"actual":"untested","check":"fixture 5","expected":"untested","passed":true},{"actual":{"prod":[2,"b"]},"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\": \"unchanged\", \"expected\": \"unchanged\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"untested\", \"expected\": \"untested\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"prod\": [2, \"b\"]}, \"expected\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":49.231,"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":"unchanged","check":"fixture 4","expected":"unchanged","passed":true},{"actual":"untested","check":"fixture 5","expected":"untested","passed":true},{"actual":{"prod":[2,"b"]},"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\": \"unchanged\", \"expected\": \"unchanged\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": \"untested\", \"expected\": \"untested\", \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": {\"prod\": [2, \"b\"]}, \"expected\": {\"prod\": [2, \"b\"], \"stage\": [2, \"b\"]}, \"passed\": false}], \"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."}}