{"abstract":"Serialized end offsets remain exclusive.","category":"Annotation span alignment","checks":7,"contract":"Serialize nonempty half-open spans [start,end) as [start,end-1,label]; omit empty spans.","contract_signature":"spans","evaluation_group":"annotation-span-annotation-boundary-serialization","failed_approach":"Subtracting one from every end emits an invalid negative-width record for empty spans.","family":"w3-annotation-span-alignment-annotation-boundary-serialization","id":"FA-100236","implementations":{"attempt":{"sha256":"50965c457fb4318b54cf36049d707fe44cd87a6f8c6405bd3e3a4aa87b616ef0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(spans):\n    return [[s,e-1,l] for s,e,l in spans]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('ordinary span', solve([[0,3,'x']]), [[0,2,'x']])\ncheck('single character', solve([[N,N+1,'y']]), [[N,N,'y']])\ncheck('empty omitted', solve([[2,2,'z']]), [])\ncheck('mixed spans', solve([[1,4,'a'],[5,5,'b'],[7,8,'c']]), [[1,3,'a'],[7,7,'c']])\ncheck('empty list', solve([]), [])\ncheck('negative source coordinates', solve([[-2,0,'q']]), [[-2,-1,'q']])\ncheck('two adjacent spans', solve([[0,1,'a'],[1,2,'b']]), [[0,0,'a'],[1,1,'b']])\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":"4e310d31231e2520936b8aa99f4822e4b4147100f308b87fb86392ce504538cb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(spans):\n    return [[s,e,l] for s,e,l in spans]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('ordinary span', solve([[0,3,'x']]), [[0,2,'x']])\ncheck('single character', solve([[N,N+1,'y']]), [[N,N,'y']])\ncheck('empty omitted', solve([[2,2,'z']]), [])\ncheck('mixed spans', solve([[1,4,'a'],[5,5,'b'],[7,8,'c']]), [[1,3,'a'],[7,7,'c']])\ncheck('empty list', solve([]), [])\ncheck('negative source coordinates', solve([[-2,0,'q']]), [[-2,-1,'q']])\ncheck('two adjacent spans', solve([[0,1,'a'],[1,2,'b']]), [[0,0,'a'],[1,1,'b']])\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-annotation-boundary-serialization","generated_at":"2026-09-30T16:48:33.127093+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 half-open end is emitted unchanged in a format that requires inclusive end.","sha256":"2a14deb895d23fa9d6c2d95327295cdfe6210d469ce77e49402596af948ca6a2","title":"Serialized end offsets remain exclusive · 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.909,"exit_code":1,"observations":[{"actual":[[0,2,"x"]],"check":"ordinary span","expected":[[0,2,"x"]],"passed":true},{"actual":[[1,1,"y"]],"check":"single character","expected":[[1,1,"y"]],"passed":true},{"actual":[[2,1,"z"]],"check":"empty omitted","expected":[],"passed":false},{"actual":[[1,3,"a"],[5,4,"b"],[7,7,"c"]],"check":"mixed spans","expected":[[1,3,"a"],[7,7,"c"]],"passed":false},{"actual":[],"check":"empty list","expected":[],"passed":true},{"actual":[[-2,-1,"q"]],"check":"negative source coordinates","expected":[[-2,-1,"q"]],"passed":true},{"actual":[[0,0,"a"],[1,1,"b"]],"check":"two adjacent spans","expected":[[0,0,"a"],[1,1,"b"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ordinary span\", \"actual\": [[0, 2, \"x\"]], \"expected\": [[0, 2, \"x\"]], \"passed\": true}, {\"check\": \"single character\", \"actual\": [[1, 1, \"y\"]], \"expected\": [[1, 1, \"y\"]], \"passed\": true}, {\"check\": \"empty omitted\", \"actual\": [[2, 1, \"z\"]], \"expected\": [], \"passed\": false}, {\"check\": \"mixed spans\", \"actual\": [[1, 3, \"a\"], [5, 4, \"b\"], [7, 7, \"c\"]], \"expected\": [[1, 3, \"a\"], [7, 7, \"c\"]], \"passed\": false}, {\"check\": \"empty list\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"negative source coordinates\", \"actual\": [[-2, -1, \"q\"]], \"expected\": [[-2, -1, \"q\"]], \"passed\": true}, {\"check\": \"two adjacent spans\", \"actual\": [[0, 0, \"a\"], [1, 1, \"b\"]], \"expected\": [[0, 0, \"a\"], [1, 1, \"b\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.979,"exit_code":1,"observations":[{"actual":[[0,3,"x"]],"check":"ordinary span","expected":[[0,2,"x"]],"passed":false},{"actual":[[1,2,"y"]],"check":"single character","expected":[[1,1,"y"]],"passed":false},{"actual":[[2,2,"z"]],"check":"empty omitted","expected":[],"passed":false},{"actual":[[1,4,"a"],[5,5,"b"],[7,8,"c"]],"check":"mixed spans","expected":[[1,3,"a"],[7,7,"c"]],"passed":false},{"actual":[],"check":"empty list","expected":[],"passed":true},{"actual":[[-2,0,"q"]],"check":"negative source coordinates","expected":[[-2,-1,"q"]],"passed":false},{"actual":[[0,1,"a"],[1,2,"b"]],"check":"two adjacent spans","expected":[[0,0,"a"],[1,1,"b"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"ordinary span\", \"actual\": [[0, 3, \"x\"]], \"expected\": [[0, 2, \"x\"]], \"passed\": false}, {\"check\": \"single character\", \"actual\": [[1, 2, \"y\"]], \"expected\": [[1, 1, \"y\"]], \"passed\": false}, {\"check\": \"empty omitted\", \"actual\": [[2, 2, \"z\"]], \"expected\": [], \"passed\": false}, {\"check\": \"mixed spans\", \"actual\": [[1, 4, \"a\"], [5, 5, \"b\"], [7, 8, \"c\"]], \"expected\": [[1, 3, \"a\"], [7, 7, \"c\"]], \"passed\": false}, {\"check\": \"empty list\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"negative source coordinates\", \"actual\": [[-2, 0, \"q\"]], \"expected\": [[-2, -1, \"q\"]], \"passed\": false}, {\"check\": \"two adjacent spans\", \"actual\": [[0, 1, \"a\"], [1, 2, \"b\"]], \"expected\": [[0, 0, \"a\"], [1, 1, \"b\"]], \"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."}}