{"abstract":"Origin conversion flips the top edge without accounting for rectangle height.","category":"Raster clipping","checks":4,"contract":"Convert the top coordinate of an in-bounds top-left-origin rectangle to its bottom-left-origin viewport y using the full rectangle height.","evaluation_group":"xg-viewport-bottom-origin-flip","failed_approach":"Passing through y leaves the top-origin coordinate system unchanged.","family":"xg-viewport-bottom-origin-flip","id":"FA-10656","implementations":{"attempt":{"sha256":"2c78bab289dac8f45bd9147ff8a5afd1cc637169f8c4e958c4edc016cc26cf7b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(top, height, framebuffer_height):\n    return top\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(2, 3, 10)), 5)\ncheck('fixture 2', solve(*(0, 10, 10)), 0)\ncheck('fixture 3', solve(*(0, 1, 10)), 9)\ncheck('fixture 4', solve(*(9, 1, 10)), 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":"6af3d9c2447c2dcd14f82ba99516379d423ff407d5b18b521020cfd139696db8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(top, height, framebuffer_height):\n    return framebuffer_height-top\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(2, 3, 10)), 5)\ncheck('fixture 2', solve(*(0, 10, 10)), 0)\ncheck('fixture 3', solve(*(0, 1, 10)), 9)\ncheck('fixture 4', solve(*(9, 1, 10)), 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":"a8c972f6def6075b63550cdb9a7ad29ee49bd89eafde7aed5748839c0ef70f94","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(top, height, framebuffer_height):\n    return framebuffer_height-top-height\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(2, 3, 10)), 5)\ncheck('fixture 2', solve(*(0, 10, 10)), 0)\ncheck('fixture 3', solve(*(0, 1, 10)), 9)\ncheck('fixture 4', solve(*(9, 1, 10)), 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-viewport-bottom-origin-flip","generated_at":"2026-09-29T14:38:41.049748+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 the top coordinate of an in-bounds top-left-origin rectangle to its bottom-left-origin viewport y using the full rectangle height.","root_cause":"Origin conversion flips the top edge without accounting for rectangle height.","sha256":"5bca1f193202dbc4228921f718181651bcfa9bc79d3704ec1a996fc7946136b1","title":"Viewport bottom origin flip · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.555,"exit_code":1,"observations":[{"actual":2,"check":"fixture 1","expected":5,"passed":false},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":0,"check":"fixture 3","expected":9,"passed":false},{"actual":9,"check":"fixture 4","expected":0,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 2, \"expected\": 5, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 9, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 9, \"expected\": 0, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.7,"exit_code":1,"observations":[{"actual":8,"check":"fixture 1","expected":5,"passed":false},{"actual":10,"check":"fixture 2","expected":0,"passed":false},{"actual":10,"check":"fixture 3","expected":9,"passed":false},{"actual":1,"check":"fixture 4","expected":0,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 8, \"expected\": 5, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 10, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 10, \"expected\": 9, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 1, \"expected\": 0, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.963,"exit_code":0,"observations":[{"actual":5,"check":"fixture 1","expected":5,"passed":true},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":9,"check":"fixture 3","expected":9,"passed":true},{"actual":0,"check":"fixture 4","expected":0,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 9, \"expected\": 9, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}