{"abstract":"Empty fragments become zero-length cues.","category":"Subtitle cue timing","checks":9,"contract":"Split cue [start,end] into len(parts) consecutive cues. Each part weighs max(1, len(part.strip())). Boundary after part k is start + floor(dur * cumulative_weight_k / total_weight); pieces are contiguous and the last ends at end. Output [s,e,part.strip()].","evaluation_group":"w2-subtitle-cue-timing-cue-split","failed_approach":"Weighting untrimmed parts gives padded fragments too much screen time.","family":"w2-subtitle-cue-timing-cue-split-part-weight","id":"FA-78116","implementations":{"attempt":{"sha256":"c06ffc50cb0c8b1c773f34165fabe894a301c3ddb20ee89eb33a5423d413d629","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(cue, parts):\n    start,end=cue\n    w=[max(1,len(p)) for p in parts]\n    total=sum(w)\n    dur=end-start\n    out=[]\n    acc=0\n    prev=start\n    for p,x in zip(parts,w):\n        acc+=x\n        b=start+dur*acc//total\n        out.append([prev,b,p.strip()])\n        prev=b\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: part weight', [[0, 1000], ['a', '']], [[0, 500, 'a'], [500, 1000, '']]), ('regression variant: part weight', [[12345, 12352], [' there ', ' there ', 'xyz', '  ']], [[12345, 12347, 'there'], [12347, 12350, 'there'], [12350, 12351, 'xyz'], [12351, 12352, '']]), ('partial repair probe: part weight', [[0, 3001], ['ok ', ' there ']], [[0, 857, 'ok'], [857, 3001, 'there']]), ('partial repair variant: part weight', [[1000, 1100], [' there ', 'friend']], [[1000, 1045, 'there'], [1045, 1100, 'friend']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[0, 2500], ['xyz']], [[0, 2500, 'xyz']]), ('normal control', [[1000, 1007], ['xyz']], [[1000, 1007, 'xyz']]), ('normal control', [[1000, 1007], ['a', 'xyz', 'friend', 'a']], [[1000, 1000, 'a'], [1000, 1002, 'xyz'], [1002, 1006, 'friend'], [1006, 1007, 'a']])], [('regression: part weight', [[1000, 1999], ['ok ', '  ', 'friend', 'ok ']], [[1000, 1181, 'ok'], [1181, 1272, ''], [1272, 1817, 'friend'], [1817, 1999, 'ok']]), ('regression variant: part weight', [[12345, 15346], ['a', '']], [[12345, 13845, 'a'], [13845, 15346, '']]), ('partial repair probe: part weight', [[1000, 1999], ['ok ', 'Hello']], [[1000, 1285, 'ok'], [1285, 1999, 'Hello']]), ('partial repair variant: part weight', [[0, 2500], [' there ', 'Longer chunk of text']], [[0, 500, 'there'], [500, 2500, 'Longer chunk of text']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('normal control', [[0, 7], [' there ']], [[0, 7, 'there']]), ('normal control', [[1000, 1999], ['friend']], [[1000, 1999, 'friend']]), ('normal control', [[1000, 1999], ['xyz', 'friend']], [[1000, 1333, 'xyz'], [1333, 1999, 'friend']])], [('regression: part weight', [[12345, 13344], ['ok ', 'ok ', '  ']], [[12345, 12744, 'ok'], [12744, 13144, 'ok'], [13144, 13344, '']]), ('regression variant: part weight', [[0, 2500], ['', 'ok ', '']], [[0, 625, ''], [625, 1875, 'ok'], [1875, 2500, '']]), ('partial repair probe: part weight', [[1000, 1999], ['ok ', '  ', 'friend', 'ok ']], [[1000, 1181, 'ok'], [1181, 1272, ''], [1272, 1817, 'friend'], [1817, 1999, 'ok']]), ('partial repair variant: part weight', [[1000, 3500], ['a', 'ok ', 'Longer chunk of text']], [[1000, 1108, 'a'], [1108, 1326, 'ok'], [1326, 3500, 'Longer chunk of text']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[12345, 13345], ['Hello', 'friend', 'Hello']], [[12345, 12657, 'Hello'], [12657, 13032, 'friend'], [13032, 13345, 'Hello']]), ('normal control', [[12345, 15346], ['Hello']], [[12345, 15346, 'Hello']]), ('normal control', [[12345, 12352], ['xyz']], [[12345, 12352, 'xyz']])], [('regression: part weight', [[0, 7], ['  ', 'ok ', '  ', 'ok ']], [[0, 1, ''], [1, 3, 'ok'], [3, 4, ''], [4, 7, 'ok']]), ('regression variant: part weight', [[12345, 13345], ['  ', 'ok ']], [[12345, 12678, ''], [12678, 13345, 'ok']]), ('partial repair probe: part weight', [[12345, 13344], ['ok ', 'ok ', '  ']], [[12345, 12744, 'ok'], [12744, 13144, 'ok'], [13144, 13344, '']]), ('partial repair variant: part weight', [[1000, 3500], ['a', 'ok ', 'Longer chunk of text']], [[1000, 1108, 'a'], [1108, 1326, 'ok'], [1326, 3500, 'Longer chunk of text']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('normal control', [[12345, 12445], ['a']], [[12345, 12445, 'a']]), ('normal control', [[12345, 13345], ['xyz']], [[12345, 13345, 'xyz']]), ('normal control', [[12345, 12352], ['Longer chunk of text', 'a', 'xyz']], [[12345, 12350, 'Longer chunk of text'], [12350, 12351, 'a'], [12351, 12352, 'xyz']])], [('regression: part weight', [[1000, 2000], ['ok ', '', '']], [[1000, 1500, 'ok'], [1500, 1750, ''], [1750, 2000, '']]), ('regression variant: part weight', [[0, 100], ['', '', 'friend']], [[0, 12, ''], [12, 25, ''], [25, 100, 'friend']]), ('partial repair probe: part weight', [[1000, 1100], [' there ', 'ok ', 'Longer chunk of text']], [[1000, 1018, 'there'], [1018, 1025, 'ok'], [1025, 1100, 'Longer chunk of text']]), ('partial repair variant: part weight', [[12345, 13345], ['  ', 'ok ']], [[12345, 12678, ''], [12678, 13345, 'ok']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[12345, 13344], ['Hello', 'friend', 'a']], [[12345, 12761, 'Hello'], [12761, 13260, 'friend'], [13260, 13344, 'a']]), ('normal control', [[12345, 13345], ['friend']], [[12345, 13345, 'friend']]), ('normal control', [[12345, 15346], ['xyz', 'Hello', 'a']], [[12345, 13345, 'xyz'], [13345, 15012, 'Hello'], [15012, 15346, 'a']])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\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":"e2ec26f43e367721ccc1939b3a7e40acca02f892e90841403e7b34e080de02cf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(cue, parts):\n    start,end=cue\n    w=[len(p.strip()) for p in parts]\n    total=sum(w)\n    dur=end-start\n    out=[]\n    acc=0\n    prev=start\n    for p,x in zip(parts,w):\n        acc+=x\n        b=start+dur*acc//total\n        out.append([prev,b,p.strip()])\n        prev=b\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: part weight', [[0, 1000], ['a', '']], [[0, 500, 'a'], [500, 1000, '']]), ('regression variant: part weight', [[12345, 12352], [' there ', ' there ', 'xyz', '  ']], [[12345, 12347, 'there'], [12347, 12350, 'there'], [12350, 12351, 'xyz'], [12351, 12352, '']]), ('partial repair probe: part weight', [[0, 3001], ['ok ', ' there ']], [[0, 857, 'ok'], [857, 3001, 'there']]), ('partial repair variant: part weight', [[1000, 1100], [' there ', 'friend']], [[1000, 1045, 'there'], [1045, 1100, 'friend']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[0, 2500], ['xyz']], [[0, 2500, 'xyz']]), ('normal control', [[1000, 1007], ['xyz']], [[1000, 1007, 'xyz']]), ('normal control', [[1000, 1007], ['a', 'xyz', 'friend', 'a']], [[1000, 1000, 'a'], [1000, 1002, 'xyz'], [1002, 1006, 'friend'], [1006, 1007, 'a']])], [('regression: part weight', [[1000, 1999], ['ok ', '  ', 'friend', 'ok ']], [[1000, 1181, 'ok'], [1181, 1272, ''], [1272, 1817, 'friend'], [1817, 1999, 'ok']]), ('regression variant: part weight', [[12345, 15346], ['a', '']], [[12345, 13845, 'a'], [13845, 15346, '']]), ('partial repair probe: part weight', [[1000, 1999], ['ok ', 'Hello']], [[1000, 1285, 'ok'], [1285, 1999, 'Hello']]), ('partial repair variant: part weight', [[0, 2500], [' there ', 'Longer chunk of text']], [[0, 500, 'there'], [500, 2500, 'Longer chunk of text']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('normal control', [[0, 7], [' there ']], [[0, 7, 'there']]), ('normal control', [[1000, 1999], ['friend']], [[1000, 1999, 'friend']]), ('normal control', [[1000, 1999], ['xyz', 'friend']], [[1000, 1333, 'xyz'], [1333, 1999, 'friend']])], [('regression: part weight', [[12345, 13344], ['ok ', 'ok ', '  ']], [[12345, 12744, 'ok'], [12744, 13144, 'ok'], [13144, 13344, '']]), ('regression variant: part weight', [[0, 2500], ['', 'ok ', '']], [[0, 625, ''], [625, 1875, 'ok'], [1875, 2500, '']]), ('partial repair probe: part weight', [[1000, 1999], ['ok ', '  ', 'friend', 'ok ']], [[1000, 1181, 'ok'], [1181, 1272, ''], [1272, 1817, 'friend'], [1817, 1999, 'ok']]), ('partial repair variant: part weight', [[1000, 3500], ['a', 'ok ', 'Longer chunk of text']], [[1000, 1108, 'a'], [1108, 1326, 'ok'], [1326, 3500, 'Longer chunk of text']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[12345, 13345], ['Hello', 'friend', 'Hello']], [[12345, 12657, 'Hello'], [12657, 13032, 'friend'], [13032, 13345, 'Hello']]), ('normal control', [[12345, 15346], ['Hello']], [[12345, 15346, 'Hello']]), ('normal control', [[12345, 12352], ['xyz']], [[12345, 12352, 'xyz']])], [('regression: part weight', [[0, 7], ['  ', 'ok ', '  ', 'ok ']], [[0, 1, ''], [1, 3, 'ok'], [3, 4, ''], [4, 7, 'ok']]), ('regression variant: part weight', [[12345, 13345], ['  ', 'ok ']], [[12345, 12678, ''], [12678, 13345, 'ok']]), ('partial repair probe: part weight', [[12345, 13344], ['ok ', 'ok ', '  ']], [[12345, 12744, 'ok'], [12744, 13144, 'ok'], [13144, 13344, '']]), ('partial repair variant: part weight', [[1000, 3500], ['a', 'ok ', 'Longer chunk of text']], [[1000, 1108, 'a'], [1108, 1326, 'ok'], [1326, 3500, 'Longer chunk of text']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('normal control', [[12345, 12445], ['a']], [[12345, 12445, 'a']]), ('normal control', [[12345, 13345], ['xyz']], [[12345, 13345, 'xyz']]), ('normal control', [[12345, 12352], ['Longer chunk of text', 'a', 'xyz']], [[12345, 12350, 'Longer chunk of text'], [12350, 12351, 'a'], [12351, 12352, 'xyz']])], [('regression: part weight', [[1000, 2000], ['ok ', '', '']], [[1000, 1500, 'ok'], [1500, 1750, ''], [1750, 2000, '']]), ('regression variant: part weight', [[0, 100], ['', '', 'friend']], [[0, 12, ''], [12, 25, ''], [25, 100, 'friend']]), ('partial repair probe: part weight', [[1000, 1100], [' there ', 'ok ', 'Longer chunk of text']], [[1000, 1018, 'there'], [1018, 1025, 'ok'], [1025, 1100, 'Longer chunk of text']]), ('partial repair variant: part weight', [[12345, 13345], ['  ', 'ok ']], [[12345, 12678, ''], [12678, 13345, 'ok']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[12345, 13344], ['Hello', 'friend', 'a']], [[12345, 12761, 'Hello'], [12761, 13260, 'friend'], [13260, 13344, 'a']]), ('normal control', [[12345, 13345], ['friend']], [[12345, 13345, 'friend']]), ('normal control', [[12345, 15346], ['xyz', 'Hello', 'a']], [[12345, 13345, 'xyz'], [13345, 15012, 'Hello'], [15012, 15346, 'a']])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\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"},"fixed":{"sha256":"40d9563b5b579dcc0d55702bde61399d231ad0e078f36f30b69404f61de6e4b0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(cue, parts):\n    start,end=cue\n    w=[max(1,len(p.strip())) for p in parts]\n    total=sum(w)\n    dur=end-start\n    out=[]\n    acc=0\n    prev=start\n    for p,x in zip(parts,w):\n        acc+=x\n        b=start+dur*acc//total\n        out.append([prev,b,p.strip()])\n        prev=b\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: part weight', [[0, 1000], ['a', '']], [[0, 500, 'a'], [500, 1000, '']]), ('regression variant: part weight', [[12345, 12352], [' there ', ' there ', 'xyz', '  ']], [[12345, 12347, 'there'], [12347, 12350, 'there'], [12350, 12351, 'xyz'], [12351, 12352, '']]), ('partial repair probe: part weight', [[0, 3001], ['ok ', ' there ']], [[0, 857, 'ok'], [857, 3001, 'there']]), ('partial repair variant: part weight', [[1000, 1100], [' there ', 'friend']], [[1000, 1045, 'there'], [1045, 1100, 'friend']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[0, 2500], ['xyz']], [[0, 2500, 'xyz']]), ('normal control', [[1000, 1007], ['xyz']], [[1000, 1007, 'xyz']]), ('normal control', [[1000, 1007], ['a', 'xyz', 'friend', 'a']], [[1000, 1000, 'a'], [1000, 1002, 'xyz'], [1002, 1006, 'friend'], [1006, 1007, 'a']])], [('regression: part weight', [[1000, 1999], ['ok ', '  ', 'friend', 'ok ']], [[1000, 1181, 'ok'], [1181, 1272, ''], [1272, 1817, 'friend'], [1817, 1999, 'ok']]), ('regression variant: part weight', [[12345, 15346], ['a', '']], [[12345, 13845, 'a'], [13845, 15346, '']]), ('partial repair probe: part weight', [[1000, 1999], ['ok ', 'Hello']], [[1000, 1285, 'ok'], [1285, 1999, 'Hello']]), ('partial repair variant: part weight', [[0, 2500], [' there ', 'Longer chunk of text']], [[0, 500, 'there'], [500, 2500, 'Longer chunk of text']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('normal control', [[0, 7], [' there ']], [[0, 7, 'there']]), ('normal control', [[1000, 1999], ['friend']], [[1000, 1999, 'friend']]), ('normal control', [[1000, 1999], ['xyz', 'friend']], [[1000, 1333, 'xyz'], [1333, 1999, 'friend']])], [('regression: part weight', [[12345, 13344], ['ok ', 'ok ', '  ']], [[12345, 12744, 'ok'], [12744, 13144, 'ok'], [13144, 13344, '']]), ('regression variant: part weight', [[0, 2500], ['', 'ok ', '']], [[0, 625, ''], [625, 1875, 'ok'], [1875, 2500, '']]), ('partial repair probe: part weight', [[1000, 1999], ['ok ', '  ', 'friend', 'ok ']], [[1000, 1181, 'ok'], [1181, 1272, ''], [1272, 1817, 'friend'], [1817, 1999, 'ok']]), ('partial repair variant: part weight', [[1000, 3500], ['a', 'ok ', 'Longer chunk of text']], [[1000, 1108, 'a'], [1108, 1326, 'ok'], [1326, 3500, 'Longer chunk of text']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[12345, 13345], ['Hello', 'friend', 'Hello']], [[12345, 12657, 'Hello'], [12657, 13032, 'friend'], [13032, 13345, 'Hello']]), ('normal control', [[12345, 15346], ['Hello']], [[12345, 15346, 'Hello']]), ('normal control', [[12345, 12352], ['xyz']], [[12345, 12352, 'xyz']])], [('regression: part weight', [[0, 7], ['  ', 'ok ', '  ', 'ok ']], [[0, 1, ''], [1, 3, 'ok'], [3, 4, ''], [4, 7, 'ok']]), ('regression variant: part weight', [[12345, 13345], ['  ', 'ok ']], [[12345, 12678, ''], [12678, 13345, 'ok']]), ('partial repair probe: part weight', [[12345, 13344], ['ok ', 'ok ', '  ']], [[12345, 12744, 'ok'], [12744, 13144, 'ok'], [13144, 13344, '']]), ('partial repair variant: part weight', [[1000, 3500], ['a', 'ok ', 'Longer chunk of text']], [[1000, 1108, 'a'], [1108, 1326, 'ok'], [1326, 3500, 'Longer chunk of text']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('normal control', [[12345, 12445], ['a']], [[12345, 12445, 'a']]), ('normal control', [[12345, 13345], ['xyz']], [[12345, 13345, 'xyz']]), ('normal control', [[12345, 12352], ['Longer chunk of text', 'a', 'xyz']], [[12345, 12350, 'Longer chunk of text'], [12350, 12351, 'a'], [12351, 12352, 'xyz']])], [('regression: part weight', [[1000, 2000], ['ok ', '', '']], [[1000, 1500, 'ok'], [1500, 1750, ''], [1750, 2000, '']]), ('regression variant: part weight', [[0, 100], ['', '', 'friend']], [[0, 12, ''], [12, 25, ''], [25, 100, 'friend']]), ('partial repair probe: part weight', [[1000, 1100], [' there ', 'ok ', 'Longer chunk of text']], [[1000, 1018, 'there'], [1018, 1025, 'ok'], [1025, 1100, 'Longer chunk of text']]), ('partial repair variant: part weight', [[12345, 13345], ['  ', 'ok ']], [[12345, 12678, ''], [12678, 13345, 'ok']]), ('boundary control', [[0, 1000], ['ab', 'cd']], [[0, 500, 'ab'], [500, 1000, 'cd']]), ('boundary control', [[0, 7], ['abc', 'de', 'f']], [[0, 3, 'abc'], [3, 5, 'de'], [5, 7, 'f']]), ('normal control', [[12345, 13344], ['Hello', 'friend', 'a']], [[12345, 12761, 'Hello'], [12761, 13260, 'friend'], [13260, 13344, 'a']]), ('normal control', [[12345, 13345], ['friend']], [[12345, 13345, 'friend']]), ('normal control', [[12345, 15346], ['xyz', 'Hello', 'a']], [[12345, 13345, 'xyz'], [13345, 15012, 'Hello'], [15012, 15346, 'a']])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\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":"A deterministic bounded teaching model with a stipulated toy contract; it does not claim conformance to any subtitle standard. 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":"w2-subtitle-cue-timing-cue-split-part-weight","generated_at":"2026-09-29T14:49:32.102439+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Subtitle timing defects shift, hide or overlap captions that viewers depend on for comprehension and accessibility.","repair":"Weight each part by max(1, trimmed length).","root_cause":"Part weights have no minimum of one.","sha256":"6ea514facee874674c012986b4e23b653162f30fd5177198ff4950fa340a823f","title":"Proportional cue splitting: part weight · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.625,"exit_code":1,"observations":[{"actual":[[0,500,"a"],[500,1000,""]],"check":"regression: part weight","expected":[[0,500,"a"],[500,1000,""]],"passed":true},{"actual":[[12345,12347,"there"],[12347,12350,"there"],[12350,12351,"xyz"],[12351,12352,""]],"check":"regression variant: part weight","expected":[[12345,12347,"there"],[12347,12350,"there"],[12350,12351,"xyz"],[12351,12352,""]],"passed":true},{"actual":[[0,900,"ok"],[900,3001,"there"]],"check":"partial repair probe: part weight","expected":[[0,857,"ok"],[857,3001,"there"]],"passed":false},{"actual":[[1000,1053,"there"],[1053,1100,"friend"]],"check":"partial repair variant: part weight","expected":[[1000,1045,"there"],[1045,1100,"friend"]],"passed":false},{"actual":[[0,500,"ab"],[500,1000,"cd"]],"check":"boundary control","expected":[[0,500,"ab"],[500,1000,"cd"]],"passed":true},{"actual":[[0,3,"abc"],[3,5,"de"],[5,7,"f"]],"check":"boundary control","expected":[[0,3,"abc"],[3,5,"de"],[5,7,"f"]],"passed":true},{"actual":[[0,2500,"xyz"]],"check":"normal control","expected":[[0,2500,"xyz"]],"passed":true},{"actual":[[1000,1007,"xyz"]],"check":"normal control","expected":[[1000,1007,"xyz"]],"passed":true},{"actual":[[1000,1000,"a"],[1000,1002,"xyz"],[1002,1006,"friend"],[1006,1007,"a"]],"check":"normal control","expected":[[1000,1000,"a"],[1000,1002,"xyz"],[1002,1006,"friend"],[1006,1007,"a"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: part weight\", \"actual\": [[0, 500, \"a\"], [500, 1000, \"\"]], \"expected\": [[0, 500, \"a\"], [500, 1000, \"\"]], \"passed\": true}, {\"check\": \"regression variant: part weight\", \"actual\": [[12345, 12347, \"there\"], [12347, 12350, \"there\"], [12350, 12351, \"xyz\"], [12351, 12352, \"\"]], \"expected\": [[12345, 12347, \"there\"], [12347, 12350, \"there\"], [12350, 12351, \"xyz\"], [12351, 12352, \"\"]], \"passed\": true}, {\"check\": \"partial repair probe: part weight\", \"actual\": [[0, 900, \"ok\"], [900, 3001, \"there\"]], \"expected\": [[0, 857, \"ok\"], [857, 3001, \"there\"]], \"passed\": false}, {\"check\": \"partial repair variant: part weight\", \"actual\": [[1000, 1053, \"there\"], [1053, 1100, \"friend\"]], \"expected\": [[1000, 1045, \"there\"], [1045, 1100, \"friend\"]], \"passed\": false}, {\"check\": \"boundary control\", \"actual\": [[0, 500, \"ab\"], [500, 1000, \"cd\"]], \"expected\": [[0, 500, \"ab\"], [500, 1000, \"cd\"]], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [[0, 3, \"abc\"], [3, 5, \"de\"], [5, 7, \"f\"]], \"expected\": [[0, 3, \"abc\"], [3, 5, \"de\"], [5, 7, \"f\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[0, 2500, \"xyz\"]], \"expected\": [[0, 2500, \"xyz\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[1000, 1007, \"xyz\"]], \"expected\": [[1000, 1007, \"xyz\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[1000, 1000, \"a\"], [1000, 1002, \"xyz\"], [1002, 1006, \"friend\"], [1006, 1007, \"a\"]], \"expected\": [[1000, 1000, \"a\"], [1000, 1002, \"xyz\"], [1002, 1006, \"friend\"], [1006, 1007, \"a\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.014,"exit_code":1,"observations":[{"actual":[[0,1000,"a"],[1000,1000,""]],"check":"regression: part weight","expected":[[0,500,"a"],[500,1000,""]],"passed":false},{"actual":[[12345,12347,"there"],[12347,12350,"there"],[12350,12352,"xyz"],[12352,12352,""]],"check":"regression variant: part weight","expected":[[12345,12347,"there"],[12347,12350,"there"],[12350,12351,"xyz"],[12351,12352,""]],"passed":false},{"actual":[[0,857,"ok"],[857,3001,"there"]],"check":"partial repair probe: part weight","expected":[[0,857,"ok"],[857,3001,"there"]],"passed":true},{"actual":[[1000,1045,"there"],[1045,1100,"friend"]],"check":"partial repair variant: part weight","expected":[[1000,1045,"there"],[1045,1100,"friend"]],"passed":true},{"actual":[[0,500,"ab"],[500,1000,"cd"]],"check":"boundary control","expected":[[0,500,"ab"],[500,1000,"cd"]],"passed":true},{"actual":[[0,3,"abc"],[3,5,"de"],[5,7,"f"]],"check":"boundary control","expected":[[0,3,"abc"],[3,5,"de"],[5,7,"f"]],"passed":true},{"actual":[[0,2500,"xyz"]],"check":"normal control","expected":[[0,2500,"xyz"]],"passed":true},{"actual":[[1000,1007,"xyz"]],"check":"normal control","expected":[[1000,1007,"xyz"]],"passed":true},{"actual":[[1000,1000,"a"],[1000,1002,"xyz"],[1002,1006,"friend"],[1006,1007,"a"]],"check":"normal control","expected":[[1000,1000,"a"],[1000,1002,"xyz"],[1002,1006,"friend"],[1006,1007,"a"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: part weight\", \"actual\": [[0, 1000, \"a\"], [1000, 1000, \"\"]], \"expected\": [[0, 500, \"a\"], [500, 1000, \"\"]], \"passed\": false}, {\"check\": \"regression variant: part weight\", \"actual\": [[12345, 12347, \"there\"], [12347, 12350, \"there\"], [12350, 12352, \"xyz\"], [12352, 12352, \"\"]], \"expected\": [[12345, 12347, \"there\"], [12347, 12350, \"there\"], [12350, 12351, \"xyz\"], [12351, 12352, \"\"]], \"passed\": false}, {\"check\": \"partial repair probe: part weight\", \"actual\": [[0, 857, \"ok\"], [857, 3001, \"there\"]], \"expected\": [[0, 857, \"ok\"], [857, 3001, \"there\"]], \"passed\": true}, {\"check\": \"partial repair variant: part weight\", \"actual\": [[1000, 1045, \"there\"], [1045, 1100, \"friend\"]], \"expected\": [[1000, 1045, \"there\"], [1045, 1100, \"friend\"]], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [[0, 500, \"ab\"], [500, 1000, \"cd\"]], \"expected\": [[0, 500, \"ab\"], [500, 1000, \"cd\"]], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [[0, 3, \"abc\"], [3, 5, \"de\"], [5, 7, \"f\"]], \"expected\": [[0, 3, \"abc\"], [3, 5, \"de\"], [5, 7, \"f\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[0, 2500, \"xyz\"]], \"expected\": [[0, 2500, \"xyz\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[1000, 1007, \"xyz\"]], \"expected\": [[1000, 1007, \"xyz\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[1000, 1000, \"a\"], [1000, 1002, \"xyz\"], [1002, 1006, \"friend\"], [1006, 1007, \"a\"]], \"expected\": [[1000, 1000, \"a\"], [1000, 1002, \"xyz\"], [1002, 1006, \"friend\"], [1006, 1007, \"a\"]], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.29,"exit_code":0,"observations":[{"actual":[[0,500,"a"],[500,1000,""]],"check":"regression: part weight","expected":[[0,500,"a"],[500,1000,""]],"passed":true},{"actual":[[12345,12347,"there"],[12347,12350,"there"],[12350,12351,"xyz"],[12351,12352,""]],"check":"regression variant: part weight","expected":[[12345,12347,"there"],[12347,12350,"there"],[12350,12351,"xyz"],[12351,12352,""]],"passed":true},{"actual":[[0,857,"ok"],[857,3001,"there"]],"check":"partial repair probe: part weight","expected":[[0,857,"ok"],[857,3001,"there"]],"passed":true},{"actual":[[1000,1045,"there"],[1045,1100,"friend"]],"check":"partial repair variant: part weight","expected":[[1000,1045,"there"],[1045,1100,"friend"]],"passed":true},{"actual":[[0,500,"ab"],[500,1000,"cd"]],"check":"boundary control","expected":[[0,500,"ab"],[500,1000,"cd"]],"passed":true},{"actual":[[0,3,"abc"],[3,5,"de"],[5,7,"f"]],"check":"boundary control","expected":[[0,3,"abc"],[3,5,"de"],[5,7,"f"]],"passed":true},{"actual":[[0,2500,"xyz"]],"check":"normal control","expected":[[0,2500,"xyz"]],"passed":true},{"actual":[[1000,1007,"xyz"]],"check":"normal control","expected":[[1000,1007,"xyz"]],"passed":true},{"actual":[[1000,1000,"a"],[1000,1002,"xyz"],[1002,1006,"friend"],[1006,1007,"a"]],"check":"normal control","expected":[[1000,1000,"a"],[1000,1002,"xyz"],[1002,1006,"friend"],[1006,1007,"a"]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: part weight\", \"actual\": [[0, 500, \"a\"], [500, 1000, \"\"]], \"expected\": [[0, 500, \"a\"], [500, 1000, \"\"]], \"passed\": true}, {\"check\": \"regression variant: part weight\", \"actual\": [[12345, 12347, \"there\"], [12347, 12350, \"there\"], [12350, 12351, \"xyz\"], [12351, 12352, \"\"]], \"expected\": [[12345, 12347, \"there\"], [12347, 12350, \"there\"], [12350, 12351, \"xyz\"], [12351, 12352, \"\"]], \"passed\": true}, {\"check\": \"partial repair probe: part weight\", \"actual\": [[0, 857, \"ok\"], [857, 3001, \"there\"]], \"expected\": [[0, 857, \"ok\"], [857, 3001, \"there\"]], \"passed\": true}, {\"check\": \"partial repair variant: part weight\", \"actual\": [[1000, 1045, \"there\"], [1045, 1100, \"friend\"]], \"expected\": [[1000, 1045, \"there\"], [1045, 1100, \"friend\"]], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [[0, 500, \"ab\"], [500, 1000, \"cd\"]], \"expected\": [[0, 500, \"ab\"], [500, 1000, \"cd\"]], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [[0, 3, \"abc\"], [3, 5, \"de\"], [5, 7, \"f\"]], \"expected\": [[0, 3, \"abc\"], [3, 5, \"de\"], [5, 7, \"f\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[0, 2500, \"xyz\"]], \"expected\": [[0, 2500, \"xyz\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[1000, 1007, \"xyz\"]], \"expected\": [[1000, 1007, \"xyz\"]], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [[1000, 1000, \"a\"], [1000, 1002, \"xyz\"], [1002, 1006, \"friend\"], [1006, 1007, \"a\"]], \"expected\": [[1000, 1000, \"a\"], [1000, 1002, \"xyz\"], [1002, 1006, \"friend\"], [1006, 1007, \"a\"]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}