{"abstract":"pair weights remain unnormalized.","category":"Preference pair construction","checks":6,"contract":"Input weights are nonnegative integers; return each positive weight divided by their positive sum as exact fractions [numerator,denominator], or [] if none are positive.","contract_signature":"weights","evaluation_group":"preference-weight-normalization","failed_approach":"Normalizing by the number of rows ignores unequal annotator confidence.","family":"w3-preference-pair-construction-weight-normalization","id":"FA-100076","implementations":{"attempt":{"sha256":"60de7f2410a603ed8effdabaf1d1fb3f51d1f762886f1f5658a35493d30e970f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(weights):\n    return [[w,len([x for x in weights if x>0])] for w in weights if w>0]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('unequal weights',solve([N,2*N]),[[1,3],[2,3]])\ncheck('zeros omitted',solve([0,N,0]),[[1,1]])\ncheck('three-way',solve([1,1,2]),[[1,4],[1,4],[1,2]])\ncheck('empty',solve([]),[])\ncheck('all zero',solve([0,0]),[])\ncheck('single positive',solve([N,0]),[[1,1]])\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":"220d3dcedf9401949fd78d8ca1e59a9e666e79122d9b434c33b699048cd7dbb3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(weights):\n    return [[w,1] for w in weights if w>0]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('unequal weights',solve([N,2*N]),[[1,3],[2,3]])\ncheck('zeros omitted',solve([0,N,0]),[[1,1]])\ncheck('three-way',solve([1,1,2]),[[1,4],[1,4],[1,2]])\ncheck('empty',solve([]),[])\ncheck('all zero',solve([0,0]),[])\ncheck('single positive',solve([N,0]),[[1,1]])\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-weight-normalization","generated_at":"2026-09-30T16:48:31.292970+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":"Raw annotator weights make the batch total depend on arbitrary weight scale.","sha256":"eeff035ebad08e533f74995a0f362ac7d75d404a09abadd4d195c6da8c1dc4f8","title":"Preference pairs: pair weights remain unnormalized · 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":27.429,"exit_code":1,"observations":[{"actual":[[1,2],[2,2]],"check":"unequal weights","expected":[[1,3],[2,3]],"passed":false},{"actual":[[1,1]],"check":"zeros omitted","expected":[[1,1]],"passed":true},{"actual":[[1,3],[1,3],[2,3]],"check":"three-way","expected":[[1,4],[1,4],[1,2]],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"all zero","expected":[],"passed":true},{"actual":[[1,1]],"check":"single positive","expected":[[1,1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unequal weights\", \"actual\": [[1, 2], [2, 2]], \"expected\": [[1, 3], [2, 3]], \"passed\": false}, {\"check\": \"zeros omitted\", \"actual\": [[1, 1]], \"expected\": [[1, 1]], \"passed\": true}, {\"check\": \"three-way\", \"actual\": [[1, 3], [1, 3], [2, 3]], \"expected\": [[1, 4], [1, 4], [1, 2]], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"all zero\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"single positive\", \"actual\": [[1, 1]], \"expected\": [[1, 1]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.354,"exit_code":1,"observations":[{"actual":[[1,1],[2,1]],"check":"unequal weights","expected":[[1,3],[2,3]],"passed":false},{"actual":[[1,1]],"check":"zeros omitted","expected":[[1,1]],"passed":true},{"actual":[[1,1],[1,1],[2,1]],"check":"three-way","expected":[[1,4],[1,4],[1,2]],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"all zero","expected":[],"passed":true},{"actual":[[1,1]],"check":"single positive","expected":[[1,1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unequal weights\", \"actual\": [[1, 1], [2, 1]], \"expected\": [[1, 3], [2, 3]], \"passed\": false}, {\"check\": \"zeros omitted\", \"actual\": [[1, 1]], \"expected\": [[1, 1]], \"passed\": true}, {\"check\": \"three-way\", \"actual\": [[1, 1], [1, 1], [2, 1]], \"expected\": [[1, 4], [1, 4], [1, 2]], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"all zero\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"single positive\", \"actual\": [[1, 1]], \"expected\": [[1, 1]], \"passed\": true}], \"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."}}