{"abstract":"Descriptors like 59.94-DF are rejected as unknown rates.","category":"Broadcast timecode arithmetic","checks":9,"contract":"Parse a rate descriptor: a known rate (23.976, 23.98, 24, 25, 29.97, 30, 50, 59.94, 60; redundant trailing decimal zeros allowed) with an optional case-insensitive DF/NDF suffix, optionally separated by a space or hyphen; surrounding whitespace ignored. Drop frame is only valid for 29.97 and 59.94. Return [num,den,drop] or None.","contract_signature":"s","evaluation_group":"w2-broadcast-timecode-arithmetic-rate-descriptor","failed_approach":"Stripping whitespace still leaves the hyphen attached to the rate.","family":"w2-broadcast-timecode-arithmetic-rate-descriptor-suffix-separator","id":"FA-78701","implementations":{"attempt":{"sha256":"66a43add39700c9b0ca258f111d2df82ee4834f50be233cfb97e9a4ea894ccf4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(s):\n    t=s.strip().upper()\n    drop=t.endswith('DF') and not t.endswith('NDF')\n    base=t[:-3] if t.endswith('NDF') else t[:-2] if t.endswith('DF') else t\n    base=base.strip()\n    if '.' in base:\n        base=base.rstrip('0').rstrip('.')\n    table={'23.976':(24000,1001),'23.98':(24000,1001),'24':(24,1),'25':(25,1),'29.97':(30000,1001),'30':(30,1),'50':(50,1),'59.94':(60000,1001),'60':(60,1)}\n    if base not in table:\n        return None\n    num,den=table[base]\n    if drop and den!=1001 or drop and num==24000:\n        return None\n    return [num,den,drop]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: suffix separator', ['59.94-df'], [60000, 1001, True]), ('regression variant: suffix separator', ['29.97-NDF'], [30000, 1001, False]), ('partial repair probe: suffix separator', [' 24-NDF '], [24, 1, False]), ('partial repair variant: suffix separator', ['59.94-DF'], [60000, 1001, True]), ('boundary control', ['29.97DF'], [30000, 1001, True]), ('boundary control', ['23.976'], [24000, 1001, False]), ('normal control', ['29.97 NDF'], [30000, 1001, False]), ('normal control', ['30.0'], [30, 1, False]), ('normal control', [' 23.98df '], None)], [('regression: suffix separator', [' 23.98-NDF '], [24000, 1001, False]), ('regression variant: suffix separator', [' 29.97-DF '], [30000, 1001, True]), ('partial repair probe: suffix separator', [' 59.94-DF '], [60000, 1001, True]), ('partial repair variant: suffix separator', ['29.970-NDF'], [30000, 1001, False]), ('boundary control', ['29.97 NDF'], [30000, 1001, False]), ('boundary control', ['30.0'], [30, 1, False]), ('normal control', ['60-DF'], None), ('normal control', [' 29.97NDF '], [30000, 1001, False]), ('normal control', [' 29.97 '], [30000, 1001, False])], [('regression: suffix separator', [' 24-NDF '], [24, 1, False]), ('regression variant: suffix separator', ['25-NDF'], [25, 1, False]), ('partial repair probe: suffix separator', [' 60-NDF '], [60, 1, False]), ('partial repair variant: suffix separator', ['60-NDF'], [60, 1, False]), ('boundary control', ['30DF'], None), ('boundary control', ['29.97DF'], [30000, 1001, True]), ('normal control', ['30'], [30, 1, False]), ('normal control', ['59.94 ndf'], [60000, 1001, False]), ('normal control', [' 60 '], [60, 1, False])], [('regression: suffix separator', [' 59.94-DF '], [60000, 1001, True]), ('regression variant: suffix separator', [' 59.94-NDF '], [60000, 1001, False]), ('partial repair probe: suffix separator', ['29.97-NDF'], [30000, 1001, False]), ('partial repair variant: suffix separator', ['25.00-NDF'], [25, 1, False]), ('boundary control', ['23.976'], [24000, 1001, False]), ('boundary control', ['29.97 NDF'], [30000, 1001, False]), ('normal control', ['30 ndf'], [30, 1, False]), ('normal control', ['30NDF'], [30, 1, False]), ('normal control', ['30.0 ndf'], [30, 1, False])], [('regression: suffix separator', [' 60-NDF '], [60, 1, False]), ('regression variant: suffix separator', ['59.94-DF'], [60000, 1001, True]), ('partial repair probe: suffix separator', [' 29.97-DF '], [30000, 1001, True]), ('partial repair variant: suffix separator', ['24-NDF'], [24, 1, False]), ('boundary control', ['30.0'], [30, 1, False]), ('boundary control', ['30DF'], None), ('normal control', [' 23.976 DF '], None), ('normal control', [' 50 '], [50, 1, False]), ('normal control', [' 29.97df '], [30000, 1001, True])]]\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":"626775f21d6d62c87f339e90fd69185a431739ace0318f828bcd7e38b685d8da","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(s):\n    t=s.strip().upper()\n    drop=t.endswith('DF') and not t.endswith('NDF')\n    base=t[:-3] if t.endswith('NDF') else t[:-2] if t.endswith('DF') else t\n    base=base.rstrip(' ')\n    if '.' in base:\n        base=base.rstrip('0').rstrip('.')\n    table={'23.976':(24000,1001),'23.98':(24000,1001),'24':(24,1),'25':(25,1),'29.97':(30000,1001),'30':(30,1),'50':(50,1),'59.94':(60000,1001),'60':(60,1)}\n    if base not in table:\n        return None\n    num,den=table[base]\n    if drop and den!=1001 or drop and num==24000:\n        return None\n    return [num,den,drop]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: suffix separator', ['59.94-df'], [60000, 1001, True]), ('regression variant: suffix separator', ['29.97-NDF'], [30000, 1001, False]), ('partial repair probe: suffix separator', [' 24-NDF '], [24, 1, False]), ('partial repair variant: suffix separator', ['59.94-DF'], [60000, 1001, True]), ('boundary control', ['29.97DF'], [30000, 1001, True]), ('boundary control', ['23.976'], [24000, 1001, False]), ('normal control', ['29.97 NDF'], [30000, 1001, False]), ('normal control', ['30.0'], [30, 1, False]), ('normal control', [' 23.98df '], None)], [('regression: suffix separator', [' 23.98-NDF '], [24000, 1001, False]), ('regression variant: suffix separator', [' 29.97-DF '], [30000, 1001, True]), ('partial repair probe: suffix separator', [' 59.94-DF '], [60000, 1001, True]), ('partial repair variant: suffix separator', ['29.970-NDF'], [30000, 1001, False]), ('boundary control', ['29.97 NDF'], [30000, 1001, False]), ('boundary control', ['30.0'], [30, 1, False]), ('normal control', ['60-DF'], None), ('normal control', [' 29.97NDF '], [30000, 1001, False]), ('normal control', [' 29.97 '], [30000, 1001, False])], [('regression: suffix separator', [' 24-NDF '], [24, 1, False]), ('regression variant: suffix separator', ['25-NDF'], [25, 1, False]), ('partial repair probe: suffix separator', [' 60-NDF '], [60, 1, False]), ('partial repair variant: suffix separator', ['60-NDF'], [60, 1, False]), ('boundary control', ['30DF'], None), ('boundary control', ['29.97DF'], [30000, 1001, True]), ('normal control', ['30'], [30, 1, False]), ('normal control', ['59.94 ndf'], [60000, 1001, False]), ('normal control', [' 60 '], [60, 1, False])], [('regression: suffix separator', [' 59.94-DF '], [60000, 1001, True]), ('regression variant: suffix separator', [' 59.94-NDF '], [60000, 1001, False]), ('partial repair probe: suffix separator', ['29.97-NDF'], [30000, 1001, False]), ('partial repair variant: suffix separator', ['25.00-NDF'], [25, 1, False]), ('boundary control', ['23.976'], [24000, 1001, False]), ('boundary control', ['29.97 NDF'], [30000, 1001, False]), ('normal control', ['30 ndf'], [30, 1, False]), ('normal control', ['30NDF'], [30, 1, False]), ('normal control', ['30.0 ndf'], [30, 1, False])], [('regression: suffix separator', [' 60-NDF '], [60, 1, False]), ('regression variant: suffix separator', ['59.94-DF'], [60000, 1001, True]), ('partial repair probe: suffix separator', [' 29.97-DF '], [30000, 1001, True]), ('partial repair variant: suffix separator', ['24-NDF'], [24, 1, False]), ('boundary control', ['30.0'], [30, 1, False]), ('boundary control', ['30DF'], None), ('normal control', [' 23.976 DF '], None), ('normal control', [' 50 '], [50, 1, False]), ('normal control', [' 29.97df '], [30000, 1001, True])]]\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 SMPTE or any broadcast 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-broadcast-timecode-arithmetic-rate-descriptor-suffix-separator","generated_at":"2026-09-29T14:49:37.927257+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Timecode arithmetic errors misplace edits, commercial breaks and captions against the broadcast clock.","root_cause":"Only spaces are removed between the rate and the suffix.","sha256":"b78cf6dbab1ef09ab26ffcf8c120fa4cd98ffcce9cb9f1d7a97fdf9f59b4eee4","title":"Frame-rate descriptor parsing: suffix separator · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":38.411,"exit_code":1,"observations":[{"actual":null,"check":"regression: suffix separator","expected":[60000,1001,true],"passed":false},{"actual":null,"check":"regression variant: suffix separator","expected":[30000,1001,false],"passed":false},{"actual":null,"check":"partial repair probe: suffix separator","expected":[24,1,false],"passed":false},{"actual":null,"check":"partial repair variant: suffix separator","expected":[60000,1001,true],"passed":false},{"actual":[30000,1001,true],"check":"boundary control","expected":[30000,1001,true],"passed":true},{"actual":[24000,1001,false],"check":"boundary control","expected":[24000,1001,false],"passed":true},{"actual":[30000,1001,false],"check":"normal control","expected":[30000,1001,false],"passed":true},{"actual":[30,1,false],"check":"normal control","expected":[30,1,false],"passed":true},{"actual":null,"check":"normal control","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: suffix separator\", \"actual\": null, \"expected\": [60000, 1001, true], \"passed\": false}, {\"check\": \"regression variant: suffix separator\", \"actual\": null, \"expected\": [30000, 1001, false], \"passed\": false}, {\"check\": \"partial repair probe: suffix separator\", \"actual\": null, \"expected\": [24, 1, false], \"passed\": false}, {\"check\": \"partial repair variant: suffix separator\", \"actual\": null, \"expected\": [60000, 1001, true], \"passed\": false}, {\"check\": \"boundary control\", \"actual\": [30000, 1001, true], \"expected\": [30000, 1001, true], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [24000, 1001, false], \"expected\": [24000, 1001, false], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [30000, 1001, false], \"expected\": [30000, 1001, false], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [30, 1, false], \"expected\": [30, 1, false], \"passed\": true}, {\"check\": \"normal control\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.585,"exit_code":1,"observations":[{"actual":null,"check":"regression: suffix separator","expected":[60000,1001,true],"passed":false},{"actual":null,"check":"regression variant: suffix separator","expected":[30000,1001,false],"passed":false},{"actual":null,"check":"partial repair probe: suffix separator","expected":[24,1,false],"passed":false},{"actual":null,"check":"partial repair variant: suffix separator","expected":[60000,1001,true],"passed":false},{"actual":[30000,1001,true],"check":"boundary control","expected":[30000,1001,true],"passed":true},{"actual":[24000,1001,false],"check":"boundary control","expected":[24000,1001,false],"passed":true},{"actual":[30000,1001,false],"check":"normal control","expected":[30000,1001,false],"passed":true},{"actual":[30,1,false],"check":"normal control","expected":[30,1,false],"passed":true},{"actual":null,"check":"normal control","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: suffix separator\", \"actual\": null, \"expected\": [60000, 1001, true], \"passed\": false}, {\"check\": \"regression variant: suffix separator\", \"actual\": null, \"expected\": [30000, 1001, false], \"passed\": false}, {\"check\": \"partial repair probe: suffix separator\", \"actual\": null, \"expected\": [24, 1, false], \"passed\": false}, {\"check\": \"partial repair variant: suffix separator\", \"actual\": null, \"expected\": [60000, 1001, true], \"passed\": false}, {\"check\": \"boundary control\", \"actual\": [30000, 1001, true], \"expected\": [30000, 1001, true], \"passed\": true}, {\"check\": \"boundary control\", \"actual\": [24000, 1001, false], \"expected\": [24000, 1001, false], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [30000, 1001, false], \"expected\": [30000, 1001, false], \"passed\": true}, {\"check\": \"normal control\", \"actual\": [30, 1, false], \"expected\": [30, 1, false], \"passed\": true}, {\"check\": \"normal control\", \"actual\": null, \"expected\": null, \"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."}}