{"abstract":"Character span misses a token that it partially covers.","category":"Annotation span alignment","checks":7,"contract":"Return indices of tokens [a,b) that overlap span [start,end) with positive length; touching boundaries do not overlap.","contract_signature":"tokens, start, end","evaluation_group":"annotation-span-char-covering-tokens","failed_approach":"Selecting tokens whose starts lie inside misses a token that begins before the span.","family":"w3-annotation-span-alignment-char-covering-tokens","id":"FA-100161","implementations":{"attempt":{"sha256":"a85838f12e355820692f1a362c5b8cee5d70085d71a34505fc86ea12d1b91f3e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tokens, start, end):\n    return [i for i,(a,b) in enumerate(tokens) if start<=a<end]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('partial at left edge', solve([[0,4],[5,8]],3,6), [0,1])\ncheck('partial at right edge', solve([[0,4],[5,8]],2,6), [0,1])\ncheck('touching only', solve([[0,3],[6,9]],3,6), [])\ncheck('fully contained', solve([[1,2],[3,5]],0,8), [0,1])\ncheck('empty span', solve([[0,5]],3,3), [])\ncheck('no tokens', solve([],N,N+2), [])\ncheck('one overlapping token', solve([[N,N+4]],N+1,N+2), [0])\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":"8ca5c7550aab353b806222df29ac47f9ba6072c711de7378356d4332222501f5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tokens, start, end):\n    return [i for i,(a,b) in enumerate(tokens) if start<=a and b<=end]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('partial at left edge', solve([[0,4],[5,8]],3,6), [0,1])\ncheck('partial at right edge', solve([[0,4],[5,8]],2,6), [0,1])\ncheck('touching only', solve([[0,3],[6,9]],3,6), [])\ncheck('fully contained', solve([[1,2],[3,5]],0,8), [0,1])\ncheck('empty span', solve([[0,5]],3,3), [])\ncheck('no tokens', solve([],N,N+2), [])\ncheck('one overlapping token', solve([[N,N+4]],N+1,N+2), [0])\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":"Contracts use integer offsets, explicit edits, and supplied token boundaries; they do not define a tokenizer or production annotation format. 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-annotation-span-alignment-char-covering-tokens","generated_at":"2026-09-30T16:48:32.646555+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A small offline annotation transformation keeps span coordinates explicit when text or token boundaries change.","root_cause":"Token membership requires both token edges to stay inside the annotation.","sha256":"dd82195723b7e648341d2e79d7d36a0037143356432170218c7d327bb70bbf6f","title":"Character span misses a token that it partially covers · 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":28.761,"exit_code":1,"observations":[{"actual":[1],"check":"partial at left edge","expected":[0,1],"passed":false},{"actual":[1],"check":"partial at right edge","expected":[0,1],"passed":false},{"actual":[],"check":"touching only","expected":[],"passed":true},{"actual":[0,1],"check":"fully contained","expected":[0,1],"passed":true},{"actual":[],"check":"empty span","expected":[],"passed":true},{"actual":[],"check":"no tokens","expected":[],"passed":true},{"actual":[],"check":"one overlapping token","expected":[0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"partial at left edge\", \"actual\": [1], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"partial at right edge\", \"actual\": [1], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"touching only\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fully contained\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"empty span\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no tokens\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one overlapping token\", \"actual\": [], \"expected\": [0], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.293,"exit_code":1,"observations":[{"actual":[],"check":"partial at left edge","expected":[0,1],"passed":false},{"actual":[],"check":"partial at right edge","expected":[0,1],"passed":false},{"actual":[],"check":"touching only","expected":[],"passed":true},{"actual":[0,1],"check":"fully contained","expected":[0,1],"passed":true},{"actual":[],"check":"empty span","expected":[],"passed":true},{"actual":[],"check":"no tokens","expected":[],"passed":true},{"actual":[],"check":"one overlapping token","expected":[0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"partial at left edge\", \"actual\": [], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"partial at right edge\", \"actual\": [], \"expected\": [0, 1], \"passed\": false}, {\"check\": \"touching only\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fully contained\", \"actual\": [0, 1], \"expected\": [0, 1], \"passed\": true}, {\"check\": \"empty span\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no tokens\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one overlapping token\", \"actual\": [], \"expected\": [0], \"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."}}