{"abstract":"final token shingle is omitted.","category":"Dataset deduplication grouping","checks":6,"contract":"Return sorted tuple shingles for every contiguous window of positive width; if input is shorter, return empty.","contract_signature":"tokens, width","evaluation_group":"dedup-shingle-boundary","failed_approach":"Repairing ordinary longer windows but retaining a strict exact-width guard still misses the sole valid window.","family":"w3-dataset-deduplication-grouping-shingle-boundary","id":"FA-100311","implementations":{"attempt":{"sha256":"f32183b81cca048a0aea2dd65a95512293dff7bba532307a604a52a82c163e80","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tokens, width):\n    starts=list(range(max(0,len(tokens)-width)))\n    if len(tokens)>width: starts.append(len(tokens)-width)\n    return sorted(tuple(tokens[i:i+width]) for i in starts)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('last window',solve(list(range(N+2)),2),[tuple(range(i,i+2)) for i in range(N+1)])\ncheck('exactly one window',solve([1,2],2),[(1,2)])\ncheck('too short',solve([1],2),[])\ncheck('empty tokens',solve([],1),[])\ncheck('width one',solve([1,2],1),[(1,),(2,)])\ncheck('width exceeds length',solve([1,2],3),[])\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":"6d724fe002ef4ac4b60ae822b7d97a5907e4feeb9520a7c94f5f6f71ded0333a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tokens, width):\n    return sorted(tuple(tokens[i:i+width]) for i in range(max(0,len(tokens)-width)))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('last window',solve(list(range(N+2)),2),[tuple(range(i,i+2)) for i in range(N+1)])\ncheck('exactly one window',solve([1,2],2),[(1,2)])\ncheck('too short',solve([1],2),[])\ncheck('empty tokens',solve([],1),[])\ncheck('width one',solve([1,2],1),[(1,),(2,)])\ncheck('width exceeds length',solve([1,2],3),[])\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-shingle-boundary","generated_at":"2026-09-30T16:48:34.014397+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 range endpoint treats the final valid start as out of bounds.","sha256":"c51831052949112510733347b5aa2507afd5e1996edfe1ebae8df534ba46c212","title":"Dataset deduplication: final token shingle is omitted · 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":30.037,"exit_code":1,"observations":[{"actual":[[0,1],[1,2]],"check":"last window","expected":[[0,1],[1,2]],"passed":true},{"actual":[],"check":"exactly one window","expected":[[1,2]],"passed":false},{"actual":[],"check":"too short","expected":[],"passed":true},{"actual":[],"check":"empty tokens","expected":[],"passed":true},{"actual":[[1],[2]],"check":"width one","expected":[[1],[2]],"passed":true},{"actual":[],"check":"width exceeds length","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"last window\", \"actual\": [[0, 1], [1, 2]], \"expected\": [[0, 1], [1, 2]], \"passed\": true}, {\"check\": \"exactly one window\", \"actual\": [], \"expected\": [[1, 2]], \"passed\": false}, {\"check\": \"too short\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty tokens\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"width one\", \"actual\": [[1], [2]], \"expected\": [[1], [2]], \"passed\": true}, {\"check\": \"width exceeds length\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.076,"exit_code":1,"observations":[{"actual":[[0,1]],"check":"last window","expected":[[0,1],[1,2]],"passed":false},{"actual":[],"check":"exactly one window","expected":[[1,2]],"passed":false},{"actual":[],"check":"too short","expected":[],"passed":true},{"actual":[],"check":"empty tokens","expected":[],"passed":true},{"actual":[[1]],"check":"width one","expected":[[1],[2]],"passed":false},{"actual":[],"check":"width exceeds length","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"last window\", \"actual\": [[0, 1]], \"expected\": [[0, 1], [1, 2]], \"passed\": false}, {\"check\": \"exactly one window\", \"actual\": [], \"expected\": [[1, 2]], \"passed\": false}, {\"check\": \"too short\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty tokens\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"width one\", \"actual\": [[1]], \"expected\": [[1], [2]], \"passed\": false}, {\"check\": \"width exceeds length\", \"actual\": [], \"expected\": [], \"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."}}