{"abstract":"Repeated source IDs create duplicate bibliography entries.","category":"Chunk citation alignment","checks":6,"contract":"Flatten source ID lists to unique IDs in first-seen order.","contract_signature":"tables","evaluation_group":"w3-cca-unique_source_table","failed_approach":"Sorting unique IDs changes stable first-seen bibliography numbering.","family":"w3-chunk-citation-alignment-repeated-source-table","id":"FA-99711","implementations":{"attempt":{"sha256":"e60258dfac284849c9586010d69a0bd40d842d1a1e644ff810e766e1dfb7662d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tables):\n    return sorted(set(x for row in tables for x in row))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('shared source',solve([['a','b'],['b','c']]),['a','b','c'])\ncheck('empty',solve([]),[])\ncheck('empty table',solve([[],['x']]),['x'])\ncheck('first-seen order',solve([['z','a'],['z','b']]),['z','a','b'])\ncheck('single',solve([['q']]),['q'])\ncheck('all repeats',solve([['r'],['r']]),['r'])\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":"0a3dad69eef20664d8c223fc20d7fc337156394b228665aaf7542b8388eebeb7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tables):\n    return [x for row in tables for x in row]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('shared source',solve([['a','b'],['b','c']]),['a','b','c'])\ncheck('empty',solve([]),[])\ncheck('empty table',solve([[],['x']]),['x'])\ncheck('first-seen order',solve([['z','a'],['z','b']]),['z','a','b'])\ncheck('single',solve([['q']]),['q'])\ncheck('all repeats',solve([['r'],['r']]),['r'])\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-repeated-source-table","generated_at":"2026-09-30T16:48:27.159076+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":"Every chunk-local source table entry is appended independently.","sha256":"565def5d236b3f7e96438d721808316218e4222927117885f9683fe7df04094c","title":"Repeated source IDs create duplicate bibliography entries · 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":27.728,"exit_code":1,"observations":[{"actual":["a","b","c"],"check":"shared source","expected":["a","b","c"],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":["x"],"check":"empty table","expected":["x"],"passed":true},{"actual":["a","b","z"],"check":"first-seen order","expected":["z","a","b"],"passed":false},{"actual":["q"],"check":"single","expected":["q"],"passed":true},{"actual":["r"],"check":"all repeats","expected":["r"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"shared source\", \"actual\": [\"a\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty table\", \"actual\": [\"x\"], \"expected\": [\"x\"], \"passed\": true}, {\"check\": \"first-seen order\", \"actual\": [\"a\", \"b\", \"z\"], \"expected\": [\"z\", \"a\", \"b\"], \"passed\": false}, {\"check\": \"single\", \"actual\": [\"q\"], \"expected\": [\"q\"], \"passed\": true}, {\"check\": \"all repeats\", \"actual\": [\"r\"], \"expected\": [\"r\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.373,"exit_code":1,"observations":[{"actual":["a","b","b","c"],"check":"shared source","expected":["a","b","c"],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":["x"],"check":"empty table","expected":["x"],"passed":true},{"actual":["z","a","z","b"],"check":"first-seen order","expected":["z","a","b"],"passed":false},{"actual":["q"],"check":"single","expected":["q"],"passed":true},{"actual":["r","r"],"check":"all repeats","expected":["r"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"shared source\", \"actual\": [\"a\", \"b\", \"b\", \"c\"], \"expected\": [\"a\", \"b\", \"c\"], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty table\", \"actual\": [\"x\"], \"expected\": [\"x\"], \"passed\": true}, {\"check\": \"first-seen order\", \"actual\": [\"z\", \"a\", \"z\", \"b\"], \"expected\": [\"z\", \"a\", \"b\"], \"passed\": false}, {\"check\": \"single\", \"actual\": [\"q\"], \"expected\": [\"q\"], \"passed\": true}, {\"check\": \"all repeats\", \"actual\": [\"r\", \"r\"], \"expected\": [\"r\"], \"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."}}