{"abstract":"Sentence partition retains untrimmed cross-boundary spans.","category":"Annotation span alignment","checks":7,"contract":"For ordered sentence intervals, intersect each span [s,e,label] with each sentence [a,b); emit [max(s,a),min(e,b),label] only when nonempty.","contract_signature":"spans, sentences","evaluation_group":"annotation-span-sentence-split-spans","failed_approach":"Filtering on sentence start omits a leading fragment when an annotation begins inside that sentence.","family":"w3-annotation-span-alignment-sentence-split-spans","id":"FA-100211","implementations":{"attempt":{"sha256":"bd7a7d59f3252bc72d88ba71aa07540d6b3d8f865dce4beedafae9bd6c3c56fe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(spans, sentences):\n    return [[max(s,a),min(e,b),l] for s,e,l in spans for a,b in sentences if s<=a<e]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('crossing split', solve([[1,7,'x']],[[0,4],[4,9]]), [[1,4,'x'],[4,7,'x']])\ncheck('touch only omitted', solve([[0,4,'x']],[[4,8]]), [])\ncheck('inside one sentence', solve([[5,6,'y']],[[0,4],[4,9]]), [[5,6,'y']])\ncheck('multiple spans', solve([[1,3,'a'],[6,8,'b']],[[0,5],[5,10]]), [[1,3,'a'],[6,8,'b']])\ncheck('no sentences', solve([[1,2,'x']],[]), [])\ncheck('no spans', solve([],[[0,3]]), [])\ncheck('equal whole sentence', solve([[N,N+2,'z']],[[N,N+2]]), [[N,N+2,'z']])\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":"3430689d0a032eeeaba9d1a31d7e74658fee723847a6e9df99cb4966ad046254","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(spans, sentences):\n    return [[s,e,l] for s,e,l in spans if any(s<=b and a<=e for a,b in sentences)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('crossing split', solve([[1,7,'x']],[[0,4],[4,9]]), [[1,4,'x'],[4,7,'x']])\ncheck('touch only omitted', solve([[0,4,'x']],[[4,8]]), [])\ncheck('inside one sentence', solve([[5,6,'y']],[[0,4],[4,9]]), [[5,6,'y']])\ncheck('multiple spans', solve([[1,3,'a'],[6,8,'b']],[[0,5],[5,10]]), [[1,3,'a'],[6,8,'b']])\ncheck('no sentences', solve([[1,2,'x']],[]), [])\ncheck('no spans', solve([],[[0,3]]), [])\ncheck('equal whole sentence', solve([[N,N+2,'z']],[[N,N+2]]), [[N,N+2,'z']])\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-sentence-split-spans","generated_at":"2026-09-30T16:48:33.098807+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":"A span is returned intact when it touches any sentence instead of being clipped into sentence-local pieces.","sha256":"5d4f463ef6774796dd7bad201de8bae7afd200598acfec5fcac12307b8aa4cb0","title":"Sentence partition retains untrimmed cross-boundary spans · 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":27.16,"exit_code":1,"observations":[{"actual":[[4,7,"x"]],"check":"crossing split","expected":[[1,4,"x"],[4,7,"x"]],"passed":false},{"actual":[],"check":"touch only omitted","expected":[],"passed":true},{"actual":[],"check":"inside one sentence","expected":[[5,6,"y"]],"passed":false},{"actual":[],"check":"multiple spans","expected":[[1,3,"a"],[6,8,"b"]],"passed":false},{"actual":[],"check":"no sentences","expected":[],"passed":true},{"actual":[],"check":"no spans","expected":[],"passed":true},{"actual":[[1,3,"z"]],"check":"equal whole sentence","expected":[[1,3,"z"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"crossing split\", \"actual\": [[4, 7, \"x\"]], \"expected\": [[1, 4, \"x\"], [4, 7, \"x\"]], \"passed\": false}, {\"check\": \"touch only omitted\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"inside one sentence\", \"actual\": [], \"expected\": [[5, 6, \"y\"]], \"passed\": false}, {\"check\": \"multiple spans\", \"actual\": [], \"expected\": [[1, 3, \"a\"], [6, 8, \"b\"]], \"passed\": false}, {\"check\": \"no sentences\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no spans\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"equal whole sentence\", \"actual\": [[1, 3, \"z\"]], \"expected\": [[1, 3, \"z\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.322,"exit_code":1,"observations":[{"actual":[[1,7,"x"]],"check":"crossing split","expected":[[1,4,"x"],[4,7,"x"]],"passed":false},{"actual":[[0,4,"x"]],"check":"touch only omitted","expected":[],"passed":false},{"actual":[[5,6,"y"]],"check":"inside one sentence","expected":[[5,6,"y"]],"passed":true},{"actual":[[1,3,"a"],[6,8,"b"]],"check":"multiple spans","expected":[[1,3,"a"],[6,8,"b"]],"passed":true},{"actual":[],"check":"no sentences","expected":[],"passed":true},{"actual":[],"check":"no spans","expected":[],"passed":true},{"actual":[[1,3,"z"]],"check":"equal whole sentence","expected":[[1,3,"z"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"crossing split\", \"actual\": [[1, 7, \"x\"]], \"expected\": [[1, 4, \"x\"], [4, 7, \"x\"]], \"passed\": false}, {\"check\": \"touch only omitted\", \"actual\": [[0, 4, \"x\"]], \"expected\": [], \"passed\": false}, {\"check\": \"inside one sentence\", \"actual\": [[5, 6, \"y\"]], \"expected\": [[5, 6, \"y\"]], \"passed\": true}, {\"check\": \"multiple spans\", \"actual\": [[1, 3, \"a\"], [6, 8, \"b\"]], \"expected\": [[1, 3, \"a\"], [6, 8, \"b\"]], \"passed\": true}, {\"check\": \"no sentences\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"no spans\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"equal whole sentence\", \"actual\": [[1, 3, \"z\"]], \"expected\": [[1, 3, \"z\"]], \"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."}}