HuggingFriends commited on
Commit
7088de7
·
verified ·
1 Parent(s): 2374006

Refresh PixelWorld monitoring frontend

Browse files
Files changed (2) hide show
  1. flash.html +2 -2
  2. flash.js +1 -1
flash.html CHANGED
@@ -5,7 +5,7 @@
5
  <header><nav><strong><a href="index.html">PixelWorld</a></strong><span><a href="index.html">主实验</a><a href="flash.html">Flash</a><a href="https://github.com/SiyuanMaCS/PixelWorld">GitHub</a><a href="https://huggingface.co/datasets/HuggingFriends/PixelWorld">视频与 Trace</a></span></nav></header>
6
  <main><p class="eyebrow">PHYSICS-IQ · HARNESS ANALYSIS</p><h1>PixelWorld-Flash</h1>
7
  <p class="muted">GPT-5.6-Luna · 720p / 24 FPS · 1M output-token budget</p>
8
- <p><button data-cohort="confirmation_native24">主设置评分 · 24 FPS</button><button data-cohort="submission_native24">提交工具 · 配对测试</button><button data-cohort="confirmation">开发评分 · 4 FPS</button><button data-cohort="legacy">旧开发消融</button></p>
9
  <p id="condition" class="notice"></p><p id="scope" class="small muted"></p><p id="sync" class="small muted">正在加载…</p>
10
  <div class="table"><table><thead><tr><th>设置</th><th>生成</th><th>Input / Output 均值</th><th>成本估算 / attempt</th><th>评分数 · IoU v1 / v2</th><th>配对 v1 变化</th></tr></thead><tbody id="rows"></tbody></table></div>
11
  <section class="panel"><h2>成本与质量</h2><div id="chart"></div><p class="small muted">只绘制已完成全部匹配评分的条件。子集指标不能当作完整 Physics-IQ Verified 分数;置信区间与独立验证完成后再确定正式版本。</p></section>
@@ -13,4 +13,4 @@
13
  <section class="panel"><h2>首个有效候选 → 最终候选</h2><div id="refinement"></div></section>
14
  <details open><summary>已发布视频与完整 Trace · 同一案例对照</summary><div id="examples"></div></details><details><summary>Trace 中的实际行为</summary><div class="table"><table><thead><tr><th>设置</th><th>exec / attempt</th><th>patch / attempt</th><th>图片调用 / attempt</th><th>真实图片返回 / attempt</th><th>helper 失败 / attempt</th><th>读 artifact_io.py</th><th>读 player template</th></tr></thead><tbody id="trace"></tbody></table></div></details>
15
  <footer>成本采用公开列明的参考费率:input $10/M、cached input $1/M、output $50/M。70% 缓存是假设场景;测试模型免费,表中估算不是实际账单。原始协议状态、RGB 有效性和接口故障分别保留。</footer></main>
16
- <script src="flash.js?v=1ecec4dff409"></script></body></html>
 
5
  <header><nav><strong><a href="index.html">PixelWorld</a></strong><span><a href="index.html">主实验</a><a href="flash.html">Flash</a><a href="https://github.com/SiyuanMaCS/PixelWorld">GitHub</a><a href="https://huggingface.co/datasets/HuggingFriends/PixelWorld">视频与 Trace</a></span></nav></header>
6
  <main><p class="eyebrow">PHYSICS-IQ · HARNESS ANALYSIS</p><h1>PixelWorld-Flash</h1>
7
  <p class="muted">GPT-5.6-Luna · 720p / 24 FPS · 1M output-token budget</p>
8
+ <p><button data-cohort="confirmation_native24">主设置评分 · 24 FPS</button><button data-cohort="submission_native24">提交反馈 · 配对测试</button><button data-cohort="boundary_native24">提交边界 · 配对测试</button><button data-cohort="confirmation">开发评分 · 4 FPS</button><button data-cohort="legacy">旧开发消融</button></p>
9
  <p id="condition" class="notice"></p><p id="scope" class="small muted"></p><p id="sync" class="small muted">正在加载…</p>
10
  <div class="table"><table><thead><tr><th>设置</th><th>生成</th><th>Input / Output 均值</th><th>成本估算 / attempt</th><th>评分数 · IoU v1 / v2</th><th>配对 v1 变化</th></tr></thead><tbody id="rows"></tbody></table></div>
