{"abstract":"Plain 30 fps labels are printed in frame-pair notation.","category":"Broadcast timecode arithmetic","checks":9,"contract":"Convert a frame count (any integer, wrapped modulo 24 hours) to HH:MM:SS:FF. For fps above 30 the frame field counts frame pairs (frame//2) and the last separator is \".\" for the second frame of a pair and \":\" otherwise.","evaluation_group":"w2-broadcast-timecode-arithmetic-frames-to-label","failed_approach":"Starting pair notation at 50 prints 48 fps labels with frame fields above 30.","family":"w2-broadcast-timecode-arithmetic-frames-to-label-pair-notation-threshold","id":"FA-78376","implementations":{"attempt":{"sha256":"b104fed982d671e2df6d4cdbe1172cf442cd93128787db91e63646b4c8cef855","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(frames, fps):\n    day=24*3600*fps\n    frames%=day\n    fr=frames%fps\n    s=frames//fps\n    hh,mm,ss=s//3600,s//60%60,s%60\n    if fps>=50:\n        return '%02d:%02d:%02d%s%02d'%(hh,mm,ss,'.' if fr%2 else ':',fr//2)\n    return '%02d:%02d:%02d:%02d'%(hh,mm,ss,fr)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: pair notation threshold', [1803, 30], '00:01:00:03'), ('regression variant: pair notation threshold', [2592005, 30], '00:00:00:05'), ('partial repair probe: pair notation threshold', [1, 48], '00:00:00.00'), ('partial repair variant: pair notation threshold', [172807, 48], '01:00:00.03'), ('boundary control', [0, 25], '00:00:00:00'), ('boundary control', [3, 50], '00:00:00.01'), ('normal control', [-1, 25], '23:59:59:24'), ('normal control', [2, 50], '00:00:00:01'), ('normal control', [59, 60], '00:00:00.29')], [('regression: pair notation threshold', [8166989, 30], '03:37:12:29'), ('regression variant: pair notation threshold', [31, 30], '00:00:01:01'), ('partial repair probe: pair notation threshold', [2, 48], '00:00:00:01'), ('partial repair variant: pair notation threshold', [49, 48], '00:00:01.00'), ('boundary control', [-1, 25], '23:59:59:24'), ('boundary control', [2, 50], '00:00:00:01'), ('normal control', [216007, 60], '01:00:00.03'), ('normal control', [-5184003, 60], '23:59:59.28'), ('normal control', [49, 50], '00:00:00.24')], [('regression: pair notation threshold', [-1, 30], '23:59:59:29'), ('regression variant: pair notation threshold', [2591999, 30], '23:59:59:29'), ('partial repair probe: pair notation threshold', [-4147203, 48], '23:59:59.22'), ('partial repair variant: pair notation threshold', [-20013062, 48], '04:11:01:05'), ('boundary control', [2160000, 25], '00:00:00:00'), ('boundary control', [59, 60], '00:00:00.29'), ('normal control', [5184000, 60], '00:00:00:00'), ('normal control', [0, 24], '00:00:00:00'), ('normal control', [7086760, 24], '10:01:21:16')], [('regression: pair notation threshold', [-4622105, 30], '05:12:09:25'), ('regression variant: pair notation threshold', [-2592003, 30], '23:59:59:27'), ('partial repair probe: pair notation threshold', [8294411, 48], '00:00:00.05'), ('partial repair variant: pair notation threshold', [-9650997, 48], '16:08:57.13'), ('boundary control', [3, 50], '00:00:00.01'), ('boundary control', [30, 30], '00:00:01:00'), ('normal control', [2073600, 24], '00:00:00:00'), ('normal control', [1, 25], '00:00:00:01'), ('normal control', [48, 48], '00:00:01:00')], [('regression: pair notation threshold', [2, 30], '00:00:00:02'), ('regression variant: pair notation threshold', [29, 30], '00:00:00:29'), ('partial repair probe: pair notation threshold', [15958672, 48], '20:21:12:08'), ('partial repair variant: pair notation threshold', [47, 48], '00:00:00.23'), ('boundary control', [2, 50], '00:00:00:01'), ('boundary control', [0, 25], '00:00:00:00'), ('normal control', [2160005, 25], '00:00:00:05'), ('normal control', [5184005, 60], '00:00:00.02'), ('normal control', [2073605, 24], '00:00:00:05')]]\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":"ca20156d1a9cda35baaade0b212ddd51e9d0276d60da22efde1826a0a09f0b5f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(frames, fps):\n    day=24*3600*fps\n    frames%=day\n    fr=frames%fps\n    s=frames//fps\n    hh,mm,ss=s//3600,s//60%60,s%60\n    if fps>=30:\n        return '%02d:%02d:%02d%s%02d'%(hh,mm,ss,'.' if fr%2 else ':',fr//2)\n    return '%02d:%02d:%02d:%02d'%(hh,mm,ss,fr)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: pair notation threshold', [1803, 30], '00:01:00:03'), ('regression variant: pair notation threshold', [2592005, 30], '00:00:00:05'), ('partial repair probe: pair notation threshold', [1, 48], '00:00:00.00'), ('partial repair variant: pair notation threshold', [172807, 48], '01:00:00.03'), ('boundary control', [0, 25], '00:00:00:00'), ('boundary control', [3, 50], '00:00:00.01'), ('normal control', [-1, 25], '23:59:59:24'), ('normal control', [2, 50], '00:00:00:01'), ('normal control', [59, 60], '00:00:00.29')], [('regression: pair notation threshold', [8166989, 30], '03:37:12:29'), ('regression variant: pair notation threshold', [31, 30], '00:00:01:01'), ('partial repair probe: pair notation threshold', [2, 48], '00:00:00:01'), ('partial repair variant: pair notation threshold', [49, 48], '00:00:01.00'), ('boundary control', [-1, 25], '23:59:59:24'), ('boundary control', [2, 50], '00:00:00:01'), ('normal control', [216007, 60], '01:00:00.03'), ('normal control', [-5184003, 60], '23:59:59.28'), ('normal control', [49, 50], '00:00:00.24')], [('regression: pair notation threshold', [-1, 30], '23:59:59:29'), ('regression variant: pair notation threshold', [2591999, 30], '23:59:59:29'), ('partial repair probe: pair notation threshold', [-4147203, 48], '23:59:59.22'), ('partial repair variant: pair notation threshold', [-20013062, 48], '04:11:01:05'), ('boundary control', [2160000, 25], '00:00:00:00'), ('boundary control', [59, 60], '00:00:00.29'), ('normal control', [5184000, 60], '00:00:00:00'), ('normal control', [0, 24], '00:00:00:00'), ('normal control', [7086760, 24], '10:01:21:16')], [('regression: pair notation threshold', [-4622105, 30], '05:12:09:25'), ('regression variant: pair notation threshold', [-2592003, 30], '23:59:59:27'), ('partial repair probe: pair notation threshold', [8294411, 48], '00:00:00.05'), ('partial repair variant: pair notation threshold', [-9650997, 48], '16:08:57.13'), ('boundary control', [3, 50], '00:00:00.01'), ('boundary control', [30, 30], '00:00:01:00'), ('normal control', [2073600, 24], '00:00:00:00'), ('normal control', [1, 25], '00:00:00:01'), ('normal control', [48, 48], '00:00:01:00')], [('regression: pair notation threshold', [2, 30], '00:00:00:02'), ('regression variant: pair notation threshold', [29, 30], '00:00:00:29'), ('partial repair probe: pair notation threshold', [15958672, 48], '20:21:12:08'), ('partial repair variant: pair notation threshold', [47, 48], '00:00:00.23'), ('boundary control', [2, 50], '00:00:00:01'), ('boundary control', [0, 25], '00:00:00:00'), ('normal control', [2160005, 25], '00:00:00:05'), ('normal control', [5184005, 60], '00:00:00.02'), ('normal control', [2073605, 24], '00:00:00:05')]]\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":"fc1deee8192ba29e4376bcfa3bb4edc03bc92c5d919aca5d592dfd1bb50f3c60","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(frames, fps):\n    day=24*3600*fps\n    frames%=day\n    fr=frames%fps\n    s=frames//fps\n    hh,mm,ss=s//3600,s//60%60,s%60\n    if fps>30:\n        return '%02d:%02d:%02d%s%02d'%(hh,mm,ss,'.' if fr%2 else ':',fr//2)\n    return '%02d:%02d:%02d:%02d'%(hh,mm,ss,fr)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: pair notation threshold', [1803, 30], '00:01:00:03'), ('regression variant: pair notation threshold', [2592005, 30], '00:00:00:05'), ('partial repair probe: pair notation threshold', [1, 48], '00:00:00.00'), ('partial repair variant: pair notation threshold', [172807, 48], '01:00:00.03'), ('boundary control', [0, 25], '00:00:00:00'), ('boundary control', [3, 50], '00:00:00.01'), ('normal control', [-1, 25], '23:59:59:24'), ('normal control', [2, 50], '00:00:00:01'), ('normal control', [59, 60], '00:00:00.29')], [('regression: pair notation threshold', [8166989, 30], '03:37:12:29'), ('regression variant: pair notation threshold', [31, 30], '00:00:01:01'), ('partial repair probe: pair notation threshold', [2, 48], '00:00:00:01'), ('partial repair variant: pair notation threshold', [49, 48], '00:00:01.00'), ('boundary control', [-1, 25], '23:59:59:24'), ('boundary control', [2, 50], '00:00:00:01'), ('normal control', [216007, 60], '01:00:00.03'), ('normal control', [-5184003, 60], '23:59:59.28'), ('normal control', [49, 50], '00:00:00.24')], [('regression: pair notation threshold', [-1, 30], '23:59:59:29'), ('regression variant: pair notation threshold', [2591999, 30], '23:59:59:29'), ('partial repair probe: pair notation threshold', [-4147203, 48], '23:59:59.22'), ('partial repair variant: pair notation threshold', [-20013062, 48], '04:11:01:05'), ('boundary control', [2160000, 25], '00:00:00:00'), ('boundary control', [59, 60], '00:00:00.29'), ('normal control', [5184000, 60], '00:00:00:00'), ('normal control', [0, 24], '00:00:00:00'), ('normal control', [7086760, 24], '10:01:21:16')], [('regression: pair notation threshold', [-4622105, 30], '05:12:09:25'), ('regression variant: pair notation threshold', [-2592003, 30], '23:59:59:27'), ('partial repair probe: pair notation threshold', [8294411, 48], '00:00:00.05'), ('partial repair variant: pair notation threshold', [-9650997, 48], '16:08:57.13'), ('boundary control', [3, 50], '00:00:00.01'), ('boundary control', [30, 30], '00:00:01:00'), ('normal control', [2073600, 24], '00:00:00:00'), ('normal control', [1, 25], '00:00:00:01'), ('normal control', [48, 48], '00:00:01:00')], [('regression: pair notation threshold', [2, 30], '00:00:00:02'), ('regression variant: pair notation threshold', [29, 30], '00:00:00:29'), ('partial repair probe: pair notation threshold', [15958672, 48], '20:21:12:08'), ('partial repair variant: pair notation threshold', [47, 48], '00:00:00.23'), ('boundary control', [2, 50], '00:00:00:01'), ('boundary control', [0, 25], '00:00:00:00'), ('normal control', [2160005, 25], '00:00:00:05'), ('normal control', [5184005, 60], '00:00:00.02'), ('normal control', [2073605, 24], '00:00:00:05')]]\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-frames-to-label-pair-notation-threshold","generated_at":"2026-09-29T14:49:34.681433+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.","repair":"Use pair notation only above 30 fps.","root_cause":"The pair notation threshold includes 30 fps.","sha256":"612488937e7e69c334fc774549750ee861b69ff3c01c728c9c25faa515413168","title":"Frame count to timecode label with frame pairs: pair notation threshold · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.491,"exit_code":1,"observations":[{"actual":"00:01:00:03","check":"regression: pair notation threshold","expected":"00:01:00:03","passed":true},{"actual":"00:00:00:05","check":"regression variant: pair notation threshold","expected":"00:00:00:05","passed":true},{"actual":"00:00:00:01","check":"partial repair probe: pair notation threshold","expected":"00:00:00.00","passed":false},{"actual":"01:00:00:07","check":"partial repair variant: pair notation threshold","expected":"01:00:00.03","passed":false},{"actual":"00:00:00:00","check":"boundary control","expected":"00:00:00:00","passed":true},{"actual":"00:00:00.01","check":"boundary control","expected":"00:00:00.01","passed":true},{"actual":"23:59:59:24","check":"normal control","expected":"23:59:59:24","passed":true},{"actual":"00:00:00:01","check":"normal control","expected":"00:00:00:01","passed":true},{"actual":"00:00:00.29","check":"normal control","expected":"00:00:00.29","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: pair notation threshold\", \"actual\": \"00:01:00:03\", \"expected\": \"00:01:00:03\", \"passed\": true}, {\"check\": \"regression variant: pair notation threshold\", \"actual\": \"00:00:00:05\", \"expected\": \"00:00:00:05\", \"passed\": true}, {\"check\": \"partial repair probe: pair notation threshold\", \"actual\": \"00:00:00:01\", \"expected\": \"00:00:00.00\", \"passed\": false}, {\"check\": \"partial repair variant: pair notation threshold\", \"actual\": \"01:00:00:07\", \"expected\": \"01:00:00.03\", \"passed\": false}, {\"check\": \"boundary control\", \"actual\": \"00:00:00:00\", \"expected\": \"00:00:00:00\", \"passed\": true}, {\"check\": \"boundary control\", \"actual\": \"00:00:00.01\", \"expected\": \"00:00:00.01\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"23:59:59:24\", \"expected\": \"23:59:59:24\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"00:00:00:01\", \"expected\": \"00:00:00:01\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"00:00:00.29\", \"expected\": \"00:00:00.29\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.533,"exit_code":1,"observations":[{"actual":"00:01:00.01","check":"regression: pair notation threshold","expected":"00:01:00:03","passed":false},{"actual":"00:00:00.02","check":"regression variant: pair notation threshold","expected":"00:00:00:05","passed":false},{"actual":"00:00:00.00","check":"partial repair probe: pair notation threshold","expected":"00:00:00.00","passed":true},{"actual":"01:00:00.03","check":"partial repair variant: pair notation threshold","expected":"01:00:00.03","passed":true},{"actual":"00:00:00:00","check":"boundary control","expected":"00:00:00:00","passed":true},{"actual":"00:00:00.01","check":"boundary control","expected":"00:00:00.01","passed":true},{"actual":"23:59:59:24","check":"normal control","expected":"23:59:59:24","passed":true},{"actual":"00:00:00:01","check":"normal control","expected":"00:00:00:01","passed":true},{"actual":"00:00:00.29","check":"normal control","expected":"00:00:00.29","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: pair notation threshold\", \"actual\": \"00:01:00.01\", \"expected\": \"00:01:00:03\", \"passed\": false}, {\"check\": \"regression variant: pair notation threshold\", \"actual\": \"00:00:00.02\", \"expected\": \"00:00:00:05\", \"passed\": false}, {\"check\": \"partial repair probe: pair notation threshold\", \"actual\": \"00:00:00.00\", \"expected\": \"00:00:00.00\", \"passed\": true}, {\"check\": \"partial repair variant: pair notation threshold\", \"actual\": \"01:00:00.03\", \"expected\": \"01:00:00.03\", \"passed\": true}, {\"check\": \"boundary control\", \"actual\": \"00:00:00:00\", \"expected\": \"00:00:00:00\", \"passed\": true}, {\"check\": \"boundary control\", \"actual\": \"00:00:00.01\", \"expected\": \"00:00:00.01\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"23:59:59:24\", \"expected\": \"23:59:59:24\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"00:00:00:01\", \"expected\": \"00:00:00:01\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"00:00:00.29\", \"expected\": \"00:00:00.29\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.611,"exit_code":0,"observations":[{"actual":"00:01:00:03","check":"regression: pair notation threshold","expected":"00:01:00:03","passed":true},{"actual":"00:00:00:05","check":"regression variant: pair notation threshold","expected":"00:00:00:05","passed":true},{"actual":"00:00:00.00","check":"partial repair probe: pair notation threshold","expected":"00:00:00.00","passed":true},{"actual":"01:00:00.03","check":"partial repair variant: pair notation threshold","expected":"01:00:00.03","passed":true},{"actual":"00:00:00:00","check":"boundary control","expected":"00:00:00:00","passed":true},{"actual":"00:00:00.01","check":"boundary control","expected":"00:00:00.01","passed":true},{"actual":"23:59:59:24","check":"normal control","expected":"23:59:59:24","passed":true},{"actual":"00:00:00:01","check":"normal control","expected":"00:00:00:01","passed":true},{"actual":"00:00:00.29","check":"normal control","expected":"00:00:00.29","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: pair notation threshold\", \"actual\": \"00:01:00:03\", \"expected\": \"00:01:00:03\", \"passed\": true}, {\"check\": \"regression variant: pair notation threshold\", \"actual\": \"00:00:00:05\", \"expected\": \"00:00:00:05\", \"passed\": true}, {\"check\": \"partial repair probe: pair notation threshold\", \"actual\": \"00:00:00.00\", \"expected\": \"00:00:00.00\", \"passed\": true}, {\"check\": \"partial repair variant: pair notation threshold\", \"actual\": \"01:00:00.03\", \"expected\": \"01:00:00.03\", \"passed\": true}, {\"check\": \"boundary control\", \"actual\": \"00:00:00:00\", \"expected\": \"00:00:00:00\", \"passed\": true}, {\"check\": \"boundary control\", \"actual\": \"00:00:00.01\", \"expected\": \"00:00:00.01\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"23:59:59:24\", \"expected\": \"23:59:59:24\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"00:00:00:01\", \"expected\": \"00:00:00:01\", \"passed\": true}, {\"check\": \"normal control\", \"actual\": \"00:00:00.29\", \"expected\": \"00:00:00.29\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}