{"abstract":"An RGBA source buffer is uploaded unchanged to a BGRA consumer.","category":"Color encoding","checks":4,"contract":"Convert RGBA byte channel order into BGRA without changing channel values or alpha position.","evaluation_group":"xg-rgba-byte-channel-reorder","failed_approach":"Reversing all bytes moves alpha into the first color channel.","family":"xg-rgba-byte-channel-reorder","id":"FA-10591","implementations":{"attempt":{"sha256":"ae13df7adc646220dd4f92cd152b213ee0feeca1b1931d51aef79e41e98a9e9c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(rgba):\n    return [rgba[3],rgba[2],rgba[1],rgba[0]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*([1, 2, 3, 4],)), [3, 2, 1, 4])\ncheck('fixture 2', solve(*([255, 0, 0, 128],)), [0, 0, 255, 128])\ncheck('fixture 3', solve(*([0, 0, 0, 0],)), [0, 0, 0, 0])\ncheck('fixture 4', solve(*([7, 7, 7, 9],)), [7, 7, 7, 9])\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":"1666a21e114999bf9ed5f98deecb56c89b7885bc98c24e599a13dbc26ef17116","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(rgba):\n    return list(rgba)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*([1, 2, 3, 4],)), [3, 2, 1, 4])\ncheck('fixture 2', solve(*([255, 0, 0, 128],)), [0, 0, 255, 128])\ncheck('fixture 3', solve(*([0, 0, 0, 0],)), [0, 0, 0, 0])\ncheck('fixture 4', solve(*([7, 7, 7, 9],)), [7, 7, 7, 9])\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":"dddebf78a1a12bfc5153cdc208a5cd4e67caafc4108fc3eb5020287022d7e287","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(rgba):\n    return [rgba[2],rgba[1],rgba[0],rgba[3]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*([1, 2, 3, 4],)), [3, 2, 1, 4])\ncheck('fixture 2', solve(*([255, 0, 0, 128],)), [0, 0, 255, 128])\ncheck('fixture 3', solve(*([0, 0, 0, 0],)), [0, 0, 0, 0])\ncheck('fixture 4', solve(*([7, 7, 7, 9],)), [7, 7, 7, 9])\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":"xg-rgba-byte-channel-reorder","generated_at":"2026-09-29T14:38:40.433038+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic software graphics stage with explicit channel and coordinate conventions; no hardware, device profile or API behavior is inferred.","repair":"Use the stage contract: Convert RGBA byte channel order into BGRA without changing channel values or alpha position.","root_cause":"An RGBA source buffer is uploaded unchanged to a BGRA consumer.","sha256":"93364558fca85118e9ea9f992f7393b1f916ea781288f051541f36465976c620","title":"Rgba byte channel reorder · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.902,"exit_code":1,"observations":[{"actual":[4,3,2,1],"check":"fixture 1","expected":[3,2,1,4],"passed":false},{"actual":[128,0,0,255],"check":"fixture 2","expected":[0,0,255,128],"passed":false},{"actual":[0,0,0,0],"check":"fixture 3","expected":[0,0,0,0],"passed":true},{"actual":[9,7,7,7],"check":"fixture 4","expected":[7,7,7,9],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [4, 3, 2, 1], \"expected\": [3, 2, 1, 4], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [128, 0, 0, 255], \"expected\": [0, 0, 255, 128], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [0, 0, 0, 0], \"expected\": [0, 0, 0, 0], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [9, 7, 7, 7], \"expected\": [7, 7, 7, 9], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.205,"exit_code":1,"observations":[{"actual":[1,2,3,4],"check":"fixture 1","expected":[3,2,1,4],"passed":false},{"actual":[255,0,0,128],"check":"fixture 2","expected":[0,0,255,128],"passed":false},{"actual":[0,0,0,0],"check":"fixture 3","expected":[0,0,0,0],"passed":true},{"actual":[7,7,7,9],"check":"fixture 4","expected":[7,7,7,9],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [1, 2, 3, 4], \"expected\": [3, 2, 1, 4], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [255, 0, 0, 128], \"expected\": [0, 0, 255, 128], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [0, 0, 0, 0], \"expected\": [0, 0, 0, 0], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [7, 7, 7, 9], \"expected\": [7, 7, 7, 9], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.955,"exit_code":0,"observations":[{"actual":[3,2,1,4],"check":"fixture 1","expected":[3,2,1,4],"passed":true},{"actual":[0,0,255,128],"check":"fixture 2","expected":[0,0,255,128],"passed":true},{"actual":[0,0,0,0],"check":"fixture 3","expected":[0,0,0,0],"passed":true},{"actual":[7,7,7,9],"check":"fixture 4","expected":[7,7,7,9],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [3, 2, 1, 4], \"expected\": [3, 2, 1, 4], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [0, 0, 255, 128], \"expected\": [0, 0, 255, 128], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [0, 0, 0, 0], \"expected\": [0, 0, 0, 0], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [7, 7, 7, 9], \"expected\": [7, 7, 7, 9], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}