{"abstract":"Chunk citation references remain local after bibliography compaction.","category":"Chunk citation alignment","checks":6,"contract":"Each chunk is [source_ids, local_refs]; return flattened global reference indices using first-seen unique source order.","contract_signature":"chunks","evaluation_group":"w3-cca-reference_expansion","failed_approach":"Mapping only the first local reference leaves multiple citations partly invalid.","family":"w3-chunk-citation-alignment-chunk-ref-expansion","id":"FA-99716","implementations":{"attempt":{"sha256":"34bf53e8613bb0769a1b2302f2f72298bd1207e045717457b4fdded420ca26e5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chunks):\n    global_ids=list(dict.fromkeys(s for sources,refs in chunks for s in sources))\n    return [global_ids.index(sources[i]) for sources,refs in chunks for i in refs[:1]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('remapped second table',solve([[['a','b'],[1]],[['b','c'],[1,0]]]),[1,2,1])\ncheck('one table',solve([[['x','y'],[0,1]]]),[0,1])\ncheck('empty',solve([]),[])\ncheck('no refs',solve([[['a'],[]]]),[])\ncheck('repeated source',solve([[['z'],[0]],[['z'],[0]]]),[0,0])\ncheck('multiple refs',solve([[['p','q','r'],[2,0,1]]]),[2,0,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":"710c031cc77135e333db4f6ecd913f6c1827fd3206fe3d3cf4c6cd13c0784b66","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(chunks):\n    return [i for sources,refs in chunks for i in refs]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('remapped second table',solve([[['a','b'],[1]],[['b','c'],[1,0]]]),[1,2,1])\ncheck('one table',solve([[['x','y'],[0,1]]]),[0,1])\ncheck('empty',solve([]),[])\ncheck('no refs',solve([[['a'],[]]]),[])\ncheck('repeated source',solve([[['z'],[0]],[['z'],[0]]]),[0,0])\ncheck('multiple refs',solve([[['p','q','r'],[2,0,1]]]),[2,0,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 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-chunk-ref-expansion","generated_at":"2026-09-30T16:48:27.190044+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":"Local reference numbers are not translated to compact global source IDs.","sha256":"6fb82779e2df2f23b35f94072d22f06df7fe4d5361445e17197af2c33cd0dd33","title":"Chunk citation references remain local after bibliography compaction · 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.727,"exit_code":1,"observations":[{"actual":[1,2],"check":"remapped second table","expected":[1,2,1],"passed":false},{"actual":[0],"check":"one table","expected":[0,1],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"no refs","expected":[],"passed":true},{"actual":[0,0],"check":"repeated source","expected":[0,0],"passed":true},{"actual":[2],"check":"multiple refs","expected":[2,0,1],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remapped second table\", \"actual\": [1, 2], \"expected\": [1, 2, 1], \"passed\": false}, {\"check\": \"one table\", \"actual\": [0], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no refs\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"repeated source\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"multiple refs\", \"actual\": [2], \"expected\": [2, 0, 1], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.951,"exit_code":1,"observations":[{"actual":[1,1,0],"check":"remapped second table","expected":[1,2,1],"passed":false},{"actual":[0,1],"check":"one table","expected":[0,1],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"no refs","expected":[],"passed":true},{"actual":[0,0],"check":"repeated source","expected":[0,0],"passed":true},{"actual":[2,0,1],"check":"multiple refs","expected":[2,0,1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"remapped second table\", \"actual\": [1, 1, 0], \"expected\": [1, 2, 1], \"passed\": false}, {\"check\": \"one table\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no refs\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"repeated source\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"multiple refs\", \"actual\": [2, 0, 1], \"expected\": [2, 0, 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."}}