{"abstract":"Clearing one framebuffer operation overwrites all attachments.","category":"Rendering state","checks":4,"contract":"Clear only selected valid attachment indices in a list of scalar target values; preserve every unselected attachment.","evaluation_group":"xg-render-target-clear-selected","failed_approach":"Clearing only the first selected attachment ignores multiple draw buffers.","family":"xg-render-target-clear-selected","id":"FA-10721","implementations":{"attempt":{"sha256":"414025da1c07d0f191e2349a0a4db7f2770486c3b7c36824bd0a5ccaa7a86600","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(targets, selected, color):\n    return [color if i==min(selected) else old for i,old in enumerate(targets)] if selected else list(targets)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(['a', 'b', 'c'], [0, 2], 'x')), ['x', 'b', 'x'])\ncheck('fixture 2', solve(*(['a', 'b'], [], 'x')), ['a', 'b'])\ncheck('fixture 3', solve(*(['a', 'b'], [1], 'x')), ['a', 'x'])\ncheck('fixture 4', solve(*([], [], 'x')), [])\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":"441774d8cae522a46c7e790ed04e896fe6c986f3f932c22bd331e4f6097bff62","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(targets, selected, color):\n    return [color for old in targets]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(['a', 'b', 'c'], [0, 2], 'x')), ['x', 'b', 'x'])\ncheck('fixture 2', solve(*(['a', 'b'], [], 'x')), ['a', 'b'])\ncheck('fixture 3', solve(*(['a', 'b'], [1], 'x')), ['a', 'x'])\ncheck('fixture 4', solve(*([], [], 'x')), [])\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":"779de8860f60362ab5c3e35c8543dc49ce825a9d9f76ec3a572ef91094b8d438","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(targets, selected, color):\n    return [color if i in selected else old for i,old in enumerate(targets)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(['a', 'b', 'c'], [0, 2], 'x')), ['x', 'b', 'x'])\ncheck('fixture 2', solve(*(['a', 'b'], [], 'x')), ['a', 'b'])\ncheck('fixture 3', solve(*(['a', 'b'], [1], 'x')), ['a', 'x'])\ncheck('fixture 4', solve(*([], [], 'x')), [])\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-render-target-clear-selected","generated_at":"2026-09-29T14:38:41.646315+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: Clear only selected valid attachment indices in a list of scalar target values; preserve every unselected attachment.","root_cause":"Clearing one framebuffer operation overwrites all attachments.","sha256":"2c403df6b29aee6ca27e3ced861d4b4fd9996b542f964b3605ed7b4d5306a7b6","title":"Render target clear selected · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.634,"exit_code":1,"observations":[{"actual":["x","b","c"],"check":"fixture 1","expected":["x","b","x"],"passed":false},{"actual":["a","b"],"check":"fixture 2","expected":["a","b"],"passed":true},{"actual":["a","x"],"check":"fixture 3","expected":["a","x"],"passed":true},{"actual":[],"check":"fixture 4","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"x\", \"b\", \"c\"], \"expected\": [\"x\", \"b\", \"x\"], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"x\"], \"expected\": [\"a\", \"x\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.54,"exit_code":1,"observations":[{"actual":["x","x","x"],"check":"fixture 1","expected":["x","b","x"],"passed":false},{"actual":["x","x"],"check":"fixture 2","expected":["a","b"],"passed":false},{"actual":["x","x"],"check":"fixture 3","expected":["a","x"],"passed":false},{"actual":[],"check":"fixture 4","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"x\", \"x\", \"x\"], \"expected\": [\"x\", \"b\", \"x\"], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [\"x\", \"x\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"x\", \"x\"], \"expected\": [\"a\", \"x\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":37.945,"exit_code":0,"observations":[{"actual":["x","b","x"],"check":"fixture 1","expected":["x","b","x"],"passed":true},{"actual":["a","b"],"check":"fixture 2","expected":["a","b"],"passed":true},{"actual":["a","x"],"check":"fixture 3","expected":["a","x"],"passed":true},{"actual":[],"check":"fixture 4","expected":[],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"x\", \"b\", \"x\"], \"expected\": [\"x\", \"b\", \"x\"], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"x\"], \"expected\": [\"a\", \"x\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}