{"abstract":"A stencil-pass result selects the pass operation without checking depth failure.","category":"Rendering state","checks":4,"contract":"Select stencil-fail, depth-fail, or pass operation in stencil-then-depth order; failed stencil takes precedence.","evaluation_group":"xg-stencil-operation-on-depth-fail","failed_approach":"Combining both failures selects stencil-fail instead of the distinct depth-fail operation.","family":"xg-stencil-operation-on-depth-fail","id":"FA-10706","implementations":{"attempt":{"sha256":"8060d144d1555754e652fcbbe01ba22c01709783654afc5888e6c3c65379dd22","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(stencil_pass, depth_pass, fail, zfail, passed):\n    return fail if not stencil_pass or not depth_pass else passed\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(True, False, 'sf', 'df', 'ok')), 'df')\ncheck('fixture 2', solve(*(False, True, 'sf', 'df', 'ok')), 'sf')\ncheck('fixture 3', solve(*(True, True, 'sf', 'df', 'ok')), 'ok')\ncheck('fixture 4', solve(*(False, False, 'sf', 'df', 'ok')), 'sf')\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":"f724db3e8670c3ecb9f5b9398ac6d42bc0d1046cf1e25113c1d59bf8ad2a0dda","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(stencil_pass, depth_pass, fail, zfail, passed):\n    return passed if stencil_pass else fail\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(True, False, 'sf', 'df', 'ok')), 'df')\ncheck('fixture 2', solve(*(False, True, 'sf', 'df', 'ok')), 'sf')\ncheck('fixture 3', solve(*(True, True, 'sf', 'df', 'ok')), 'ok')\ncheck('fixture 4', solve(*(False, False, 'sf', 'df', 'ok')), 'sf')\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":"5918f6ca5b6608570f9044506734160e268fb6f2b410cb658e09e7a5b3a6608e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(stencil_pass, depth_pass, fail, zfail, passed):\n    return fail if not stencil_pass else (zfail if not depth_pass else passed)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve(*(True, False, 'sf', 'df', 'ok')), 'df')\ncheck('fixture 2', solve(*(False, True, 'sf', 'df', 'ok')), 'sf')\ncheck('fixture 3', solve(*(True, True, 'sf', 'df', 'ok')), 'ok')\ncheck('fixture 4', solve(*(False, False, 'sf', 'df', 'ok')), 'sf')\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-stencil-operation-on-depth-fail","generated_at":"2026-09-29T14:38:41.464096+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: Select stencil-fail, depth-fail, or pass operation in stencil-then-depth order; failed stencil takes precedence.","root_cause":"A stencil-pass result selects the pass operation without checking depth failure.","sha256":"619b8eb6e001b881e30beff5e83f1eeca4499b891b2103a9f5ab02482f164c63","title":"Stencil operation on depth fail · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.261,"exit_code":1,"observations":[{"actual":"sf","check":"fixture 1","expected":"df","passed":false},{"actual":"sf","check":"fixture 2","expected":"sf","passed":true},{"actual":"ok","check":"fixture 3","expected":"ok","passed":true},{"actual":"sf","check":"fixture 4","expected":"sf","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"sf\", \"expected\": \"df\", \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": \"sf\", \"expected\": \"sf\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"ok\", \"expected\": \"ok\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"sf\", \"expected\": \"sf\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.597,"exit_code":1,"observations":[{"actual":"ok","check":"fixture 1","expected":"df","passed":false},{"actual":"sf","check":"fixture 2","expected":"sf","passed":true},{"actual":"ok","check":"fixture 3","expected":"ok","passed":true},{"actual":"sf","check":"fixture 4","expected":"sf","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"ok\", \"expected\": \"df\", \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": \"sf\", \"expected\": \"sf\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"ok\", \"expected\": \"ok\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"sf\", \"expected\": \"sf\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.168,"exit_code":0,"observations":[{"actual":"df","check":"fixture 1","expected":"df","passed":true},{"actual":"sf","check":"fixture 2","expected":"sf","passed":true},{"actual":"ok","check":"fixture 3","expected":"ok","passed":true},{"actual":"sf","check":"fixture 4","expected":"sf","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": \"df\", \"expected\": \"df\", \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": \"sf\", \"expected\": \"sf\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"ok\", \"expected\": \"ok\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"sf\", \"expected\": \"sf\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}