{"abstract":"formatting whitespace creates duplicate records.","category":"Dataset deduplication grouping","checks":6,"contract":"Return distinct keys after collapsing each whitespace run to one space and trimming ends; case is preserved.","contract_signature":"values","evaluation_group":"dedup-whitespace","failed_approach":"Trimming ends still treats different internal whitespace runs as distinct.","family":"w3-dataset-deduplication-grouping-whitespace-collapsed-key","id":"FA-100251","implementations":{"attempt":{"sha256":"aa5ea745fcaf10af57918c2ef05e3d5f8850d7ad117f6bc1c44b4265167be782","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(values):\n    return len({s.strip() for s in values})\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('tabs and spaces',solve(['a  b','a\\tb']),1)\ncheck('outer whitespace',solve([' x ','x']),1)\ncheck('internal word boundary',solve(['ab','a b']),2)\ncheck('empty strings',solve(['','  ']),1)\ncheck('empty input',solve([]),0)\ncheck('single token',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":"9a7cb6ca50d5cdd72b35d9d214c8f4e2de158a07e5fd1667f392b324ebdcb498","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(values):\n    return len(set(values))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('tabs and spaces',solve(['a  b','a\\tb']),1)\ncheck('outer whitespace',solve([' x ','x']),1)\ncheck('internal word boundary',solve(['ab','a b']),2)\ncheck('empty strings',solve(['','  ']),1)\ncheck('empty input',solve([]),0)\ncheck('single token',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-whitespace-collapsed-key","generated_at":"2026-09-30T16:48:33.560960+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":"Runs of whitespace are not normalized before the identity comparison.","sha256":"1e8ee8574c591b9145bfa2349e828bc3287f5c33fff7395708748bbe4c3a62df","title":"Dataset deduplication: formatting whitespace creates duplicate records · case 01","variant":1,"variant_policy":"The same explicitly authored fixtures repeat across all five numbered records; runtime N is unused. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":30.738,"exit_code":1,"observations":[{"actual":2,"check":"tabs and spaces","expected":1,"passed":false},{"actual":1,"check":"outer whitespace","expected":1,"passed":true},{"actual":2,"check":"internal word boundary","expected":2,"passed":true},{"actual":1,"check":"empty strings","expected":1,"passed":true},{"actual":0,"check":"empty input","expected":0,"passed":true},{"actual":1,"check":"single token","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"tabs and spaces\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"outer whitespace\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"internal word boundary\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"empty strings\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"empty input\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"single token\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":30.052,"exit_code":1,"observations":[{"actual":2,"check":"tabs and spaces","expected":1,"passed":false},{"actual":2,"check":"outer whitespace","expected":1,"passed":false},{"actual":2,"check":"internal word boundary","expected":2,"passed":true},{"actual":2,"check":"empty strings","expected":1,"passed":false},{"actual":0,"check":"empty input","expected":0,"passed":true},{"actual":1,"check":"single token","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"tabs and spaces\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"outer whitespace\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"internal word boundary\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"empty strings\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"empty input\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"single token\", \"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."}}