{"abstract":"A repeat sampler clamps out-of-range coordinates to edge texels.","category":"Raster memory layout","checks":4,"contract":"Resolve an integer texture coordinate under repeat wrapping for a strictly positive texture size.","evaluation_group":"xg-texture-repeat-negative-coordinate","failed_approach":"Taking magnitude reverses negative texture coordinates instead of wrapping them.","family":"xg-texture-repeat-negative-coordinate","id":"FA-10766","implementations":{"attempt":{"sha256":"d1c113b6c903c9f0a0b522bfbfe2e7e43f4944c746cc4ddc4d80c00a96b4fdc8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(coordinate, size):\n    return abs(coordinate)%size\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(-1, 4)), 3)\ncheck('fixture 2', solve(*(4, 4)), 0)\ncheck('fixture 3', solve(*(2, 4)), 2)\ncheck('fixture 4', solve(*(-5, 4)), 3)\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":"7f3d2e53bb3856911f0c18c734f495a37fa68922b4caab5586b1a2570b68ac4f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(coordinate, size):\n    return min(size-1,max(0,coordinate))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(-1, 4)), 3)\ncheck('fixture 2', solve(*(4, 4)), 0)\ncheck('fixture 3', solve(*(2, 4)), 2)\ncheck('fixture 4', solve(*(-5, 4)), 3)\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":"2418a37cd612cb50b4fe4f23b9f9453759147410a150a1210616cc3d1528711a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(coordinate, size):\n    return coordinate%size\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(-1, 4)), 3)\ncheck('fixture 2', solve(*(4, 4)), 0)\ncheck('fixture 3', solve(*(2, 4)), 2)\ncheck('fixture 4', solve(*(-5, 4)), 3)\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-texture-repeat-negative-coordinate","generated_at":"2026-09-29T14:38:41.970007+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: Resolve an integer texture coordinate under repeat wrapping for a strictly positive texture size.","root_cause":"A repeat sampler clamps out-of-range coordinates to edge texels.","sha256":"6030a23985ff44511f3b41b0b43c42532b8418f607a00d4a053ca1c1127ba605","title":"Texture repeat negative coordinate · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.142,"exit_code":1,"observations":[{"actual":1,"check":"fixture 1","expected":3,"passed":false},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":2,"check":"fixture 3","expected":2,"passed":true},{"actual":1,"check":"fixture 4","expected":3,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 1, \"expected\": 3, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 1, \"expected\": 3, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.22,"exit_code":1,"observations":[{"actual":0,"check":"fixture 1","expected":3,"passed":false},{"actual":3,"check":"fixture 2","expected":0,"passed":false},{"actual":2,"check":"fixture 3","expected":2,"passed":true},{"actual":0,"check":"fixture 4","expected":3,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 0, \"expected\": 3, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 3, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 0, \"expected\": 3, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.745,"exit_code":0,"observations":[{"actual":3,"check":"fixture 1","expected":3,"passed":true},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":2,"check":"fixture 3","expected":2,"passed":true},{"actual":3,"check":"fixture 4","expected":3,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 3, \"expected\": 3, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}