{"abstract":"token multiplicity is discarded from bag identity.","category":"Dataset deduplication grouping","checks":6,"contract":"Return distinct token multisets; order does not matter and repeated tokens do.","contract_signature":"docs","evaluation_group":"dedup-multiset","failed_approach":"Using raw sequence keys incorrectly makes order significant.","family":"w3-dataset-deduplication-grouping-multiset-equivalence","id":"FA-100261","implementations":{"attempt":{"sha256":"e925fb42427da027c1034a7f5d5cf26d196f7606eb3a325af506b3d179033bd6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(docs):\n    return len({tuple(d) for d in docs})\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\na='w'+str(N)\ncheck('same bag reordered',solve([[a,'x'],['x',a]]),1)\ncheck('multiplicity differs',solve([[a,a,'x'],[a,'x']]),2)\ncheck('empty bags',solve([[],[]]),1)\ncheck('empty corpus',solve([]),0)\ncheck('three bags',solve([[a],[a,a],['x']]),3)\ncheck('singleton',solve([[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":"02a01947315354e9c7ea9cec9c15c39e0a4c49b3d573a35b1c90f1e2a6e4ee57","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(docs):\n    return len({frozenset(d) for d in docs})\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\na='w'+str(N)\ncheck('same bag reordered',solve([[a,'x'],['x',a]]),1)\ncheck('multiplicity differs',solve([[a,a,'x'],[a,'x']]),2)\ncheck('empty bags',solve([[],[]]),1)\ncheck('empty corpus',solve([]),0)\ncheck('three bags',solve([[a],[a,a],['x']]),3)\ncheck('singleton',solve([[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":"Inputs are small in-memory fixtures with the stated contract; results do not claim production deduplication quality. 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-dataset-deduplication-grouping-multiset-equivalence","generated_at":"2026-09-30T16:48:33.560861+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic toy operation makes one dataset equivalence or representative rule explicit.","root_cause":"The key converts token collections to sets, erasing counts.","sha256":"7f71354c0c147c46cb60379722d925a6cde351b58bcd32c2acca6c7b726da2ce","title":"Dataset deduplication: token multiplicity is discarded from bag identity · 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":31.236,"exit_code":1,"observations":[{"actual":2,"check":"same bag reordered","expected":1,"passed":false},{"actual":2,"check":"multiplicity differs","expected":2,"passed":true},{"actual":1,"check":"empty bags","expected":1,"passed":true},{"actual":0,"check":"empty corpus","expected":0,"passed":true},{"actual":3,"check":"three bags","expected":3,"passed":true},{"actual":1,"check":"singleton","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same bag reordered\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"multiplicity differs\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"empty bags\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"empty corpus\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"three bags\", \"actual\": 3, \"expected\": 3, \"passed\": true}, {\"check\": \"singleton\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":29.214,"exit_code":1,"observations":[{"actual":1,"check":"same bag reordered","expected":1,"passed":true},{"actual":1,"check":"multiplicity differs","expected":2,"passed":false},{"actual":1,"check":"empty bags","expected":1,"passed":true},{"actual":0,"check":"empty corpus","expected":0,"passed":true},{"actual":2,"check":"three bags","expected":3,"passed":false},{"actual":1,"check":"singleton","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same bag reordered\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"multiplicity differs\", \"actual\": 1, \"expected\": 2, \"passed\": false}, {\"check\": \"empty bags\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"empty corpus\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"three bags\", \"actual\": 2, \"expected\": 3, \"passed\": false}, {\"check\": \"singleton\", \"actual\": 1, \"expected\": 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."}}