{"abstract":"Truncated excerpts retain citations beyond visible text.","category":"Chunk citation alignment","checks":6,"contract":"Input is chunk start b, original global [s,e), retained local length L. Return [s,min(e,b+L)) when s < b+L, otherwise no span.","contract_signature":"base, span, kept","evaluation_group":"w3-cca-truncate_end","failed_approach":"Capping the local end directly fails when the chunk starts away from zero.","family":"w3-chunk-citation-alignment-truncate-end","id":"FA-99651","implementations":{"attempt":{"sha256":"f1a809635fce9aaec948b7ae1fe3598aaeb93b18fbc8a23b6f4575d2c3a75348","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(base, span, kept):\n    s,e=span\n    return [s,min(e,kept)] if s<base+kept else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cut tail',solve(N,[N+2,N+9],5),[N+2,N+5])\ncheck('fully retained',solve(N,[N+1,N+3],5),[N+1,N+3])\ncheck('beyond excerpt',solve(N,[N+6,N+8],5),None)\ncheck('ends at boundary',solve(N,[N+3,N+5],3),None)\ncheck('zero kept',solve(N,[N,N+1],0),None)\ncheck('empty citation',solve(N,[N+2,N+2],5),None)\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":"f413ca0189aa19aaa71a0aab59612f12af739749af952ca931ba33e849de8804","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(base, span, kept):\n    s,e=span\n    return [s,e]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('cut tail',solve(N,[N+2,N+9],5),[N+2,N+5])\ncheck('fully retained',solve(N,[N+1,N+3],5),[N+1,N+3])\ncheck('beyond excerpt',solve(N,[N+6,N+8],5),None)\ncheck('ends at boundary',solve(N,[N+3,N+5],3),None)\ncheck('zero kept',solve(N,[N,N+1],0),None)\ncheck('empty citation',solve(N,[N+2,N+2],5),None)\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-truncate-end","generated_at":"2026-09-30T16:48:26.713582+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":"The end is copied from the original citation although the excerpt was shortened.","sha256":"f74979eeb69f3842f10c5187495ed29313d504b1f9b0515b4ac7f8066406400f","title":"Truncated excerpts retain citations beyond visible text · 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":26.298,"exit_code":1,"observations":[{"actual":[3,5],"check":"cut tail","expected":[3,6],"passed":false},{"actual":[2,4],"check":"fully retained","expected":[2,4],"passed":true},{"actual":null,"check":"beyond excerpt","expected":null,"passed":true},{"actual":null,"check":"ends at boundary","expected":null,"passed":true},{"actual":null,"check":"zero kept","expected":null,"passed":true},{"actual":[3,3],"check":"empty citation","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cut tail\", \"actual\": [3, 5], \"expected\": [3, 6], \"passed\": false}, {\"check\": \"fully retained\", \"actual\": [2, 4], \"expected\": [2, 4], \"passed\": true}, {\"check\": \"beyond excerpt\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"ends at boundary\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"zero kept\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty citation\", \"actual\": [3, 3], \"expected\": null, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.135,"exit_code":1,"observations":[{"actual":[3,10],"check":"cut tail","expected":[3,6],"passed":false},{"actual":[2,4],"check":"fully retained","expected":[2,4],"passed":true},{"actual":[7,9],"check":"beyond excerpt","expected":null,"passed":false},{"actual":[4,6],"check":"ends at boundary","expected":null,"passed":false},{"actual":[1,2],"check":"zero kept","expected":null,"passed":false},{"actual":[3,3],"check":"empty citation","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"cut tail\", \"actual\": [3, 10], \"expected\": [3, 6], \"passed\": false}, {\"check\": \"fully retained\", \"actual\": [2, 4], \"expected\": [2, 4], \"passed\": true}, {\"check\": \"beyond excerpt\", \"actual\": [7, 9], \"expected\": null, \"passed\": false}, {\"check\": \"ends at boundary\", \"actual\": [4, 6], \"expected\": null, \"passed\": false}, {\"check\": \"zero kept\", \"actual\": [1, 2], \"expected\": null, \"passed\": false}, {\"check\": \"empty citation\", \"actual\": [3, 3], \"expected\": null, \"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."}}