{"abstract":"Citation IDs point to the pre-merge source table.","category":"Chunk citation alignment","checks":6,"contract":"Given mapping pairs [old,new] and citation indices, replace each mapped index and preserve unmapped IDs.","contract_signature":"mapping, ids","evaluation_group":"w3-cca-id_remap","failed_approach":"Remapping only the first citation in a list leaves later references stale.","family":"w3-chunk-citation-alignment-source-id-remap","id":"FA-99686","implementations":{"attempt":{"sha256":"6f5e930ac53c60d7b6f04a08795d5874a8f81d8ee9bfe30005c50849e6705ff4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(mapping, ids):\n    m=dict(mapping)\n    return [m.get(x,x) for x in ids[:1]]+ids[1:]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('remap all',solve([[0,4],[2,1]],[0,2,3]),[4,1,3])\ncheck('identity',solve([], [0,1]),[0,1])\ncheck('single mapped',solve([[3,8]],[3]),[8])\ncheck('empty ids',solve([[0,1]],[]),[])\ncheck('repeated id',solve([[2,7]],[2,2]),[7,7])\ncheck('unmapped between',solve([[1,9]],[0,1,2]),[0,9,2])\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":"80e6ca14c6eb6d5a4d64a0eb8e6d50d7846505af6ff0b109f7d0a3936805d2ea","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(mapping, ids):\n    return list(ids)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('remap all',solve([[0,4],[2,1]],[0,2,3]),[4,1,3])\ncheck('identity',solve([], [0,1]),[0,1])\ncheck('single mapped',solve([[3,8]],[3]),[8])\ncheck('empty ids',solve([[0,1]],[]),[])\ncheck('repeated id',solve([[2,7]],[2,2]),[7,7])\ncheck('unmapped between',solve([[1,9]],[0,1,2]),[0,9,2])\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-source-id-remap","generated_at":"2026-09-30T16:48:27.159194+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":"Compaction remaps source rows but leaves citation indices unchanged.","sha256":"e0ea0e62dfdafb5f59ef0aaab466090f6c2c76134cfa9f56e1b9d4435f95107b","title":"Citation IDs point to the pre-merge source table · 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.948,"exit_code":1,"observations":[{"actual":[4,2,3],"check":"remap all","expected":[4,1,3],"passed":false},{"actual":[0,1],"check":"identity","expected":[0,1],"passed":true},{"actual":[8],"check":"single mapped","expected":[8],"passed":true},{"actual":[],"check":"empty ids","expected":[],"passed":true},{"actual":[7,2],"check":"repeated id","expected":[7,7],"passed":false},{"actual":[0,1,2],"check":"unmapped between","expected":[0,9,2],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remap all\", \"actual\": [4, 2, 3], \"expected\": [4, 1, 3], \"passed\": false}, {\"check\": \"identity\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"single mapped\", \"actual\": [8], \"expected\": [8], \"passed\": true}, {\"check\": \"empty ids\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"repeated id\", \"actual\": [7, 2], \"expected\": [7, 7], \"passed\": false}, {\"check\": \"unmapped between\", \"actual\": [0, 1, 2], \"expected\": [0, 9, 2], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.887,"exit_code":1,"observations":[{"actual":[0,2,3],"check":"remap all","expected":[4,1,3],"passed":false},{"actual":[0,1],"check":"identity","expected":[0,1],"passed":true},{"actual":[3],"check":"single mapped","expected":[8],"passed":false},{"actual":[],"check":"empty ids","expected":[],"passed":true},{"actual":[2,2],"check":"repeated id","expected":[7,7],"passed":false},{"actual":[0,1,2],"check":"unmapped between","expected":[0,9,2],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remap all\", \"actual\": [0, 2, 3], \"expected\": [4, 1, 3], \"passed\": false}, {\"check\": \"identity\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"single mapped\", \"actual\": [3], \"expected\": [8], \"passed\": false}, {\"check\": \"empty ids\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"repeated id\", \"actual\": [2, 2], \"expected\": [7, 7], \"passed\": false}, {\"check\": \"unmapped between\", \"actual\": [0, 1, 2], \"expected\": [0, 9, 2], \"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."}}