{"abstract":"Clamping the destination origin shifts discarded source pixels back into view.","category":"Raster clipping","checks":4,"contract":"Blit source row at signed destination x, discarding out-of-range destination pixels while retaining original source alignment.","evaluation_group":"xg-clipped-blit-source-offset","failed_approach":"A strict lower bound loses the valid pixel at coordinate zero.","family":"xg-clipped-blit-source-offset","id":"FA-10646","implementations":{"attempt":{"sha256":"ffccc164c26ad4d38be701d8d1c5eb177391ca921aa1ea0cad5864ca0f34a687","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(destination, source, x):\n    out=list(destination)\n    for i,pixel in enumerate(source):\n        if 0<x+i<len(out): out[x+i]=pixel\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*([0, 0, 0], [7, 8, 9], -1)), [8, 9, 0])\ncheck('fixture 2', solve(*([0, 0, 0], [7, 8], 2)), [0, 0, 7])\ncheck('fixture 3', solve(*([0, 0], [7], 0)), [7, 0])\ncheck('fixture 4', solve(*([0, 0], [7], 3)), [0, 0])\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":"e27f3fc243b3241be989348a131f12a9153a1c2ebcd3494a93dd34be9766c298","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(destination, source, x):\n    out=list(destination)\n    for i,pixel in enumerate(source):\n        if 0<=max(0,x)+i<len(out): out[max(0,x)+i]=pixel\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*([0, 0, 0], [7, 8, 9], -1)), [8, 9, 0])\ncheck('fixture 2', solve(*([0, 0, 0], [7, 8], 2)), [0, 0, 7])\ncheck('fixture 3', solve(*([0, 0], [7], 0)), [7, 0])\ncheck('fixture 4', solve(*([0, 0], [7], 3)), [0, 0])\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":"e8f310b1c469ac2342f981426ccdbc30471503bd9c3109147db61bc7e9952bd3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(destination, source, x):\n    out=list(destination)\n    for i,pixel in enumerate(source):\n        if 0<=x+i<len(out): out[x+i]=pixel\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*([0, 0, 0], [7, 8, 9], -1)), [8, 9, 0])\ncheck('fixture 2', solve(*([0, 0, 0], [7, 8], 2)), [0, 0, 7])\ncheck('fixture 3', solve(*([0, 0], [7], 0)), [7, 0])\ncheck('fixture 4', solve(*([0, 0], [7], 3)), [0, 0])\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-clipped-blit-source-offset","generated_at":"2026-09-29T14:38:40.953007+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: Blit source row at signed destination x, discarding out-of-range destination pixels while retaining original source alignment.","root_cause":"Clamping the destination origin shifts discarded source pixels back into view.","sha256":"5ef8fbfae8ad0d36d91a7d8baac6b10bdc27856b4fb7a1b1ecaf53cfd8487362","title":"Clipped blit source offset · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":46.372,"exit_code":1,"observations":[{"actual":[0,9,0],"check":"fixture 1","expected":[8,9,0],"passed":false},{"actual":[0,0,7],"check":"fixture 2","expected":[0,0,7],"passed":true},{"actual":[0,0],"check":"fixture 3","expected":[7,0],"passed":false},{"actual":[0,0],"check":"fixture 4","expected":[0,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [0, 9, 0], \"expected\": [8, 9, 0], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [0, 0, 7], \"expected\": [0, 0, 7], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [0, 0], \"expected\": [7, 0], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.706,"exit_code":1,"observations":[{"actual":[7,8,9],"check":"fixture 1","expected":[8,9,0],"passed":false},{"actual":[0,0,7],"check":"fixture 2","expected":[0,0,7],"passed":true},{"actual":[7,0],"check":"fixture 3","expected":[7,0],"passed":true},{"actual":[0,0],"check":"fixture 4","expected":[0,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [7, 8, 9], \"expected\": [8, 9, 0], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [0, 0, 7], \"expected\": [0, 0, 7], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [7, 0], \"expected\": [7, 0], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":49.498,"exit_code":0,"observations":[{"actual":[8,9,0],"check":"fixture 1","expected":[8,9,0],"passed":true},{"actual":[0,0,7],"check":"fixture 2","expected":[0,0,7],"passed":true},{"actual":[7,0],"check":"fixture 3","expected":[7,0],"passed":true},{"actual":[0,0],"check":"fixture 4","expected":[0,0],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [8, 9, 0], \"expected\": [8, 9, 0], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [0, 0, 7], \"expected\": [0, 0, 7], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [7, 0], \"expected\": [7, 0], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}