{"abstract":"responses are paired by list position.","category":"Preference pair construction","checks":6,"contract":"Responses and judgments are lists of [id,value]. Return [id,response,judgment] rows for IDs present in both, ordered by response input order.","contract_signature":"responses, judgments","evaluation_group":"preference-response-id-join","failed_approach":"Sorting each list independently by ID still misaligns records when one side lacks an ID.","family":"w3-preference-pair-construction-response-id-join","id":"FA-100041","implementations":{"attempt":{"sha256":"715dd887dce62b28d60c13267c0894e060b422dc84d9f54fe9542ad6ee499ce8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(responses, judgments):\n    return [[r[0],r[1],j[1]] for r,j in zip(sorted(responses),sorted(judgments))]\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)\ncheck('reordered judgments',solve([[a,'A'],[b,'B']],[[b,0],[a,1]]),[[a,'A',1],[b,'B',0]])\ncheck('one shared id',solve([[a,'A']],[[a,1]]),[[a,'A',1]])\ncheck('missing judgment',solve([[a,'A'],[b,'B']],[[b,0]]),[[b,'B',0]])\ncheck('no responses',solve([],[[a,1]]),[])\ncheck('no judgments',solve([[a,'A']],[]),[])\ncheck('extra judgment ignored',solve([[a,'A']],[[a,1],[b,0]]),[[a,'A',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":"a7acf0b4738d9f17509ab8595d437106cf8715abc7ce815243afb8a759863b91","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(responses, judgments):\n    return [[r[0],r[1],judgments[i][1]] for i,r in enumerate(responses) if i<len(judgments)]\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)\ncheck('reordered judgments',solve([[a,'A'],[b,'B']],[[b,0],[a,1]]),[[a,'A',1],[b,'B',0]])\ncheck('one shared id',solve([[a,'A']],[[a,1]]),[[a,'A',1]])\ncheck('missing judgment',solve([[a,'A'],[b,'B']],[[b,0]]),[[b,'B',0]])\ncheck('no responses',solve([],[[a,1]]),[])\ncheck('no judgments',solve([[a,'A']],[]),[])\ncheck('extra judgment ignored',solve([[a,'A']],[[a,1],[b,0]]),[[a,'A',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-response-id-join","generated_at":"2026-09-30T16:48:31.262198+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":"Candidate response IDs are discarded, so differently ordered annotations attach to the wrong text.","sha256":"511dec0852e7a593132e74e65e0b5cfae3cc370d1536385409b8459a738d183e","title":"Preference pairs: responses are paired by list position · 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.39,"exit_code":1,"observations":[{"actual":[["a1","A",1],["b1","B",0]],"check":"reordered judgments","expected":[["a1","A",1],["b1","B",0]],"passed":true},{"actual":[["a1","A",1]],"check":"one shared id","expected":[["a1","A",1]],"passed":true},{"actual":[["a1","A",0]],"check":"missing judgment","expected":[["b1","B",0]],"passed":false},{"actual":[],"check":"no responses","expected":[],"passed":true},{"actual":[],"check":"no judgments","expected":[],"passed":true},{"actual":[["a1","A",1]],"check":"extra judgment ignored","expected":[["a1","A",1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"reordered judgments\", \"actual\": [[\"a1\", \"A\", 1], [\"b1\", \"B\", 0]], \"expected\": [[\"a1\", \"A\", 1], [\"b1\", \"B\", 0]], \"passed\": true}, {\"check\": \"one shared id\", \"actual\": [[\"a1\", \"A\", 1]], \"expected\": [[\"a1\", \"A\", 1]], \"passed\": true}, {\"check\": \"missing judgment\", \"actual\": [[\"a1\", \"A\", 0]], \"expected\": [[\"b1\", \"B\", 0]], \"passed\": false}, {\"check\": \"no responses\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no judgments\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"extra judgment ignored\", \"actual\": [[\"a1\", \"A\", 1]], \"expected\": [[\"a1\", \"A\", 1]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.542,"exit_code":1,"observations":[{"actual":[["a1","A",0],["b1","B",1]],"check":"reordered judgments","expected":[["a1","A",1],["b1","B",0]],"passed":false},{"actual":[["a1","A",1]],"check":"one shared id","expected":[["a1","A",1]],"passed":true},{"actual":[["a1","A",0]],"check":"missing judgment","expected":[["b1","B",0]],"passed":false},{"actual":[],"check":"no responses","expected":[],"passed":true},{"actual":[],"check":"no judgments","expected":[],"passed":true},{"actual":[["a1","A",1]],"check":"extra judgment ignored","expected":[["a1","A",1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"reordered judgments\", \"actual\": [[\"a1\", \"A\", 0], [\"b1\", \"B\", 1]], \"expected\": [[\"a1\", \"A\", 1], [\"b1\", \"B\", 0]], \"passed\": false}, {\"check\": \"one shared id\", \"actual\": [[\"a1\", \"A\", 1]], \"expected\": [[\"a1\", \"A\", 1]], \"passed\": true}, {\"check\": \"missing judgment\", \"actual\": [[\"a1\", \"A\", 0]], \"expected\": [[\"b1\", \"B\", 0]], \"passed\": false}, {\"check\": \"no responses\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no judgments\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"extra judgment ignored\", \"actual\": [[\"a1\", \"A\", 1]], \"expected\": [[\"a1\", \"A\", 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."}}