11
  <section class="panel"><h2>成本与质量</h2><div id="chart"></div><p class="small muted">只绘制已完成全部匹配评分的条件。子集指标不能当作完整 Physics-IQ Verified 分数;置信区间与独立验证完成后再确定正式版本。</p></section>
 
13
  <section class="panel"><h2>首个有效候选 → 最终候选</h2><div id="refinement"></div></section>
14
  <details open><summary>已发布视频与完整 Trace · 同一案例对照</summary><div id="examples"></div></details><details><summary>Trace 中的实际行为</summary><div class="table"><table><thead><tr><th>设置</th><th>exec / attempt</th><th>patch / attempt</th><th>图片调用 / attempt</th><th>真实图片返回 / attempt</th><th>helper 失败 / attempt</th><th>读 artifact_io.py</th><th>读 player template</th></tr></thead><tbody id="trace"></tbody></table></div></details>
15
  <footer>成本采用公开列明的参考费率:input $10/M、cached input $1/M、output $50/M。70% 缓存是假设场景;测试模型免费,表中估算不是实际账单。原始协议状态、RGB 有效性和接口故障分别保留。</footer></main>
16
+ <script src="flash.js?v=52122e340327"></script></body></html>
flash.js CHANGED
@@ -7,7 +7,7 @@ async function load(){const path=cohort+'.json';if(Date.now()-originChecked>3000
7
  function chart(arms){const pts=arms.filter(a=>a.expected_cases>=20&&a.scored_cases===a.expected_cases&&typeof a.mean_cost_normalized70==='number'&&typeof a.mean_v1==='number');if(!pts.length){$('chart').innerHTML='<p class="muted">等待完整匹配评分。这里不展示占位分数。</p>';return}const W=850,H=340,L=70,T=25,R=30,B=55,xmax=Math.max(...pts.map(a=>a.mean_cost_normalized70))*1.15,ymax=Math.max(.3,...pts.map(a=>a.mean_v1))*1.2;let s='<svg viewBox="0 0 '+W+' '+H+'" role="img" aria-label="Measured cost and subset quality">';for(let i=0;i<=4;i++){let y=H-B-(H-B-T)*i/4;s+='<line x1="'+L+'" y1="'+y+'" x2="'+(W-R)+'" y2="'+y+'" stroke="#dfe5ee"/><text x="'+(L-8)+'" y="'+(y+4)+'" text-anchor="end" fill="#64748b" font-size="12">'+fmt(ymax*i/4)+'</text>';let x=L+(W-R-L)*i/4;s+='<text x="'+x+'" y="'+(H-B+20)+'" text-anchor="middle" fill="#64748b" font-size="12">$'+fmt(xmax*i/4)+'</text>'}const colors=['#2563eb','#16803b','#7c3aed','#a8650a','#c43e30'];pts.forEach((a,i)=>{let x=L+a.mean_cost_normalized70/xmax*(W-L-R),y=H-B-a.mean_v1/ymax*(H-T-B);const anchor=x>W*.7?'end':'start',labelX=x+(anchor==='end'?-12:12),labelY=y+(a.key==='baseline'?24:a.key==='receipt'?-32:-12),short={baseline:'Baseline',api:'Save API',receipt:'API + receipt',strict:'Four-call guidance'}[a.key]||a.label;s+='<circle cx="'+x+'" cy="'+y+'" r="7" fill="'+colors[i%colors.length]+'"><title>'+esc(a.label)+' · '+a.scored_cases+' cases · $'+fmt(a.mean_cost_normalized70)+' · IoU '+fmt(a.mean_v1,4)+'</title></circle><text x="'+labelX+'" y="'+labelY+'" text-anchor="'+anchor+'" fill="'+colors[i%colors.length]+'" font-size="12">'+esc(short)+'</text>'});s+='<text x="'+(W/2)+'" y="'+(H-8)+'" text-anchor="middle" fill="#64748b" font-size="13">Cost / fully measured attempt · 70% cache scenario</text><text x="18" y="'+H/2+'" transform="rotate(-90 18 '+H/2+')" text-anchor="middle" fill="#64748b" font-size="13">Subset weighted spatial IoU v1 ↑</text></svg>';$('chart').innerHTML=s}
8
  function render(){const arms=report.arms||[];$('scope').textContent=report.scope;$('sync').textContent='更新:'+new Date(report.updated_utc).toLocaleString();$('condition').textContent='质量采样:'+(report.quality_scoring_fps||4)+' FPS / '+(report.quality_scoring_frames||20)+' 帧 · '+(cohort!=='legacy'?'工作中的视觉工具 · 20 个独立场景 · 正式 Flash 版本待确认':'旧开发条件:附带首帧,但输出图片工具因 helper 校验失败而不可用。此处数据不作为完整 Vision 主评测。');$('rows').innerHTML=arms.map(a=>{let c=a.counts||{},q=a.paired?.v1,e=a.paired_economics;return'<tr><td><b>'+esc(a.label)+'</b></td><td>'+a.valid_rgb+'/'+a.expected_cases+' RGB · '+a.original_protocol_pass+' 协议通过<br><span class="small muted">'+(a.excluded_from_acceptance?'已停止 · 不用于版本选择':(c.running||0)+' 运行 · '+a.pending+' 待生成 · '+(c.failed||0)+' 真实失败 · '+(c.stale||0)+' infra 待恢复')+'</span></td><td>'+tok(a.mean_input)+' / '+tok(a.mean_output)+'<br><span class="small muted">'+a.usage_measured_cases+' 次完整 usage</span>'+(a.unknown_prior_usage_cases?.length?'<br><span class="small muted">历史消耗不完整:'+a.unknown_prior_usage_cases.length+' case</span>':'')+'</td><td>'+ (typeof a.mean_cost_normalized70==='number'?'$'+fmt(a.mean_cost_normalized70):'—')+(typeof a.cost_per_protocol_delivery_normalized70==='number'?'<br><span class="small muted">$'+fmt(a.cost_per_protocol_delivery_normalized70)+' / 有效交付</span>':'')+(typeof e?.cost_per_delivery_normalized70_relative_delta==='number'?'<br><span class="small muted">配对成本 '+fmt(e.cost_per_delivery_normalized70_relative_delta*100,1)+'% · '+e.paired_closed_cases+' cases</span>':'')+'<br><span class="small muted">实测缓存:$'+fmt(a.mean_cost_measured_cache)+'</span></td><td>'+a.scored_cases+'/'+a.expected_cases+'<br>'+fmt(a.mean_v1,4)+' / '+fmt(a.mean_v2,4)+'</td><td>'+(q?fmt(q.relative_mean_delta*100,1)+'%<br><span class="small muted">'+(Array.isArray(q.ci95)?'Δ CI ['+fmt(q.ci95[0],4)+', '+fmt(q.ci95[1],4)+']':'样本不足以估计区间')+'</span>':'—')+'</td></tr>'}).join('');$('trace').innerHTML=arms.map(a=>{let t=a.trace||{};return'<tr><td>'+esc(a.label)+'</td><td>'+fmt(t.mean_exec_calls,1)+'</td><td>'+fmt(t.mean_patch_calls,1)+'</td><td>'+fmt(t.mean_image_calls,1)+'</td><td>'+fmt(t.mean_returned_image_messages,1)+'</td><td>'+fmt(t.mean_image_helper_failures,1)+'</td><td>'+(t.source_reads?.['artifact_io.py']??'—')+'</td><td>'+(t.source_reads?.['player_template.html']??'—')+'</td></tr>'}).join('');chart(arms)}
9
  function renderRefinement(){const r=report.refinement;if(!r){$('refinement').innerHTML='<p class="muted">首个候选对照只在匹配的原生 24 FPS 评分中展示。</p>';return}let s='<p class="small muted">'+r.matched_cases+' 个配对案例 · '+r.changed_tensor_cases+' 个保存的 tensor 文件发生变化</p><div class="table"><table><thead><tr><th>指标</th><th>首个有效候选</th><th>最终候选</th><th>变化的 95% 区间</th><th>改善 / 降低 / 持平</th></tr></thead><tbody>';for(const key of ['v1','v2']){const q=r.paired?.[key];s+='<tr><td>IoU '+key+'</td><td>'+fmt(r.first_mean?.[key],4)+'</td><td>'+fmt(r.final_mean?.[key],4)+'</td><td>'+(q?.ci95?'['+fmt(q.ci95[0],4)+', '+fmt(q.ci95[1],4)+']':'—')+'</td><td>'+(q?q.wins+' / '+q.losses+' / '+(r.matched_cases-q.wins-q.losses):'—')+'</td></tr>'}s+='</tbody></table></div>';const u=r.post_submission_usage;if(u?.measured_cases)s+='<p>'+u.measured_cases+' 个案例的逐请求 usage 与最终记录一致。首个有效候选保存后,报告了总 input 的 <b>'+fmt(u.input_fraction_reported_after*100,1)+'%</b>、总 output 的 <b>'+fmt(u.output_fraction_reported_after*100,1)+'%</b>;此后平均运行 '+fmt(u.mean_seconds_after/60,1)+' 分钟。</p>';s+='<p class="small muted">这是已有轨迹的描述性比较。保存后的消耗包含检查、修订和验证,不能全部算作浪费,也不证明提前停止会保持质量。</p>';$('refinement').innerHTML=s}
10
- async function showExamples(){if(cohort==='legacy'){$('examples').textContent='旧开发条件单独保留,不与当前示例混排。';return}const playing=$('examples').querySelector('video');if(playing&&!playing.paused)return;try{const response=await fetch(HF+(cohort.startsWith('submission_')?'submission_examples.json':'examples.json')+'?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(12000)});if(!response.ok)throw Error('HTTP '+response.status);const data=await response.json(),rows=data.examples||[],ids=[...new Set(rows.map(x=>x.case))].sort();if(!ids.length)return;if(!ids.includes(exampleCase))exampleCase=ids[0];const labels=Object.fromEntries((report.arms||[]).map(a=>[a.key,a.label]));$('examples').innerHTML='<label class="small muted">同一案例 </label><select id="example-case">'+ids.map(id=>'<option '+(id===exampleCase?'selected ':'')+'value="'+esc(id)+'">'+esc(id)+'</option>').join('')+'</select><div class="versions">'+rows.filter(x=>x.case===exampleCase).map(x=>{const candidate=(x.candidates||[]).at(-1);return'<article class="panel"><b>'+esc(labels[x.arm]||x.arm)+' · Attempt '+esc(x.attempt||x.detail?.match(/attempt_(\d+)\.json/)?.[1]||1)+'</b><p class="small '+(x.protocol_pass?'muted':'failed')+'">'+(x.protocol_pass?'交付协议通过':'交付协议未通过 · 保留生成结果供检查')+'</p>'+(candidate?.preview_mp4?'<video controls preload="none" poster="'+esc(candidate.poster)+'" src="'+esc(candidate.preview_mp4)+'"></video>':'<p class="muted">尚无可播放候选</p>')+'<p class="small"><a target="_blank" rel="noopener" href="'+esc(x.detail)+'">完整详情</a>'+(x.trace?' · <a href="'+esc(x.trace)+'">完整脱敏 Trace</a>':'')+'</p></article>'}).join('')+'</div>';$('example-case').onchange=e=>{exampleCase=e.target.value;showExamples()}}catch(e){$('examples').textContent='已完成视频和完整 Trace 正在自动发布;汇总数据继续刷新。'}}
11
  async function showSubmissionProbe(){let urls=[HF+'submission_probe.json'];if(liveOrigin)urls.unshift(new URL('flash_submission_probe.json',liveOrigin).href);for(const url of urls){try{const r=await fetch(url+'?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(6000)});if(!r.ok)continue;const d=await r.json();$('submission-probe').innerHTML='<p><b>'+esc(d.model||'GPT-5.6-Luna')+'</b> · '+esc(d.case)+' · Attempt '+esc(d.attempt||1)+' · '+esc(d.status)+(d.active?' · 进程已核验运行中':'')+'</p><p>'+(d.valid_delivery?'1 / 1 有效交付':'0 / 1 有效交付')+' · '+esc(d.submission_tool_calls||0)+' 次提交工具调用 · '+esc(d.attempt_records||0)+' 次原始记录</p><p>Input '+tok(d.input_tokens)+' · Output '+tok(d.output_tokens)+(d.scored?' · Native24 IoU '+fmt(d.score.v1,4)+' / '+fmt(d.score.v2,4):' · 原生评分待完成')+'</p><p class="small muted">单例机制 smoke,不能证明省 token 或质量保持。</p>';return}catch(e){}}$('submission-probe').textContent='正在等待实际 smoke 记录。'}
12
  async function poll(){try{report=await load();render();renderRefinement();showExamples();showSubmissionProbe()}catch(e){$('sync').textContent='报告同步等待:'+e.message}}document.querySelectorAll('[data-cohort]').forEach(b=>b.onclick=()=>{cohort=b.dataset.cohort;poll()});poll();setInterval(poll,30000)
13
  })();
 
7
  function chart(arms){const pts=arms.filter(a=>a.expected_cases>=20&&a.scored_cases===a.expected_cases&&typeof a.mean_cost_normalized70==='number'&&typeof a.mean_v1==='number');if(!pts.length){$('chart').innerHTML='<p class="muted">等待完整匹配评分。这里不展示占位分数。</p>';return}const W=850,H=340,L=70,T=25,R=30,B=55,xmax=Math.max(...pts.map(a=>a.mean_cost_normalized70))*1.15,ymax=Math.max(.3,...pts.map(a=>a.mean_v1))*1.2;let s='<svg viewBox="0 0 '+W+' '+H+'" role="img" aria-label="Measured cost and subset quality">';for(let i=0;i<=4;i++){let y=H-B-(H-B-T)*i/4;s+='<line x1="'+L+'" y1="'+y+'" x2="'+(W-R)+'" y2="'+y+'" stroke="#dfe5ee"/><text x="'+(L-8)+'" y="'+(y+4)+'" text-anchor="end" fill="#64748b" font-size="12">'+fmt(ymax*i/4)+'</text>';let x=L+(W-R-L)*i/4;s+='<text x="'+x+'" y="'+(H-B+20)+'" text-anchor="middle" fill="#64748b" font-size="12">$'+fmt(xmax*i/4)+'</text>'}const colors=['#2563eb','#16803b','#7c3aed','#a8650a','#c43e30'];pts.forEach((a,i)=>{let x=L+a.mean_cost_normalized70/xmax*(W-L-R),y=H-B-a.mean_v1/ymax*(H-T-B);const anchor=x>W*.7?'end':'start',labelX=x+(anchor==='end'?-12:12),labelY=y+(a.key==='baseline'?24:a.key==='receipt'?-32:-12),short={baseline:'Baseline',api:'Save API',receipt:'API + receipt',strict:'Four-call guidance'}[a.key]||a.label;s+='<circle cx="'+x+'" cy="'+y+'" r="7" fill="'+colors[i%colors.length]+'"><title>'+esc(a.label)+' · '+a.scored_cases+' cases · $'+fmt(a.mean_cost_normalized70)+' · IoU '+fmt(a.mean_v1,4)+'</title></circle><text x="'+labelX+'" y="'+labelY+'" text-anchor="'+anchor+'" fill="'+colors[i%colors.length]+'" font-size="12">'+esc(short)+'</text>'});s+='<text x="'+(W/2)+'" y="'+(H-8)+'" text-anchor="middle" fill="#64748b" font-size="13">Cost / fully measured attempt · 70% cache scenario</text><text x="18" y="'+H/2+'" transform="rotate(-90 18 '+H/2+')" text-anchor="middle" fill="#64748b" font-size="13">Subset weighted spatial IoU v1 ↑</text></svg>';$('chart').innerHTML=s}
8
  function render(){const arms=report.arms||[];$('scope').textContent=report.scope;$('sync').textContent='更新:'+new Date(report.updated_utc).toLocaleString();$('condition').textContent='质量采样:'+(report.quality_scoring_fps||4)+' FPS / '+(report.quality_scoring_frames||20)+' 帧 · '+(cohort!=='legacy'?'工作中的视觉工具 · 20 个独立场景 · 正式 Flash 版本待确认':'旧开发条件:附带首帧,但输出图片工具因 helper 校验失败而不可用。此处数据不作为完整 Vision 主评测。');$('rows').innerHTML=arms.map(a=>{let c=a.counts||{},q=a.paired?.v1,e=a.paired_economics;return'<tr><td><b>'+esc(a.label)+'</b></td><td>'+a.valid_rgb+'/'+a.expected_cases+' RGB · '+a.original_protocol_pass+' 协议通过<br><span class="small muted">'+(a.excluded_from_acceptance?'已停止 · 不用于版本选择':(c.running||0)+' 运行 · '+a.pending+' 待生成 · '+(c.failed||0)+' 真实失败 · '+(c.stale||0)+' infra 待恢复')+'</span></td><td>'+tok(a.mean_input)+' / '+tok(a.mean_output)+'<br><span class="small muted">'+a.usage_measured_cases+' 次完整 usage</span>'+(a.unknown_prior_usage_cases?.length?'<br><span class="small muted">历史消耗不完整:'+a.unknown_prior_usage_cases.length+' case</span>':'')+'</td><td>'+ (typeof a.mean_cost_normalized70==='number'?'$'+fmt(a.mean_cost_normalized70):'—')+(typeof a.cost_per_protocol_delivery_normalized70==='number'?'<br><span class="small muted">$'+fmt(a.cost_per_protocol_delivery_normalized70)+' / 有效交付</span>':'')+(typeof e?.cost_per_delivery_normalized70_relative_delta==='number'?'<br><span class="small muted">配对成本 '+fmt(e.cost_per_delivery_normalized70_relative_delta*100,1)+'% · '+e.paired_closed_cases+' cases</span>':'')+'<br><span class="small muted">实测缓存:$'+fmt(a.mean_cost_measured_cache)+'</span></td><td>'+a.scored_cases+'/'+a.expected_cases+'<br>'+fmt(a.mean_v1,4)+' / '+fmt(a.mean_v2,4)+'</td><td>'+(q?fmt(q.relative_mean_delta*100,1)+'%<br><span class="small muted">'+(Array.isArray(q.ci95)?'Δ CI ['+fmt(q.ci95[0],4)+', '+fmt(q.ci95[1],4)+']':'样本不足以估计区间')+'</span>':'—')+'</td></tr>'}).join('');$('trace').innerHTML=arms.map(a=>{let t=a.trace||{};return'<tr><td>'+esc(a.label)+'</td><td>'+fmt(t.mean_exec_calls,1)+'</td><td>'+fmt(t.mean_patch_calls,1)+'</td><td>'+fmt(t.mean_image_calls,1)+'</td><td>'+fmt(t.mean_returned_image_messages,1)+'</td><td>'+fmt(t.mean_image_helper_failures,1)+'</td><td>'+(t.source_reads?.['artifact_io.py']??'—')+'</td><td>'+(t.source_reads?.['player_template.html']??'—')+'</td></tr>'}).join('');chart(arms)}
9
  function renderRefinement(){const r=report.refinement;if(!r){$('refinement').innerHTML='<p class="muted">首个候选对照只在匹配的原生 24 FPS 评分中展示。</p>';return}let s='<p class="small muted">'+r.matched_cases+' 个配对案例 · '+r.changed_tensor_cases+' 个保存的 tensor 文件发生变化</p><div class="table"><table><thead><tr><th>指标</th><th>首个有效候选</th><th>最终候选</th><th>变化的 95% 区间</th><th>改善 / 降低 / 持平</th></tr></thead><tbody>';for(const key of ['v1','v2']){const q=r.paired?.[key];s+='<tr><td>IoU '+key+'</td><td>'+fmt(r.first_mean?.[key],4)+'</td><td>'+fmt(r.final_mean?.[key],4)+'</td><td>'+(q?.ci95?'['+fmt(q.ci95[0],4)+', '+fmt(q.ci95[1],4)+']':'—')+'</td><td>'+(q?q.wins+' / '+q.losses+' / '+(r.matched_cases-q.wins-q.losses):'—')+'</td></tr>'}s+='</tbody></table></div>';const u=r.post_submission_usage;if(u?.measured_cases)s+='<p>'+u.measured_cases+' 个案例的逐请求 usage 与最终记录一致。首个有效候选保存后,报告了总 input 的 <b>'+fmt(u.input_fraction_reported_after*100,1)+'%</b>、总 output 的 <b>'+fmt(u.output_fraction_reported_after*100,1)+'%</b>;此后平均运行 '+fmt(u.mean_seconds_after/60,1)+' 分钟。</p>';s+='<p class="small muted">这是已有轨迹的描述性比较。保存后的消耗包含检查、修订和验证,不能全部算作浪费,也不证明提前停止会保持质量。</p>';$('refinement').innerHTML=s}
10
+ async function showExamples(){if(cohort==='legacy'){$('examples').textContent='旧开发条件单独保留,不与当前示例混排。';return}const playing=$('examples').querySelector('video');if(playing&&!playing.paused)return;try{const response=await fetch(HF+(cohort.startsWith('boundary_')?'boundary_examples.json':cohort.startsWith('submission_')?'submission_examples.json':'examples.json')+'?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(12000)});if(!response.ok)throw Error('HTTP '+response.status);const data=await response.json(),rows=data.examples||[],ids=[...new Set(rows.map(x=>x.case))].sort();if(!ids.length)return;if(!ids.includes(exampleCase))exampleCase=ids[0];const labels=Object.fromEntries((report.arms||[]).map(a=>[a.key,a.label]));$('examples').innerHTML='<label class="small muted">同一案例 </label><select id="example-case">'+ids.map(id=>'<option '+(id===exampleCase?'selected ':'')+'value="'+esc(id)+'">'+esc(id)+'</option>').join('')+'</select><div class="versions">'+rows.filter(x=>x.case===exampleCase).map(x=>{const candidate=(x.candidates||[]).at(-1);return'<article class="panel"><b>'+esc(labels[x.arm]||x.arm)+' · Attempt '+esc(x.attempt||x.detail?.match(/attempt_(\d+)\.json/)?.[1]||1)+'</b><p class="small '+(x.protocol_pass?'muted':'failed')+'">'+(x.protocol_pass?'交付协议通过':'交付协议未通过 · 保留生成结果供检查')+'</p>'+(candidate?.preview_mp4?'<video controls preload="none" poster="'+esc(candidate.poster)+'" src="'+esc(candidate.preview_mp4)+'"></video>':'<p class="muted">尚无可播放候选</p>')+'<p class="small"><a target="_blank" rel="noopener" href="'+esc(x.detail)+'">完整详情</a>'+(x.trace?' · <a href="'+esc(x.trace)+'">完整脱敏 Trace</a>':'')+'</p></article>'}).join('')+'</div>';$('example-case').onchange=e=>{exampleCase=e.target.value;showExamples()}}catch(e){$('examples').textContent='已完成视频和完整 Trace 正在自动发布;汇总数据继续刷新。'}}
11
  async function showSubmissionProbe(){let urls=[HF+'submission_probe.json'];if(liveOrigin)urls.unshift(new URL('flash_submission_probe.json',liveOrigin).href);for(const url of urls){try{const r=await fetch(url+'?t='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(6000)});if(!r.ok)continue;const d=await r.json();$('submission-probe').innerHTML='<p><b>'+esc(d.model||'GPT-5.6-Luna')+'</b> · '+esc(d.case)+' · Attempt '+esc(d.attempt||1)+' · '+esc(d.status)+(d.active?' · 进程已核验运行中':'')+'</p><p>'+(d.valid_delivery?'1 / 1 有效交付':'0 / 1 有效交付')+' · '+esc(d.submission_tool_calls||0)+' 次提交工具调用 · '+esc(d.attempt_records||0)+' 次原始记录</p><p>Input '+tok(d.input_tokens)+' · Output '+tok(d.output_tokens)+(d.scored?' · Native24 IoU '+fmt(d.score.v1,4)+' / '+fmt(d.score.v2,4):' · 原生评分待完成')+'</p><p class="small muted">单例机制 smoke,不能证明省 token 或质量保持。</p>';return}catch(e){}}$('submission-probe').textContent='正在等待实际 smoke 记录。'}
12
  async function poll(){try{report=await load();render();renderRefinement();showExamples();showSubmissionProbe()}catch(e){$('sync').textContent='报告同步等待:'+e.message}}document.querySelectorAll('[data-cohort]').forEach(b=>b.onclick=()=>{cohort=b.dataset.cohort;poll()});poll();setInterval(poll,30000)
13
  })();