{"abstract":"zero-confidence annotations count as preferences.","category":"Preference pair construction","checks":6,"contract":"Rows are [id,score,confidence]. Confidence must be positive; return [best_id,worst_id] among eligible rows, or None below two.","contract_signature":"rows","evaluation_group":"preference-confidence-eligibility","failed_approach":"Excluding only negative confidence still includes zero-weight annotations.","family":"w3-preference-pair-construction-confidence-eligibility","id":"FA-100101","implementations":{"attempt":{"sha256":"42c87bf712e9895367cab6bd4fed083b8cd6c2b1928b151f3dd33033cf3d6d90","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    ok=[r for r in rows if r[2]>=0]\n    return [max(ok,key=lambda r:r[1])[0],min(ok,key=lambda r:r[1])[0]] if len(ok)>1 else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\na='a'+str(N); b='b'+str(N); x='x'+str(N)\ncheck('zero confidence excluded',solve([[a,N,1],[x,N+5,0],[b,0,1]]),[a,b])\ncheck('negative excluded',solve([[a,N,1],[x,-N,-1],[b,0,2]]),[a,b])\ncheck('one positive',solve([[a,N,1],[b,0,0]]),None)\ncheck('empty',solve([]),None)\ncheck('two positive',solve([[a,N,1],[b,0,1]]),[a,b])\ncheck('all zero',solve([[a,N,0],[b,0,0]]),None)\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":"7a5d86beee1fc916804a968c0767e2d6e76063574a3d191a9cbfe5f6f0bd6778","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return [max(rows,key=lambda r:r[1])[0],min(rows,key=lambda r:r[1])[0]] if len(rows)>1 else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\na='a'+str(N); b='b'+str(N); x='x'+str(N)\ncheck('zero confidence excluded',solve([[a,N,1],[x,N+5,0],[b,0,1]]),[a,b])\ncheck('negative excluded',solve([[a,N,1],[x,-N,-1],[b,0,2]]),[a,b])\ncheck('one positive',solve([[a,N,1],[b,0,0]]),None)\ncheck('empty',solve([]),None)\ncheck('two positive',solve([[a,N,1],[b,0,1]]),[a,b])\ncheck('all zero',solve([[a,N,0],[b,0,0]]),None)\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":"These are explicit toy record contracts; they do not claim compatibility with a trainer or improved model behavior. 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":"w3-preference-pair-construction-confidence-eligibility","generated_at":"2026-09-30T16:48:31.716235+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A small deterministic preference-data transform makes pair semantics inspectable without a training framework.","root_cause":"A rating with zero confidence contributes an endpoint despite carrying no preference evidence.","sha256":"ce5d483c9d8d159b97eb025c01bfcb98865262d46688bab828fe0f20095a3c27","title":"Preference pairs: zero-confidence annotations count as preferences · case 01","variant":1,"variant_policy":"The fixture code references N, supplied as 1 through 5. Fixed boundary checks may repeat. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":28.851,"exit_code":1,"observations":[{"actual":["x1","b1"],"check":"zero confidence excluded","expected":["a1","b1"],"passed":false},{"actual":["a1","b1"],"check":"negative excluded","expected":["a1","b1"],"passed":true},{"actual":["a1","b1"],"check":"one positive","expected":null,"passed":false},{"actual":null,"check":"empty","expected":null,"passed":true},{"actual":["a1","b1"],"check":"two positive","expected":["a1","b1"],"passed":true},{"actual":["a1","b1"],"check":"all zero","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero confidence excluded\", \"actual\": [\"x1\", \"b1\"], \"expected\": [\"a1\", \"b1\"], \"passed\": false}, {\"check\": \"negative excluded\", \"actual\": [\"a1\", \"b1\"], \"expected\": [\"a1\", \"b1\"], \"passed\": true}, {\"check\": \"one positive\", \"actual\": [\"a1\", \"b1\"], \"expected\": null, \"passed\": false}, {\"check\": \"empty\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"two positive\", \"actual\": [\"a1\", \"b1\"], \"expected\": [\"a1\", \"b1\"], \"passed\": true}, {\"check\": \"all zero\", \"actual\": [\"a1\", \"b1\"], \"expected\": null, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.274,"exit_code":1,"observations":[{"actual":["x1","b1"],"check":"zero confidence excluded","expected":["a1","b1"],"passed":false},{"actual":["a1","x1"],"check":"negative excluded","expected":["a1","b1"],"passed":false},{"actual":["a1","b1"],"check":"one positive","expected":null,"passed":false},{"actual":null,"check":"empty","expected":null,"passed":true},{"actual":["a1","b1"],"check":"two positive","expected":["a1","b1"],"passed":true},{"actual":["a1","b1"],"check":"all zero","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"zero confidence excluded\", \"actual\": [\"x1\", \"b1\"], \"expected\": [\"a1\", \"b1\"], \"passed\": false}, {\"check\": \"negative excluded\", \"actual\": [\"a1\", \"x1\"], \"expected\": [\"a1\", \"b1\"], \"passed\": false}, {\"check\": \"one positive\", \"actual\": [\"a1\", \"b1\"], \"expected\": null, \"passed\": false}, {\"check\": \"empty\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"two positive\", \"actual\": [\"a1\", \"b1\"], \"expected\": [\"a1\", \"b1\"], \"passed\": true}, {\"check\": \"all zero\", \"actual\": [\"a1\", \"b1\"], \"expected\": null, \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}