{
  "schema_version": 1,
  "harness": "scripts/score-served-occupancy.py",
  "started_at": "2026-08-05T17:49:15.030160+00:00",
  "measured_at": "2026-08-05T18:24:24.431638+00:00",
  "repo_commit": null,
  "repo_dirty": false,
  "box_state": {
    "load_average": {
      "1m": 48.47,
      "5m": 47.65,
      "15m": 47.68
    },
    "cpu_count": 20,
    "platform": "aarch64"
  },
  "dataset": {
    "survey": "nairobi-region-2026-08-04-uhf-survey",
    "reference_floor_dbfs": -62.54,
    "ground_truth_method": "Derived from measured physics, not annotation: occupied = more than 8 dB over the same-session floor AND occupied-bandwidth fraction over 0.5; vacant = within 3 dB of that floor; anything between is ambiguous and is scored against neither. Both criteria are the ones capture-ota-iq.py already used, unchanged.",
    "records_per_channel": 20
  },
  "detector_thresholds": {
    "z_present_shipped": 3.5,
    "z_present_in_force": 3.5,
    "z_present_overridden": false,
    "z_null": 2.5,
    "energy_vacant_margin_db": 3.0,
    "energy_module_default_control_floor_dbfs": -59.9,
    "note": "z_present_in_force is what the cyclostationary plane actually thresholded on this run. When z_present_overridden is true this report is a SENSITIVITY run and does NOT describe the shipped detector."
  },
  "model_identity": {
    "checkpoint": "/repo/external/tvws-sensing/models/checkpoints/best.pt",
    "checkpoint_sha256": "8eca022f09b897a579ef74225881343949a1a4a53b880edabf82225aacbb34ee",
    "note": "A checkpoint SHA pins a FILE. It does not prove any endpoint serves it."
  },
  "split_rule": {
    "calibration_channels": "UHF 21-34 (lower half of the swept band)",
    "report_channels": "UHF 35-48",
    "why": "Any threshold changed on the strength of this survey must be justified on the calibration half; the headline is quoted from the report half."
  },
  "arms": {
    "before": "InferenceEngine.infer(x) \u2014 CNN confidence only, the shipped path",
    "after": "InferenceEngine.infer(x, control_floor_dbfs=floor) \u2014 src.detect.decide"
  },
  "results": {
    "all": {
      "before": {
        "occupied_channels": 10,
        "occupied_detected": 2,
        "vacant_channels": 15,
        "vacant_false_positive_channels": 1,
        "occupied_records_detected": 41,
        "occupied_records_total": 200,
        "vacant_records_false_positive": 48,
        "vacant_records_total": 300
      },
      "after": {
        "occupied_channels": 10,
        "occupied_detected": 10,
        "vacant_channels": 15,
        "vacant_false_positive_channels": 0,
        "occupied_records_detected": 193,
        "occupied_records_total": 200,
        "vacant_records_false_positive": 12,
        "vacant_records_total": 300
      }
    },
    "calibrate": {
      "before": {
        "occupied_channels": 7,
        "occupied_detected": 1,
        "vacant_channels": 4,
        "vacant_false_positive_channels": 1,
        "occupied_records_detected": 21,
        "occupied_records_total": 140,
        "vacant_records_false_positive": 30,
        "vacant_records_total": 80
      },
      "after": {
        "occupied_channels": 7,
        "occupied_detected": 7,
        "vacant_channels": 4,
        "vacant_false_positive_channels": 0,
        "occupied_records_detected": 137,
        "occupied_records_total": 140,
        "vacant_records_false_positive": 8,
        "vacant_records_total": 80
      }
    },
    "report": {
      "before": {
        "occupied_channels": 3,
        "occupied_detected": 1,
        "vacant_channels": 11,
        "vacant_false_positive_channels": 0,
        "occupied_records_detected": 20,
        "occupied_records_total": 60,
        "vacant_records_false_positive": 18,
        "vacant_records_total": 220
      },
      "after": {
        "occupied_channels": 3,
        "occupied_detected": 3,
        "vacant_channels": 11,
        "vacant_false_positive_channels": 0,
        "occupied_records_detected": 56,
        "occupied_records_total": 60,
        "vacant_records_false_positive": 4,
        "vacant_records_total": 220
      }
    }
  },
  "channels": [
    {
      "uhf_channel": 21,
      "centre_mhz": 474,
      "excess_over_session_floor_db": 0.88,
      "derived_truth": "vacant",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 2,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 1.677,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 2K"
      }
    },
    {
      "uhf_channel": 22,
      "centre_mhz": 482,
      "excess_over_session_floor_db": 3.69,
      "derived_truth": "ambiguous",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 2,
      "after_occupied_records": 0,
      "after_verdicts": {
        "UNKNOWN": 6,
        "VACANT": 14
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 0.905,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 1"
      }
    },
    {
      "uhf_channel": 23,
      "centre_mhz": 490,
      "excess_over_session_floor_db": 0.73,
      "derived_truth": "vacant",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 0,
      "after_verdicts": {
        "UNKNOWN": 3,
        "VACANT": 17
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 2.101,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 24,
      "centre_mhz": 498,
      "excess_over_session_floor_db": 6.8,
      "derived_truth": "ambiguous",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 10,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Wireless Mic",
      "cyclo_first_record": {
        "comb_z_max": 7.062,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 4K"
      }
    },
    {
      "uhf_channel": 25,
      "centre_mhz": 506,
      "excess_over_session_floor_db": 17.73,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 20,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "DVB-T",
      "cyclo_first_record": {
        "comb_z_max": 20.434,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 4K"
      }
    },
    {
      "uhf_channel": 26,
      "centre_mhz": 514,
      "excess_over_session_floor_db": 8.78,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 19,
      "after_verdicts": {
        "OCCUPIED": 19,
        "UNKNOWN": 1
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 5.366,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 4K"
      }
    },
    {
      "uhf_channel": 27,
      "centre_mhz": 522,
      "excess_over_session_floor_db": -0.59,
      "derived_truth": "vacant",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 8,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.571,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 1"
      }
    },
    {
      "uhf_channel": 28,
      "centre_mhz": 530,
      "excess_over_session_floor_db": 0.39,
      "derived_truth": "vacant",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 20,
      "after_occupied_records": 8,
      "after_verdicts": {
        "OCCUPIED": 8,
        "UNKNOWN": 4,
        "VACANT": 8
      },
      "cnn_modulation_top": "ATSC",
      "cyclo_first_record": {
        "comb_z_max": 4.9,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 29,
      "centre_mhz": 538,
      "excess_over_session_floor_db": 6.22,
      "derived_truth": "ambiguous",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 1,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 8.871,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 30,
      "centre_mhz": 546,
      "excess_over_session_floor_db": 10.26,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 6.937,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 31,
      "centre_mhz": 554,
      "excess_over_session_floor_db": 29.38,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 1,
      "after_occupied_records": 18,
      "after_verdicts": {
        "OCCUPIED": 18,
        "UNKNOWN": 2
      },
      "cnn_modulation_top": "Wireless Mic",
      "cyclo_first_record": {
        "comb_z_max": 5.841,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 32,
      "centre_mhz": 562,
      "excess_over_session_floor_db": 42.2,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 15.66,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 33,
      "centre_mhz": 570,
      "excess_over_session_floor_db": 41.39,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 14.722,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 4K"
      }
    },
    {
      "uhf_channel": 34,
      "centre_mhz": 578,
      "excess_over_session_floor_db": 27.74,
      "derived_truth": "occupied",
      "split": "calibrate",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 8.952,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 35,
      "centre_mhz": 586,
      "excess_over_session_floor_db": 29.81,
      "derived_truth": "occupied",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 20,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "DVB-T",
      "cyclo_first_record": {
        "comb_z_max": 17.3,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 36,
      "centre_mhz": 594,
      "excess_over_session_floor_db": 19.2,
      "derived_truth": "occupied",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 16,
      "after_verdicts": {
        "OCCUPIED": 16,
        "UNKNOWN": 4
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 8.99,
        "verdict": "OFDM_PRESENT",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 37,
      "centre_mhz": 602,
      "excess_over_session_floor_db": 2.33,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 8,
      "after_occupied_records": 4,
      "after_verdicts": {
        "OCCUPIED": 4,
        "UNKNOWN": 4,
        "VACANT": 12
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 3.289,
        "verdict": "AMBIGUOUS",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 38,
      "centre_mhz": 610,
      "excess_over_session_floor_db": 0.23,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.301,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 39,
      "centre_mhz": 618,
      "excess_over_session_floor_db": 15.88,
      "derived_truth": "occupied",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 20,
      "after_verdicts": {
        "OCCUPIED": 20
      },
      "cnn_modulation_top": "Noise",
      "cyclo_first_record": {
        "comb_z_max": 1.045,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 40,
      "centre_mhz": 626,
      "excess_over_session_floor_db": 0.42,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 1,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.423,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 41,
      "centre_mhz": 634,
      "excess_over_session_floor_db": -0.21,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 1,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.539,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 42,
      "centre_mhz": 642,
      "excess_over_session_floor_db": -0.05,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 4,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 0.637,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 1"
      }
    },
    {
      "uhf_channel": 43,
      "centre_mhz": 650,
      "excess_over_session_floor_db": -0.2,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.294,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 3"
      }
    },
    {
      "uhf_channel": 44,
      "centre_mhz": 658,
      "excess_over_session_floor_db": -0.03,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 2,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.196,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 1"
      }
    },
    {
      "uhf_channel": 45,
      "centre_mhz": 666,
      "excess_over_session_floor_db": -0.05,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 1,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.157,
        "verdict": "NULL",
        "best_mode": "DVB-T2/T 8K"
      }
    },
    {
      "uhf_channel": 46,
      "centre_mhz": 674,
      "excess_over_session_floor_db": -0.14,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 0.982,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 2"
      }
    },
    {
      "uhf_channel": 47,
      "centre_mhz": 682,
      "excess_over_session_floor_db": 0.03,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 0,
      "after_occupied_records": 0,
      "after_verdicts": {
        "VACANT": 20
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.458,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 1"
      }
    },
    {
      "uhf_channel": 48,
      "centre_mhz": 690,
      "excess_over_session_floor_db": 0.27,
      "derived_truth": "vacant",
      "split": "report",
      "n_records": 20,
      "before_occupied_records": 1,
      "after_occupied_records": 0,
      "after_verdicts": {
        "UNKNOWN": 1,
        "VACANT": 19
      },
      "cnn_modulation_top": "Unknown",
      "cyclo_first_record": {
        "comb_z_max": 1.174,
        "verdict": "NULL",
        "best_mode": "ISDB-T mode 3"
      }
    }
  ],
  "caveats": [
    "Ambiguous channels are scored against neither arm, by design.",
    "One site, one session, one antenna (SenseCAP 860-930 MHz used at 470-700 MHz). The mismatch does not affect the OCCUPIED direction \u2014 falsified 2026-08-04 at +42 dB \u2014 but it does compress the dynamic range available for vacant-channel work.",
    "The CNN's modulation label is reported but never scored here: the captures are DVB-T2 and the model has no DVB-T2 class."
  ]
}
