{"abstract":"Citations are deduplicated by label and collapse distinct spans.","category":"Chunk citation alignment","checks":6,"contract":"Rows [source,start,end]; remove exact duplicate rows while preserving first occurrence order.","contract_signature":"rows","evaluation_group":"w3-cca-dedupe","failed_approach":"Sorting the unique rows changes first-seen citation order even though it removes exact duplicates.","family":"w3-chunk-citation-alignment-citation-dedupe","id":"FA-99696","implementations":{"attempt":{"sha256":"c6857e4ebd47d10e14309e45d39abe9d3875c65d09055c098db1ecdbd5fe0cfe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return [list(r) for r in sorted(set(tuple(r) for r in rows))]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('same source distinct span',solve([['a',0,2],['a',4,6]]),[['a',0,2],['a',4,6]])\ncheck('exact duplicate',solve([['a',0,2],['a',0,2]]),[['a',0,2]])\ncheck('same span distinct source',solve([['a',1,3],['b',1,3]]),[['a',1,3],['b',1,3]])\ncheck('empty',solve([]),[])\ncheck('order retained',solve([['z',0,1],['a',0,1]]),[['z',0,1],['a',0,1]])\ncheck('three rows',solve([['a',0,1],['a',2,3],['a',0,1]]),[['a',0,1],['a',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":"aa62e6e78223b9a65d07d0a6bb5ca9283b1092147eca76434feea7dc3bbb4c98","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return list({r[0]:r for r in rows}.values())\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('same source distinct span',solve([['a',0,2],['a',4,6]]),[['a',0,2],['a',4,6]])\ncheck('exact duplicate',solve([['a',0,2],['a',0,2]]),[['a',0,2]])\ncheck('same span distinct source',solve([['a',1,3],['b',1,3]]),[['a',1,3],['b',1,3]])\ncheck('empty',solve([]),[])\ncheck('order retained',solve([['z',0,1],['a',0,1]]),[['z',0,1],['a',0,1]])\ncheck('three rows',solve([['a',0,1],['a',2,3],['a',0,1]]),[['a',0,1],['a',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 integer offsets and identifiers under the stated toy contract; this does not define a document format or production citation API. 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-chunk-citation-alignment-citation-dedupe","generated_at":"2026-09-30T16:48:27.159189+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic citation bookkeeping model isolates source attribution from rendering and retrieval.","root_cause":"A source label is treated as a unique citation despite separate passages.","sha256":"a7fed1bddcb02492ad7ccadfff0d64634cd4b4ffa55a1cc7d3c7f3751a8a080a","title":"Citations are deduplicated by label and collapse distinct spans · 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":28.765,"exit_code":1,"observations":[{"actual":[["a",0,2],["a",4,6]],"check":"same source distinct span","expected":[["a",0,2],["a",4,6]],"passed":true},{"actual":[["a",0,2]],"check":"exact duplicate","expected":[["a",0,2]],"passed":true},{"actual":[["a",1,3],["b",1,3]],"check":"same span distinct source","expected":[["a",1,3],["b",1,3]],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[["a",0,1],["z",0,1]],"check":"order retained","expected":[["z",0,1],["a",0,1]],"passed":false},{"actual":[["a",0,1],["a",2,3]],"check":"three rows","expected":[["a",0,1],["a",2,3]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same source distinct span\", \"actual\": [[\"a\", 0, 2], [\"a\", 4, 6]], \"expected\": [[\"a\", 0, 2], [\"a\", 4, 6]], \"passed\": true}, {\"check\": \"exact duplicate\", \"actual\": [[\"a\", 0, 2]], \"expected\": [[\"a\", 0, 2]], \"passed\": true}, {\"check\": \"same span distinct source\", \"actual\": [[\"a\", 1, 3], [\"b\", 1, 3]], \"expected\": [[\"a\", 1, 3], [\"b\", 1, 3]], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"order retained\", \"actual\": [[\"a\", 0, 1], [\"z\", 0, 1]], \"expected\": [[\"z\", 0, 1], [\"a\", 0, 1]], \"passed\": false}, {\"check\": \"three rows\", \"actual\": [[\"a\", 0, 1], [\"a\", 2, 3]], \"expected\": [[\"a\", 0, 1], [\"a\", 2, 3]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.297,"exit_code":1,"observations":[{"actual":[["a",4,6]],"check":"same source distinct span","expected":[["a",0,2],["a",4,6]],"passed":false},{"actual":[["a",0,2]],"check":"exact duplicate","expected":[["a",0,2]],"passed":true},{"actual":[["a",1,3],["b",1,3]],"check":"same span distinct source","expected":[["a",1,3],["b",1,3]],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[["z",0,1],["a",0,1]],"check":"order retained","expected":[["z",0,1],["a",0,1]],"passed":true},{"actual":[["a",0,1]],"check":"three rows","expected":[["a",0,1],["a",2,3]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"same source distinct span\", \"actual\": [[\"a\", 4, 6]], \"expected\": [[\"a\", 0, 2], [\"a\", 4, 6]], \"passed\": false}, {\"check\": \"exact duplicate\", \"actual\": [[\"a\", 0, 2]], \"expected\": [[\"a\", 0, 2]], \"passed\": true}, {\"check\": \"same span distinct source\", \"actual\": [[\"a\", 1, 3], [\"b\", 1, 3]], \"expected\": [[\"a\", 1, 3], [\"b\", 1, 3]], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"order retained\", \"actual\": [[\"z\", 0, 1], [\"a\", 0, 1]], \"expected\": [[\"z\", 0, 1], [\"a\", 0, 1]], \"passed\": true}, {\"check\": \"three rows\", \"actual\": [[\"a\", 0, 1]], \"expected\": [[\"a\", 0, 1], [\"a\", 2, 3]], \"passed\": false}], \"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."}}